/* ============================================
   FILTRO SÃO JOÃO - REDESIGN PREMIUM
   Identidade Visual: Tradição Nordestina
   UX/UI: Alta Conversão & Mobile-First
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Terracota / Barro */
    --terracota: #B8513B;
    --terracota-dark: #8B3A2A;
    --terracota-light: #D4715E;
    --terracota-glow: rgba(184, 81, 59, 0.15);

    /* Tons Quentes */
    --bege-warm: #F5EDE4;
    --bege-light: #FAF7F3;
    --marrom-escuro: #3D2B1F;
    --marrom-medio: #5C4033;
    --off-white: #FFFCF8;

    /* Verde Suave (Opcional) */
    --verde-suave: #6B8E6B;

    /* Neutros */
    --text-dark: #2D1F14;
    --text-medium: #6B5B4F;
    --text-light: #9A8D82;
    --border-color: #E8DDD2;
    --border-light: #F0E8DF;

    /* Backgrounds */
    --bg-white: #FFFCF8;
    --bg-light: #FAF7F3;
    --bg-warm: #F5EDE4;

    /* Sombras Premium */
    --shadow-xs: 0 1px 2px rgba(61, 43, 31, 0.04);
    --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
    --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.08);
    --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.10);
    --shadow-xl: 0 16px 48px rgba(61, 43, 31, 0.12);
    --shadow-card: 0 2px 12px rgba(61, 43, 31, 0.06);
    --shadow-card-hover: 0 8px 30px rgba(184, 81, 59, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease-smooth);
    --transition-fast: all 0.15s var(--ease-smooth);

    /* Tipografia */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Compatibilidade com variáveis antigas (carrinho) */
    --primary-color: #B8513B;
    --primary-hover: #8B3A2A;
    --border-radius: 10px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 100px;
}

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

a {
    text-decoration: none !important;
    color: inherit;
}

/* ============================================
   PROMO BAR (Barra de Benefícios)
   ============================================ */

.promo-bar {
    background: linear-gradient(135deg, var(--marrom-escuro) 0%, var(--marrom-medio) 100%);
    color: var(--bege-warm);
    text-align: center;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    margin: 0;
    border: none;
    line-height: 1;
}

.promo-bar .promo-separator {
    display: none;
}

.promo-bar span:not(:first-child) {
    display: none;
}

@media (min-width: 768px) {
    .promo-bar {
        font-size: 12px;
        padding: 11px 20px;
        letter-spacing: 1px;
    }

    .promo-bar .promo-separator {
        display: inline;
        margin: 0 12px;
        opacity: 0.4;
    }

    .promo-bar span:not(:first-child) {
        display: inline;
    }
}

/* ============================================
   HEADER — Moderno, Elegante, Sticky
   ============================================ */

.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--terracota);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-image {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .header-container {
        padding: 16px 32px;
    }

    .logo-image {
        height: 42px;
        max-width: 190px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (min-width: 1024px) {
    .logo-image {
        height: 48px;
        max-width: 220px;
    }
}

/* Navigation */
.nav-menu {
    display: none;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--terracota);
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--terracota);
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-medium);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-md);
    position: relative;
}

.icon-btn:hover {
    color: var(--terracota);
    background-color: var(--terracota-glow);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--terracota);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

/* Mobile Hamburger */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hamburger-btn:hover {
    background-color: var(--terracota-glow);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 20, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-white);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-smooth);
    z-index: 151;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    visibility: hidden;
}

.mobile-menu.active {
    visibility: visible;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-medium);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--terracota);
    color: white;
    border-color: var(--terracota);
}

.mobile-menu-nav {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: block;
}

.mobile-menu-link:hover {
    background: var(--terracota-glow);
    color: var(--terracota);
}

.mobile-menu-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 12px 0;
}

.mobile-menu-section-title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 16px 16px 8px;
    margin-top: 8px;
}

.mobile-menu-category {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: block;
}

.mobile-menu-category:hover {
    background: var(--terracota-glow);
    color: var(--terracota);
}

@media (min-width: 768px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    .hamburger-btn {
        display: none !important;
    }
}

/* ============================================
   HERO — Cinematográfico, Emocional, Vendedor
   ============================================ */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bege-warm);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(45, 31, 20, 0.75) 0%,
        rgba(45, 31, 20, 0.3) 60%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 520px;
    color: white;
}

