/* ============================================
   MIMAM KODE - UI/UX Production v3.0
   Mobile-first • 99% uso em telemóvel
   ============================================ */

/* === RESET & BASE (mobile-first) === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Celestial Pink Palette */
    --primary: #d63384;
    --primary-light: #e86fa5;
    --secondary: #b06090;
    --accent: #cc88b0;
    --bg-noir: #fdf0f4;
    --cream: #2d1a24;
    --warm-white: #fff5f8;
    
    /* Functional Tokens */
    --text-dark: #2d1a24;
    --text-mid: #7a4a62;
    --text-light: #a07088;
    --glass: rgba(214, 51, 132, 0.06);
    --glass-border: rgba(214, 51, 132, 0.18);
    
    /* Legacy Compat & Spacing */
    --primary-rgb: 214, 51, 132;
    --dark: var(--text-dark);
    --light: var(--warm-white);
    --text: var(--text-dark);
    --text-muted: var(--text-mid);
    --border: rgba(214, 51, 132, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 4px 20px rgba(214, 51, 132, 0.1);
    --shadow-lg: 0 8px 32px rgba(214, 51, 132, 0.12);
    --touch: 44px;

    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
    
    /* Spacing Grid (8pt) */
    --space-4: 4px;
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-56: 56px;
    --space-72: 72px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--warm-white);
    overflow-x: hidden;
    padding-bottom: var(--safe-bottom);
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-16);
}

@media (min-width: 640px) {
    .container { padding: 0 var(--space-24); }
}
@media (min-width: 1024px) {
    .container { padding: 0 var(--space-32); }
}

/* === BUTTONS (touch-friendly) === */
.btn {
    min-height: var(--touch);
    padding: 0.9rem 2.2rem;
    border: none;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn--primary, .btn-primary {
    background: var(--primary);
    color: white;
}
.btn--primary:hover, .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(214,51,132,0.3);
}
.btn--secondary, .btn-secondary, .btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(214,51,132,0.35);
    clip-path: none;
}
.btn--secondary:hover, .btn-secondary:hover, .btn--outline:hover {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
}
.btn--hero {
    background: white;
    color: var(--primary);
    font-size: 0.9rem;
    padding: 1rem 2.5rem;
    box-shadow: var(--shadow-lg);
}
.btn--block, .btn-block { width: 100%; }

/* === HEADER (mobile-first) === */
.header {
    background: linear-gradient(180deg, rgba(253,240,244,0.97) 0%, rgba(253,240,244,0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(214,51,132,0.12);
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-height: var(--touch);
    text-decoration: none;
    color: inherit;
}
.logo:hover { opacity: 0.95; transform: scale(1.02); }
.logo:focus { outline: none; color: inherit; }
.logo-img { height: 44px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { 
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.logo-tagline { 
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem; 
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--secondary);
}

.search-container {
    display: none !important;
    order: 4;
    width: 100%;
    position: relative;
    flex: 1 1 100%;
}
.search-input {
    width: 100%;
    min-height: var(--touch);
    padding: 0 3rem 0 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.8); }
.search-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.3);
}
.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
}
.nav.active {
    display: flex !important;
}
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    width: 100%;
    align-items: center;
}
.nav-menu a {
    min-height: var(--touch);
    padding: 0 var(--space-16);
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
    background: rgba(255,255,255,0.28);
}
.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    min-height: var(--touch);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.nav-link:hover { background: rgba(214,51,132,0.08); }
.nav-link.active { background: rgba(214,51,132,0.12); }
.cart-link {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none !important; /* Escondido pois usaremos a Bottom Navigation em Mobile */
    align-items: center;
    justify-content: center;
    min-width: var(--touch);
    min-height: var(--touch);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}

/* Desktop: search inline, nav visible */
@media (min-width: 768px) {
    .header .container { flex-wrap: nowrap; }
    .search-container {
        order: 0;
        flex: 1 1 auto;
        max-width: 320px;
        margin: 0 0.5rem;
        width: auto;
    }
    .nav {
        display: flex;
        flex-direction: row;
        width: auto;
        background: transparent;
        padding: 0;
        margin-top: 0;
        box-shadow: none;
        gap: 0.25rem;
    }
    .nav-menu {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
    }
    .nav-link {
        color: var(--text-mid);
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        min-height: auto;
        position: relative;
        transition: color 0.3s;
    }
    .nav-link:hover { color: var(--primary); }
    .nav-link.active { color: var(--primary); }
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0.75rem;
        right: 0.75rem;
        height: 2px;
        background: white;
        border-radius: 1px;
    }
    .nav-link { position: relative; }
    .mobile-menu-toggle { display: none; }
}

