:root {
    --bg-color: #fcfcfc; 
    --text-main: #111111; 
    --text-muted: #666666;
    --border-color: #ebebeb; 
    --primary-color: #000000; 
    --hover-color: #333333;
    --accent-color: #9b9b9b; 
    --success-color: #2b8a3e; 
    --danger-color: #c92a2a;
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --premium-blur: blur(20px);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { 
    font-family: var(--font-body); 
    color: var(--text-main); 
    background: var(--bg-color); 
    line-height: 1.5; 
    overflow-x: hidden; 
    overscroll-behavior-y: contain;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

button { 
    cursor: pointer; 
    border: none; 
    background: none; 
    font-family: inherit; 
    transition: var(--transition); 
    touch-action: manipulation;
}

img { 
    max-width: 100%; 
    display: block; 
    height: auto;
}

.hidden { 
    display: none !important; 
}

/* --- LOADER E TRANSIÇÕES PREMIUM --- */
#loader { 
    position: fixed; 
    inset: 0; 
    background: #ffffff; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    pointer-events: none; 
    opacity: 0; 
}

#loader.active { 
    opacity: 1; 
    pointer-events: all; 
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    font-weight: 600; 
    letter-spacing: -0.5px; 
    animation: premiumPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; 
}

.loader-bar {
    width: 140px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: premiumLoaderBar 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* --- TELA DE MANUTENÇÃO --- */
#maintenance-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 10005; 
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.maintenance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.maintenance-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.maintenance-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
}

@keyframes pulse { 
    0% { opacity: 0.3; } 
    50% { opacity: 1; } 
    100% { opacity: 0.3; } 
}

@keyframes premiumPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes premiumLoaderBar {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* --- HEADER PREMIUM (APPLE STANDARD) --- */
.header {
    height: 70px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
    will-change: transform;
}

.header-container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.logo:active {
    opacity: 0.7;
}

.menu-toggle {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 20;
    position: relative;
    border-radius: 50%;
}

.menu-toggle:active {
    background: rgba(0,0,0,0.05);
    transform: scale(0.92);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    z-index: 20;
    position: relative;
}

.header-actions button { 
    font-size: 1.35rem; 
    position: relative; 
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
}

.header-actions button:active {
    background: rgba(0,0,0,0.05);
    transform: scale(0.92);
}

.nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav a {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    width: fit-content;
}

.nav a.active {
    font-weight: 600;
    border-bottom-color: var(--primary-color);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .logo {
        position: static;
        transform: none;
    }

    .nav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: row;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        width: auto;
        padding: 0;
        margin-left: 3rem;
        gap: 2rem;
    }

    .nav a {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .header-container {
        gap: 2rem;
    }
}

.badge { 
    position: absolute; 
    top: 4px; 
    right: 4px; 
    background: var(--primary-color); 
    color: #fff; 
    font-size: 0.65rem; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    border: 2px solid #fff;
    transition: var(--transition);
}

#user-name-display { 
    display: none !important; 
}

/* --- BOTÕES PREMIUM E INTERATIVIDADE TÁTIL --- */
.btn-interactive {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
}

.btn-interactive:active {
    transform: scale(0.96) !important;
}