.hero-subtitle-top {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bege-warm);
    margin-bottom: 12px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    max-width: 400px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--terracota);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(184, 81, 59, 0.4);
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: var(--terracota-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(184, 81, 59, 0.5);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
    .hero-banner {
    }

    .hero-overlay {
        padding: 0 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 16px 36px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .hero-banner {
    }

    .hero-overlay {
        padding: 0 80px;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 17px;
        max-width: 480px;
    }
}

/* ============================================
   TRUST BADGES (Selos de Confiança)
   ============================================ */

.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 24px 20px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.trust-badge:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.trust-badge-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--terracota-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--terracota);
}

.trust-badge-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-medium);
    line-height: 1.3;
    letter-spacing: 0.2px;
}

@media (min-width: 768px) {
    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
        padding: 32px 32px;
        gap: 16px;
    }

    .trust-badge {
        padding: 20px;
    }

    .trust-badge-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 22px;
    }

    .trust-badge-text {
        font-size: 12px;
    }
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-header {
    text-align: center;
    padding: 48px 20px 32px;
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bege-warm) 0%, var(--bege-light) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 81, 59, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(184, 81, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--terracota);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .section-header {
        padding: 64px 48px 48px;
        margin: 32px auto;
        border-radius: 20px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 15px;
    }
}

/* ============================================
   FILTERS
   ============================================ */

.filters {
    padding: 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .filters {
        padding: 20px 32px;
        gap: 12px;
    }
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-medium);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

@media (min-width: 768px) {
    .filter-btn {
        padding: 10px 22px;
        font-size: 12px;
    }
}

.filter-btn:hover {
    border-color: var(--terracota);
    color: var(--terracota);
    background-color: var(--terracota-glow);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    border-color: var(--terracota);
    box-shadow: 0 4px 12px rgba(184, 81, 59, 0.25);
}

/* ============================================
   PRODUCTS GRID — Cards Premium
   ============================================ */

.products-section {
    padding: 16px 20px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .products-section {
        padding: 20px 32px 60px;
    }
}

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

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
    border-color: var(--border-color);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--bg-light);
    transition: transform 0.4s var(--ease-smooth);
}

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

.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.product-line {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    color: var(--terracota);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.product-name {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-name {
        font-size: 13px;
        min-height: 38px;
    }
}

.product-price {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 800;
    color: var(--terracota);
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .product-price {
        font-size: 20px;
    }
}

.product-installments {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 400;
}

.product-btn {
    display: flex;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0 14px 14px 14px;
    box-shadow: 0 3px 12px rgba(184, 81, 59, 0.2);
}

.product-btn:hover {
    background: linear-gradient(135deg, var(--terracota-dark) 0%, #6B2A1E 100%);
    box-shadow: 0 5px 18px rgba(184, 81, 59, 0.35);
    transform: translateY(-1px);
}

.product-btn:active {
    transform: scale(0.98);
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 15px;
    grid-column: 1 / -1;
    font-family: var(--font-sans);
}

/* ============================================
   FOOTER — Elegante e Profissional
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--marrom-escuro) 0%, var(--marrom-medio) 100%);
    padding: 40px 20px 32px;
    text-align: center;
    color: var(--bege-warm);
    font-size: 13px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .footer {
        padding: 48px 32px 36px;
        margin-bottom: 0;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bege-warm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer p {
    opacity: 0.6;
    font-size: 12px;
}

/* ============================================
   MOBILE FIXED BUY BAR
   ============================================ */

.mobile-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 99;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .mobile-buy-bar {
        display: none;
    }
}

.mobile-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--terracota);
}

.mobile-buy-btn {
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(184, 81, 59, 0.25);
}

.mobile-buy-btn:active {
    background: var(--terracota-dark);
}

/* ============================================
   SIDE CART (Preservado do template)
   ============================================ */

.side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 20, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
}

.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    /* Fallback para browsers sem suporte a dvh */
    height: 100vh;
    /* iOS Safari 15.4+ e browsers modernos */
    height: 100svh;
    width: min(420px, 92vw);
    background: var(--bg-white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 30px rgba(45, 31, 20, 0.15);
}