/* === HERO SLIDER (mobile) === */
.hero-slider {
    position: relative;
    min-height: 480px;
    height: 70vh;
    background: var(--bg-noir);
    overflow: hidden;
}
.slider-container { position: relative; height: 100%; }
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 90%;
    padding: 1.5rem 1rem;
}
.badge-promo {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.slide-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
}
.slide-content p { 
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem); 
    margin-bottom: 2rem; 
    opacity: 0.95; 
    line-height: 1.6;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
}
.slider-btn:hover { background: rgba(255,255,255,0.5); }
.slider-btn--prev { left: 0.5rem; }
.slider-btn--next { right: 0.5rem; }
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.dot::after {
    content: '';
    position: absolute;
    top: -18px; left: -18px; right: -18px; bottom: -18px;
}
.dot.active { background: white; width: 24px; border-radius: 4px; }

@media (min-width: 640px) {
    .hero-slider { min-height: 380px; height: 50vh; max-height: 480px; }
    .slide-content h1 { font-size: 2.25rem; }
    .slide-content p { font-size: 1.1rem; }
}
@media (min-width: 1024px) {
    .hero-slider { height: 500px; max-height: none; }
    .slide-content h1 { font-size: 3rem; }
    .slide-content p { font-size: 1.25rem; }
}

/* === BENEFITS BAR === */
.benefits-bar { background: white; padding: 0.875rem 0; box-shadow: var(--shadow-sm); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    align-items: start;
}
.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.25rem 0;
}
.benefit i { font-size: 1.35rem; color: var(--primary); flex-shrink: 0; }
.benefit-text strong { 
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem; 
    color: var(--text-dark); 
    display: block; 
    margin-bottom: 2px; 
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.benefit-text span { 
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem; 
    color: var(--text-mid); 
    line-height: 1.2; 
}

@media (min-width: 480px) {
    .benefits-bar { padding: 1rem 0; }
    .benefits-grid { gap: 0.5rem 0.75rem; }
    .benefit i { font-size: 1.6rem; }
    .benefit-text strong { font-size: 0.75rem; }
    .benefit-text span { font-size: 0.65rem; }
}
@media (min-width: 768px) {
    .benefits-bar { padding: 1.5rem 0; }
    .benefits-grid { gap: 1rem 1.5rem; }
    .benefit {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 0.75rem;
    }
    .benefit i { font-size: 2.25rem; }
    .benefit-text strong { font-size: 0.95rem; margin-bottom: 0.15rem; }
    .benefit-text span { font-size: 0.8rem; }
}

/* === SECTION TITLE === */
.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: var(--space-40);
    color: var(--text-dark);
    line-height: 1.15;
}
.section-title em {
    font-style: italic;
    color: var(--primary);
}
.section-label {
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-8);
}

/* === TABS === */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-32);
}
.tab {
    min-height: var(--touch);
    padding: 0.6rem 1.5rem;
    background: white;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-mid);
    border: 1px solid rgba(214,51,132,0.15);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(214,51,132,0.2);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === PRODUCTS GRID (mobile 2 cols) === */
