/* Product detail page — B2B marketplace layout */
.sbc-pdp {
    padding-bottom: 4rem;
}

.sbc-pdp-breadcrumb {
    font-size: 0.85rem;
    padding: 1rem 0;
    color: var(--sbc-muted);
}

.sbc-pdp-breadcrumb a {
    color: var(--sbc-muted);
    text-decoration: none;
}

.sbc-pdp-breadcrumb a:hover {
    color: var(--sbc-primary);
}

.sbc-pdp-breadcrumb .sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

/* Gallery column */
.sbc-pdp-gallery-col {
    align-self: flex-start;
}

.sbc-pdp-gallery-meta {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    background: #fff;
}

.sbc-pdp-gallery-meta .sbc-pdp-attr-grid:last-child {
    margin-bottom: 0;
}

.sbc-pdp-gallery {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
}

.sbc-pdp-thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 72px;
    flex-shrink: 0;
}

.sbc-pdp-thumb-btn {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sbc-pdp-thumb-btn:hover,
.sbc-pdp-thumb-btn.active {
    border-color: var(--sbc-primary);
    box-shadow: 0 0 0 1px var(--sbc-primary);
}

.sbc-pdp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbc-pdp-main-wrap {
    flex: 1;
    min-width: 0;
}

.sbc-pdp-main-image {
    position: relative;
    width: 100%;
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    background: #fafbfc;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 280px;
    cursor: zoom-in;
}

.sbc-pdp-main-image img,
.sbc-pdp-main-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fafbfc;
}

.sbc-pdp-main-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sbc-light);
    font-size: 3rem;
    font-weight: 800;
    color: var(--sbc-muted);
}

.sbc-pdp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbc-primary);
    z-index: 2;
}

.sbc-pdp-nav-btn:hover {
    background: #fff;
}

.sbc-pdp-nav-btn.prev {
    left: 0.75rem;
}

.sbc-pdp-nav-btn.next {
    right: 0.75rem;
}

.sbc-pdp-media-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sbc-pdp-media-tab {
    padding: 0.4rem 1rem;
    border: 1px solid var(--sbc-border);
    border-radius: 50px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sbc-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.sbc-pdp-media-tab.active {
    border-color: var(--sbc-primary);
    color: var(--sbc-primary);
    background: rgba(15, 43, 74, 0.05);
}

.sbc-pdp-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 280px;
    background: #000;
    border-radius: var(--sbc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Product info column */
.sbc-pdp-title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--sbc-primary-dark);
    margin-bottom: 0.75rem;
}

.sbc-pdp-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--sbc-muted);
}

.sbc-pdp-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--sbc-accent);
    font-weight: 600;
}

.sbc-pdp-rating .stars {
    letter-spacing: -1px;
}

.sbc-pdp-popularity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 600;
}

.sbc-pdp-price-block {
    background: linear-gradient(135deg, rgba(15, 43, 74, 0.04), rgba(245, 158, 11, 0.06));
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sbc-pdp-price {
    font-size: clamp(1.5rem, 1vw, 1rem);
    font-weight: 800;
    color: var(--sbc-primary-dark);
    line-height: 1.2;
}

.sbc-pdp-price-note {
    font-size: 0.88rem;
    color: var(--sbc-muted);
    margin-top: 0.35rem;
}

.sbc-pdp-moq {
    font-weight: 700;
    color: var(--sbc-primary);
}

.sbc-pdp-section-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sbc-muted);
    margin-bottom: 0.65rem;
}

.sbc-pdp-attr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.sbc-pdp-attr-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--sbc-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--sbc-primary);
}

.sbc-pdp-attr-chip i {
    color: var(--sbc-accent);
}

.sbc-pdp-tier-table {
    width: 100%;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.sbc-pdp-tier-table th {
    background: var(--sbc-light);
    font-weight: 700;
    color: var(--sbc-primary);
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--sbc-border);
}

.sbc-pdp-tier-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--sbc-border);
}

.sbc-pdp-tier-table tr:last-child td {
    border-bottom: none;
}

.sbc-pdp-tier-table .price-cell {
    font-weight: 700;
    color: var(--sbc-primary-dark);
}