.side-cart.active {
    transform: translateX(0);
}
.side-cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-cart-header {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.side-cart-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-cart-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.side-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.side-cart-close:active {
    transform: scale(0.95);
}

.side-cart-body {
    flex: 1 1 auto;
    min-height: 0; /* Essencial para flex shrink funcionar corretamente no iOS Safari */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.side-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.side-cart-empty p {
    font-size: 16px;
    margin: 0;
}

.side-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.cart-item-image {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    display: block;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-details {
    font-size: 13px;
    color: var(--text-medium);
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--terracota);
    margin-top: auto;
}

.cart-item-quantity {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}

.cart-item-quantity button {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-item-quantity button:hover {
    background-color: var(--terracota);
    color: white;
    border-color: var(--terracota);
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-light);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    align-self: flex-start;
}
.cart-item-remove:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: scale(1.1);
}

.side-cart-footer {
    position: relative;
    background: var(--bg-light);
    padding: 16px;
    border-top: 2px solid var(--border-light);
    z-index: 2;
    flex-shrink: 0;
    /* Garante espaço seguro para a barra home do iPhone */
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 14px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.side-cart-total span:last-child {
    color: var(--terracota);
    font-family: var(--font-sans);
}

.side-cart-clear {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 2px solid var(--terracota);
    color: var(--terracota);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.side-cart-clear:hover {
    background: var(--terracota);
    color: #fff;
    border-color: var(--terracota);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 81, 59, 0.3);
}
.side-cart-clear:active {
    transform: scale(0.98);
}

.side-cart-checkout {
    width: 100%;
    min-height: 44px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    border: none;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(184, 81, 59, 0.3);
}
.side-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 81, 59, 0.4);
}

@media (max-width: 768px) {
    .side-cart-header h3 {
        font-size: 16px;
    }
    .side-cart-clear {
        font-size: 12px;
        padding: 10px 14px;
    }
    .side-cart-checkout {
        font-size: 14px;
    }
    .cart-item-image {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.breadcrumb {
    padding: 14px 20px;
    font-size: 12px;
    color: var(--text-light);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .breadcrumb {
        padding: 16px 32px;
    }
}

.breadcrumb a {
    color: var(--terracota);
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    padding: 24px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .product-detail {
        padding: 40px 32px;
    }
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

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

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.gallery-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--terracota);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-line-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    width: fit-content;
}

.product-detail-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .product-detail-title {
        font-size: 34px;
    }
}

.product-detail-price {
    font-family: var(--font-sans);
    font-size: 30px;
    font-weight: 800;
    color: var(--terracota);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .product-detail-price {
        font-size: 38px;
    }
}

.product-detail-installments {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 28px;
}

.product-detail-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    border: none;
    padding: 18px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(184, 81, 59, 0.3);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.product-detail-btn:hover {
    box-shadow: 0 6px 28px rgba(184, 81, 59, 0.4);
    transform: translateY(-2px);
}

.product-detail-btn:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .product-detail-btn {
        padding: 20px;
        font-size: 18px;
        border-radius: var(--radius-lg);
    }
}

.product-back-btn {
    display: inline-flex;
    width: 100%;
    text-align: center;
    padding: 14px;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.product-back-btn:hover {
    border-color: var(--terracota);
    color: var(--terracota);
}

.product-section {
    margin-bottom: 32px;
    padding: 24px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.product-section h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .product-section h2 {
        font-size: 24px;
    }
}

.product-section p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table thead {
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
}

.specs-table th,
.specs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.specs-table th {
    font-weight: 700;
}

.specs-table tbody tr:hover {
    background-color: var(--terracota-glow);
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    background-color: var(--bg-white);
    transition: var(--transition);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: var(--terracota);
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary:hover {
    background-color: var(--bg-light);
}

.faq-item p {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
    background-color: var(--bg-white);
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 24px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cart-page {
        padding: 40px 32px;
    }
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .cart-container {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

.cart-items-section h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    padding: 18px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    align-items: center;
    box-shadow: var(--shadow-xs);
}

.cart-item-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-details h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cart-summary-section {
    position: sticky;
    top: 100px;
}

.cart-summary {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.cart-summary h2 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-medium);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    border: none;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(184, 81, 59, 0.3);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 81, 59, 0.4);
}

.continue-shopping-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.continue-shopping-btn:hover {
    border-color: var(--terracota);
    color: var(--terracota);
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-message p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.btn-back-shopping {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(184, 81, 59, 0.25);
}

.btn-back-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 81, 59, 0.4);
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ============================================
   PRODUCT GALLERY THUMBS (legacy)
   ============================================ */

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

/* ============================================
   HERO SECTION (legacy class)
   ============================================ */

.hero {
    padding: 40px 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--bege-warm) 0%, var(--bg-white) 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }
}

.hero p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    color: white;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(184, 81, 59, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 81, 59, 0.4);
}
