/* ============================================================
   DNA JEANS — style.css
   Consolidado a partir dos blocos <style> inline do site antigo
   ============================================================ */

/* ── VARIÁVEIS ─────────────────────────────────────────────── */
:root {
    --primary: #233074;
    --secondary: #25D366;
    --bg: #f4f7f6;
    --footer-bg: #1a202c;
    --text: #1a202c;
    --white: #ffffff;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --container-max: 1280px;
}

/* ── RESET / BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text);
    overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 15px;
    position: relative;
}

.logo-box img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* ── BUSCA ───────────────────────────────────────────────────── */
.search-container {
    margin-left: auto;
    margin-right: 30px;
    width: 100%;
    max-width: 320px;
    z-index: 10;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 45px;
    padding: 0 50px 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(35, 48, 116, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: #000;
}

/* ── MENU DESKTOP ────────────────────────────────────────────── */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    display: none;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary);
}

.dropdown li a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
}

.dropdown li a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.nav-item:hover .dropdown {
    display: block;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.cart-btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    padding: 5px;
}

.cart-btn-header:hover {
    transform: scale(1.1);
}

/* ── LAYOUT / CONTAINER ─────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    align-items: start;
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 0;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #94a3b8;
}
.breadcrumb a { color: #64748b; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #cbd5e1; }
.breadcrumb .current { 
    color: #475569; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: fit-content;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 9px;
        gap: 4px;
    }
    .breadcrumb .current {
        max-width: 140px; /* Limita o tamanho do nome do produto no breadcrumb mobile */
    }
}


/* ── CARDS ──────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.img-box {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .img-box img {
    transform: scale(1.05);
}

.card-body {
    padding: 16px 16px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.referencia {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.name {
    font-size: 0.88rem;
    margin: 0 0 4px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    max-height: 3.9em; /* Permite até 3 linhas de 1.3em */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto; /* Fixa o preço no rodapé da div */
    padding-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

/* Esgotado */
.img-box.is-esgotado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.4);
    backdrop-filter: grayscale(1);
}
.esgotado-label {
    position: absolute; top: 12px; left: 12px;
    background: #f1f5f9; color: #64748b;
    font-size: 9px; font-weight: 800; padding: 4px 10px;
    border-radius: 6px; z-index: 10; text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── PAGINAÇÃO / LOAD MORE ──────────────────────────────────── */
.load-more-box {
    padding: 60px 0;
    text-align: center;
}

#btn-load-more {
    background: var(--primary);
    color: white;
    padding: 18px 48px;
    border: none;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 25%, transparent);
}

#btn-load-more:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--primary) 35%, transparent);
}