.sbc-pdp-offer {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sbc-pdp-offer i {
    color: var(--sbc-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Sticky sidebar */
.sbc-pdp-sidebar {
    position: sticky;
    top: calc(var(--sbc-nav-height) + 1rem);
}

.sbc-pdp-sidebar-card {
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    background: #fff;
    padding: 1.25rem;
    box-shadow: var(--sbc-shadow);
    margin-bottom: 1rem;
}

.sbc-pdp-sidebar-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sbc-primary);
    margin-bottom: 0.75rem;
}

.sbc-pdp-shipping-item {
    display: flex;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--sbc-muted);
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.sbc-pdp-shipping-item i {
    color: var(--sbc-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.sbc-pdp-protection-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.sbc-pdp-protection-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--sbc-muted);
    margin-bottom: 0.5rem;
}

.sbc-pdp-protection-list i {
    color: #0d9488;
    margin-top: 0.1rem;
}

.sbc-pdp-cta-primary {
    width: 100%;
    padding: 0.9rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.sbc-pdp-cta-secondary {
    width: 100%;
    padding: 0.85rem 1rem;
    font-weight: 600;
}

.sbc-pdp-trust-note {
    font-size: 0.78rem;
    color: var(--sbc-muted);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.sbc-pdp-modal-product {
    padding: 1rem;
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius-sm);
    background: var(--sbc-light);
}

.sbc-pdp-modal-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--sbc-border);
    background: #fff;
}

/* Detail tabs */
.sbc-pdp-tabs {
    border-bottom: 2px solid var(--sbc-border);
    margin: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.sbc-pdp-tab {
    padding: 0.85rem 1.5rem;
    border: none;
    background: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--sbc-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.sbc-pdp-tab:hover {
    color: var(--sbc-primary);
}

.sbc-pdp-tab.active {
    color: var(--sbc-primary);
    border-bottom-color: var(--sbc-accent);
}

.sbc-pdp-tab-panel {
    padding: 2rem 0;
}

.sbc-pdp-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    overflow: hidden;
}

.sbc-pdp-spec-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-bottom: 1px solid var(--sbc-border);
    font-size: 0.9rem;
}

.sbc-pdp-spec-row:last-child {
    border-bottom: none;
}

.sbc-pdp-spec-row dt {
    padding: 0.75rem 1rem;
    background: var(--sbc-light);
    font-weight: 600;
    color: var(--sbc-muted);
    margin: 0;
}

.sbc-pdp-spec-row dd {
    padding: 0.75rem 1rem;
    margin: 0;
    color: var(--sbc-primary-dark);
    font-weight: 500;
}

/* Supplier card */
.sbc-pdp-supplier {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    background: #fff;
    box-shadow: var(--sbc-shadow);
    margin: 1.5rem 0 0;
    width: 100%;
}

.sbc-pdp-top + .sbc-pdp-supplier {
    margin-top: 1.5rem;
}

.sbc-pdp-supplier + .sbc-pdp-tabs-wrap {
    margin-top: 2rem;
}

.sbc-pdp-supplier-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--sbc-border);
    flex-shrink: 0;
}

.sbc-pdp-supplier-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sbc-light);
    font-weight: 800;
    color: var(--sbc-primary);
    flex-shrink: 0;
}

.sbc-pdp-supplier-info {
    flex: 1;
    min-width: 200px;
}

.sbc-pdp-supplier-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.sbc-pdp-supplier-info h3 a {
    color: var(--sbc-primary-dark);
    text-decoration: none;
}

.sbc-pdp-supplier-info h3 a:hover {
    color: var(--sbc-accent);
}

.sbc-pdp-supplier-meta {
    font-size: 0.85rem;
    color: var(--sbc-muted);
    margin-bottom: 0.5rem;
}

.sbc-pdp-supplier-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sbc-pdp-supplier-stat {
    text-align: center;
    min-width: 80px;
}

.sbc-pdp-supplier-stat strong {
    display: block;
    font-size: 1.1rem;
    color: var(--sbc-primary-dark);
}

.sbc-pdp-supplier-stat span {
    font-size: 0.78rem;
    color: var(--sbc-muted);
}

.sbc-pdp-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
}

.sbc-pdp-description p {
    margin-bottom: 1rem;
}

/* Zoom overlay */
.sbc-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.sbc-zoom-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .sbc-pdp-gallery {
        flex-direction: column-reverse;
    }

    .sbc-pdp-thumbs-col {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .sbc-pdp-sidebar {
        position: static;
    }

    .sbc-pdp-supplier {
        flex-direction: column;
        align-items: flex-start;
    }

    .sbc-pdp-supplier-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* Legacy aliases */
.sbc-gallery-main {
    @extend not available - keep minimal compat */ .sbc-product-title {
        font-weight: 800;
    }

    .sbc-product-price {
        font-weight: 800;
    }

    .sbc-info-block {
        border: 1px solid var(--sbc-border);
        border-radius: var(--sbc-radius);
        padding: 1.5rem;
        background: #fff;
    }

    .sbc-breadcrumb a {
        color: var(--sbc-muted);
        text-decoration: none;
    }

    .sbc-manufacturer-block {
        display: flex;
        gap: 1rem;
    }

    .sbc-manufacturer-block .logo {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        object-fit: cover;
    }