.products-featured { padding: var(--space-32) 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.product-card {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.75rem;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.6rem;
    z-index: 10;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.product-badge--new { background: var(--success); color: white; }
.product-badge--sale { background: var(--error); color: white; }
.product-image {
    width: 100%;
    aspect-ratio: 1;
    max-height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.product-info { padding: 0.75rem; }
.product-category {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}
.product-name { 
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; 
    font-weight: 600; 
    margin-bottom: 0.25rem; 
    color: var(--text-dark); 
    line-height: 1.3; 
}
.product-description { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0.5rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.product-price { 
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem; 
    font-weight: 700; 
    color: var(--primary); 
}
.product-price-promo .price-original { text-decoration: line-through; color: var(--text-light); font-size: 0.85rem; }
.product-price-promo .price-sale { color: var(--primary-light); font-size: 1.15rem; font-weight: 700; }
.add-to-cart {
    min-height: var(--touch);
    padding: 0 1rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.add-to-cart:hover { background: var(--primary-light); transform: scale(1.02); }
.product-link { text-decoration: none; color: inherit; display: block; }

@media (min-width: 640px) {
    .products-grid { gap: 1rem; }
    .product-name { font-size: 1rem; }
    .product-image { max-height: 220px; }
}
@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
    .product-image { max-height: 250px; aspect-ratio: 1; }
    .product-info { padding: 1rem; }
}

/* === CATEGORIES === */
.categories-showcase { padding: var(--space-32) 0; background: white; }
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.category-card-large {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.category-card-large:hover { box-shadow: var(--shadow-md); }
.category-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-info { padding: 1.25rem; text-align: center; }
.category-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--dark); }
.category-info p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 767px) {
    .category-info p { display: none; }
}

@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
    .category-image { height: 220px; }
    .category-info h3 { font-size: 1.5rem; }
}

/* === TESTIMONIALS === */
.testimonials { padding: var(--space-32) 0; background: var(--light); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.testimonial-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.stars { color: var(--warning); font-size: 1rem; margin-bottom: 0.75rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-info strong { color: var(--dark); font-size: 0.95rem; display: block; }
.author-info span { color: #999; font-size: 0.8rem; }

@media (min-width: 640px) {
    .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
}

/* === INSTAGRAM FEED === */
.instagram-feed { padding: var(--space-32) 0; text-align: center; }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.instagram-post {
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.instagram-post:hover { opacity: 0.95; }
.instagram-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    gap: 0.5rem;
}
.instagram-placeholder span { font-size: 0.8rem; font-weight: 600; }

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

/* === NEWSLETTER === */
.newsletter {
    padding: var(--space-32) 0;
    padding-bottom: max(var(--space-32), calc(var(--space-16) + var(--safe-bottom)));
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.newsletter-content { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-24); text-align: center; }
.newsletter-text h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.newsletter-text p { font-size: 0.95rem; opacity: 0.95; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 100%; }
.newsletter-form input {
    width: 100%;
    min-height: var(--touch);
    padding: 0 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.8); }
.newsletter-form input:focus { outline: none; border-color: white; background: rgba(255,255,255,0.25); }

@media (min-width: 768px) {
    .newsletter-content { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
    .newsletter-form { flex-direction: row; flex: 1; max-width: 420px; }
    .newsletter-text h2 { font-size: 2rem; }
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: white;
    padding: var(--space-32) 0 var(--space-24);
    padding-bottom: max(var(--space-24), calc(var(--space-16) + var(--safe-bottom)));
    margin-top: var(--space-56);
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-32);
}
.footer-section h3 { 
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; 
    color: var(--primary-light); 
    margin-bottom: 0.75rem; 
    font-weight: 700;
    letter-spacing: 0.05em;
}
.footer-section h4 { 
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    font-weight: 700;
    color: var(--primary-light);
}
.footer-section .tagline { 
    font-family: 'Cormorant Garamond', serif;
    color: var(--secondary); 
    font-style: italic; 
    font-size: 0.95rem; 
    margin-bottom: 1rem; 
}
.footer-section p { 
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6; 
    color: rgba(255,255,255,0.7); 
    margin-bottom: 1.5rem; 
    font-size: 0.85rem; 
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a, .footer-section ul li { 
    font-family: 'DM Sans', sans-serif;
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 0.85rem; 
}
.footer-section ul li a:hover { color: var(--accent); }
.footer-section ul li i { color: var(--primary); width: 18px; flex-shrink: 0; }
.social-links { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.social-links a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding-top: var(--space-24); border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.footer-bottom p { margin: 0.25rem 0; font-size: 0.85rem; }
.footer-bottom a { color: var(--accent); text-decoration: none; }

@media (min-width: 640px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
    .footer-content { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
}

/* === WHATSAPP FLOAT (safe area) === */
.whatsapp-float {
    position: fixed;
    bottom: max(1rem, var(--safe-bottom));
    right: max(1rem, var(--safe-right));
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4); }

/* === NEWSLETTER POPUP === */
.newsletter-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
}
.newsletter-popup.active { display: flex; }
.newsletter-popup-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    max-width: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 480px) {
    .newsletter-popup-content { width: 90%; max-width: 420px; padding: 2rem; }
}
.popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-close:hover { background: var(--light); color: var(--dark); }
.popup-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.newsletter-popup-content h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.35rem; }
.newsletter-popup-content p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.popup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.popup-form input {
    min-height: var(--touch);
    padding: 0 1.25rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 1rem;
}
.popup-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-popup-content small { color: #999; font-size: 0.8rem; margin-top: 0.75rem; display: block; }

/* ========== PÁGINAS INTERNAS ========== */

/* Page header (carrinho, checkout, etc.) */
.page-header {
    background: white;
    padding: var(--space-16) 0;
    box-shadow: var(--shadow-sm);
}
.page-header h1 {
    font-size: 1.35rem;
    color: var(--dark);
    margin: 0;
}
@media (min-width: 640px) {
    .page-header h1 { font-size: 1.75rem; }
}

/* Formulários (checkout, marcação, login, registro) */
.form-group {
    margin-bottom: var(--space-24);
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: var(--touch);
    padding: 0 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.form-group textarea {
    min-height: 120px;
    padding: 1rem;
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
}
@media (min-width: 640px) {
    .form-row { grid-template-columns: repeat(2, 1fr); }
}

/* Checkout */
.checkout-section { padding: var(--space-24) 0 var(--space-56); }
.page-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--space-24);
}
.checkout-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
}
.checkout-form-container {
    background: white;
    padding: var(--space-24);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.checkout-form h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: var(--space-24) 0 var(--space-16);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border);
}
.checkout-form h2:first-child { margin-top: 0; }
.payment-info { margin: 1rem 0; }
.payment-info p { font-size: 0.9rem; color: var(--text-muted); }
.checkout-summary {
    background: white;
    padding: var(--space-24);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(80px + var(--safe-top));
}
.checkout-summary h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-16);
    color: var(--dark);
}
#checkout-items .cart-item-row {
    display: flex;
    gap: var(--space-16);
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
#checkout-items .cart-item-row:last-child { border-bottom: none; }
.summary-totals { margin-top: var(--space-16); }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-8) 0;
    font-size: 0.95rem;
}
.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: var(--space-8);
    padding-top: var(--space-16);
    border-top: 2px solid var(--border);
}