.btn-primary { 
    background: var(--primary-color); 
    color: #fff; 
    padding: 1.1rem 2rem; 
    width: 100%; 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    border-radius: 12px; 
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.btn-outline { 
    border: 1px solid var(--border-color); 
    color: var(--primary-color); 
    padding: 0.9rem 1.5rem; 
    width: 100%; 
    font-weight: 500; 
    margin-top: 1rem; 
    border-radius: 12px; 
    background: transparent;
}


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

.btn-text { 
    text-decoration: none; 
    letter-spacing: 0.5px;
    padding: 0.6rem; 
    margin-top: 1rem; 
    width: 100%; 
    color: var(--text-muted); 
    border-radius: 8px; 
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

/* --- ESTRUTURA DE GRID E REDUÇÃO CLS --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 3rem 1.5rem; 
}

.section-title { 
    font-family: var(--font-heading); 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 3rem; 
    font-weight: 400; 
    letter-spacing: 0.5px;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

@media (min-width: 992px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* --- CLOSET MARY CARDS EXCLUSIVOS (ZARA/FARFETCH UX) --- */
.product-card { 
    display: flex; 
    flex-direction: column; 
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden; 
    transition: var(--transition-smooth);
    position: relative;
    will-change: transform, box-shadow;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.product-image-wrapper { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 3/4; 
    background: #f7f7f7; 
    cursor: pointer; 
}

/* Blur progressivo e carregamento refinado */
.product-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease; 
    will-change: transform, filter;
}

.product-img.loading {
    filter: blur(15px);
}

.product-card:hover .product-img {
    transform: scale(1.04); 
}

.product-actions { 
    position: absolute; 
    bottom: 16px; 
    right: 16px; 
    display: flex; 
    gap: 10px;
    z-index: 2; 
    transform: translateY(12px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-actions { 
    transform: translateY(0); 
    opacity: 1;
}

@media (hover: none) { 
    .product-actions { 
        transform: translateY(0); 
        opacity: 1;
    } 
}

.product-actions button { 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255,255,255,0.5);
}

.product-actions button:hover { 
    background: var(--primary-color); 
    color: #fff; 
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-info { 
    padding: 1.2rem;
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    gap: 0.5rem;
}

.product-info h3 { 
    font-size: 0.95rem; 
    font-weight: 400; 
    color: var(--text-main);
    margin: 0;
    cursor: pointer; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.product-info h3:hover {
    color: var(--accent-color);
}

.product-price { 
    font-weight: 600; 
    font-size: 1.15rem; 
    color: var(--primary-color); 
    margin: 0;
}

.product-config { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 1rem; 
    border-top: 1px solid var(--border-color); 
    position: relative; 
}

/* CUSTOM DROPDOWN SELECT LUXO */
.custom-select-wrapper { 
    position: relative; 
    width: 110px; 
    user-select: none; 
}

.custom-select-trigger { 
    background-color: #f9f9f9; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 0.5rem 0.8rem; 
    font-size: 0.8rem; 
    font-weight: 500; 
    color: var(--text-main); 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: var(--transition); 
}

.custom-select-trigger:hover { 
    border-color: var(--accent-color); 
    background-color: #fff;
}

.custom-options { 
    position: absolute; 
    bottom: calc(100% + 6px); 
    left: 0; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: var(--premium-blur); 
    -webkit-backdrop-filter: var(--premium-blur);
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(8px); 
    transition: var(--transition-smooth); 
    z-index: 10; 
    overflow: hidden; 
    padding: 0.4rem 0; 
}

.custom-select-wrapper.open .custom-options { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.custom-option { 
    display: block; 
    padding: 0.6rem 1rem; 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    cursor: pointer; 
    transition: var(--transition); 
    text-align: center; 
}

.custom-option:hover, .custom-option.selected { 
    background: rgba(0,0,0,0.03); 
    color: var(--primary-color); 
    font-weight: 600; 
}

.btn-medidas { 
    font-size: 0.75rem; 
    font-weight: 500;
    color: var(--text-muted); 
    cursor: pointer; 
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    text-align: right;
    line-height: 1.2;
}

.btn-medidas:hover { 
    color: var(--primary-color); 
    border-bottom-color: var(--primary-color);
}

.detail-label-title {
    display: block; 
    margin-bottom: 0.6rem; 
    font-weight: 500; 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
}


.btn-detail-action {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 0.6rem;
}


.detail-action-container {
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
    margin-top: auto;
}

.badge-style {
    position: absolute; 
    top: 16px; 
    left: 16px; 
    right: auto; 
    background: var(--primary-color); 
    color: #fff;
    font-size: 0.65rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px; 
    border-radius: 6px; 
    width: auto; 
    height: auto;
    z-index: 2;
}

/* --- VIEW DE DETALHES DO PRODUTO (APPLE/NIKE-LIKE) --- */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    transition: filter 0.4s ease;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumbs img {
    width: 76px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-gallery-thumbs img.active, .product-gallery-thumbs img:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.product-info-detail {
    display: flex;
    flex-direction: column;
}

.product-info-detail h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.product-info-detail .price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
}

.product-info-detail .description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    white-space: pre-line;
    font-size: 0.95rem;
}

/* --- OVERLAY PREMIUM BLUR --- */
.overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.25); 
    z-index: 1002; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
}

.overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}

/* --- MODAIS DE COMPRA E DIÁLOGOS --- */
.modal { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -46%) scale(0.96); 
    width: 92%; 
    max-width: 440px; 
    background: #fff; 
    z-index: 1005; 
    opacity: 0; 
    pointer-events: none; 
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; 
    border-radius: 20px; 
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
}

.modal.active { 
    opacity: 1; 
    pointer-events: all; 
    transform: translate(-50%, -50%) scale(1); 
}

.modal-header {
    border: none;
    padding: 2rem 2rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: var(--transition);
}

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

/* --- IDENTIFICAÇÃO E LOGIN --- */
.auth-wrapper {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-form { 
    width: 100%;
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
}

.auth-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.auth-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.auth-form input { 
    width: 100%; 
    padding: 0.9rem 1.1rem; 
    border: 1px solid var(--border-color); 
    font-family: inherit; 
    border-radius: 10px; 
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fafafa;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.02);
}

#medidas-content { 
    padding: 2rem; 
    font-size: 0.9rem; 
    line-height: 1.7; 
    white-space: pre-line; 
    color: var(--text-main); 
}

/* --- HERO BANNER MINIMALISTA --- */
.hero { 
    height: 65vh; 
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070') center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    position: relative; 
    margin-bottom: 1rem;
}

