
:root[data-theme="light"] {
    --bg-main: #FFFFFF; --bg-main-alt: #F8F6F4; --bg-surface: #F4F0EE; --bg-surface-hover: #E8E2DD;
    --accent: #7d0000; --accent-hover: #5c0000; --text-main: #1A1614; --text-muted: #665D58;
    --border: #E5DED8; --shadow: rgba(0,0,0,0.06); --info-bar-bg: #7d0000; --info-bar-text: #FFFFFF;
}

:root[data-theme="dark"] {
    --bg-main: #151312; --bg-main-alt: #1A1614; --bg-surface: #221E1C; --bg-surface-hover: #2D2725;
    --accent: #7d0000; --accent-hover: #9c0505; --text-main: #FDFBF7; --text-muted: #A39B96;
    --border: #3A3330; --shadow: rgba(0,0,0,0.3); --info-bar-bg: #7d0000; --info-bar-text: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); transition: 0.3s; line-height: 1.5; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }

/* Top Info Bar com Marquee */
.top-info-bar { background-color: var(--info-bar-bg); color: var(--info-bar-text); padding: 0.5rem 1rem; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; position: relative; width: 100%; overflow: hidden;}
.top-info-content { flex: 1; overflow: hidden; display: flex; align-items: center; margin-right: 15px;}
.marquee-text { display: inline-block; white-space: nowrap; padding-left: 100%; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.marquee-text:hover { animation-play-state: paused; }
.btn-copy { background: #FFFFFF; color: var(--accent); border: none; padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; font-weight: 700; transition: 0.2s; z-index: 2; flex-shrink: 0; margin-right: 20px;}
.close-top-bar { background: none; border: none; color: var(--info-bar-text); font-size: 1.3rem; cursor: pointer; z-index: 2; flex-shrink: 0;}

/* Menus Fixos Claros */
.header, .mobile-bottom-nav { background-color: #FFFFFF !important; border-color: #E5DED8 !important; }
:root[data-theme="dark"] .header, :root[data-theme="dark"] .mobile-bottom-nav { border-bottom: 1px solid #E5DED8 !important; }
.header-nav .nav-item, .mobile-bottom-nav .nav-item { color: #665D58 !important; }
.header-nav .nav-item:hover, .mobile-bottom-nav .nav-item:hover { color: #7d0000 !important; }
.header-search { background: #F8F6F4 !important; border-color: #E5DED8 !important; }
.header-search input { color: #1A1614 !important; }
.header-search button { color: #665D58 !important; }
.store-meta { color: #665D58 !important; }

/* Header Layout */
.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;}
.header-left { display: flex; align-items: center; gap: 1rem; }
.logo { height: 50px; border-radius: 4px; object-fit: contain; background-color: #000; padding: 5px; }
.store-status { display:flex; align-items:center; gap: 6px; color: #22c55e; font-weight: 600; font-size: 0.85rem;}
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; }

.header-search { display: flex; align-items: center; flex: 1; max-width: 350px; border-radius: 50px; padding: 0.5rem 1.2rem; margin: 0 1rem; transition: 0.2s; border: 1px solid; }
.header-search input { border: none; background: transparent; width: 100%; outline: none; font-size: 0.95rem; }
.header-search button { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 0.75rem; font-weight: 500; transition: 0.2s; cursor: pointer;}
.nav-item svg { width: 22px; height: 22px; }
.header-right { display: flex; align-items: center; gap: 0.8rem; }
.cart-trigger { background: #7d0000; color: #ffffff !important; border: none; padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.cart-trigger svg { width: 20px; height: 20px; stroke: #ffffff; }

/* Categories */
:root[data-theme="dark"] .categories-wrapper { background-color: #FFFFFF !important; border-color: #E5DED8 !important;}
:root[data-theme="dark"] .cat-pill { background-color: #F8F6F4 !important; color: #1A1614 !important; border-color: #E5DED8 !important; }
:root[data-theme="dark"] .cat-pill.active { background-color: #7d0000 !important; color: #ffffff !important; }
.categories-wrapper { background: var(--bg-main-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.5rem 1rem; }
.categories { max-width: 1200px; margin: 0 auto; display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.cat-pill { background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-main); padding: 0.4rem 1rem; border-radius: 50px; white-space: nowrap; cursor: pointer; font-weight: 500; font-size: 0.82rem; transition: 0.2s; }
.cat-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Banner Carousel */
.banner-carousel-section { max-width: 1200px; margin: 1.5rem auto 0 auto; padding: 0 1rem; }
.banner-carousel-container { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-surface); box-shadow: 0 6px 20px var(--shadow); height: 320px; display: flex; align-items: center; }
.banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.banner-slide { min-width: 100%; height: 100%; display: flex; align-items: center; padding: 3rem 4rem; color: #fff; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.banner-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.banner-content { max-width: 600px; z-index: 2; }
.banner-badge { display: inline-block; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; }
.banner-slide h2 { font-family: 'Anton SC', sans-serif; font-size: 2.5rem; font-weight: 400; line-height: 1.1; margin-bottom: 0.8rem; }
.banner-btn { display: inline-block; background: #fff; color: var(--accent); padding: 0.7rem 1.6rem; border-radius: 50px; font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.banner-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.2s; }
.banner-nav-btn:hover { background: rgba(0,0,0,0.7); }
.banner-nav-btn.prev { left: 15px; }
.banner-nav-btn.next { right: 15px; }
.banner-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s; }
.dot.active { background: #fff; width: 25px; border-radius: 5px; }

/* Store Menu */
.menu-container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; min-height: 50vh; }
.category-section { margin-bottom: 3.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; border-bottom: 2px solid var(--accent); padding-bottom: 5px;}
.section-title { font-family: 'Anton SC', Impact, sans-serif; text-transform: uppercase; font-size: 2.2rem; font-weight: 400; color: var(--accent); margin: 0; }
.btn-see-all { color: var(--accent); font-size: 0.9rem; font-weight: 600; text-decoration: none; text-transform: uppercase; padding-bottom:5px; cursor: pointer;}
.btn-see-all:hover { text-decoration: underline; }

/* Botão Voltar */
.btn-voltar { display: inline-flex; align-items: center; gap: 8px; color: var(--text-main); font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; font-size: 1rem; cursor: pointer; background: var(--bg-surface); padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border); transition: 0.2s;}
.btn-voltar:hover { background: var(--bg-surface-hover); }

.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel { display: flex; overflow-x: auto; gap: 1.5rem; padding-bottom: 1rem; padding-top: 0.5rem; scrollbar-width: none; scroll-behavior: smooth; flex: 1; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 50%; font-size: 1.8rem; color: var(--accent); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* Product Card */
.product-card { flex: 0 0 280px; scroll-snap-align: start; background: var(--bg-main); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 10px var(--shadow); position: relative; cursor:pointer; }
.img-wrapper { position: relative; width: 100%; height: 220px; background: var(--bg-surface); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; z-index: 2; }
.product-info { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-title { font-family: 'Anton SC', sans-serif; text-transform: uppercase; font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-main); line-height: 1.2; }
.product-desc { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; flex: 1; }
.product-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price-wrapper { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;}
.product-price { color: var(--accent); font-weight: 700; font-size: 1.3rem; }
.product-price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.95rem; }
.btn-add-plus { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 1.8rem; cursor: pointer; flex-shrink:0;}

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s; padding: 1rem; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-main); width: 100%; max-width: 480px; border-radius: 12px; overflow: hidden; position: relative; max-height: 90vh; display: flex; flex-direction: column; }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 2rem; background: rgba(0,0,0,0.5); color: white; width: 35px; height: 35px; border-radius: 50%; border: none; cursor: pointer; z-index: 10; display:flex; justify-content:center; align-items:center; padding-bottom:4px;}
.modal-img { width: 100%; height: 220px; object-fit: contain; padding: 1rem; background: var(--bg-surface);}
.modal-info { padding: 1.5rem; overflow-y: auto; }
.price-wrapper-modal { display: flex; align-items: baseline; gap: 10px; margin: 1rem 0; }
.modal-price { font-size: 1.8rem; color: var(--accent); font-weight: bold; }
.modal-price-old { text-decoration: line-through; color: var(--text-muted); font-size: 1.2rem; font-weight: 500; }

.ficha-title { font-size: 0.95rem; font-family: 'Anton SC', sans-serif; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.ficha-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.ficha-list { font-size: 0.85rem; color: var(--text-main); padding-left: 0; list-style-type: none; line-height: 1.5; margin-bottom: 1.5rem;}
.ficha-list li { padding-bottom: 6px; border-bottom: 1px dashed var(--border); margin-bottom: 6px; }
.ficha-list li:last-child { border-bottom: none; }
.ficha-list strong { color: var(--text-muted); min-width: 130px; display: inline-block; }

.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; align-items:stretch; position: sticky; bottom: -1.5rem; background: var(--bg-main); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 -10px 10px var(--bg-main);}
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 50px; background: var(--bg-main-alt); }
.qty-selector button { background: none; border: none; font-size: 1.4rem; padding: 0 1.2rem; cursor: pointer; color: var(--text-main);}
.qty-selector span { padding: 0 0.5rem; font-weight: bold; font-size: 1.1rem;}

/* Cart Sidebar */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: flex-end; z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s; }
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-panel { background: var(--bg-main); width: 100%; max-width: 420px; height: 100%; display: flex; flex-direction: column; transform: translateX(100%); transition: 0.3s; }
.cart-overlay.active .cart-panel { transform: translateX(0); }
.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem;}
.cart-item-title { font-weight: 600; font-family: 'Anton SC', sans-serif; text-transform:uppercase;}
.cart-item-price { color: var(--accent); font-weight: bold; }
.cart-item-remove { color: #ef4444; background: none; border: none; cursor: pointer; font-size: 0.85rem; text-decoration: underline;}
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); background: var(--bg-main-alt); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.95rem; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.4rem; font-weight: bold; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* Formulários */
.form-group label { display: block; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--text-muted); font-weight: 500;}
.form-group input, .form-group textarea { width: 100%; padding: 0.9rem; background: var(--bg-main); border: 1px solid var(--border); color: var(--text-main); border-radius: 8px; font-family: inherit;}
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 0.8rem 1.4rem; border-radius: 50px; font-weight: 600; cursor: pointer; font-size: 0.95rem; transition:0.2s;}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border); padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition:0.2s;}
.btn-block { width: 100%; }

/* FAQ */
.faq-container { max-width: 800px; margin: 4rem auto; padding: 0 1rem; border-top: 1px solid var(--border); padding-top: 3rem; text-align: center; }
.faq-main-title { font-family: 'Anton SC', Impact, sans-serif; text-transform: uppercase; font-size: 2.2rem; color: var(--accent); margin-bottom: 2rem; }
.faq-dropdown-wrapper { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.faq-item { background: var(--bg-main-alt); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item[open] { border-color: var(--accent); box-shadow: 0 4px 12px var(--shadow); }
.faq-question { font-family: 'Anton SC', Impact, sans-serif; text-transform: uppercase; font-size: 1.15rem; color: var(--accent); padding: 1.2rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: bold; color: var(--accent); }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 1.5rem 1.2rem 1.5rem; font-size: 0.95rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1rem; }

/* Rodapé */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 3rem 1rem; margin-top: 4rem; color: var(--text-main); }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-size: 1.8rem; color: var(--accent); margin-bottom: 0.5rem; font-family: 'Anton SC', sans-serif;}
.footer-info p, .footer-copy { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.3rem; }
.footer-contact h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-phone { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }

/* Floating Controls & Nav */
.floating-controls { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 90; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: none; cursor: pointer; box-shadow: 0 4px 15px var(--shadow); transition: 0.3s;}
.theme-btn { background: var(--bg-main); color: var(--text-main); font-size: 1.3rem; border: 1px solid var(--border); }
.wa-btn { background: #25D366; }

.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    z-index: 100; padding: 8px 10px; justify-content: space-between; align-items:flex-end;
    padding-bottom: env(safe-area-inset-bottom, 10px);
    box-shadow: 0 -2px 10px var(--shadow);
}

@media(max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
    .floating-controls { bottom: 85px; right: 15px; }
    .header-container { padding: 0.5rem 1rem; flex-wrap: nowrap; gap: 10px; align-items: center; }
    .header-left { flex: 0 0 auto; }
    .logo { height: 44px; }
    .header-search { flex: 1; min-width: 100px; margin: 0; padding: 0.35rem 0.8rem; }
    .header-right { flex: 0 0 auto; gap: 0;}
    
    .banner-carousel-container { height: 220px; border-radius: 12px; }
    .banner-slide { padding: 1.5rem 2rem; }
    .banner-slide h2 { font-size: 1.6rem; }
    .banner-slide p { font-size: 0.85rem; margin-bottom: 1rem; }
    .banner-btn { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
    .banner-nav-btn { width: 32px; height: 32px; font-size: 1rem; }
}

@media(max-width: 768px) {
    .product-card { flex: 0 0 240px; }
    .carousel-btn { display: flex !important; width: 35px; height: 35px; font-size: 1.5rem; }
    .carousel-btn.prev { left: -10px; }
    .carousel-btn.next { right: -10px; }
    
    /* Ajuste da lista da ficha no mobile */
    .ficha-list strong { min-width: auto; display: block; color: var(--accent); margin-bottom: 2px;}
}