@media (min-width: 768px) {
    .checkout-content { flex-direction: row; align-items: flex-start; }
    .checkout-form-container { flex: 1; }
    .checkout-summary { width: 360px; flex-shrink: 0; }
}

/* Carrinho */
.cart-section { padding: var(--space-24) 0 var(--space-56); }
.cart-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}
.cart-items { min-height: 200px; }
.empty-cart {
    text-align: center;
    padding: var(--space-40) var(--space-16);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.empty-cart i { font-size: 3rem; color: var(--border); margin-bottom: 1rem; display: block; }
.empty-cart h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--dark); }
.empty-cart p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.cart-summary {
    background: white;
    padding: var(--space-24);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: var(--space-16); color: var(--dark); }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: var(--space-4) 0; font-size: 0.95rem; }
.cart-summary .summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-top: var(--space-8); padding-top: var(--space-16); border-top: 2px solid var(--border); }
.cart-summary .btn { margin-top: var(--space-16); }
.cart-item-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: var(--space-16);
    margin-bottom: var(--space-16);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--space-16);
    align-items: center;
}
.cart-item-image { width: 80px; height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); overflow: hidden; background: var(--light); }
.cart-item-card img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--dark); }
.cart-item-price { font-weight: 700; color: var(--primary); }
.cart-item-remove {
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: var(--light);
    color: var(--error);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .cart-content { flex-direction: row; align-items: flex-start; }
    .cart-items { flex: 1; }
    .cart-summary { width: 320px; flex-shrink: 0; position: sticky; top: calc(80px + var(--safe-top)); }
}

