/* =============================================
   Casa do Vape - Main Stylesheet
   Theme: Black & White Premium Minimalist
   ============================================= */

/* --- CSS Variables --- */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #333333;
    --gray-light: #f5f5f5;
    --gray: #888888;
    --gray-dark: #555555;
    --border: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: all 0.3s ease;
    --header-height: 70px;
    --container-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-family); font-size: 15px; line-height: 1.6; color: var(--primary); background: var(--secondary); overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; margin-bottom: 0.5em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gray { color: var(--gray); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-small { font-size: 0.85rem; }

/* --- Container --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; transition: var(--transition); border: 2px solid transparent; gap: 8px; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); opacity: 1; }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--secondary); opacity: 1; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--accent); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--secondary); transition: var(--transition); font-size: 0.95rem; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* --- Header --- */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--primary); color: var(--secondary); z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header .container { height: 100%; display: flex; align-items: center; gap: 12px; }
.header-logo { flex-shrink: 0; }
.header-logo a { color: var(--secondary); font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.header-logo span { font-weight: 300; }
.header-search { flex: 1; max-width: 450px; margin: 0 20px; position: relative; }
.header-search input { width: 100%; padding: 10px 44px 10px 16px; border-radius: 50px; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 0.9rem; }
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search input:focus { background: rgba(255,255,255,0.2); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; color: rgba(255,255,255,0.7); padding: 8px; }
.header-search .search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; display: none; z-index: 100; }
.header-search .search-results.active { display: block; }
.header-search .search-item { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--primary); }
.header-search .search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); margin-right: 12px; }
.header-search .search-item:hover { background: var(--gray-light); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.header-action-link { color: var(--secondary); position: relative; display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.header-icon { font-size: 1.2rem; }
.header-actions .cart-count { position: absolute; top: -8px; right: -10px; background: var(--danger); color: #fff; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* --- Menu Toggle (Hamburger) --- */
.menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--secondary); border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Menu Drawer (Left to Right) --- */
.menu-drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.menu-drawer-overlay.active { opacity: 1; visibility: visible; }
.menu-drawer { position: fixed; top: 0; left: 0; width: 300px; height: 100vh; background: #fff; z-index: 2001; transform: translateX(-100%); transition: transform 0.35s ease; box-shadow: 5px 0 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow-y: auto; }
.menu-drawer.active { transform: translateX(0); }
.menu-drawer-header { padding: 20px 24px; background: var(--primary); color: var(--secondary); display: flex; justify-content: space-between; align-items: center; }
.menu-drawer-logo { color: var(--secondary); font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.menu-drawer-logo span { font-weight: 300; }
.menu-drawer-close { background: none; color: var(--secondary); font-size: 1.5rem; padding: 4px; cursor: pointer; border: none; }
.menu-drawer-nav { padding: 8px 0; flex: 1; }
.menu-drawer-nav a { display: block; padding: 14px 24px; font-size: 0.95rem; color: var(--primary); font-weight: 500; transition: background 0.2s; }
.menu-drawer-nav a:hover, .menu-drawer-nav a.active { background: var(--gray-light); }
.menu-drawer-divider { height: 1px; background: var(--border); margin: 8px 24px; }
.menu-drawer-title { padding: 8px 24px 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); font-weight: 600; }

/* --- Desktop Navigation Bar --- */
.desktop-nav { background: var(--secondary); border-bottom: 1px solid var(--border); margin-top: var(--header-height); position: sticky; top: var(--header-height); z-index: 900; }
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu a { display: block; padding: 14px 20px; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid transparent; }
.nav-menu a:hover, .nav-menu a.active { border-bottom-color: var(--primary); opacity: 1; }
.nav-dropdown { position: relative; }
.nav-dropdown-content { position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); display: none; z-index: 100; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a { padding: 10px 20px; font-size: 0.85rem; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--border); }

/* --- Hero Video Banner --- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-video { height: 100vh; min-height: 500px; max-height: 900px; display: flex; align-items: center; justify-content: center; }
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-video-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.6) 100%); }
.hero-video-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; animation: heroFadeIn 1.2s ease-out; }
.hero-logo-img { width: 260px; height: auto; margin-bottom: 20px; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5)); }
.hero-video-content p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 32px; font-weight: 300; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-video-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary { padding: 14px 36px; background: #d4a843; color: #000; font-weight: 700; font-size: 0.95rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border: 2px solid #d4a843; box-shadow: 0 4px 20px rgba(212,168,67,0.3); }
.btn-hero-primary:hover { background: #e6bc5a; border-color: #e6bc5a; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(212,168,67,0.45); }
.btn-hero-outline { padding: 14px 36px; background: transparent; color: #fff; font-weight: 600; font-size: 0.95rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.6); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }
.hero-scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: heroScrollBounce 2s ease-in-out infinite; }
.hero-scroll-hint span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }
.hero-scroll-hint svg { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; padding: 6px; width: 40px; height: 40px; backdrop-filter: blur(4px); }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroScrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* --- Section --- */
.section { padding: 60px 0; position: relative; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }
.section-title h2 { font-size: 1.8rem; margin-bottom: 8px; }
.section-title p { color: var(--gray); font-size: 0.95rem; }
.section-alt { background: var(--gray-light); }
.section > .container { position: relative; z-index: 1; }

/* --- Smoke Video Background --- */
.smoke-section .smoke-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: -1; opacity: 0.12; mix-blend-mode: multiply; }

/* --- Product Card --- */
.product-card { background: var(--secondary); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
@media (hover: hover) and (pointer: fine) {
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.product-card-image { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--gray-light); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
@media (hover: hover) and (pointer: fine) {
.product-card:hover .product-card-image img { transform: scale(1.08); }
}
.product-card-image.is-fallback { background: #111; display: flex; align-items: center; justify-content: center; }
.product-card-image.is-fallback img { width: 55%; height: 55%; object-fit: contain; opacity: 0.85; }
.product-card-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--secondary); padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.product-card-badge.sale { background: var(--danger); }
.product-card-body { padding: 16px; }
.product-card-category { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a { color: var(--primary); }
.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-card-price .price { font-size: 1.2rem; font-weight: 700; }
.product-card-price .price-old { font-size: 0.85rem; color: var(--gray); text-decoration: line-through; }
.product-card-price .discount { font-size: 0.75rem; color: var(--danger); font-weight: 600; }
.product-card .btn-add-cart { width: 100%; padding: 10px; font-size: 0.85rem; }
.btn-add-cart:disabled { opacity: 0.5; cursor: not-allowed; background: var(--gray); }

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Product Detail (Marketplace Layout) --- */
.pd-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 0.8rem; color: var(--gray); flex-wrap: wrap; }
.pd-breadcrumb a { color: var(--gray); }
.pd-breadcrumb a:hover { color: var(--primary); }
.pd-breadcrumb svg { color: var(--border); }
.pd-breadcrumb span:last-child { color: var(--accent); }

.pd-layout { display: grid; grid-template-columns: 380px 1fr 320px; gap: 32px; padding: 16px 0 40px; align-items: start; }

/* Gallery */
.pd-gallery { position: sticky; top: calc(var(--header-height) + 20px); }
.pd-gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--gray-light); margin-bottom: 10px; border: 1px solid var(--border); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-main.is-fallback { background: #111; display: flex; align-items: center; justify-content: center; }
.pd-gallery-main.is-fallback img { width: 45%; height: 45%; object-fit: contain; opacity: 0.85; }
.pd-gallery-thumbs { display: flex; gap: 6px; }
.pd-gallery-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.pd-gallery-thumbs img:hover, .pd-gallery-thumbs img.active { border-color: var(--primary); }

/* Product Info */
.pd-info { padding: 0 8px; }
.pd-brand { display: inline-block; font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pd-brand:hover { color: var(--primary); }
.pd-title { font-size: 1.5rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; color: var(--primary); }
.pd-category { display: inline-block; font-size: 0.75rem; color: var(--gray); background: var(--gray-light); padding: 3px 10px; border-radius: 20px; margin-bottom: 16px; }

.pd-price-block { margin-bottom: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pd-price-old { font-size: 0.9rem; color: var(--gray); text-decoration: line-through; }
.pd-discount-badge { display: inline-block; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.pd-price-main { font-size: 2rem; font-weight: 700; color: var(--primary); margin-top: 2px; }
.pd-promo-tag { display: inline-block; margin-top: 6px; font-size: 0.78rem; color: var(--success); font-weight: 600; background: rgba(40,167,69,0.08); padding: 3px 10px; border-radius: 4px; }

.pd-description { font-size: 0.88rem; line-height: 1.7; color: var(--gray-dark); margin-bottom: 20px; }

.pd-specs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.pd-spec { background: var(--gray-light); padding: 8px 14px; border-radius: 6px; font-size: 0.78rem; }
.pd-spec span { color: var(--gray); display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3px; }
.pd-spec strong { color: var(--primary); }

/* Buy Box (sticky sidebar) */
.pd-buybox { position: sticky; top: calc(var(--header-height) + 20px); }
.pd-buybox-card { background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.pd-buybox-price .price { font-size: 1.6rem; font-weight: 700; }
.pd-buybox-price .price-old { font-size: 0.85rem; color: var(--gray); text-decoration: line-through; margin-left: 8px; }
.pd-buybox-promo { font-size: 0.78rem; color: var(--success); font-weight: 600; margin-top: 4px; margin-bottom: 8px; }
.pd-buybox-stock { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; margin: 12px 0 16px; }
.pd-buybox-stock.in-stock { color: var(--success); }
.pd-buybox-stock.out-stock { color: var(--danger); }
.pd-buybox-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.pd-buybox-btn { width: 100%; padding: 14px; font-size: 1rem; font-weight: 600; margin-top: 4px; }
.pd-buybox-shipping { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--gray-dark); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-light); }
.pd-buybox-shipping svg { color: var(--gray); flex-shrink: 0; }
.pd-buybox-shipping strong { color: var(--primary); }
.pd-buybox .quantity-selector { margin-bottom: 12px; }
.pd-buybox .variation-group { margin-bottom: 14px; }
.pd-buybox .variation-checklist { max-width: 100%; }

/* Frete Calculator */
.pd-frete-calc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-light); }
.pd-frete-input { display: flex; gap: 6px; margin-bottom: 4px; }
.pd-frete-input input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.85rem; outline: none; transition: border-color 0.2s; }
.pd-frete-input input:focus { border-color: var(--primary); }
.pd-frete-input button { padding: 8px 16px; background: var(--primary); color: var(--secondary); border: none; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; }
.pd-frete-input button:hover { opacity: 0.85; }
.pd-frete-input button:disabled { opacity: 0.5; cursor: wait; }
.pd-frete-link { font-size: 0.72rem; color: var(--gray); display: inline-block; margin-bottom: 8px; }
.pd-frete-link:hover { color: var(--primary); }
.pd-frete-result { font-size: 0.82rem; padding: 10px 12px; border-radius: 6px; margin-top: 4px; }
.pd-frete-result.success { background: rgba(40,167,69,0.06); border: 1px solid rgba(40,167,69,0.15); color: var(--success); }
.pd-frete-result.error { background: rgba(220,53,69,0.06); border: 1px solid rgba(220,53,69,0.15); color: var(--danger); }
.pd-frete-result .frete-value { font-weight: 700; font-size: 0.95rem; }
.pd-frete-result .frete-free { color: var(--success); font-weight: 700; }
.pd-frete-result .frete-time { color: var(--gray-dark); font-size: 0.78rem; margin-top: 2px; }

/* Variation Selector */
.variation-group { margin-bottom: 20px; }
.variation-group label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.variation-count-label { font-weight: 400; color: var(--gray); font-size: 0.85rem; }
.variation-count-label .variation-max { color: var(--primary); font-weight: 600; }

/* Variation Checklist */
.variation-checklist { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; padding-right: 4px; max-width: 340px; }
.variation-checklist::-webkit-scrollbar { width: 3px; }
.variation-checklist::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.variation-check-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.2s ease; user-select: none; }
@media (hover: hover) and (pointer: fine) {
.variation-check-item:hover:not(.esgotado) { border-color: var(--primary); background: rgba(0,0,0,0.02); }
}
.variation-check-item.checked { border-color: var(--primary); background: rgba(212,168,67,0.08); }
.variation-check-item.esgotado { opacity: 0.35; cursor: not-allowed; }
.variation-check-item input[type="checkbox"] { display: none; }
.variation-check-box { width: 16px; height: 16px; min-width: 16px; border: 1.5px solid var(--border); border-radius: 3px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.variation-check-item.checked .variation-check-box { background: var(--primary); border-color: var(--primary); }
.variation-check-item.checked .variation-check-box::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 700; }
.variation-check-name { flex: 1; font-size: 0.82rem; }
.variation-check-extra { font-size: 0.8rem; color: var(--primary); font-weight: 500; }
.variation-check-esgotado { font-size: 0.75rem; color: var(--danger); font-style: italic; }

/* Keep the select dropdown as fallback */
.variation-select { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; background: var(--secondary); color: var(--primary); cursor: pointer; transition: border-color 0.2s ease; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.variation-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }

/* Quantity Selector */
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.quantity-selector button { width: 40px; height: 40px; background: var(--gray-light); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.quantity-selector button:hover { background: var(--border); }
.quantity-selector input { width: 60px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-weight: 600; }
.product-info .btn-add-cart { padding: 16px 48px; font-size: 1.1rem; }

/* --- Tabs --- */
.tabs { margin-top: 48px; }
.tab-headers { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-header { padding: 12px 24px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-header.active { border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Cart Drawer --- */
.cart-drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; background: var(--secondary); z-index: 2001; transition: transform 0.35s ease; box-shadow: -5px 0 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; transform: translateX(100%); }
.cart-drawer.active { transform: translateX(0); }
.cart-drawer-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.cart-drawer-header h3 { font-size: 1.2rem; }
.cart-drawer-close { background: none; font-size: 1.5rem; color: var(--primary); padding: 4px; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-info .variant { font-size: 0.8rem; color: var(--gray); }
.cart-item-info .price { font-weight: 600; margin-top: 4px; }
.cart-item-remove { background: none; color: var(--gray); font-size: 0.85rem; }
.cart-item-remove:hover { color: var(--danger); }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--gray-light); flex-shrink: 0; }
.cart-drawer-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.cart-drawer-footer .btn { width: 100%; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--gray); }

/* --- Checkout Drawer (Bottom) --- */
.checkout-drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 3000; opacity: 0; visibility: hidden; transition: var(--transition); }
.checkout-drawer-overlay.active { opacity: 1; visibility: visible; }
.checkout-drawer { position: fixed; bottom: -100%; left: 0; right: 0; height: 90vh; background: var(--secondary); z-index: 3001; transition: transform 0.5s ease; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; }
.checkout-drawer.active { transform: translateY(-100%); bottom: 0; }
.checkout-drawer-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto; }

