.product-detail-section {
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
    overflow: visible;
    background:
        radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--swem-primary, #2b1d18) 8%, transparent),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            var(--swem-bg, #fffaf7) 0%,
            #ffffff 100%
        );
}

.product-detail-section .container,
.product-detail-main,
.product-detail-main > [class*="col-"] {
    overflow: visible;
}

/* Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--swem-muted, #7a675f);
    margin-bottom: 1.5rem;
}

.product-breadcrumb a {
    color: var(--swem-muted, #7a675f);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: var(--swem-primary, #2b1d18);
}

.product-breadcrumb strong {
    color: var(--swem-text, #2b1d18);
    font-weight: 800;
}

/* Sticky da galeria */
.product-media-sticky {
    position: sticky;
    top: 105px;
    z-index: 3;
}

/* Imagem principal */
.product-image-card {
    position: relative;
    background: color-mix(in srgb, var(--swem-surface, #ffffff) 94%, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
    border-radius: 32px;
    padding: 1rem;
    box-shadow: 0 24px 70px rgba(45, 30, 20, 0.12);
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 540px;
    object-fit: contain;
    border-radius: 26px;
    background:
        radial-gradient(
            circle at center,
            color-mix(in srgb, var(--swem-primary, #2b1d18) 5%, transparent),
            transparent 45%
        ),
        var(--swem-bg, #fffaf7);
    display: block;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-main-image.is-changing {
    opacity: 0.45;
    transform: scale(0.99);
}

.product-detail-promo-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 4;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
    font-size: 0.78rem;
    font-weight: 900;
}

/* Galeria */
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-gallery-item {
    width: 100%;
    border: 1px solid var(--swem-border, #e8dcd6);
    background: var(--swem-surface, #ffffff);
    border-radius: 18px;
    padding: 0.35rem;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(45, 30, 20, 0.06);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button.product-gallery-item {
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

.product-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(45, 30, 20, 0.12);
}

.product-gallery-item.active {
    border-color: var(--swem-primary, #2b1d18);
    box-shadow: 0 18px 45px rgba(45, 30, 20, 0.16);
}

.product-gallery-item img {
    width: 100%;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--swem-bg, #fffaf7);
    display: block;
}

/* Card informações */
.product-info-card {
    background: color-mix(in srgb, var(--swem-surface, #ffffff) 96%, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
    border-radius: 32px;
    padding: 2.4rem;
    box-shadow: 0 24px 70px rgba(45, 30, 20, 0.10);
}

/* Tags */
.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.product-detail-tags span,
.product-label,
.section-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: var(--swem-primary-soft, #fff1ed);
    color: var(--swem-secondary, #7a3c32);
    font-size: 0.75rem;
    font-weight: 900;
}

/* Textos */
.product-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 900;
    color: var(--swem-text, #2b1d18);
    letter-spacing: -1.5px;
    margin-bottom: 0.8rem;
}

.product-reference {
    color: var(--swem-muted, #7a675f);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--swem-muted, #7a675f);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Preço */
.product-price-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: color-mix(in srgb, var(--swem-bg, #fffaf7) 78%, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
    margin-bottom: 1rem;
}

.price-label {
    color: var(--swem-muted, #7a675f);
    font-size: 0.85rem;
    font-weight: 700;
}

.product-old-price {
    color: var(--swem-muted, #9b8981);
    font-size: 0.95rem;
    text-decoration: line-through;
    font-weight: 700;
}

.product-price {
    color: var(--swem-text, #2b1d18);
    font-size: 2rem;
    font-weight: 900;
}

/* Estoque */
.product-stock-row {
    margin-bottom: 1.5rem;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.product-stock.available {
    background: #eef8f0;
    color: #23743a;
}

.product-stock.unavailable {
    background: #fff4ed;
    color: #9b4d22;
}

/* Especificações principais */
.product-main-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-main-specs div {
    padding: 0.95rem;
    border-radius: 20px;
    background: var(--swem-bg, #fffaf7);
    border: 1px solid var(--swem-border, #e8dcd6);
}

.product-main-specs span {
    display: block;
    color: var(--swem-muted, #7a675f);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.product-main-specs strong {
    color: var(--swem-text, #2b1d18);
    font-size: 0.95rem;
    font-weight: 900;
}

/* Variações */
.product-variations-box {
    margin-bottom: 1.5rem;
    padding: 1.1rem;
    border-radius: 24px;
    background: var(--swem-bg, #fffaf7);
    border: 1px solid var(--swem-border, #e8dcd6);
}

.product-variations-box h2 {
    color: var(--swem-text, #2b1d18);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.9rem;
}

.product-variations-list {
    display: grid;
    gap: 0.65rem;
}

.product-variation-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: var(--swem-surface, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
}

.variation-info {
    min-width: 0;
}

.variation-info strong {
    display: block;
    color: var(--swem-text, #2b1d18);
    font-weight: 900;
}

.variation-info span {
    display: block;
    color: var(--swem-muted, #7a675f);
    font-size: 0.82rem;
    margin-top: 0.15rem;
    line-height: 1.5;
}

.variation-info small {
    display: block;
    margin-top: 0.2rem;
    color: var(--swem-muted, #7a675f);
    font-size: 0.75rem;
    font-weight: 700;
}

.variation-price-stock {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 0.35rem;
    flex-shrink: 0;
}

.variation-price-stock strong {
    color: var(--swem-text, #2b1d18);
    font-weight: 900;
}

/* Botões */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.product-cart-btn,
.product-back-btn {
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-weight: 900;
}

.product-cart-btn {
    background: var(--swem-primary, #2b1d18);
    border-color: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
}

.product-cart-btn:hover {
    background: var(--swem-secondary, #7a3c32);
    border-color: var(--swem-secondary, #7a3c32);
    color: var(--swem-on-primary, #ffffff);
}

.product-back-btn {
    color: var(--swem-primary, #2b1d18);
    border-color: var(--swem-border, #e8dcd6);
}

.product-back-btn:hover {
    background: var(--swem-primary, #2b1d18);
    border-color: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
}

/* Benefícios */
.product-benefits {
    display: grid;
    gap: 0.75rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--swem-border, #e8dcd6);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--swem-muted, #5f4c44);
    font-size: 0.95rem;
    font-weight: 600;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--swem-primary, #2b1d18);
    color: var(--swem-on-primary, #ffffff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Características extras */
.product-extra-section {
    margin-top: 3rem;
    clear: both;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    color: var(--swem-text, #2b1d18);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0.65rem 0 0;
}

.product-extra-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.product-extra-item {
    padding: 1.1rem;
    border-radius: 22px;
    background: color-mix(in srgb, var(--swem-surface, #ffffff) 94%, #ffffff);
    border: 1px solid var(--swem-border, #e8dcd6);
    box-shadow: 0 14px 40px rgba(45, 30, 20, 0.06);
}

.product-extra-item span {
    display: block;
    color: var(--swem-muted, #7a675f);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-extra-item strong {
    color: var(--swem-text, #2b1d18);
    font-size: 1rem;
    font-weight: 900;
}

/* Responsivo */
@media (max-width: 1199px) {
    .product-main-image {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .product-detail-section {
        padding: 2.5rem 0;
    }

    .product-media-sticky {
        position: static;
    }

    .product-main-image {
        height: 420px;
    }

    .product-info-card {
        padding: 1.6rem;
    }

    .product-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .product-detail-section {
        padding: 1.6rem 0;
    }

    .product-breadcrumb {
        flex-wrap: wrap;
        font-size: 0.82rem;
    }

    .product-image-card {
        border-radius: 24px;
        padding: 0.65rem;
    }

    .product-main-image {
        height: 330px;
        border-radius: 20px;
    }

    .product-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .product-gallery-item {
        border-radius: 14px;
        padding: 0.25rem;
    }

    .product-gallery-item img {
        height: 68px;
        border-radius: 11px;
    }

    .product-info-card {
        border-radius: 24px;
        padding: 1.25rem;
    }

    .product-title {
        letter-spacing: -1px;
    }

    .product-price {
        font-size: 1.65rem;
    }

    .product-main-specs {
        grid-template-columns: 1fr;
    }

    .product-variation-item {
        flex-direction: column;
    }

    .variation-price-stock {
        justify-items: start;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-cart-btn,
    .product-back-btn {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-extra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .product-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}