.hero-content { 
    position: relative; 
    z-index: 1; 
    padding: 0 1rem;
}

.hero h1 { 
    font-family: var(--font-heading); 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    font-weight: 400; 
    letter-spacing: -1px;
}

/* --- TOASTS PREMIUM NOTIFICATIONS --- */
#toast-container { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10000; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    width: 90%;
    max-width: 380px;
}

.toast { 
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    color: #fff; 
    padding: 1.1rem 1.8rem; 
    border-radius: 14px; 
    animation: premiumSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s ease 2.7s forwards; 
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: 0 16px 32px rgba(0,0,0,0.15); 
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

@keyframes premiumSlideUp { 
    from { transform: translateY(20px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes slideUp { 
    from { transform: translateY(100%); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes fadeOut { 
    to { opacity: 0; visibility: hidden; } 
}

@keyframes bag-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

.bag-anim { 
    animation: bag-bounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* --- FOOTER DESIGN --- */
.footer { 
    background: var(--text-main); 
    color: #fff; 
    padding: 5rem 1.5rem 2rem; 
    margin-top: 6rem; 
}

.footer-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.footer-content a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-content a:hover {
    opacity: 1;
}

.footer-bottom { 
    border-top: 1px solid #222; 
    padding-top: 2rem; 
    text-align: center; 
    font-size: 0.8rem; 
    opacity: 0.5;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .nav.active {
        display: flex;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
        
/* ===== CARDS ADICIONAIS / COMPATIBILIDADE ELEGANTE ===== */
.elegant-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 18px rgba(0,0,0,0.02);
}

.elegant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.06);
}

.elegant-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.elegant-info h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0;
}

.elegant-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-view-product {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-view-product:hover {
    background: var(--hover-color);
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-main);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.4);
}

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

/* --- BOTÕES E ELEMENTOS FLUTUANTES --- */
.cart-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    z-index: 1001; 
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    will-change: transform;
}

.cart-floating:hover {
    background-color: var(--hover-color);
    transform: translateY(-4px) scale(1.02);
}

.cart-floating:active {
    transform: scale(0.94);
}

.cart-floating .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    background: var(--primary-color);
    border: 2px solid #fff;
}
        
/* --- SIDEBAR DE CART/CHECKOUT (ZARA LUXURY LAYOUT) --- */
#cart-sidebar {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    max-width: 420px; 
    height: 100vh; 
    z-index: 1005; 
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05); 
    border-top-left-radius: 24px; 
    border-bottom-left-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    border-left: 1px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    padding: 0;
}

#cart-sidebar.active { 
    right: 0; 
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: .2rem;
}

.checkout-mini {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    scroll-behavior: smooth;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.checkout-label {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.checkout-inputs {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.checkout-inputs input {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #fafafa;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.checkout-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.01);
}

.checkout-summary {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-line.total {
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
}

.summary-line.total strong {
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
}

#checkout-btn {
    width: 100%;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

#checkout-btn:hover:not(:disabled) {
    background: var(--hover-color);
    transform: translateY(-2px);
}

#checkout-btn:disabled { 
    background: var(--border-color); 
    color: var(--text-muted); 
    cursor: not-allowed; 
    box-shadow: none;
    transform: none;
}

#checkout-btn i {
    font-size: 1.25rem;
}

.cart-item {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 1rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex; 
    gap: 1.2rem; 
    position: relative;
}

.cart-item img { 
    border-radius: 10px; 
    width: 72px; 
    height: 96px; 
    object-fit: cover; 
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
    border-color: var(--accent-color);
}

/* --- RECURSOS EXCLUSIVOS SKELETON E LOADING STATES --- */
.view-transition-container {
    transition: opacity 0.3s ease;
}

.products-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 992px) {
    .products-skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.product-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    border-radius: 12px;
}

.skeleton-text {
    height: 14px;
    background: #f0f0f0;
    border-radius: 4px;
}

.skeleton-text.title { width: 75%; height: 16px; }
.skeleton-text.price { width: 40%; }

.animated-blur {
    animation: premiumShimmer 1.5s infinite linear;
    background: linear-gradient(to right, #f2f2f2 4%, #e4e4e4 25%, #f2f2f2 36%);
    background-size: 1000px 100%;
}

@keyframes premiumShimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* SPINNER PARA LOADING NOS BOTÕES */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinOpaque 0.75s linear infinite;
}

@keyframes spinOpaque {
    to { transform: rotate(360deg); }
}

/* ===================================================
   DARK MODE - MANUTENÇÃO TOTAL DA REGRA SOLICITADA 
   =================================================== */
body.dark-mode #cart-sidebar,
body.dark-mode .checkout-footer {
    background: rgba(15,15,15,0.96);
}

body.dark-mode .checkout-summary,
body.dark-mode .cart-item,
body.dark-mode .checkout-inputs input {
    background: #181818;
}