/* --- Checkout Steps --- */
.checkout-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 32px; padding: 0 20px; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray); }
.checkout-step .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; transition: background 0.3s, color 0.3s; }
.checkout-step.active { color: var(--primary); }
.checkout-step.active .step-num { background: var(--primary); color: var(--secondary); }
.checkout-step.completed { color: var(--success); }
.checkout-step.completed .step-num { background: var(--success); color: #fff; }
.checkout-step-line { width: 40px; height: 2px; background: var(--border); margin: 0 8px; transition: background 0.3s; }
.checkout-step-line.completed { background: var(--success); }

/* --- Categories --- */
/* --- Category Bento Grid --- */
.cat-section { background: #000; padding: 80px 0; position: relative; overflow: hidden; }
.cat-section-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; z-index: 0; }
.cat-section .container { position: relative; z-index: 1; }
.cat-section .section-title h2 { color: #fff; }
.cat-section .section-title p { color: rgba(255,255,255,0.4); }

.cat-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
.cat-card { display: flex; align-items: center; gap: 18px; padding: 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; transition: all 0.4s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden; text-decoration: none; }
.cat-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, var(--cat-bg) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s ease; }
@media (hover: hover) and (pointer: fine) {
.cat-card:hover { border-color: var(--cat-color); transform: translateY(-4px); box-shadow: 0 8px 32px var(--cat-glow), 0 0 0 1px var(--cat-color); }
.cat-card:hover::before { opacity: 1; }
}

.cat-card--featured { grid-column: 1 / -1; padding: 36px 40px; gap: 28px; }
.cat-card--featured .cat-card-icon { width: 72px; height: 72px; }
.cat-card--featured .cat-card-icon svg { width: 40px; height: 40px; }
.cat-card--featured h3 { font-size: 1.3rem; }
.cat-card--featured .cat-card-desc { display: block; }

.cat-card-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--cat-bg); display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; position: relative; z-index: 1; }
.cat-card-icon svg { width: 28px; height: 28px; color: var(--cat-color); transition: transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
.cat-card:hover .cat-card-icon { background: var(--cat-color); box-shadow: 0 4px 20px var(--cat-glow); }
.cat-card:hover .cat-card-icon svg { color: #fff; transform: scale(1.1); }
}

.cat-card-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cat-card-info h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 4px; transition: color 0.3s; }
@media (hover: hover) and (pointer: fine) {
.cat-card:hover .cat-card-info h3 { color: var(--cat-color); }
}
.cat-card-desc { font-size: 0.8rem; color: rgba(255,255,255,0.35); line-height: 1.4; margin-bottom: 6px; display: none; }
.cat-card--featured .cat-card-desc { display: block; }
.cat-card-count { font-size: 0.72rem; color: rgba(255,255,255,0.25); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

.cat-card-arrow { position: relative; z-index: 1; color: rgba(255,255,255,0.15); transition: all 0.3s ease; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
.cat-card:hover .cat-card-arrow { color: var(--cat-color); transform: translateX(4px); }
}

@media (max-width: 992px) {
    .cat-bento { grid-template-columns: repeat(2, 1fr); }
    .cat-card--featured { grid-column: 1 / -1; }
}
@media (max-width: 576px) {
    .cat-section { padding: 50px 0; }
    .cat-bento { grid-template-columns: 1fr; }
    .cat-card { padding: 18px; gap: 14px; }
    .cat-card--featured { padding: 24px; }
    .cat-card--featured .cat-card-icon { width: 56px; height: 56px; }
    .cat-card--featured .cat-card-icon svg { width: 28px; height: 28px; }
}

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: var(--primary); color: var(--secondary); }
.badge-bronze { background: #cd7f32; color: #fff; }
.badge-prata { background: #c0c0c0; color: #333; }
.badge-ouro { background: #ffd700; color: #333; }
.badge-vip { background: #000; color: #ffd700; }

/* --- Toast Notifications --- */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 24px; border-radius: var(--radius); color: #fff; font-size: 0.9rem; box-shadow: var(--shadow-lg); transform: translateX(120%); transition: transform 0.4s ease; max-width: 380px; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

/* --- Modal --- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 5000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--secondary); border-radius: var(--radius); max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-close { background: none; font-size: 1.5rem; color: var(--gray); }

/* --- Loading / Skeleton --- */
.skeleton { background: linear-gradient(90deg, var(--gray-light) 25%, #ebebeb 50%, var(--gray-light) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 40px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition); }
.pagination a:hover, .pagination .active { background: var(--primary); color: var(--secondary); border-color: var(--primary); opacity: 1; }

/* --- Footer --- */
.footer { background: linear-gradient(180deg, #0a0a0a 0%, #000 100%); color: var(--secondary); padding: 0; margin-top: 60px; }
.footer p, .footer a { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; }
.footer a:hover { color: #d4a843; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }

/* Footer Top */
.footer-top { display: flex; justify-content: space-between; align-items: center; padding: 40px 0 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 20px; flex: 1; }
.footer-logo-img { width: 80px; height: auto; flex-shrink: 0; }
.footer-brand p { max-width: 280px; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: all 0.3s ease; }
.footer-social a:hover { background: #d4a843; border-color: #d4a843; color: #000; transform: translateY(-2px); }

/* Footer Grid */
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 36px 0; }
.footer-col-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.footer-chevron { display: none; transition: transform 0.3s ease; color: rgba(255,255,255,0.3); }

/* Payment badges */
.footer-payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-pay-badge { padding: 6px 14px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; }

/* Footer Bottom */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-credits { margin-top: 6px; font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-credits a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-credits a:hover { color: #d4a843; }

/* --- Customer Account --- */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 40px 0; }
.account-sidebar { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: fit-content; position: sticky; top: calc(var(--header-height) + 80px); }
.account-sidebar a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.account-sidebar a:hover, .account-sidebar a.active { background: var(--primary); color: var(--secondary); opacity: 1; }
.account-content { min-height: 400px; }

/* --- Breadcrumb --- */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--border); }

/* --- Filters Sidebar --- */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }
.filters-sidebar { position: sticky; top: calc(var(--header-height) + 80px); height: fit-content; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.filter-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; cursor: pointer; }
.filter-group input[type="checkbox"] { accent-color: var(--primary); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100px; padding: 8px; text-align: center; }

/* --- AI Chat Widget --- */
.fab-buttons { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 1500; align-items: center; }
.fab-whatsapp { width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: var(--transition); }
.fab-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.fab-cart { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: var(--transition); }
.fab-cart:hover { transform: scale(1.1); }
.fab-cart-count { position: absolute; top: -4px; right: -4px; background: #dc3545; color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fab-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 1500; align-items: center; }
.ai-chat-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); cursor: pointer; transition: var(--transition); }
.ai-chat-btn:hover { transform: scale(1.1); }
.ai-chat-window { position: fixed; bottom: 156px; right: 24px; width: 380px; height: 520px; background: var(--secondary); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1500; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.ai-chat-window.active { display: flex; }
.ai-chat-header { background: var(--primary); color: var(--secondary); padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.ai-chat-header h4 { font-size: 0.95rem; }
.ai-chat-close { background: none; color: var(--secondary); font-size: 1.2rem; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.ai-chat-msg.bot { background: var(--gray-light); border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-chat-msg.user { background: var(--primary); color: var(--secondary); border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-chat-msg .product-suggestion { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.ai-chat-msg .product-suggestion img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.ai-chat-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; }
.ai-chat-typing span { width: 8px; height: 8px; background: var(--gray); border-radius: 50%; animation: typing 1.4s infinite ease-in-out; }
.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.ai-chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.ai-chat-quick-reply { padding: 6px 14px; border: 1px solid var(--primary); border-radius: 50px; font-size: 0.8rem; cursor: pointer; transition: var(--transition); }
.ai-chat-quick-reply:hover { background: var(--primary); color: var(--secondary); }
.ai-chat-input { display: flex; border-top: 1px solid var(--border); }
.ai-chat-input input { flex: 1; padding: 14px 16px; border: none; font-size: 0.9rem; }
.ai-chat-input button { padding: 14px 20px; background: var(--primary); color: var(--secondary); font-weight: 600; }

/* --- Order Status Timeline --- */
.order-timeline { display: flex; justify-content: space-between; margin: 24px 0; position: relative; }
.order-timeline::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--border); }
.order-timeline-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.order-timeline-step .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--border); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #fff; }
.order-timeline-step.completed .dot { background: var(--success); }
.order-timeline-step.active .dot { background: var(--primary); }
.order-timeline-step span { font-size: 0.75rem; color: var(--gray); }

/* --- Gamification --- */
.points-card { background: linear-gradient(135deg, #000 0%, #333 100%); color: #fff; border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.points-card .points-value { font-size: 3rem; font-weight: 700; }
.points-card .level-badge { display: inline-block; padding: 4px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-top: 8px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 16px; }
.progress-bar-fill { height: 100%; background: var(--success); border-radius: 4px; transition: width 0.5s ease; }

/* --- Account Cards --- */
.account-mobile-header { display: none; }
.account-order-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; color: inherit; transition: var(--transition); }
.account-order-card:hover { border-color: var(--primary); opacity: 1; box-shadow: var(--shadow); }
.account-order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.account-order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.account-order-footer > div { display: flex; align-items: baseline; gap: 12px; }
.account-address-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.account-address-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.account-points-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.account-points-value { font-weight: 700; white-space: nowrap; }
.account-points-value.positive { color: var(--success); }
.account-points-value.negative { color: var(--danger); }
.account-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; }
.account-section-header h2 { margin-bottom: 0; }

/* --- Order Detail Page --- */
.pedido-detalhe-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.pedido-detalhe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.pedido-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pedido-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.pedido-resumo-card { background: var(--gray-light); border-radius: var(--radius); padding: 24px; }
.pedido-resumo-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.pedido-payment-action { background: var(--gray-light); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.pedido-payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --- Checkout Page --- */
.checkout-page { padding-top: 40px; padding-bottom: 40px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin-top: 32px; }
.checkout-step-title { margin-bottom: 16px; font-size: 1.3rem; }
.checkout-summary { background: var(--gray-light); border-radius: var(--radius); padding: 24px; position: sticky; top: 150px; }
.checkout-summary-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.checkout-summary-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }
.checkout-summary-total { font-size: 1.2rem; font-weight: 700; margin-bottom: 0; }
.checkout-summary-hr { margin: 12px 0; border: none; border-top: 1px solid #ddd; }
.checkout-address-option { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; transition: var(--transition); }
.checkout-address-option:has(input:checked) { border-color: var(--primary); background: var(--gray-light); }
.checkout-radio-option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.checkout-radio-option:has(input:checked) { border-color: var(--primary); background: var(--gray-light); }
.checkout-payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.checkout-nav { display: flex; justify-content: space-between; gap: 12px; }
.checkout-divider { height: 1px; background: var(--border); margin: 20px 0; }
.checkout-link-btn { background: none; color: var(--primary); font-weight: 500; font-size: 0.9rem; padding: 0; text-decoration: underline; cursor: pointer; }
.checkout-link-btn:hover { opacity: 0.7; }
.cep-input-group { display: flex; gap: 8px; align-items: center; }
.cep-input-group .form-control { max-width: 180px; }
.checkout-step-content { display: none; }
.checkout-step-content.active { display: block; }
.coupon-form { margin-top: 16px; display: flex; gap: 8px; }
.coupon-form .form-control { flex: 1; }
.shipping-option { padding: 16px; border: 2px solid var(--primary); border-radius: var(--radius); background: var(--gray-light); }
.shipping-option strong { display: block; margin-bottom: 4px; }
.shipping-option span { font-size: 0.9rem; }
.shipping-option small { display: block; color: var(--gray); font-size: 0.8rem; margin-top: 4px; }
.shipping-unavailable { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.pix-waiting { text-align: center; padding: 20px 0; }
.pix-waiting .pix-status { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pix-waiting .pix-status-text { font-size: 0.95rem; color: var(--gray-dark); }
.card-confirmation { border: 2px solid var(--success); border-radius: var(--radius); background: var(--gray-light); }

/* --- PIX Drawer (mobile bottom sheet) --- */
.pix-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100; opacity: 0; transition: opacity 0.3s ease; }
.pix-drawer-overlay.active { display: block; opacity: 1; }
.pix-drawer { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 1101; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0); }
.pix-drawer.active { display: block; transform: translateY(0); }
.pix-drawer-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; }
.pix-drawer-header { padding: 16px 24px 0; text-align: center; }
.pix-drawer-header h3 { font-size: 1.1rem; margin: 0; }
.pix-drawer-body { padding: 16px 24px 32px; text-align: center; }
.pix-drawer-body .pix-status { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pix-drawer-body .pix-status-text-drawer { font-size: 0.95rem; color: var(--gray-dark); }

/* --- Filters Toggle (mobile) --- */
.filters-toggle { display: none; margin-bottom: 16px; }

/* --- Cart Page --- */
.cart-page { padding: 40px 20px; }
.cart-page-title { margin-bottom: 24px; }
.cart-empty-page { text-align: center; padding: 60px 20px; }
.cart-empty-page h3 { margin-bottom: 12px; }
.cart-page-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.cart-page-items { min-width: 0; }
.cart-page-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.cart-page-item-img { width: 100px; height: 100px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-page-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-item-img.is-fallback { background: #111; display: flex; align-items: center; justify-content: center; }
.cart-page-item-img.is-fallback img { width: 60%; height: 60%; object-fit: contain; opacity: 0.85; }
.cart-page-item-details { flex: 1; min-width: 0; }
.cart-page-item-details h4 { font-size: 1rem; margin-bottom: 4px; }
.cart-page-item-details h4 a { color: var(--primary); }
.cart-page-item-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.cart-page-item-price { font-weight: 600; font-size: 1.1rem; }
.cart-page-item-remove { background: none; color: var(--gray); font-size: 1.2rem; align-self: flex-start; padding: 4px; flex-shrink: 0; }
.cart-page-item-remove:hover { color: var(--danger); }
.cart-page-summary { background: var(--gray-light); border-radius: var(--radius); padding: 24px; position: sticky; top: 150px; }
.cart-page-summary h3 { margin-bottom: 16px; }
.cart-page-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-page-summary-total { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.cart-page-summary-divider { margin: 16px 0; border: none; border-top: 1px solid #ddd; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- 404 Page --- */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h1 { font-size: 6rem; font-weight: 700; }
.page-404 p { font-size: 1.2rem; color: var(--gray); margin-bottom: 24px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 992px) {
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery { position: static; }
    .pd-layout { grid-template-columns: 1fr 1fr; gap: 20px; }
    .pd-buybox { grid-column: 1 / -1; position: static; }
    .pd-gallery { position: static; }
    .pd-title { font-size: 1.3rem; }
    .products-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .hero-video { height: 90vh; min-height: 500px; max-height: none; }
    .hero-logo-img { width: 220px; }
    .cart-page-grid { grid-template-columns: 1fr; gap: 24px; }
    .cart-page-summary { position: static; }
    .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
    .checkout-summary { position: static; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .form-control { font-size: 16px; }
    .header-logo a { font-size: 1.1rem; }
    .header-search { display: none; }
    .header-action-text { display: none; }
    .header-icon { font-size: 1.3rem; }
    .desktop-nav { display: none; }
    .menu-drawer { width: 280px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .product-card-body { padding: 10px; }
    .product-card-title { font-size: 0.85rem; margin-bottom: 4px; -webkit-line-clamp: 1; }
    .product-card-category { font-size: 0.65rem; margin-bottom: 2px; }
    .product-card-price { margin-bottom: 8px; gap: 4px; flex-wrap: wrap; }
    .product-card-price .price { font-size: 1rem; }
    .product-card-price .price-old { font-size: 0.75rem; }
    .product-card-price .discount { font-size: 0.65rem; }
    .product-card .btn-add-cart { padding: 8px; font-size: 0.875rem; min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .product-card-badge { top: 6px; left: 6px; padding: 2px 8px; font-size: 0.65rem; }
    .footer-top { flex-direction: column; text-align: center; gap: 20px; padding: 32px 0 24px; }
    .footer-brand { flex-direction: column; align-items: center; gap: 12px; }
    .footer-brand p { text-align: center; max-width: none; }
    .footer-logo-img { width: 100px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; padding: 12px 0; }
    .footer-col { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .footer-col:last-child { border-bottom: none; }
    .footer-col-title { padding: 16px 0; margin-bottom: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .footer-chevron { display: block; }
    .footer-col-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0; }
    .footer-col.open .footer-col-content { max-height: 300px; padding-bottom: 16px; }
    .footer-col.open .footer-chevron { transform: rotate(180deg); }
    .cart-drawer { width: 100%; right: 0; transform: translateX(100%); }
    .cart-drawer.active { transform: translateX(0); }
    .ai-chat-window { width: calc(100% - 16px); right: 8px; bottom: 88px; height: 65vh; }
    .hero-video { height: 100vh; height: 100dvh; min-height: auto; max-height: none; }
    .hero-logo-img { width: 200px; margin-bottom: 16px; }
    .hero-video-content { padding: 30px 20px; }
    .hero-video-content p { font-size: 1.05rem; margin-bottom: 28px; }
    .hero-video-actions { gap: 12px; width: 100%; padding: 0 10px; }
    .btn-hero-primary, .btn-hero-outline { padding: 14px 0; font-size: 0.88rem; flex: 1; text-align: center; }
    .hero-scroll-hint { bottom: 20px; }
    .section { padding: 30px 0; }
    .section-title h2 { font-size: 1.3rem; margin-bottom: 4px; }
    .form-row { flex-direction: column; gap: 0; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }

    /* Cart page */
    .cart-page { padding: 20px 12px; }
    .cart-page-title { font-size: 1.4rem; margin-bottom: 16px; }
    .cart-page-item { gap: 12px; padding: 16px 0; }
    .cart-page-item-img { width: 80px; height: 80px; }
    .cart-page-item-details h4 { font-size: 0.9rem; }
    .cart-page-item-actions { gap: 10px; }
    .cart-page-item-price { font-size: 1rem; }
    .cart-page-summary { padding: 20px; }
    .cart-page-summary .btn-lg { padding: 14px 24px; font-size: 1rem; }

    /* Checkout page */
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; padding: 20px; }

    /* Product detail */
    .product-detail { gap: 20px; padding: 20px 0; }
    .product-info h1 { font-size: 1.4rem; }
    .product-info .price-box .price { font-size: 1.6rem; }
    .product-info .price-box .price-old { font-size: 0.95rem; }
    .product-info .btn-add-cart { width: 100%; padding: 14px 24px; font-size: 1rem; }
    .pd-layout { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pd-buybox { grid-column: 1 / -1; position: static; }
    .pd-buybox-card { padding: 16px; }
    .pd-gallery { position: static; }
    .pd-gallery-main { aspect-ratio: 4/3; }
    .pd-title { font-size: 1.2rem; }
    .pd-price-main { font-size: 1.6rem; }
    .pd-specs { gap: 8px; }
    .pd-spec { padding: 6px 10px; font-size: 0.75rem; }
    .pd-breadcrumb { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pd-breadcrumb::-webkit-scrollbar { display: none; }
    .pd-buybox .quantity-selector { margin-bottom: 16px; }
    .pd-buybox .quantity-selector button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 1.1rem; }
    .pd-buybox .quantity-selector input { width: 56px; height: 44px; min-height: 44px; font-size: 1rem; }
    .quantity-selector { margin-bottom: 16px; }
    .quantity-selector button { width: 44px; height: 44px; }
    .quantity-selector input { width: 56px; height: 44px; font-size: 16px; }
    .pd-frete-input input { font-size: 16px; }
    .tab-header { padding: 10px 16px; font-size: 0.9rem; }
    .breadcrumb { font-size: 0.8rem; padding: 12px 0; overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }

    /* Variation checklist */
    .variation-checklist { max-height: 250px; }
    .variation-check-item { padding: 8px 12px; }
    .variation-check-name { font-size: 0.85rem; }

    /* Filters sidebar -> collapsible */
    .filters-toggle { display: block; }
    .filters-sidebar { display: none; background: var(--gray-light); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; }
    .filters-sidebar.open { display: block; }
    .products-layout { gap: 0; padding: 20px 0; }

    /* Account sidebar horizontal scroll */
    .account-mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; }
    .account-mobile-header h2 { font-size: 1.2rem; margin: 0; }
    .account-sidebar { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; scrollbar-width: none; }
    .account-sidebar::-webkit-scrollbar { display: none; }
    .account-sidebar a { white-space: nowrap; border-bottom: none; border-right: 1px solid var(--border); padding: 12px 16px; font-size: 0.85rem; flex-shrink: 0; min-height: 44px; display: flex; align-items: center; }
    .account-sidebar a:last-child { border-right: none; }
    .account-layout { gap: 16px; padding: 20px 0; }
    .account-content h2 { font-size: 1.2rem; }
    .account-order-card { padding: 16px; }
    .account-order-footer > div { flex-direction: column; gap: 2px; }
    .account-address-card { padding: 16px; }
    .account-points-row { padding: 12px 0; gap: 12px; }

    /* Order detail */
    .pedido-detalhe-header { flex-wrap: wrap; }
    .pedido-detalhe-header h1 { font-size: 1.2rem; }
    .pedido-detalhe-grid { grid-template-columns: 1fr; gap: 16px; }
    .pedido-item-img { width: 50px; height: 50px; }
    .pedido-resumo-card { padding: 16px; }
    .pedido-payment-action { padding: 16px; }
    .pedido-payment-options { grid-template-columns: 1fr; }
    .order-timeline-step span { font-size: 0.65rem; }
    .order-timeline-step .dot { width: 26px; height: 26px; font-size: 0.6rem; }

    /* Checkout */
    .checkout-page { padding-top: 20px; padding-bottom: 20px; }
    .checkout-page h1 { font-size: 1.4rem; margin-bottom: 16px !important; }
    .checkout-address-option { padding: 12px; gap: 10px; font-size: 0.9rem; }
    .checkout-radio-option { padding: 12px; gap: 10px; font-size: 0.9rem; }
    .checkout-nav { flex-direction: column-reverse; }
    .checkout-nav .btn { width: 100%; }
    .cep-input-group .form-control { max-width: none; flex: 1; }
    #btn-buscar-cep { min-height: 44px; padding: 12px 20px; }
    .checkout-link-btn { padding: 12px 0; display: inline-block; }

    /* PIX: hide inline, use drawer on mobile */
    .pix-waiting-inline { display: none !important; }

    /* Toast */
    .toast-container { top: auto; bottom: 16px; right: 8px; left: 8px; }
    .toast { max-width: 100%; font-size: 0.85rem; padding: 12px 16px; }

    /* Points card */
    .points-card { padding: 24px; }
    .points-card .points-value { font-size: 2.2rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .product-card-image { aspect-ratio: 1; }
    .product-card-body { padding: 8px; }
    .product-card-title { font-size: 0.8rem; -webkit-line-clamp: 1; }
    .product-card-category { display: none; }
    .product-card-price .price { font-size: 0.95rem; }
    .product-card-price .price-old { font-size: 0.7rem; }
    .product-card .btn-add-cart { padding: 7px; font-size: 0.875rem; min-height: 44px; }
    .pd-frete-input { flex-wrap: wrap; }
    .pd-frete-input input { min-width: 0; }
    .pd-frete-input button { min-height: 44px; }
    .checkout-steps { font-size: 0.75rem; padding: 0 8px; }
    .checkout-step span { display: none; }
    .checkout-step-line { width: 24px; margin: 0 4px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* Cart */
    .cart-page { padding: 16px; }
    .cart-page-item-img { width: 72px; height: 72px; }
    .cart-page-item-details h4 { font-size: 0.85rem; line-height: 1.3; }
    .cart-page-item-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cart-page-item-remove { position: absolute; top: 16px; right: 0; }
    .cart-page-item { position: relative; padding-right: 28px; }

    /* Checkout */
    .checkout-grid { margin-top: 16px; }
    .checkout-summary { padding: 16px; }
    .checkout-summary h3 { font-size: 1.1rem; }

    /* Product detail */
    .product-info h1 { font-size: 1.2rem; }
    .product-info .btn-add-cart { font-size: 0.95rem; padding: 12px 20px; }
    .product-gallery-thumbs img { width: 56px; height: 56px; }
    .pd-layout { grid-template-columns: 1fr; gap: 12px; padding: 8px 0 20px; }
    .pd-gallery, .pd-buybox { position: static; }
    .pd-buybox { grid-column: auto; }
    .pd-gallery-main { aspect-ratio: 4/3; }
    .pd-gallery-thumbs img { width: 44px; height: 44px; }
    .pd-breadcrumb { font-size: 0.72rem; padding: 8px 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .pd-title { font-size: 1.1rem; }
    .pd-info { padding: 0; }
    .pd-brand { font-size: 0.72rem; }
    .pd-category { font-size: 0.68rem; }
    .pd-price-main { font-size: 1.4rem; }
    .pd-price-block { padding: 10px 0; margin-bottom: 10px; }
    .pd-description { font-size: 0.82rem; line-height: 1.6; }
    .pd-buybox-card { padding: 14px; }
    .pd-buybox-price .price { font-size: 1.3rem; }
    .pd-buybox-btn { font-size: 0.9rem; padding: 12px; min-height: 48px; }
    .pd-buybox-shipping { font-size: 0.72rem; margin-top: 8px; padding-top: 8px; }
    .pd-frete-input { flex-direction: column; }
    .pd-frete-input input { font-size: 16px; padding: 10px 12px; }
    .pd-frete-input button { width: 100%; padding: 10px; min-height: 44px; }
    .pd-frete-result { font-size: 0.78rem; }
    .pd-specs { gap: 6px; }
    .pd-spec { flex: 1 1 calc(50% - 6px); min-width: 0; font-size: 0.72rem; }
    .section-title h2 { font-size: 1.2rem; }
    .container { padding: 0 12px; }
    .tab-header { padding: 8px 12px; font-size: 0.85rem; }
    .tabs { margin-top: 24px; }

    /* Account */
    .account-sidebar a { padding: 10px 14px; font-size: 0.8rem; }
    .account-content { min-height: auto; }
    .account-content .btn-primary { width: 100%; }
    .points-card { padding: 20px; }
    .points-card .points-value { font-size: 1.8rem; }
    .account-section-header { flex-direction: column; align-items: stretch; }
    .account-section-header .btn { width: 100%; text-align: center; }

    /* Modal responsive */
    .modal { padding: 20px; width: 95%; }

    /* Variation checklist */
    .variation-checklist { max-height: 200px; }
    .variation-check-item { padding: 8px 10px; gap: 8px; }
    .variation-check-box { width: 18px; height: 18px; min-width: 18px; }
    .variation-check-name { font-size: 0.8rem; }
    .variation-check-extra { font-size: 0.7rem; }
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
