/* =================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ================================================================= */
:root {
    --primary: #FFC107;
    --primary-dark: #FFB300;
    --dark: #1A1A1A;
    --gray-text: #666;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --danger: #FF4757;
    --success: #2ED573;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--light-bg); color: var(--dark); -webkit-font-smoothing: antialiased; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =================================================================
   2. HEADER E NAVEGAÇÃO
   ================================================================= */
.top-banner { 
    background: var(--dark); color: var(--white); font-size: 0.85rem; 
    padding: 10px 0; border-bottom: 1px solid #333;
    position: sticky; top: 0; z-index: 1100;
    height: 40px; display: flex; align-items: center;
}
.banner-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.shipping-info i { color: var(--primary); margin-right: 8px; }
.rules-btn { background: none; border: none; color: #BBB; cursor: pointer; font-size: 0.75rem; font-weight: 600; transition: 0.3s; }
.rules-btn:hover { color: var(--white); }

.rules-content {
    background: #2a2a2a; overflow: hidden; max-height: 0;
    transition: max-height 0.3s ease; 
    position: -webkit-sticky; position: sticky; top: 40px; 
    z-index: 1090; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.rules-content.show { max-height: 150px; }
.rules-content ul { padding: 15px 0; list-style: none; color: #ddd; font-size: 0.8rem; text-align: center; }
.rules-content li { margin-bottom: 5px; }

header { 
    background: var(--dark); padding: 15px 0; 
    box-shadow: var(--shadow-sm); position: relative; z-index: 100; 
}
.header-flex { display: flex; justify-content: center; align-items: center; }
.logo img { height: 90px; width: auto; display: block; }

.category-nav {
    background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0; border-bottom: 1px solid #eee;
    position: -webkit-sticky; position: sticky; top: 40px; 
    z-index: 1050; transition: top 0.3s ease; 
}
.nav-flex-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 15px; position: relative; }

.nav-scroll-area { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px; flex: 1; align-items: center; }
.nav-scroll-area::-webkit-scrollbar { display: none; }

.nav-btn {
    background: #f0f0f0; border: none; padding: 8px 16px; border-radius: 30px;
    font-weight: 600; color: #555; cursor: pointer; white-space: nowrap;
    transition: 0.3s; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; height: 36px;
}
.nav-btn:hover { background: #e0e0e0; }
.nav-btn.active { background: var(--dark); color: var(--primary); }
.nav-btn.active i { color: var(--primary); }

.mobile-menu-trigger {
    background: var(--white); border: none; box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    padding: 0 20px; border-radius: 50px; font-weight: 700; color: var(--dark);
    cursor: pointer; font-size: 0.9rem; display: none; align-items: center; 
    gap: 10px; flex: 1; height: 42px; transition: all 0.2s ease;
}
.mobile-menu-trigger:active { transform: scale(0.97); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.mobile-menu-trigger i { color: var(--primary-dark); font-size: 1.1rem; }

.mobile-menu-dropdown {
    position: absolute; top: 100%; left: 0; width: 100%; background: white; 
    border-top: 1px solid #eee; box-shadow: 0 15px 30px rgba(0,0,0,0.15); z-index: 2000;
    display: none; flex-direction: column; padding: 5px 0; border-radius: 0 0 15px 15px; 
    animation: slideDown 0.2s ease forwards;
}
.mobile-menu-dropdown button {
    background: white; border: none; width: 100%; padding: 15px 20px;
    text-align: left; font-size: 0.95rem; color: #444; font-weight: 600;
    border-bottom: 1px solid #f5f5f5; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s;
}
.mobile-menu-dropdown button:hover { background: #f9f9f9; color: var(--dark); padding-left: 25px; }
.mobile-menu-dropdown button i { color: #999; width: 20px; text-align: center; }

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1045; display: none;
    backdrop-filter: blur(2px); animation: fadeIn 0.3s forwards;
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Carrinho Fixo Topo */
.cart-trigger { 
    display: flex; align-items: center; gap: 8px; cursor: pointer; 
    padding: 6px 14px; border-radius: 50px; transition: 0.2s; border: 1px solid #eee;
    background: var(--dark); color: white; flex-shrink: 0; height: 38px;
}
.cart-trigger:hover { background: #333; transform: scale(1.02); }
.bag-icon { position: relative; font-size: 1.1rem; color: var(--primary); }
.cart-badge { 
    position: absolute; top: -6px; right: -8px; background: var(--danger); color: white;
    font-size: 0.65rem; font-weight: 800; height: 16px; width: 16px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--dark);
}
.cart-label { font-weight: 700; font-size: 0.85rem; color: var(--white); }

/* --- VITRINE HOME --- */
#main-view { 
    padding-top: 40px; 
    padding-bottom: 80px; 
}
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 30px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 40px; height: 4px; background: var(--primary); border-radius: 2px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.product-card { 
    background: var(--white); border-radius: var(--radius); overflow: hidden; 
    transition: 0.3s; border: 1px solid transparent; display: flex; flex-direction: column; height: 100%; position: relative; 
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #eee; }

.card-image { 
    height: 240px; overflow: hidden; position: relative; cursor: pointer; background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: 0.5s; }
.product-card:hover .card-image img { transform: scale(1.08); }

.card-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-brand { color: #999; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 1rem; font-weight: 700; margin: 5px 0 10px; color: var(--dark); cursor: pointer; }

/* Preços da Vitrine */
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 15px; }
.old-price { font-size: 0.85rem; color: #999; text-decoration: line-through; margin-bottom: 2px; font-weight: 600; }
.discount-badge {
    position: absolute; top: 15px; right: 15px; background: var(--danger); color: white;
    font-size: 0.7rem; font-weight: 800; padding: 5px 10px; border-radius: 4px;
    z-index: 10; box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3); text-transform: uppercase;
}

.price-row-home { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.card-price-value { font-size: 1.15rem; font-weight: 800; color: var(--dark); }
.card-price-tag { font-size: 0.75rem; color: #28a745 !important; font-weight: 700; white-space: nowrap; }
.price-installments { font-size: 0.75rem; color: #666; margin-top: 0; line-height: 1.2; }
.price-container { margin-bottom: 20px; }

.btn-card-action { 
    margin-top: auto; width: 100%; padding: 12px; border: 2px solid var(--dark); 
    background: transparent; color: var(--dark); font-weight: 700; border-radius: 8px; 
    cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; 
}
.btn-card-action:hover { background: var(--dark); color: var(--white); }

/* =================================================================
   3. MODAL DE DETALHES DO PRODUTO
   ================================================================= */
.details-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; animation: fadeIn 0.3s forwards; }
.details-modal { background: var(--white); width: 1000px; max-width: 100%; max-height: 90vh; border-radius: 20px; overflow-y: auto; position: relative; box-shadow: var(--shadow-md); }
.close-modal { position: absolute; top: 20px; right: 20px; background: #f0f0f0; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: 0.2s; z-index: 10; }
.close-modal:hover { background: #e0e0e0; transform: rotate(90deg); }

.details-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }

/* CONTAINER DA GALERIA: COLUNA */
.product-gallery { 
    padding: 10px; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    width: 100%;
}

.main-image-container { 
    width: 100%; 
    height: 320px; 
    position: relative; 
    overflow: hidden; 
    cursor: crosshair; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 0;
    flex-shrink: 0; 
}

/* Painel de Infos */
.product-info-panel { padding: 20px 30px; overflow-y: auto; }
.brand-badge { background: var(--dark); color: var(--white); padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border-radius: 4px; text-transform: uppercase; }
.product-info-panel h1 { font-size: 2rem; margin: 15px 0 10px; line-height: 1.1; }

.price-box { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 4px; }
.description { color: var(--gray-text); line-height: 1.4; margin-bottom: 15px; font-size: 0.9rem; }

.selectors-area { margin-bottom: 30px; }
.selector-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; color: #999; }
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }

/* Botões Pílula (Cores e Tamanhos) */
.color-pill, .size-pill { 
    padding: 8px 16px; border: 1px solid #ddd; border-radius: 50px; cursor: pointer; 
    font-size: 0.9rem; transition: 0.2s; background: white; text-align: center;
}
.color-pill:hover, .size-pill:hover { border-color: var(--dark); }
.color-pill.selected, .size-pill.selected { 
    background: var(--dark); color: white; border-color: var(--dark); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

/* Tamanhos específicos */
.size-options { display: flex; gap: 10px; margin-bottom: 5px; }
.size-pill { flex: 1; border-radius: 8px; }
.size-hint { font-size: 0.8rem; margin-top: 5px; margin-bottom: 15px; display: block; }
.size-hint i { margin-right: 4px; }

/* DROPDOWN DESKTOP STYLE */
.desktop-select {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px;
    font-size: 0.95rem; color: var(--dark); background-color: #fff; cursor: pointer;
    outline: none; font-family: 'Inter', sans-serif; appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto;
}

.action-row { display: flex; gap: 15px; align-items: center; margin-bottom: 30px; }
.qty-control { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; width: fit-content; }
.qty-control button { width: 40px; height: 40px; background: white; border: none; cursor: pointer; font-size: 1.1rem; transition: 0.2s; }
.qty-control button:hover { background: #f0f0f0; }
.qty-control input { width: 40px; text-align: center; border: none; font-weight: 700; font-size: 1rem; color: var(--dark); }

.add-to-cart-btn { 
    width: 100%; padding: 15px; background: var(--primary); color: var(--dark); 
    border: none; border-radius: var(--radius); font-weight: 800; font-size: 0.95rem; 
    cursor: pointer; transition: 0.3s; display: flex; justify-content: center; 
    align-items: center; gap: 10px; letter-spacing: 0.5px; white-space: nowrap; 
}
.add-to-cart-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4); }

.specs-area { margin-top: 30px; border-top: 1px solid #eee; padding-top: 30px; }
.specs-area h3 { font-size: 1rem; margin-bottom: 15px; }
.specs-list { list-style: none; }
.specs-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 0.9rem; }
.specs-list li span:first-child { color: #888; }
.specs-list li span:last-child { font-weight: 600; color: var(--dark); }
.obs-discreta {
    display: block; font-size: 0.7rem; color: #999; margin-top: 15px;
    font-style: italic; line-height: 1.4; font-weight: 400;
}

/* =================================================================
   4. GALERIA HÍBRIDA (Mobile Swipe / Desktop Zoom)
   ================================================================= */

/* --- 1. REMOVE TEXTOS ANTIGOS (GLOBAL) --- */
.desktop-msg, .mobile-msg { display: none !important; }

/* --- Mensagens de Ajuda (Hints) --- */
.zoom-hint {
    text-align: center; color: #999; font-size: 0.75rem;
    margin-top: 5px; margin-bottom: 0; width: 100%; display: block;
}

/* --- Estrutura Básica da Galeria (Mobile Default) --- */
.gallery-scroll {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    width: 100%; height: 100%; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; cursor: grab; padding: 0; margin: 0;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.gallery-scroll img {
    flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain;
    scroll-snap-align: start; display: block;
}

/* --- Comportamento Desktop (Zoom e Clique) --- */
@media (min-width: 769px) {
    #detailColors { display: none !important; } 
    #detailColorsDesktop { display: block; } 

    .gallery-scroll {
        display: block !important; overflow: hidden !important; 
        position: relative; cursor: crosshair;
    }
    .gallery-scroll img {
        display: none !important; position: absolute;
        top: 0; left: 0; transition: transform 0.1s ease-out;
    }
    .gallery-scroll img.active-desktop {
        display: block !important; position: relative; z-index: 10;
    }
}

/* --- Comportamento Mobile (Swipe e Auto-Scroll) --- */
@media (max-width: 768px) {
    #detailColorsDesktop { display: none; }       
    
    #detailColors { 
        display: flex !important; flex-wrap: nowrap !important;
        overflow-x: auto; gap: 10px; padding: 5px 0;
        -webkit-overflow-scrolling: touch; justify-content: flex-start;
        scrollbar-width: none;
    }
    #detailColors::-webkit-scrollbar { display: none; }
    .color-pill { flex: 0 0 auto; min-width: 80px; }

    .nav-scroll-area.desktop-only { display: none !important; }
    .mobile-menu-trigger.mobile-only { display: flex !important; }
    .mobile-menu-dropdown.active { display: flex; }
    .menu-overlay.active { display: block; }

    .details-grid { grid-template-columns: 1fr; } 
    .main-image-container { height: 280px; }
    .product-gallery { padding: 10px; }
    .product-info-panel { padding: 20px; display: flex; flex-direction: column; }
    
    .selectors-area { order: -1; margin-top: 10px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
    
    .zoom-hint { display: block !important; margin-top: 10px; }
    .zoom-hint::after {
        content: "arraste para o lado para ver as opções";
        display: block; text-align: center; font-size: 0.8rem;
        color: #888; font-weight: 500; background: #fafafa;
        padding: 5px; border-radius: 4px;
    }
}

/* Footer e Outros */
footer { text-align: center; padding: 30px; background: var(--dark); color: #666; font-size: 0.85rem; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(-5px);} to {opacity: 1; transform: translateY(0);} }

/* Carrinho Lateral Styles */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2999; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(2px); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: -450px; width: 400px; max-width: 100%; height: 100vh; background: var(--white); z-index: 3000; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px 30px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 30px; }
.empty-msg { text-align: center; color: #999; margin-top: 50px; }
.cart-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f5f5f5; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.item-details { flex: 1; }
.item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.2; }
.item-meta { font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.item-price { font-weight: 700; font-size: 0.9rem; }
.item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.mini-qty { border: 1px solid #eee; border-radius: 4px; display: flex; }
.mini-qty button { width: 25px; height: 25px; background: none; border: none; cursor: pointer; }
.mini-qty input { width: 30px; text-align: center; border: none; font-size: 0.8rem; font-weight: 700; }
.remove-btn { color: #ddd; cursor: pointer; font-size: 0.9rem; } .remove-btn:hover { color: var(--danger); }
.cart-footer { padding: 30px; background: #fafafa; border-top: 1px solid #eee; }
.total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.checkout-btn { width: 100%; padding: 18px; background: var(--success); color: white; border: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; gap: 8px; }
.checkout-btn:hover { background: #26af61; transform: translateY(-2px); }

/* WPP Float */
.wpp-float {
    position: fixed; bottom: 20px; right: 20px; background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; text-align: center; font-size: 30px;
    box-shadow: 2px 2px 3px #999; z-index: 1000; display: flex; align-items: center;
    justify-content: center; text-decoration: none; transition: background 0.3s;
}
.wpp-float:hover { background-color: #128c7e; }

/* Modal Checkout Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 3500; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--white); padding: 30px; border-radius: 20px; width: 90%; max-width: 500px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: translateY(20px); transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content h3 { margin-top: 0; margin-bottom: 10px; color: var(--dark); font-size: 1.5rem; font-weight: 800; }
.modal-content p { color: #666; font-size: 0.95rem; margin-bottom: 25px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.85rem; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; }
.input-group input { width: 100%; padding: 14px; border: 2px solid #eee; border-radius: 10px; font-size: 1rem; color: var(--dark); transition: 0.3s; outline: none; background: #fafafa; }
.input-group input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15); }
.modal-buttons { display: flex; width: 100%; margin-top: 30px; }
.btn-confirmar { background-color: #25D366; color: white; border: none; padding: 14px; border-radius: 12px; cursor: pointer; font-weight: 800; transition: 0.2s; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-confirmar:hover { background-color: #1ebc57; transform: translateY(-2px); }
.btn-confirmar:disabled { background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.frete-badge { background-color: #25D366; color: white; font-weight: 800; font-size: 0.85rem; border-radius: 10px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2); animation: popIn 0.3s ease; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-checkout { position: absolute; top: 10px; right: 15px; background: white; border: none; font-size: 1.5rem; color: #999; cursor: pointer; transition: 0.2s; z-index: 100; padding: 5px 10px; border-radius: 50%; line-height: 1; }
.close-checkout:hover { color: var(--danger); background: #f0f0f0; transform: scale(1.1); }
.toggle-container { display: flex; background: #f0f0f0; border-radius: 50px; padding: 4px; margin-bottom: 20px; position: relative; border: 1px solid #e0e0e0; }
.toggle-container input[type="radio"] { display: none; }
.toggle-btn { flex: 1; text-align: center; padding: 10px; font-size: 0.95rem; font-weight: 500; cursor: pointer; border-radius: 40px; color: #666; transition: all 0.3s ease; user-select: none; display: flex; align-items: center; justify-content: center; gap: 6px; }
.toggle-container input[type="radio"]:checked + .toggle-btn { background-color: #000; color: #fff; font-weight: 700; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.toggle-btn i { font-size: 1rem; }

.checkout-header { margin-bottom: 25px; }
.step-line { width: 60px; height: 3px; background: #f0f0f0; margin: 0 10px; border-radius: 2px; }
.checkout-step { animation: fadeInSlide 0.4s ease forwards; }
@keyframes fadeInSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.modal-buttons button { font-size: 0.95rem; }

/* Estilos para a Lista de Componentes do Kit */
.kit-components-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

.kit-components-box h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.kit-components-box ul {
    padding-left: 20px;
    margin: 0;
    color: #555;
}

.kit-components-box li {
    margin-bottom: 4px;
}

/* Estilo para Seleção de Loja */
.store-option-card {
    margin-bottom: 10px;
}

.store-option-card input {
    display: none; 
}

.store-option-card label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
}

.store-option-card label i {
    font-size: 1.2rem;
    color: #999;
}

.store-option-card label div {
    display: flex;
    flex-direction: column;
}

.store-option-card label small {
    color: #666;
    font-size: 0.8rem;
}

.store-option-card input:checked + label {
    border-color: var(--primary);
    background-color: #fff8e1;
}

.store-option-card input:checked + label i {
    color: var(--primary-dark);
}

/* =================================================================
   ESTILO DO SELETOR DE KITS (SCROLL HORIZONTAL)
   ================================================================= */
.kit-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 2px 15px 2px;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    margin-bottom: 10px;
}

.kit-scroll-container::-webkit-scrollbar {
    display: none;
}

.kit-option-card {
    flex: 0 0 auto;
    min-width: 100px;
    height: 50px;     
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 15px;  
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.kit-option-card span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    display: block;
}

.kit-option-card small {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
    display: block;
}

.kit-option-card.selected {
    border-color: var(--dark);
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.kit-option-card.selected span {
    color: var(--primary); 
}

.kit-option-card.selected small {
    color: #ddd;
}

.kit-components-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

.kit-components-box h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.kit-components-box ul {
    padding-left: 20px;
    margin: 0;
    color: #555;
}

.kit-components-box li {
    margin-bottom: 6px;
}

/* =========================================
   CONTROLE DO TEXTO "ARRASTE" (Kits)
   ========================================= */
.mobile-hint {
    display: block;
}

@media (min-width: 769px) {
    .mobile-hint {
        display: none !important;
    }
    .kit-scroll-container {
        cursor: default; 
    }
}

/* =========================================
   BOTÕES DE SUBCATEGORIA / FILTRO DE ARO
   ========================================= */
.sub-nav-scroll { 
    display: flex; 
    gap: 8px;
    flex-wrap: wrap; 
    padding-bottom: 5px; 
}
.sub-btn { 
    padding: 8px 14px; 
    border: 1px solid #ddd; 
    border-radius: 30px; 
    background: #fff; 
    color: #666; 
    font-size: 0.85rem; 
    font-weight: 600; 
    cursor: pointer; 
    white-space: nowrap; 
    transition: 0.2s; 
}
.sub-btn.active { 
    background: var(--dark); 
    color: var(--primary); 
    border-color: var(--dark); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

/* =========================================
   AJUSTE DE PROPORÇÕES E MARGENS LATERAIS (MOBILE)
   ========================================= */

/* Ajustes para Tablets e Celulares maiores */
@media (max-width: 768px) {
    /* Aumenta a margem lateral de todo o site */
    .container { 
        padding-left: 24px; 
        padding-right: 24px; 
    }
    
    .card-image { 
        height: 180px; 
    }
    .card-info { 
        padding: 15px 20px; /* Mais respiro dentro do cartão */
    }
    .nav-flex-wrapper {
        gap: 10px;
    }
    .section-title { 
        font-size: 1.4rem; 
        margin-bottom: 20px; 
    }
    .product-grid { 
        gap: 15px; 
    }
}

@media (max-width: 600px) { 
    .cart-sidebar { width: 100%; } 
}

/* Ajustes finos para Celulares menores */
@media (max-width: 480px) { 
    .add-to-cart-btn { padding: 12px; font-size: 0.85rem; } 
    
    /* Iguala a margem do menu com a do resto do site */
    .category-nav .container { padding-left: 24px; padding-right: 24px; } 
    
    /* Traz mais harmonia (margem) para o texto dentro do modal do produto */
    .product-info-panel { padding: 20px 24px; }
    
    /* Aumenta a margem de leitura dentro do carrinho */
    .cart-header, .cart-body, .cart-footer { padding-left: 24px; padding-right: 24px; }

    .cart-label { display: none; }
    .cart-trigger { padding: 8px; border-radius: 50%; width: 38px; justify-content: center; }
    .bag-icon { margin: 0; }
}

/* =========================================
   BOTÃO "VER TABELA DE KITS" (DESIGN MODERNO E MENOR)
   ========================================= */
.btn-kit-info {
    /* Fundo sólido e borda para dar cara de botão */
    background: #f5f5f5; /* Cinza bem clarinho */
    border: 1px solid #e0e0e0; /* Borda sutil */
    color: var(--dark); /* Texto preto */
    
    /* Fonte diminuída e peso ajustado */
    font-size: 0.72rem; /* Antes era 0.8rem */
    font-weight: 700;
    
    /* Espaçamento e formato */
    padding: 6px 12px;
    border-radius: 8px; /* Cantos arredondados modernos */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-kit-info:hover {
    /* Feedback visual moderno no hover */
    background: #e0e0e0; /* Escurece o cinza sutilmente */
    border-color: #d0d0d0;
    transform: translateY(-1px); /* Levanta de leve */
}

/* Garante que o ícone acompanhe a cor do texto */
.btn-kit-info i {
    font-size: 0.9rem;
    color: #888; /* Ícone um pouco mais discreto */
}

.btn-kit-info:hover i {
    color: var(--dark); /* Ícone fica preto no hover */
}