/* Login / Registro */
.login-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    padding-top: max(var(--space-16), var(--safe-top));
    padding-bottom: max(var(--space-16), var(--safe-bottom));
}
.login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: var(--space-32);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: var(--space-24); }
.login-header h1 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.35rem; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }
#alert-container { margin-bottom: var(--space-16); }
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* Marcação */
.marcacao-container { padding: var(--space-24) 0 var(--space-56); }
.marcacao-header { text-align: center; margin-bottom: var(--space-24); }
.marcacao-header h1 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.35rem; }
.marcacao-header p { color: var(--text-muted); font-size: 0.95rem; }
.marcacao-form {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    padding: var(--space-24);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.sinal-info {
    background: linear-gradient(135deg, rgba(214,51,132,0.1), rgba(255,107,157,0.1));
    padding: var(--space-16);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-24);
    text-align: center;
}
.sinal-info h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--dark); }
.sinal-info .valor { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.marcacao-form h2 { font-size: 1.1rem; color: var(--dark); margin-bottom: 1rem; }

@media (min-width: 640px) {
    .marcacao-header h1 { font-size: 1.75rem; }
    .marcacao-form { padding: 2rem; }
}

/* ========== PÁGINA DE DETALHES DO PRODUTO ========== */
.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.product-back-link:hover { color: var(--secondary); opacity: 0.9; }
.product-back-link i { font-size: 0.85rem; }
.product-loading {
    text-align: center;
    padding: var(--space-56) var(--space-32);
    color: var(--text-muted);
}
.product-loading i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 0.75rem; }
.product-loading p { font-size: 0.95rem; margin: 0; }
.product-details-section {
    padding: var(--space-24) 0 var(--space-56);
    padding-bottom: max(var(--space-56), calc(var(--space-16) + var(--safe-bottom)));
}
.product-details-content {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.06);
}
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
}
.product-details-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 380px;
    background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: var(--space-16);
}
.product-main-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.product-details-image > div[style*="position: absolute"] {
    border-radius: 0 var(--radius-sm) 0 1.25rem;
}
.product-thumbnails {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-16);
    padding: var(--space-8) 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.product-thumbnails::-webkit-scrollbar { height: 4px; }
.product-thumbnails::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.thumbnail-img,
.thumbnail-emoji {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}
.thumbnail-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-emoji { font-size: 1.5rem; }
.thumbnail-img.active,
.thumbnail-emoji.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(214, 51, 132, 0.2);
}
.thumbnail-img:hover,
.thumbnail-emoji:hover { border-color: var(--secondary); }

.product-details-info { padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); }
.product-details-info .product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.product-details-name,
.product-details-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
}
.product-details-price,
.product-details-info .product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0 0 0; }
.product-details-description,
.product-details-info .product-description { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin: 0.5rem 0 0 0; }
.product-details-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16) var(--space-24);
    margin: var(--space-16) 0 0 0;
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.feature-item i { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.product-quantity-selector { margin: 0.5rem 0 0 0; }
.product-quantity-selector label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--light);
}
.quantity-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: white;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.quantity-btn:hover { background: var(--light); color: var(--primary); }
.quantity-display { min-width: 2.5rem; text-align: center; font-weight: 600; font-size: 1rem; color: var(--dark); }
.product-details-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-top: var(--space-24);
}
.product-details-actions .btn { min-height: 50px; font-size: 1rem; }
.product-details-actions .btn-large { padding: 0.875rem 1.5rem; }
.btn-secondary.btn-large { border-width: 2px; }

.related-products { padding: var(--space-32) 0 var(--space-56); background: var(--light); }
.related-products .section-title { margin-bottom: var(--space-24); }
.related-products .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.related-products .product-card .product-image { max-height: 160px; }
.related-products .product-info { padding: 0.75rem; }
.related-products .product-name { font-size: 0.9rem; }

@media (min-width: 640px) {
    .product-details-section { padding: 1.5rem 0 3rem; }
    .product-details-info { padding: 1.5rem; }
    .product-details-name, .product-details-info h1 { font-size: 1.55rem; }
    .related-products .products-grid { gap: 1.25rem; }
}
@media (min-width: 768px) {
    .product-details-grid { grid-template-columns: 1fr 1fr; gap: 0; min-height: 420px; }
    .product-details-image { max-height: none; aspect-ratio: 1; padding: 1.5rem; }
    .product-details-info { padding: 2rem 2.25rem; justify-content: center; }
    .product-details-name, .product-details-info h1 { font-size: 1.75rem; }
    .product-details-actions { flex-direction: row; flex-wrap: wrap; margin-top: 1.5rem; }
    .product-details-actions .btn { flex: 1; min-width: 160px; }
    .related-products .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .related-products .products-grid { gap: 1.5rem; }
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-results.active { display: block; }
.search-results a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    min-height: var(--touch);
}
.search-results a:hover { background: var(--light); }
.search-results img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }

/* Success page (checkout-success, marcação confirmada) */
.success-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-32) var(--space-16);
    padding-bottom: max(var(--space-32), calc(var(--space-16) + var(--safe-bottom)));
}
.success-box {
    width: 100%;
    max-width: 480px;
    background: white;
    padding: var(--space-32);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: var(--space-16);
}
.success-box h1 { font-size: 1.5rem; color: var(--dark); margin-bottom: var(--space-8); }
.success-box p { color: var(--text-muted); margin-bottom: var(--space-16); font-size: 0.95rem; line-height: 1.5; }
.order-details {
    background: var(--light);
    padding: var(--space-24);
    border-radius: var(--radius-sm);
    margin: var(--space-24) 0;
    text-align: left;
}
.order-details h3 { font-size: 1rem; margin-bottom: var(--space-16); color: var(--dark); }
.order-details p { margin: var(--space-8) 0; font-size: 0.9rem; }
.btn-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-top: var(--space-24);
}
.btn-group .btn { width: 100%; }
@media (min-width: 480px) {
    .btn-group { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .btn-group .btn { width: auto; }
}

/* Legal pages */
.legal-page {
    padding: var(--space-32) 0 var(--space-56);
    min-height: 70vh;
}
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: var(--space-24);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.legal-content h1 {
    color: var(--primary);
    margin-bottom: var(--space-16);
    font-size: 2rem;
    line-height: 1.2;
}
.legal-content h2 {
    color: var(--dark);
    margin-top: var(--space-32);
    margin-bottom: var(--space-16);
    font-size: 1.35rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: var(--space-8);
}
.legal-content h3 {
    color: var(--dark);
    margin-top: var(--space-24);
    margin-bottom: var(--space-8);
    font-size: 1.1rem;
}
.legal-content p {
    margin-bottom: var(--space-16);
    line-height: 1.8;
    text-align: justify;
}
.legal-content ul,
.legal-content ol {
    margin-left: var(--space-24);
    margin-bottom: var(--space-16);
}
.legal-content li {
    margin-bottom: var(--space-8);
    line-height: 1.8;
}
.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-32);
}
.contact-info,
.highlight-box,
.info-box {
    padding: var(--space-24);
    border-radius: var(--radius-sm);
    margin-top: var(--space-24);
}
.contact-info { background: var(--light); }
.highlight-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}
.info-box {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
}
.cookie-table-wrap {
    overflow-x: auto;
    margin: var(--space-16) 0;
    -webkit-overflow-scrolling: touch;
}
.cookie-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}
.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cookie-table th {
    background: var(--light);
    font-weight: 600;
}

@media (min-width: 768px) {
    .products-featured,
    .categories-showcase,
    .testimonials,
    .instagram-feed,
    .related-products,
    .legal-page {
        padding-top: var(--space-56);
        padding-bottom: var(--space-56);
    }
    .checkout-section,
    .cart-section,
    .marcacao-container,
    .product-details-section {
        padding-top: var(--space-32);
        padding-bottom: var(--space-72);
    }
    .newsletter {
        padding-top: var(--space-56);
        padding-bottom: max(var(--space-56), calc(var(--space-16) + var(--safe-bottom)));
    }
    .checkout-form-container,
    .checkout-summary,
    .cart-summary,
    .login-box,
    .marcacao-form,
    .success-box {
        padding: var(--space-32);
    }
    .product-details-section {
        padding-bottom: max(var(--space-72), calc(var(--space-16) + var(--safe-bottom)));
    }
    .legal-content {
        padding: var(--space-40);
    }
    .legal-content h1 {
        font-size: 2.5rem;
    }
    .cookie-table th,
    .cookie-table td {
        padding: 16px;
    }
}

/* === MOBILE BOTTOM NAVIGATION (THUMB ZONE) === */
.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 26, 36, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    padding-bottom: var(--safe-bottom);
    height: calc(65px + var(--safe-bottom));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    flex: 1;
    height: 100%;
    gap: 4px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i { font-size: 1.35rem; }
.bottom-nav-item span { font-size: 0.65rem; font-weight: 600; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--primary-light); }

@media (max-width: 767px) {
    /* Dar espaço ao e-commerce para não ser coberto pela navbar em baixo */
    body { padding-bottom: calc(65px + var(--safe-bottom)); }
    /* Ajusta newsletter e outros footers para não colidirem */
    .footer { padding-bottom: calc(65px + var(--safe-bottom)) !important; }
}

@media (min-width: 768px) {
    .mobile-bottom-nav { display: none !important; }
}