#btn-load-more:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.esgotado-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── HOME: HERO BANNER ───────────────────────────────────────── */
.hero-section {
    width: 100%;
    aspect-ratio: 1920 / 800;
    /* Força o quadrado exato da foto cortada */
    height: auto !important;
    /* Desabilita as alturas fixas que forçam cortes */
    overflow: hidden;
    position: relative;
    margin-top: -40px !important;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 100px 20px 60px; /* Padding extra embaixo para os pontos */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: 1 / 1.2; /* Mais vertical no mobile */
        margin-top: 0 !important;
    }

    .hero-content {
        margin-top: 0;
        padding: 60px 15px 50px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 0.8rem;
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.btn-hero {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 15px 45px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 2px;
    transition: 0.3s;
    border: 2px solid #fff;
}

.btn-hero:hover {
    background: #fff;
    color: #000;
}

/* ── HOME: SEÇÕES ───────────────────────────────────────────── */
.section-title {
    text-align: center;
    margin: 70px 0 40px;
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
}

/* ── HOME: CARROSSEL DE CATEGORIAS ──────────────────────────── */
.categorias-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.cat-swiper {
    width: 100%;
    height: 450px;
    padding-bottom: 40px;
    overflow: hidden;
}

.cat-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-content {
    position: absolute;
    bottom: 20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    text-align: center;
    transition: all 0.4s ease;
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.cat-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.cat-card:hover .cat-content {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cat-content span {
    display: block;
    font-size: 0.75rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 300;
}

.cat-content h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* ── SWIPER SETAS ────────────────────────────────────────────── */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    background: #fff;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    --swiper-navigation-size: 18px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 900;
}

.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
    cursor: default;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: #fff !important;
}

/* Paginação Banner */
.swiper-pagination-bullet {
    background: #fff !important;
    width: 12px;
    height: 12px;
}

/* ── HOME: GRID DE PRODUTOS ─────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-transform: uppercase;
    height: 2.4em;
    overflow: hidden;
}

.p-price-grid {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.3rem;
}

/* ── LISTA: LOAD MORE ────────────────────────────────────────── */
.load-more-box {
    text-align: center;
    margin: 40px 0;
}

.btn-load-more {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
}

.section-title-relacionados {
    grid-column: 1/-1;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title-relacionados h3 {
    color: #333;
    font-size: 1.1rem;
}

.section-title-relacionados h3 span {
    color: var(--primary);
    text-transform: lowercase;
}

/* ── DETALHE: GALERIA ────────────────────────────────────────── */
.main-content {
    padding: 40px 0;
    background: transparent;
}

.product-wrapper {
    display: grid;
    gap: 30px;
    align-items: start;
}

@media (min-width: 992px) {
    .product-wrapper {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

.gallery-container {
    position: relative;
    width: 100%;
}

.main-img-viewport {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    touch-action: pan-y pinch-zoom;
}

.main-img-viewport img,
.main-img-viewport iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#mainImage {
    transition: transform 0.15s ease-out;
    cursor: crosshair;
    pointer-events: none;
}

#videoPlayer {
    border: none;
    display: none;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    color: #333;
}

.nav-arrow:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

.thumb-grid {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    cursor: pointer;
}

.thumb {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 1px solid #fff;
    object-fit: cover;
    transition: 0.2s;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.thumb-wrapper.active .thumb {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: none;
}

/* ── DETALHE: INFO PRODUTO ───────────────────────────────────── */
.p-ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.p-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin: 15px 0;
}

.color-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.color-link {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-link.active {
    border-color: var(--primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.box-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d1d5db;
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    background: #fff;
}

.radio-box:checked+.box-label {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.radio-box:disabled+.box-label {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.btn-buy-now {
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 30px;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy-now:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
}

/* ── RODAPÉ ─────────────────────────────────────────────────── */
footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.3rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--ws-green);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid #2d3748;
    text-align: center;
    font-size: 0.8rem;
}

/* ── RESPONSIVIDADE ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .search-container {
        position: static;
        transform: none;
        max-width: 220px;
        margin: 0 5px;
        order: 2;
    }

    .logo-box {
        order: 1;
        margin-right: auto;
    }
    
    .logo-box a {
        padding-left: 0;
    }

    .header-actions {
        order: 3;
        gap: 12px;
    }

    .cart-btn-header {
        order: 1;
    }

    .mobile-toggle {
        display: block;
        order: 2;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        transition: 0.3s;
        overflow-y: auto;
        z-index: 999;
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .nav-link {
        padding: 15px;
        display: flex;
        justify-content: space-between;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        width: 100%;
        background: #fafafa;
        display: none !important;
    }

    .user-menu-item .dropdown {
        display: block !important;
        border-top: none;
        background: #f8fafc;
    }

    .dropdown.open {
        display: block !important;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .logo-box img {
        max-height: 45px;
    }

    /* Home */
    .hero-section {
        aspect-ratio: 800 / 1200;
        height: auto !important;
    }

    .hero-content {
        margin-top: 90vw;
    }

    /* Metade pra baixo no mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .categorias-container {
        padding: 0 10px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 50px 0 20px;
    }

    /* Detalhe */
    .main-content {
        padding: 20px 0;
    }

    .options-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Rodapé */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ── SIDE CART MODAL ────────────────────────────────────────── */
.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.side-cart-overlay.active .side-cart {
    right: 0;
}

.side-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.close-side-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
}

.close-side-cart:hover {
    color: var(--primary);
}

.side-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.side-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.cart-total-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1.1rem;
}

.btn-checkout-side {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-checkout-side:hover {
    background: #000;
}

.btn-view-cart-side {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-view-cart-side:hover {
    color: var(--primary);
}

/* Item no Side Cart */
.side-cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.side-cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.side-info {
    flex: 1;
}

.side-info h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.side-info .details {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.side-info .price {
    font-weight: 800;
    color: var(--primary);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 700;
}

/* ── MERCADO PAGO BRICKS — Compatibilidade Tailwind ────────────────── */
/*
 * O Tailwind CDN pode interferir nos SVGs e elementos do MP Brick.
 * Estas regras garantem que os ícones e dimensões do Brick se preservem.
 */
#paymentBrick_container svg,
#paymentBrick_container img {
    display: inline-block;
    max-width: none;
    height: auto;
}

#paymentBrick_container svg[width],
#paymentBrick_container svg[height] {
    width: revert;
    height: revert;
}

/* Garante que inputs e labels do Brick não sejam afetados pelo reset */
#paymentBrick_container input,
#paymentBrick_container select,
#paymentBrick_container label,
#paymentBrick_container button {
    font-family: inherit;
}