/*
Theme Name: ClickTech Online
Theme URI: https://tudominio.com
Author: Tu Nombre
Author URI: https://tudominio.com
Description: Tema personalizado oficial para ClickTech Online.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: clicktechonline
*/

/* 
  IMPORTANTE: Pega aquí TODO tu CSS (el archivo completo que tienes en tu style.css estático).
  Asegúrate de incluir el CSS del producto, del carrito, del checkout, etc.
*/

/* A partir de aquí, pega todo el CSS que tenías en tu archivo original. */

/* Variables y Reset */
:root {
    --primary-orange: #ff6b00;
    --dark-blue: #1a202c;
    --text-gray: #718096;
    --bg-gray: #f8f9fa;
    --border-color: #e2e8f0;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }
body { background-color: #ffffff; color: var(--dark-blue); overflow-x: hidden; font-size: 14px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.text-orange { color: var(--primary-orange) !important; }
.ml-auto { margin-left: auto; }
.font-bold { font-weight: 700; }

/* CONTENEDOR MAESTRO AL 95% */
.container-95 { width: 95%; max-width: 1900px; margin: 0 auto; }

/* =========================================
   PARTE COMÚN (Header, Footer, Pre-footer)
   ========================================= */

/* --- 1. BARRA DE ANUNCIOS (MÁS FINA) --- */
.promo-bar { 
    background: #1a202c; 
    color: white; 
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px solid #2d3748; 
    width: 100%; 
}
.promo-content { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.promo-text { display: flex; align-items: center; gap: 6px; letter-spacing: 0.3px; }
.promo-text strong { font-weight: 700; color: #fff; }
.promo-text .text-orange { font-weight: 700; margin-left: 5px; }
.promo-actions { display: flex; align-items: center; gap: 8px; }
.btn-promo-buy { 
    background-color: var(--primary-orange); color: white; padding: 4px 10px; border-radius: 3px; 
    font-weight: 700; display: flex; align-items: center; gap: 6px; transition: all 0.2s; font-size: 10px; 
}
.btn-promo-buy:hover { background-color: #e65c00; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(255, 107, 0, 0.3); }
.btn-promo-buy i { font-size: 9px; }
.btn-promo-close { 
    background-color: transparent; border: 1px solid var(--primary-orange); color: var(--primary-orange); 
    width: 22px; height: 22px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 10px;
}
.btn-promo-close:hover { background-color: var(--primary-orange); color: white; }

/* --- 2. TOP BAR --- */
.top-bar { background-color: #f8fafc; color: #4a5568; font-size: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.top-bar .container-95 { display: flex; justify-content: space-between; align-items: center; }
.top-right { display: flex; gap: 20px; }
.top-bar i { margin-right: 5px; color: var(--primary-orange); }

/* --- 3. HEADER STICKY --- */
.main-header { 
    padding: 20px 0; border-bottom: 1px solid var(--border-color); 
    position: sticky; top: 0; z-index: 999; background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon { width: 40px; height: 40px; background: var(--primary-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold; font-style: italic; }
.logo-text h2 { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.logo-text span { font-size: 11px; color: var(--text-gray); letter-spacing: 2px; font-weight: 600; }
.search-bar { display: flex; flex: 1; max-width: 800px; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; background: white; height: 45px; }
.search-bar input { flex: 1; padding: 0 20px; border: none; outline: none; font-size: 14px; }
.search-bar button { background-color: var(--primary-orange); color: white; border: none; padding: 0 30px; cursor: pointer; font-size: 16px; }
.search-bar button:hover { background-color: #e65c00; }
.header-icons { display: flex; gap: 25px; }
.header-icons a { display: flex; flex-direction: column; align-items: center; color: var(--dark-blue); font-size: 12px; font-weight: 600; }
.header-icons i { font-size: 22px; margin-bottom: 4px; color: #4a5568; }
.cart-wrapper { position: relative; }
.badge { position: absolute; top: -8px; right: -10px; background: var(--primary-orange); color: white; font-size: 10px; font-weight: bold; padding: 2px 5px; border-radius: 10px; }

/* --- NAVEGACIÓN --- */
.main-nav { border-bottom: 1px solid var(--border-color); position: sticky; top: 85px; z-index: 998; background-color: #ffffff; }
.nav-list { display: flex; align-items: center; gap: 25px; padding: 0; font-size: 13px; font-weight: 600; }
.nav-list li { cursor: pointer; display: flex; align-items: center; gap: 6px; transition: color 0.2s; padding: 15px 0; }
.nav-list li:hover { color: var(--primary-orange); }
.nav-list i.fa-chevron-down { font-size: 10px; color: var(--text-gray); }
.btn-nav-categories { background-color: transparent; color: var(--dark-blue) !important; display: flex; align-items: center; gap: 10px; width: 220px; border-right: 1px solid var(--border-color); height: 100%; padding-right: 20px !important; }

/* --- PRE-FOOTER Y FOOTER --- */
.pre-footer { background-color: #1a202c; border-top: 4px solid var(--primary-orange); position: relative; overflow: hidden; width: 100%; }
.pre-footer-content { display: flex; align-items: center; justify-content: space-between; min-height: 100px; width: 100%; }
.pf-logo { display: flex; align-items: center; gap: 12px; }
.pf-logo .logo-text h2 { color: white; font-size: 22px; }
.pf-logo .logo-text span { color: #a0aec0; font-size: 11px; letter-spacing: 2px; }
.pf-tagline { color: #cbd5e0; font-size: 12px; margin-top: 4px; font-weight: 500; }
.pf-features { display: flex; gap: 30px; margin: 0 20px; }
.pf-item { display: flex; align-items: center; gap: 10px; color: white; }
.pf-item i { font-size: 26px; color: var(--primary-orange); }
.pf-item h4 { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.pf-item p { font-size: 11px; color: #a0aec0; }
.pf-whatsapp-block { background-color: var(--primary-orange); height: 100%; min-height: 100px; padding: 0 40px; display: flex; align-items: center; gap: 15px; color: white; margin-right: -2.5vw; padding-right: calc(2.5vw + 40px); clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%); }
.pf-whatsapp-block .pf-wa-icon { background: rgba(255, 255, 255, 0.2); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pf-whatsapp-block .pf-wa-text h4 { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.pf-whatsapp-block .pf-wa-text p { font-size: 12px; color: rgba(255, 255, 255, 0.9); }
.site-footer { background-color: #f8fafc; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding: 40px 0; }
.footer-col h4 { font-size: 15px; font-weight: 800; margin-bottom: 15px; color: var(--dark-blue); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--text-gray); }
.footer-col ul li a:hover { color: var(--primary-orange); }
.footer-desc { font-size: 13px; color: var(--text-gray); line-height: 1.5; margin-bottom: 20px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 35px; height: 35px; border: 1px solid #cbd5e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dark-blue); transition: 0.2s; }
.social-icons a:hover { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }
.newsletter-col p { font-size: 13px; color: var(--text-gray); margin-bottom: 15px; }
.newsletter-form { display: flex; margin-bottom: 20px; border: 1px solid #cbd5e0; border-radius: 5px; overflow: hidden; background: white; }
.newsletter-form input { flex: 1; padding: 12px 15px; border: none; outline: none; font-size: 13px; }
.newsletter-form button { background: var(--primary-orange); color: white; border: none; padding: 0 20px; font-weight: 600; cursor: pointer; font-size: 13px; }
.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 15px; }
.payment-methods img { height: 30px; width: auto; object-fit: contain; border-radius: 4px; transition: transform 0.2s ease, opacity 0.2s ease; opacity: 0.9; cursor: pointer; background-color: white; padding: 2px; }
.payment-methods img:hover { transform: translateY(-2px); opacity: 1; }
.footer-contact-bar { background-color: #ffffff; border-top: 1px solid var(--border-color); padding: 30px 0; text-align: center; }
.fc-text h3 { font-size: 20px; font-weight: 800; color: var(--dark-blue); margin-bottom: 10px; }
.fc-email { display: inline-block; font-size: 16px; font-weight: 600; color: var(--primary-orange); margin-bottom: 5px; transition: color 0.2s; }
.fc-email:hover { color: #e65c00; text-decoration: underline; }
.fc-email i { margin-right: 5px; }
.fc-address { font-size: 14px; color: var(--text-gray); }
.footer-copyright { background-color: #1a202c; color: #a0aec0; padding: 15px 0; text-align: center; font-size: 12px; }

/* --- BOTÓN BACK TO TOP --- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary-orange); color: white; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 9999; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: #e65c00; transform: translateY(-5px); box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6); }

/* =========================================
   ESTILOS DE LA HOME (index.html)
   ========================================= */

.product-grid { display: grid; gap: 15px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); } 

.product-card { border: 1px solid var(--border-color); border-radius: 10px; padding: 15px; display: flex; flex-direction: column; background: white; transition: 0.3s; position: relative; }
.product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.card-orange-border { border: 1.5px solid #ffccb3; }
.prod-actions { position: absolute; top: 15px; right: 15px; display: flex; gap: 10px; z-index: 2; }
.prod-actions i { color: #a0aec0; cursor: pointer; font-size: 16px; transition: color 0.2s; }
.prod-actions i:hover { color: var(--primary-orange); }
.prod-actions .wishlist:hover { color: #e53e3e; }
.prod-top-badges { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; padding-right: 60px; }
.badge-tag { font-size: 9px; font-weight: 700; padding: 3px 6px; border-radius: 3px; text-transform: uppercase; }
.bg-orange { background-color: var(--primary-orange); color: white; }
.bg-blue { background-color: #3b82f6; color: white; }
.bg-dark { background-color: var(--dark-blue); color: white; }
.prod-breadcrumb { font-size: 11px; color: var(--text-gray); margin-bottom: 8px; }
.product-card h3 { font-size: 14px; font-weight: 700; color: var(--dark-blue); margin-bottom: 10px; line-height: 1.4; min-height: 40px; }
.product-card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.prod-summary { font-size: 11px; color: var(--text-gray); line-height: 1.4; margin-bottom: 12px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.prod-prices { display: flex; flex-direction: column; gap: 2px; }
.prod-prices .old-price { font-size: 12px; color: var(--text-gray); text-decoration: line-through; }
.prod-prices .current-price { font-size: 20px; font-weight: 800; color: var(--primary-orange); }
.discount-badge { background: var(--primary-orange); color: white; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.prod-delivery { background-color: #f8fafc; border: 1px solid var(--border-color); border-left: 3px solid var(--primary-orange); padding: 8px 10px; font-size: 11px; color: var(--dark-blue); border-radius: 4px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.prod-delivery i { color: var(--primary-orange); font-size: 14px; }
.prod-stock { margin-bottom: 15px; }
.prod-stock span { display: block; font-size: 11px; font-weight: 600; color: var(--dark-blue); margin-bottom: 5px; }
.prod-stock i { color: var(--primary-orange); margin-right: 4px; }
.stock-bar { width: 100%; height: 4px; background-color: #e2e8f0; border-radius: 2px; overflow: hidden; }
.stock-fill { height: 100%; background-color: var(--primary-orange); border-radius: 2px; transition: background-color 0.3s ease; }
.card-buttons { display: flex; gap: 8px; margin-top: auto; }
.btn-outline { flex: 1; background: transparent; border: 1px solid #cbd5e0; color: var(--dark-blue); padding: 8px 5px; border-radius: 5px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-outline:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
.btn-orange-full { flex: 1; background: var(--primary-orange); border: 1px solid var(--primary-orange); color: white; padding: 8px 5px; border-radius: 5px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-orange-full:hover { background: #e65c00; }
.prod-refs { display: flex; flex-wrap: wrap; gap: 10px; background-color: #f8fafc; border: 1px solid var(--border-color); border-radius: 4px; padding: 6px 8px; margin-bottom: 12px; font-size: 10px; color: var(--text-gray); }
.prod-refs span { display: flex; align-items: center; white-space: nowrap; font-weight: 500; }
.prod-refs span:not(:last-child)::after { content: "•"; margin-left: 10px; color: #cbd5e0; }
.prod-brand { font-size: 11px; color: var(--text-gray); margin-bottom: 8px; font-weight: 500; }
.prod-brand span { color: var(--primary-orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.category-bar { display: flex; justify-content: space-between; padding: 20px 0; margin-bottom: 20px; gap: 15px; }
.cat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; width: 100%; cursor: pointer; transition: all 0.3s ease; border-radius: 10px; }
.cat-item:hover { background-color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transform: translateY(-3px); }
.cat-img { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; border-radius: 8px; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.cat-item:hover .cat-img img { transform: scale(1.08); }
.cat-item span { font-size: 12px; font-weight: 600; text-align: center; color: var(--dark-blue); line-height: 1.2; }
.bg-orange-light { background: #fff3e0; border-radius: 8px; width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; }
.bg-orange-light i { font-size: 32px; }

.hero-full-width { width: 100%; margin-bottom: 20px; }
.hero-image-only { width: 100%; }
.hero-image-only img { width: 100%; height: auto; display: block; object-fit: cover; }

.features-under-hero { background: white; border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.features-bar { display: flex; justify-content: space-between; align-items: center; }
.feature-item { display: flex; align-items: center; gap: 10px; }
.feature-item i { font-size: 24px; color: var(--primary-orange); }
.feature-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.feature-item p { font-size: 11px; color: var(--text-gray); }

.products-section { padding-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.section-header h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-header p { color: var(--text-gray); font-size: 13px; margin-top: 4px; }
.view-all { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.mid-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; height: 220px; }
.mb-card { border-radius: 10px; padding: 25px; display: flex; flex-direction: column; justify-content: center; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.mb-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.2)); }
.mb-card.dark-overlay::before { background: linear-gradient(to right, rgba(26,32,44,0.9), rgba(26,32,44,0.4)); }
.mb-card.flash-banner { background: var(--primary-orange); }
.mb-card.flash-banner::before { display: none; }
.mb-content { position: relative; z-index: 2; color: white; }
.mb-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #cbd5e0; margin-bottom: 5px; display: block; }
.mb-content h3 { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.mb-content p { font-size: 13px; color: #e2e8f0; margin-bottom: 15px; max-width: 80%; }
.btn-orange-small { background: var(--primary-orange); color: white; border: none; padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; width: fit-content; display: flex; align-items: center; gap: 5px; }
.btn-dark-small { background: var(--dark-blue); color: white; border: none; padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; width: fit-content; display: flex; align-items: center; gap: 5px; }

.horizontal-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 40px; }
.hb-card { height: 140px; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.hb-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.6)); }
.hb-content { position: relative; z-index: 2; }
.hb-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.hb-content p { font-size: 12px; color: var(--text-gray); margin-bottom: 10px; }
.btn-hb { font-size: 12px; font-weight: 700; color: var(--primary-orange); display: flex; align-items: center; gap: 5px; }

.bottom-banners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 40px; }
.bb-card { background: var(--dark-blue); border-radius: 10px; padding: 20px; color: white; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.bb-card img { position: absolute; right: 0; bottom: 0; width: 80px; opacity: 0.4; z-index: 1; }
.bb-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; position: relative; z-index: 2; }
.bb-card p { font-size: 11px; color: #a0aec0; margin-bottom: 15px; position: relative; z-index: 2; }
.bb-card a { font-size: 12px; font-weight: 600; color: var(--primary-orange); position: relative; z-index: 2; display: flex; align-items: center; gap: 5px; }

.brands-section { padding: 30px 0; margin-bottom: 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.brands-carousel { display: flex; justify-content: space-between; align-items: center; gap: 20px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.brands-carousel::-webkit-scrollbar { display: none; }
.brand-item { flex: 0 0 auto; width: 100px; height: 50px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; cursor: pointer; }
.brand-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-item:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* =========================================
   ESTILOS DE LA TIENDA (shop.html)
   ========================================= */

.shop-layout { display: flex; gap: 25px; padding: 40px 0; align-items: flex-start; }
.shop-sidebar { width: 15%; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; position: sticky; top: 20px; }
.widget { margin-bottom: 25px; }
.widget:last-child { margin-bottom: 0; }
.widget h4 { font-size: 15px; font-weight: 800; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.sidebar-search { display: flex; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; }
.sidebar-search input { flex: 1; padding: 10px; border: none; outline: none; font-size: 13px; }
.sidebar-search button { background: var(--primary-orange); color: white; border: none; padding: 0 15px; cursor: pointer; }
.price-range { margin-bottom: 15px; }
.slider { width: 100%; cursor: pointer; accent-color: var(--primary-orange); }
.price-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-gray); margin-top: 5px; }
.btn-filter-apply { width: 100%; background: var(--dark-blue); color: white; border: none; padding: 10px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-filter-apply:hover { background: var(--primary-orange); }
.filter-list li, .category-menu li { margin-bottom: 10px; font-size: 13px; }
.filter-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-gray); }
.filter-list span { margin-left: auto; font-size: 11px; color: #cbd5e0; }
.category-menu a { display: flex; justify-content: space-between; color: var(--text-gray); transition: 0.2s; }
.category-menu a:hover { color: var(--primary-orange); padding-left: 5px; }

.shop-main { width: 85%; }
.shop-categories-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 25px; background: #fff; padding: 15px; border-radius: 10px; border: 1px solid var(--border-color); }
.shop-cat-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.2s; }
.shop-cat-item:hover { transform: translateY(-3px); }
.shop-cat-item img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 5px; }
.shop-cat-item span { font-size: 11px; font-weight: 600; text-align: center; }
.shop-filters-row { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; padding: 15px 20px; border-radius: 10px; border: 1px solid var(--border-color); margin-bottom: 25px; }
.filter-left { display: flex; align-items: center; gap: 20px; }
.filter-label { font-size: 13px; color: var(--text-gray); }
.stock-toggle { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-right { display: flex; gap: 15px; }
.items-per-page, .sort-by { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 13px; background: white; cursor: pointer; outline: none; }
.shop-product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 30px; }
.shop-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; margin-bottom: 50px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); background: white; border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.page-btn:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
.page-btn.active { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }
.page-btn.next { width: auto; padding: 0 15px; gap: 8px; }
.page-dots { color: var(--text-gray); }
.shop-inner-brands { margin-top: 20px; margin-bottom: 50px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 30px 0; }
.shop-inner-bestsellers { margin-bottom: 20px; }

/* =========================================
   PÁGINA DEL CARRITO
   ========================================= */

.cart-page { padding: 40px 0 60px 0; }
.cart-header { margin-bottom: 30px; }
.cart-header h1 { font-size: 32px; font-weight: 800; color: var(--dark-blue); margin-bottom: 5px; }
.cart-header p { font-size: 14px; color: var(--text-gray); }

.cart-layout { display: flex; gap: 30px; align-items: flex-start; }

.cart-items-col { width: 70%; }
.cart-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.cart-table th { background: #f8fafc; padding: 15px; text-align: left; font-size: 13px; font-weight: 700; color: var(--dark-blue); border-bottom: 1px solid var(--border-color); }
.cart-table td { padding: 20px 15px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }

.product-remove { width: 40px; text-align: center; }
.remove-btn { color: #a0aec0; font-size: 16px; transition: 0.2s; }
.remove-btn:hover { color: #e53e3e; }

.product-thumbnail { width: 100px; }
.product-thumbnail img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--border-color); border-radius: 5px; padding: 5px; }

.product-name a { font-size: 15px; font-weight: 700; color: var(--dark-blue); display: block; margin-bottom: 5px; }
.product-name a:hover { color: var(--primary-orange); }
.product-meta { font-size: 12px; color: var(--text-gray); }
.product-meta span { color: var(--primary-orange); font-weight: 700; }

.product-price, .product-subtotal { font-size: 15px; font-weight: 700; color: var(--dark-blue); }
.product-subtotal { color: var(--primary-orange); }

.quantity-selector { display: flex; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; width: 110px; height: 35px; }
.quantity-selector button { width: 35px; background: #f8fafc; border: none; font-size: 16px; cursor: pointer; transition: 0.2s; }
.quantity-selector button:hover { background: #e2e8f0; }
.quantity-selector input { width: 40px; text-align: center; border: none; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); font-size: 14px; font-weight: 600; outline: none; }

.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 15px; }
.coupon-box { display: flex; gap: 10px; }
.coupon-box input { padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 13px; outline: none; width: 200px; }
.coupon-box .btn-outline { padding: 10px 20px; font-size: 13px; }
.btn-update-cart { background: transparent; border: 1px solid var(--border-color); color: var(--dark-blue); padding: 10px 20px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-update-cart:hover { border-color: var(--primary-orange); color: var(--primary-orange); }

.cart-totals-col { width: 30%; position: sticky; top: 20px; }
.cart-totals-box { background: white; border: 1px solid var(--border-color); border-radius: 10px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.cart-totals-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

.totals-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 15px; }
.shipping-row { flex-direction: column; gap: 10px; }
.shipping-options { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.shipping-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-gray); }
.total-row { border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px; font-weight: 800; font-size: 18px; }
.total-price { font-size: 24px; color: var(--primary-orange); }

.cart-checkout-btn { margin-top: 25px; }
.btn-large { width: 100%; padding: 15px; font-size: 16px; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.cart-payment-methods { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.cart-payment-methods img { height: 28px; border: 1px solid var(--border-color); border-radius: 4px; padding: 2px; background: white; transition: transform 0.2s ease; }
.cart-payment-methods img:hover { transform: translateY(-2px); }
.cart-continue-shopping { text-align: center; margin-top: 15px; }
.btn-continue { font-size: 13px; font-weight: 600; color: var(--text-gray); display: flex; align-items: center; justify-content: center; gap: 5px; transition: 0.2s; }
.btn-continue:hover { color: var(--primary-orange); }

.cross-sells-section { margin-top: 60px; }
.cross-sells-section .section-header { margin-bottom: 20px; }
.cross-sells-section .product-grid { grid-template-columns: repeat(6, 1fr); }

/* =========================================
   SISTEMA DE SEMÁFORO PARA EL STOCK
   ========================================= */

.stock-high .stock-fill { background-color: #22c55e !important; }
.stock-high i { color: #22c55e !important; }

.stock-medium .stock-fill { background-color: var(--primary-orange) !important; }
.stock-medium i { color: var(--primary-orange) !important; }

.stock-low .stock-fill { background-color: #ef4444 !important; }
.stock-low i { color: #ef4444 !important; }

/* =========================================
   MENÚ HAMBURGUESA (OFF-CANVAS)
   ========================================= */

.offcanvas-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.offcanvas-overlay.active { opacity: 1; visibility: visible; }

.offcanvas-menu {
    position: fixed; top: 0; left: -350px; width: 320px; height: 100%;
    background: white; z-index: 10001; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease; display: flex; flex-direction: column;
}
.offcanvas-menu.active { left: 0; }

.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); }
.offcanvas-header h3 { font-size: 18px; font-weight: 800; color: var(--dark-blue); }
.offcanvas-header button { background: transparent; border: none; font-size: 20px; cursor: pointer; color: var(--text-gray); transition: 0.2s; }
.offcanvas-header button:hover { color: var(--primary-orange); }

.offcanvas-list { padding: 10px 20px; overflow-y: auto; flex: 1; }
.offcanvas-list li { border-bottom: 1px solid var(--border-color); }
.offcanvas-list li a { display: flex; align-items: center; padding: 15px 0; font-size: 14px; font-weight: 600; color: var(--dark-blue); transition: 0.2s; gap: 12px; }
.offcanvas-list li a:hover { color: var(--primary-orange); padding-left: 5px; }
.offcanvas-list li a i:first-child { color: var(--text-gray); font-size: 16px; width: 20px; text-align: center; }
.offcanvas-list li a:hover i:first-child { color: var(--primary-orange); }
.offcanvas-list li a i:last-child { font-size: 10px; color: #cbd5e0; margin-left: auto; }

.offcanvas-offers-block { padding: 20px; border-top: 1px solid var(--border-color); margin-top: auto; }
.offers-highlight {
    display: flex; align-items: center; background: linear-gradient(135deg, #ff6b00, #ff8c33);
    border-radius: 10px; padding: 15px; color: white; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s; gap: 12px; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}
.offers-highlight:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5); }
.offers-highlight-icon { background: rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.offers-highlight-text { flex: 1; display: flex; flex-direction: column; }
.offers-highlight-text strong { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.offers-highlight-text span { font-size: 12px; color: rgba(255,255,255,0.9); }
.offers-highlight > i:last-child { font-size: 14px; }

/* =========================================
   MEGA MENÚ DE OFERTAS (FULL WIDTH)
   ========================================= */

.mega-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10002; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mega-menu-overlay.active { opacity: 1; visibility: visible; }

.mega-menu-offers {
    position: fixed; top: 0; left: 0; width: 100%; max-height: 90vh; background: white;
    z-index: 10003; padding: 40px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-100%); transition: transform 0.4s ease; overflow-y: auto;
}
.mega-menu-offers.active { transform: translateY(0); }

.mega-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mega-menu-header h2 { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mega-menu-header button { background: #f1f5f9; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--dark-blue); transition: 0.2s; }
.mega-menu-header button:hover { background: #e2e8f0; color: var(--primary-orange); }

/* =========================================
   PÁGINA DE PAGO (CHECKOUT)
   ========================================= */

.checkout-page { padding: 40px 0 60px 0; }
.checkout-breadcrumb { font-size: 13px; color: var(--text-gray); margin-bottom: 25px; }
.checkout-breadcrumb a { color: var(--text-gray); transition: 0.2s; }
.checkout-breadcrumb a:hover { color: var(--primary-orange); }
.checkout-breadcrumb span { color: var(--dark-blue); font-weight: 600; }

.checkout-layout { display: flex; gap: 40px; align-items: flex-start; }

.checkout-form-col { width: 80%; }
.checkout-form { background: white; border: 1px solid var(--border-color); border-radius: 10px; padding: 30px; }
.checkout-section { margin-bottom: 30px; }
.checkout-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }

.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark-blue); margin-bottom: 5px; }
.form-group input { padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 14px; outline: none; transition: border 0.2s; }
.form-group input:focus { border-color: var(--primary-orange); }

.payment-methods-list { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex; align-items: center; gap: 10px; padding: 12px 15px;
    border: 1px solid var(--border-color); border-radius: 5px; cursor: pointer; transition: 0.2s;
}
.payment-option:hover { border-color: var(--primary-orange); }
.payment-option input[type="radio"] { accent-color: var(--primary-orange); }
.payment-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.payment-label i { font-size: 20px; color: #4a5568; }

.checkout-terms { background: #f8fafc; padding: 20px; border-radius: 5px; border: 1px solid var(--border-color); }
.privacy-text { font-size: 12px; color: var(--text-gray); line-height: 1.5; margin-bottom: 15px; }
.privacy-text a { color: var(--primary-orange); text-decoration: underline; }
.terms-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.terms-checkbox input { margin-top: 3px; accent-color: var(--primary-orange); }
.terms-checkbox a { color: var(--primary-orange); text-decoration: underline; }

.checkout-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 30px; 
    flex-wrap: wrap;
    gap: 15px;
}
.btn-back-to-cart { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-gray); 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    transition: 0.2s; 
}
.btn-back-to-cart:hover { color: var(--primary-orange); }
.btn-place-order { 
    padding: 12px 25px;
    font-size: 15px; 
    border-radius: 5px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    white-space: nowrap;
}

.checkout-summary-col { width: 20%; position: sticky; top: 20px; }
.checkout-summary-box { background: white; border: 1px solid var(--border-color); border-radius: 10px; padding: 20px 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.checkout-summary-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

.summary-product-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.summary-product-img img { width: 100%; height: auto; max-height: 100px; object-fit: contain; border: 1px solid var(--border-color); border-radius: 5px; padding: 5px; }
.summary-product-details { flex: 1; }
.summary-product-details h4 { font-size: 12px; font-weight: 700; color: var(--dark-blue); margin-bottom: 5px; line-height: 1.3; }
.summary-product-refs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 9px; color: var(--text-gray); margin-bottom: 5px; }
.summary-product-refs span:not(:last-child)::after { content: "•"; margin-left: 8px; color: #cbd5e0; }
.summary-product-cat { font-size: 10px; color: var(--primary-orange); font-weight: 600; margin-bottom: 10px; }
.summary-product-price { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 5px; }
.summary-product-price .old-price { text-decoration: line-through; color: var(--text-gray); }
.summary-product-price .current-price { font-weight: 800; color: var(--primary-orange); font-size: 13px; }
.summary-product-price .discount-badge { background: var(--primary-orange); color: white; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.summary-product-price .qty { color: var(--text-gray); margin-left: auto; }
.summary-product-delivery, .summary-product-stock { font-size: 10px; color: var(--text-gray); margin-top: 5px; }
.summary-product-delivery i, .summary-product-stock i { color: var(--primary-orange); margin-right: 4px; }
.summary-product-subtotal { font-size: 14px; font-weight: 800; color: var(--dark-blue); align-self: flex-end; }

.summary-totals { margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; color: var(--text-gray); }
.summary-row.total-row { border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px; font-weight: 800; font-size: 16px; color: var(--dark-blue); }
.summary-row.total-row .total-price { font-size: 20px; color: var(--primary-orange); }
.summary-row .text-green { color: #22c55e; font-weight: 600; }

.summary-tax-breakdown { border-top: 1px solid var(--border-color); padding-top: 15px; margin-bottom: 20px; font-size: 11px; color: var(--text-gray); }
.tax-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.tax-row.total-tax { font-weight: 700; color: var(--dark-blue); font-size: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); }

.summary-exclusive-offer { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.offer-title { font-size: 12px; font-weight: 700; color: var(--dark-blue); margin-bottom: 10px; }
.offer-product { display: flex; flex-direction: column; gap: 10px; }
.offer-product img { width: 100%; height: auto; max-height: 80px; object-fit: contain; border-radius: 5px; background: white; padding: 5px; }
.offer-details h5 { font-size: 11px; font-weight: 700; color: var(--dark-blue); margin-bottom: 3px; }
.offer-details p { font-size: 10px; color: var(--text-gray); margin-bottom: 5px; }
.offer-price { font-size: 13px; font-weight: 800; color: var(--primary-orange); display: block; margin-bottom: 5px; }
.offer-financing { font-size: 9px; color: var(--text-gray); }
.offer-financing a { color: #0070ba; text-decoration: underline; }

.summary-payment-icons { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--text-gray); align-items: center; }
.summary-payment-icons span { display: flex; align-items: center; gap: 5px; }
.summary-payment-icons i { font-size: 16px; color: #4a5568; }

/* =========================================
   BARRA DE ENVÍO GRATIS (CARRITO Y CHECKOUT)
   ========================================= */
.shipping-progress-bar {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}
.shipping-progress-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 500;
}
.shipping-progress-text i {
    color: var(--primary-orange);
    font-size: 18px;
}
.shipping-progress-text strong {
    color: var(--primary-orange);
    font-weight: 800;
}
.shipping-progress-track {
    width: 100%;
    height: 8px;
    background: #fed7aa;
    border-radius: 4px;
    overflow: hidden;
}
.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ff8c33);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* =========================================
   BLOQUE DE INFO ADICIONAL (CUPÓN, ZONA, PESO, AVISO, OFERTAS)
   ========================================= */
.cart-info-block {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-block-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}
.info-block-item i {
    color: var(--primary-orange);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.info-block-item strong {
    color: var(--dark-blue);
    font-weight: 700;
}
.info-block-item a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.info-block-item a:hover {
    color: #e65c00;
}
.info-block-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 10px 12px;
    color: #92400e;
    font-size: 12px;
}
.info-block-warning i {
    color: #d97706;
}
.info-block-offers {
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.info-block-offers i {
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}
.info-block-offers strong {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.coupon-toggle {
    background: transparent;
    border: none;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.coupon-form-inline {
    display: none;
    margin-top: 8px;
    gap: 8px;
    width: 100%;
}
.coupon-form-inline.active {
    display: flex;
}
.coupon-form-inline input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 13px;
    outline: none;
}
.coupon-form-inline input:focus {
    border-color: var(--primary-orange);
}
.coupon-form-inline button {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.coupon-form-inline button:hover {
    background: #e65c00;
}

/* =========================================
   MENÚ INFERIOR FIJO MÓVIL (TIPO APP)
   ========================================= */

.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
        background-color: #ffffff; border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 9998;
        justify-content: space-around; align-items: center; padding: 5px 0;
    }
    .mobile-nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        color: var(--text-gray); font-size: 9px; font-weight: 600; text-decoration: none; flex: 1; height: 100%; transition: color 0.2s;
    }
    .mobile-nav-item i { font-size: 18px; margin-bottom: 3px; }
    .mobile-nav-item:hover, .mobile-nav-item:active { color: var(--primary-orange); }
    body { padding-bottom: 60px; }
    body.page-product .mobile-bottom-nav { display: none !important; }
}

/* =========================================
   RESPONSIVE (Global)
   ========================================= */

@media (max-width: 1400px) {
    .grid-6 { grid-template-columns: repeat(4, 1fr); }
    .mid-banners { grid-template-columns: repeat(2, 1fr); }
    .mid-banners .mb-card:last-child { grid-column: span 2; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .shop-product-grid { grid-template-columns: repeat(4, 1fr); }
    .cross-sells-section .product-grid { grid-template-columns: repeat(4, 1fr); }
    .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
    .product-layout-modern { flex-wrap: wrap; }
    .product-main-content { width: 100%; }
    .product-buy-sidebar { width: 100%; position: static; margin-top: 20px; }
    .product-top-row { flex-direction: column; }
    .product-gallery-modern { width: 100%; }
    .product-info-modern { width: 100%; }
    .zoom-container { height: 300px; }
    .cart-layout { flex-direction: column; }
    .cart-items-col { width: 100%; }
    .cart-totals-col { width: 100%; position: static; margin-top: 20px; }
    .cross-sells-section .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .pre-footer-content { flex-direction: column; padding: 20px 0; gap: 20px; }
    .pf-features { flex-wrap: wrap; justify-content: center; margin: 10px 0; }
    .pf-whatsapp-block { width: 100%; margin-right: 0; padding: 20px; clip-path: none; justify-content: center; border-radius: 8px; }
    .shop-layout { flex-direction: column; }
    .shop-sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 20px; }
    .widget { flex: 1 1 calc(33.33% - 20px); margin-bottom: 0; }
    .shop-main { width: 100%; }
    .shop-categories-row { grid-template-columns: repeat(5, 1fr); }
    .shop-product-grid { grid-template-columns: repeat(3, 1fr); }
    .checkout-layout { flex-direction: column; }
    .checkout-form-col, .checkout-summary-col { width: 100%; }
    .checkout-summary-col { position: static; margin-top: 30px; }
    .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .promo-bar { display: none; }
    .top-bar { display: none; }
    .main-header { padding: 10px 0; position: static; box-shadow: none; }
    .header-content { flex-wrap: wrap; gap: 10px; justify-content: center; }
    .logo { order: 1; width: 100%; justify-content: center; margin-bottom: 5px; }
    .header-icons { order: 2; width: 100%; justify-content: flex-end; gap: 15px; }
    .header-icons a:nth-child(1), .header-icons a:nth-child(2) { display: none; }
    .search-bar { order: 3; max-width: 100%; width: 100%; height: 40px; }
    .search-bar input { font-size: 13px; padding: 0 15px; }
    .search-bar button { padding: 0 20px; }
    .main-nav { overflow-x: auto; position: static; }
    .nav-list { gap: 15px; padding: 10px 0; white-space: nowrap; }
    .btn-nav-categories { width: auto; padding-right: 15px !important; border-right: 1px solid var(--border-color); }

    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .mid-banners { grid-template-columns: 1fr; }
    .mid-banners .mb-card:last-child { grid-column: span 1; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 18px; }

    .footer-contact-bar { display: none; }
    .footer-main { grid-template-columns: 1fr; gap: 25px; padding: 30px 0; }
    .newsletter-col { display: none; }
    .footer-col h4 { margin-bottom: 10px; font-size: 14px; }
    .footer-col ul li { margin-bottom: 6px; }
    .footer-col ul li a { font-size: 12px; }
    .footer-copyright { padding: 10px 0; font-size: 11px; }

    .widget { flex: 1 1 100%; }
    .shop-categories-row { grid-template-columns: repeat(3, 1fr); }
    .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-filters-row { flex-direction: column; gap: 15px; align-items: flex-start; }
    .filter-right { width: 100%; flex-direction: column; }
    .filter-right select { width: 100%; }

    .product-layout-modern { flex-direction: column; }
    .zoom-container { height: 250px; }
    .mobile-sticky-bar { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 10px 15px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 9999; gap: 10px; }
    .btn-outline-mobile, .btn-orange-mobile { flex: 1; height: 45px; border-radius: 5px; font-weight: 700; font-size: 13px; cursor: pointer; }
    .btn-outline-mobile { background: transparent; border: 1px solid var(--primary-orange); color: var(--primary-orange); }
    .btn-orange-mobile { background: var(--primary-orange); border: none; color: white; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }

    .cart-table th { display: none; }
    .cart-table td { display: block; width: 100%; text-align: right; padding: 10px 15px; border-bottom: none; }
    .cart-table td.product-remove { text-align: left; padding-bottom: 0; }
    .cart-table td.product-thumbnail { text-align: center; padding-top: 0; }
    .cart-table td.product-name { text-align: center; }
    .cart-table td.product-price::before { content: "Precio: "; font-weight: 700; }
    .cart-table td.product-quantity { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
    .cart-table td.product-quantity::before { content: "Cantidad: "; font-weight: 700; }
    .cart-table td.product-subtotal::before { content: "Subtotal: "; font-weight: 700; }
    .cart-table tr { border-bottom: 1px solid var(--border-color); display: block; padding-bottom: 15px; margin-bottom: 15px; }
    .cart-actions { flex-direction: column; align-items: flex-start; }
    .coupon-box { width: 100%; }
    .coupon-box input { flex: 1; }
    .cross-sells-section .product-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { flex-direction: column; gap: 15px; }
    .checkout-actions { flex-direction: column-reverse; gap: 20px; }
    .btn-place-order { width: 100%; justify-content: center; }
    .btn-back-to-cart { width: 100%; justify-content: center; }

    .shipping-progress-text { font-size: 12px; }
    .info-block-item { font-size: 12px; }

    .wishlist-grid { grid-template-columns: 1fr; }
    .wishlist-header { flex-direction: column; align-items: flex-start; }
    .wishlist-header h1 { font-size: 26px; }
    .compare-header h1 { font-size: 26px; }
    .compare-table th, .compare-table td { padding: 10px 12px; font-size: 12px; }
    .compare-attr-col { width: 120px; min-width: 120px; font-size: 11px; }
    .compare-product-col { width: 200px; min-width: 200px; }
    .compare-actions-bar { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   PÁGINA WISHLIST (wishlist.html)
   ========================================= */

.wishlist-page { padding: 40px 0 60px 0; }
.wishlist-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.wishlist-header h1 { font-size: 32px; font-weight: 800; color: var(--dark-blue); margin-bottom: 5px; display: flex; align-items: center; gap: 12px; }
.wishlist-header h1 i { color: var(--primary-orange); }
.wishlist-header p { font-size: 14px; color: var(--text-gray); }
.wishlist-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wishlist-clear { background: transparent; border: 1px solid var(--border-color); color: var(--text-gray); padding: 10px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-wishlist-clear:hover { border-color: #ef4444; color: #ef4444; }
.btn-wishlist-share { background: var(--dark-blue); color: white; border: none; padding: 10px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-wishlist-share:hover { background: var(--primary-orange); }

.wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }

.wishlist-card { position: relative; }
.wishlist-card .wishlist-remove-btn {
    position: absolute; top: 12px; left: 12px; width: 32px; height: 32px;
    background: white; border: 1px solid var(--border-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-gray); cursor: pointer; transition: 0.2s; z-index: 3;
    font-size: 13px;
}
.wishlist-card .wishlist-remove-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }
.wishlist-card .wishlist-added-date {
    position: absolute; top: 12px; right: 12px;
    background: #f8fafc; border: 1px solid var(--border-color); border-radius: 4px;
    font-size: 9px; color: var(--text-gray); padding: 3px 7px; font-weight: 600;
    z-index: 3; text-transform: uppercase; letter-spacing: 0.3px;
}
.wishlist-card .prod-actions { position: static; justify-content: flex-end; margin-bottom: 5px; }
.wishlist-card .card-buttons { gap: 8px; }

.wishlist-bulk-bar {
    background: #f8fafc; border: 1px solid var(--border-color); border-radius: 10px;
    padding: 15px 20px; margin-bottom: 25px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.wishlist-bulk-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-gray); font-weight: 500; }
.wishlist-bulk-info i { color: var(--primary-orange); font-size: 16px; }
.wishlist-bulk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-bulk-add-cart { background: var(--primary-orange); color: white; border: none; padding: 10px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-bulk-add-cart:hover { background: #e65c00; }

.wishlist-empty {
    background: white; border: 1px dashed var(--border-color); border-radius: 10px;
    padding: 60px 30px; text-align: center; margin-bottom: 40px;
}
.wishlist-empty i { font-size: 60px; color: #cbd5e0; margin-bottom: 20px; }
.wishlist-empty h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.wishlist-empty p { font-size: 14px; color: var(--text-gray); margin-bottom: 25px; }
.wishlist-empty .btn-orange-full { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; font-size: 14px; border-radius: 5px; text-decoration: none; }

/* =========================================
   PÁGINA COMPARAR (compare.html)
   ========================================= */

.compare-page { padding: 40px 0 60px 0; }
.compare-header { margin-bottom: 30px; }
.compare-header h1 { font-size: 32px; font-weight: 800; color: var(--dark-blue); margin-bottom: 5px; display: flex; align-items: center; gap: 12px; }
.compare-header h1 i { color: #3b82f6; }
.compare-header p { font-size: 14px; color: var(--text-gray); }

.compare-table-wrapper { background: white; border: 1px solid var(--border-color); border-radius: 10px; overflow-x: auto; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }

.compare-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 13px; vertical-align: middle; }
.compare-table thead th { background: #f8fafc; font-weight: 700; color: var(--dark-blue); font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; }
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-attr-col { width: 180px; min-width: 160px; background: #f8fafc !important; font-weight: 700; color: var(--dark-blue); font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
.compare-table tbody td.compare-attr-col { background: #f8fafc; }

.compare-product-col { width: 260px; min-width: 240px; }
.compare-product-head { display: flex; flex-direction: column; gap: 10px; position: relative; }
.compare-product-head .compare-remove {
    position: absolute; top: -5px; right: -5px;
    width: 26px; height: 26px; border-radius: 50%;
    background: white; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--text-gray); cursor: pointer; transition: 0.2s;
}
.compare-product-head .compare-remove:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }
.compare-product-head img { width: 100%; height: 130px; object-fit: contain; }
.compare-product-head h4 { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--dark-blue); min-height: 34px; }
.compare-product-head .compare-brand { font-size: 11px; color: var(--text-gray); }
.compare-product-head .compare-brand span { color: var(--primary-orange); font-weight: 700; text-transform: uppercase; }
.compare-product-head .compare-price { font-size: 18px; font-weight: 800; color: var(--primary-orange); }
.compare-product-head .compare-old-price { font-size: 12px; color: var(--text-gray); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.compare-product-head .compare-actions { display: flex; gap: 8px; margin-top: 5px; }
.compare-product-head .compare-actions button { flex: 1; padding: 8px 5px; border-radius: 5px; font-size: 11px; font-weight: 600; cursor: pointer; transition: 0.2s; border: 1px solid; }
.compare-product-head .compare-actions .btn-compare-cart { background: transparent; border-color: var(--border-color); color: var(--dark-blue); }
.compare-product-head .compare-actions .btn-compare-cart:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
.compare-product-head .compare-actions .btn-compare-buy { background: var(--primary-orange); border-color: var(--primary-orange); color: white; }
.compare-product-head .compare-actions .btn-compare-buy:hover { background: #e65c00; }

.compare-yes { color: #22c55e; font-size: 15px; }
.compare-no { color: #ef4444; font-size: 15px; }
.compare-text { color: var(--dark-blue); font-weight: 600; }

.compare-add-col { width: 220px; min-width: 200px; text-align: center; }
.compare-add-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 30px 15px; background: #f8fafc; border: 2px dashed var(--border-color);
    border-radius: 8px; cursor: pointer; transition: 0.2s; color: var(--text-gray); width: 100%;
}
.compare-add-btn:hover { border-color: var(--primary-orange); color: var(--primary-orange); background: #fff7ed; }
.compare-add-btn i { font-size: 28px; }
.compare-add-btn span { font-size: 12px; font-weight: 600; }

.compare-actions-bar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
    background: #f8fafc; border: 1px solid var(--border-color); border-radius: 10px;
    padding: 15px 20px; margin-bottom: 30px;
}
.compare-actions-bar .compare-count { font-size: 13px; color: var(--text-gray); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.compare-actions-bar .compare-count i { color: #3b82f6; font-size: 16px; }
.compare-actions-bar .compare-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-compare-clear { background: transparent; border: 1px solid var(--border-color); color: var(--text-gray); padding: 10px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-compare-clear:hover { border-color: #ef4444; color: #ef4444; }
.btn-compare-share { background: var(--dark-blue); color: white; border: none; padding: 10px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-compare-share:hover { background: var(--primary-orange); }

.compare-empty {
    background: white; border: 1px dashed var(--border-color); border-radius: 10px;
    padding: 60px 30px; text-align: center; margin-bottom: 40px;
}
.compare-empty i { font-size: 60px; color: #cbd5e0; margin-bottom: 20px; }
.compare-empty h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.compare-empty p { font-size: 14px; color: var(--text-gray); margin-bottom: 25px; }
.compare-empty .btn-orange-full { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; font-size: 14px; border-radius: 5px; text-decoration: none; }


/* =========================================
   PÁGINA DE PRODUCTO FINAL (LAYOUT 3 COLUMNAS)
   ========================================= */

.product-page-v2 { padding: 20px 0 100px 0; }

/* Contenedor Grid de 3 columnas - Alineación superior perfecta */
.product-main-layout {
    display: grid;
    grid-template-columns: 32% 40% 28%; /* Izquierda, Centro, Derecha */
    gap: 25px;
    align-items: start; /* Alinea todas las columnas al borde superior */
    margin-bottom: 30px;
}

/* --- COLUMNA IZQUIERDA: GALERÍA --- */
.product-gallery-col {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative; /* Contexto para los badges */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Badges flotantes encima de la imagen */
.gallery-badges-top {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.badge-tag.bg-green { background-color: #22c55e; color: white; }
.badge-tag.bg-blue { background-color: #3b82f6; color: white; }

.gallery-main-wrap {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    position: relative;
    margin-bottom: 15px;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    position: relative;
}

.gallery-thumbs img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    transition: 0.2s;
}
.gallery-thumbs img.active { border-color: var(--primary-orange); }

.gallery-more {
    position: absolute;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

/* --- COLUMNA CENTRAL: INFO --- */
.product-info-col {
    padding: 0 10px;
}
.brand-logo-top { margin-bottom: 10px; }

.product-title-v2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.rating-stars { color: #f59e0b; font-size: 14px; display: flex; gap: 2px; }
.rating-text { font-size: 13px; color: var(--text-gray); }

.stock-badge-top {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-badge-top i { font-size: 8px; }

.product-meta-row {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.product-meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.product-meta-row strong { color: var(--dark-blue); font-weight: 700; }

.product-short-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-blue);
}
.feature-icon-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.2;
}

.product-payment-icons-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.product-payment-icons-inline img { height: 24px; }

.product-whatsapp-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.product-whatsapp-btn-inline:hover { background: #128C7E; }
.product-whatsapp-btn-inline i { font-size: 20px; }

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px;
}
.buy-box-v2 {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.buy-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.stock-bar-mini {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}
.stock-fill-mini {
    height: 100%;
    background: #f59e0b;
    border-radius: 2px;
}

.savings-badge-v2 {
    background: #fff7ed;
    color: var(--primary-orange);
    border: 1px solid #fed7aa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.buy-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}
.buy-price-current {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
}
.buy-price-old {
    font-size: 16px;
    color: var(--text-gray);
    text-decoration: line-through;
}
.buy-discount-tag {
    background: var(--primary-orange);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}
.buy-save-amount {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 15px;
}

.buy-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
}
.buy-qty-row .quantity-selector { height: 35px; width: 100px; }

.buy-buttons-v2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.btn-add-cart-v2 {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid var(--primary-orange);
    background: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add-cart-v2:hover { background: #e65c00; }
.btn-buy-now-v2 {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-buy-now-v2:hover { background: #fff7ed; }
.btn-volume-discount {
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.buy-footer-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.buy-footer-links a {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.buy-footer-links a:hover { color: var(--primary-orange); }

/* --- FILA DE VENTAJAS (HORIZONTAL CON DIVISORES) --- */
.product-advantages-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}
.advantage-item:last-child {
    border-right: none;
}

.advantage-item i {
    font-size: 24px;
    color: var(--dark-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.advantage-item h4 {
    font-size: 12px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.advantage-item p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.4;
    margin: 0;
}

/* --- TABS VISUALES --- */
.product-tabs-modern {
    background: white;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 40px;
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    overflow-x: auto;
    gap: 20px;
}
.tab-btn {
    padding: 15px 0;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--primary-orange); }
.tab-btn.active {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    background: transparent;
}
.tabs-content {
    padding: 30px 0;
}

/* --- TABS EXTENDIDAS (6 productos por fila) --- */
.tab-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.tab-brand-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.tab-brand-logo {
    width: 140px;
    height: 90px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}
.tab-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tab-brand-info { flex: 1; min-width: 240px; }
.tab-brand-info h4 { font-size: 20px; font-weight: 800; color: var(--dark-blue); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.tab-brand-info p { font-size: 13px; color: var(--text-gray); line-height: 1.6; margin-bottom: 12px; }
.tab-brand-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-brand-stat { display: flex; flex-direction: column; gap: 2px; }
.tab-brand-stat strong { font-size: 20px; font-weight: 800; color: var(--primary-orange); line-height: 1; }
.tab-brand-stat span { font-size: 11px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.tab-brand-info .btn-view-brand {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-orange); color: white;
    padding: 9px 16px; border-radius: 5px; font-size: 12px; font-weight: 700;
    text-decoration: none; transition: 0.2s; border: none; cursor: pointer;
}
.tab-brand-info .btn-view-brand:hover { background: #e65c00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,0,0.3); }

.tab-pane-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.tab-pane-header h3 { margin-bottom: 0 !important; }
.tab-pane-header .tab-view-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--primary-orange); text-decoration: none; transition: 0.2s; }
.tab-pane-header .tab-view-all:hover { gap: 8px; color: #e65c00; }

.tab-product-grid .product-card { padding: 12px; }
.tab-product-grid .product-card h3 { font-size: 12px; min-height: 34px; margin-bottom: 6px; }
.tab-product-grid .product-card img { height: 120px; margin-bottom: 10px; }
.tab-product-grid .prod-price-row { margin-bottom: 8px; }
.tab-product-grid .prod-prices .current-price { font-size: 16px; }
.tab-product-grid .prod-delivery { padding: 6px 8px; font-size: 10px; margin-bottom: 8px; }
.tab-product-grid .card-buttons { gap: 6px; }
.tab-product-grid .card-buttons button { font-size: 10px; padding: 7px 4px; }

.badge-tag.bg-red { background: #ef4444; color: white; }
.badge-tag.bg-green { background: #22c55e; color: white; }
.badge-tag.bg-purple { background: #8b5cf6; color: white; }

/* --- RESPONSIVE LAYOUT PRODUCTO --- */
@media (max-width: 1300px) {
    .product-main-layout { grid-template-columns: 1fr 1.5fr; gap: 20px; }
    .product-buy-col { grid-column: 1 / -1; position: static; margin-top: 20px; }
    .product-advantages-row { grid-template-columns: repeat(3, 1fr); }
    .advantage-item:nth-child(3) { border-right: none; }
    .advantage-item:nth-child(4), .advantage-item:nth-child(5) { border-top: 1px solid var(--border-color); }
    .advantage-item:nth-child(5) { border-right: none; }
    .tab-product-grid { grid-template-columns: repeat(5, 1fr); }
    .psb-product-info h4 { max-width: 220px; }
}

@media (max-width: 1024px) {
    .product-main-layout { grid-template-columns: 1fr; }
    .product-gallery-col { padding: 10px; }
    .gallery-main-wrap { height: 250px; }
    .product-advantages-row { grid-template-columns: 1fr; }
    .advantage-item { border-right: none; border-bottom: 1px solid var(--border-color); }
    .advantage-item:last-child { border-bottom: none; }
    .tabs-header { gap: 15px; }
    .tab-btn { font-size: 13px; }
    .tab-product-grid { grid-template-columns: repeat(4, 1fr); }
    .tab-brand-content { flex-direction: column; align-items: flex-start; }
    .tab-brand-logo { width: 100px; height: 70px; }
}

@media (max-width: 768px) {
    .tab-product-grid { grid-template-columns: repeat(2, 1fr); }
}



/* =========================================
   PÁGINA DE PRODUCTO FINAL (LAYOUT 3 COLUMNAS)
   ========================================= */

.product-page-v2 { padding: 20px 0 100px 0; }

/* Contenedor Grid de 3 columnas - Alineación superior perfecta */
.product-main-layout {
    display: grid;
    grid-template-columns: 32% 40% 28%; /* Izquierda, Centro, Derecha */
    gap: 25px;
    align-items: start; /* Alinea todas las columnas al borde superior */
    margin-bottom: 30px;
}

/* --- COLUMNA IZQUIERDA: GALERÍA --- */
.product-gallery-col {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative; /* Contexto para los badges */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Badges flotantes encima de la imagen */
.gallery-badges-top {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.badge-tag.bg-green { background-color: #22c55e; color: white; }
.badge-tag.bg-blue { background-color: #3b82f6; color: white; }

.gallery-main-wrap {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    position: relative;
    margin-bottom: 15px;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    position: relative;
}

.gallery-thumbs img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    transition: 0.2s;
}
.gallery-thumbs img.active { border-color: var(--primary-orange); }

.gallery-more {
    position: absolute;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

/* --- COLUMNA CENTRAL: INFO --- */
.product-info-col {
    padding: 0 10px;
}
.brand-logo-top { margin-bottom: 10px; }

.product-title-v2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.rating-stars { color: #f59e0b; font-size: 14px; display: flex; gap: 2px; }
.rating-text { font-size: 13px; color: var(--text-gray); }

.stock-badge-top {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-badge-top i { font-size: 8px; }

.product-meta-row {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.product-meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.product-meta-row strong { color: var(--dark-blue); font-weight: 700; }

.product-short-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-blue);
}
.feature-icon-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.2;
}

.product-payment-icons-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.product-payment-icons-inline img { height: 24px; }

.product-whatsapp-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.product-whatsapp-btn-inline:hover { background: #128C7E; }
.product-whatsapp-btn-inline i { font-size: 20px; }

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px; /* Se queda pegada al hacer scroll */
}
.buy-box-v2 {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.buy-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.stock-bar-mini {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}
.stock-fill-mini {
    height: 100%;
    background: #f59e0b;
    border-radius: 2px;
}

.savings-badge-v2 {
    background: #fff7ed;
    color: var(--primary-orange);
    border: 1px solid #fed7aa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.buy-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}
.buy-price-current {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
}
.buy-price-old {
    font-size: 16px;
    color: var(--text-gray);
    text-decoration: line-through;
}
.buy-discount-tag {
    background: var(--primary-orange);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}
.buy-save-amount {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 15px;
}

.buy-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
}
.buy-qty-row .quantity-selector { height: 35px; width: 100px; }

.buy-buttons-v2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.btn-add-cart-v2 {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid var(--primary-orange);
    background: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add-cart-v2:hover { background: #e65c00; }
.btn-buy-now-v2 {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-buy-now-v2:hover { background: #fff7ed; }
.btn-volume-discount {
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.buy-footer-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.buy-footer-links a {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.buy-footer-links a:hover { color: var(--primary-orange); }

/* --- FILA DE VENTAJAS (HORIZONTAL CON DIVISORES) --- */
.product-advantages-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}
.advantage-item:last-child {
    border-right: none;
}

.advantage-item i {
    font-size: 24px;
    color: var(--dark-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.advantage-item h4 {
    font-size: 12px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.advantage-item p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.4;
    margin: 0;
}

/* --- TABS VISUALES --- */
.product-tabs-modern {
    background: white;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 40px;
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    overflow-x: auto;
    gap: 20px;
}
.tab-btn {
    padding: 15px 0;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--primary-orange); }
.tab-btn.active {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    background: transparent;
}
.tabs-content {
    padding: 30px 0;
}
.tab-pane { display: none; animation: fadeIn 0.4s; }
.tab-pane.active { display: block; }
.tab-pane h3 { font-size: 18px; margin-bottom: 15px; }
.tab-pane p, .tab-pane ul { font-size: 14px; color: var(--text-gray); line-height: 1.6; margin-bottom: 15px; }
.tab-pane ul { padding-left: 20px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 12px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.specs-table td:first-child { font-weight: 600; color: var(--dark-blue); width: 30%; }

/* --- TABS EXTENDIDAS (6 productos por fila) --- */
.tab-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.tab-brand-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 10px 0;
}
.tab-brand-logo {
    width: 140px;
    height: 90px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}
.tab-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tab-brand-info { flex: 1; min-width: 240px; }
.tab-brand-info h4 { font-size: 20px; font-weight: 800; color: var(--dark-blue); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.tab-brand-info p { font-size: 13px; color: var(--text-gray); line-height: 1.6; margin-bottom: 12px; }
.tab-brand-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-brand-stat { display: flex; flex-direction: column; gap: 2px; }
.tab-brand-stat strong { font-size: 20px; font-weight: 800; color: var(--primary-orange); line-height: 1; }
.tab-brand-stat span { font-size: 11px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.tab-brand-info .btn-view-brand {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-orange); color: white;
    padding: 9px 16px; border-radius: 5px; font-size: 12px; font-weight: 700;
    text-decoration: none; transition: 0.2s; border: none; cursor: pointer;
}
.tab-brand-info .btn-view-brand:hover { background: #e65c00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,0,0.3); }

.tab-pane-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.tab-pane-header h3 { margin-bottom: 0 !important; }
.tab-pane-header .tab-view-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--primary-orange); text-decoration: none; transition: 0.2s; }
.tab-pane-header .tab-view-all:hover { gap: 8px; color: #e65c00; }

.tab-product-grid .product-card { padding: 12px; }
.tab-product-grid .product-card h3 { font-size: 12px; min-height: 34px; margin-bottom: 6px; }
.tab-product-grid .product-card img { height: 120px; margin-bottom: 10px; }
.tab-product-grid .prod-price-row { margin-bottom: 8px; }
.tab-product-grid .prod-prices .current-price { font-size: 16px; }
.tab-product-grid .prod-delivery { padding: 6px 8px; font-size: 10px; margin-bottom: 8px; }
.tab-product-grid .card-buttons { gap: 6px; }
.tab-product-grid .card-buttons button { font-size: 10px; padding: 7px 4px; }

.badge-tag.bg-red { background: #ef4444; color: white; }
.badge-tag.bg-green { background: #22c55e; color: white; }
.badge-tag.bg-purple { background: #8b5cf6; color: white; }

/* ==========================================
   BARRA FIJA INFERIOR (STICKY BOTTOM)
   ========================================== */
.product-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 9997;
    padding: 10px 0;
    transition: transform 0.3s ease;
}
.product-sticky-bottom.hidden { transform: translateY(100%); }
.psb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.psb-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.psb-product img { width: 45px; height: 45px; object-fit: contain; border: 1px solid var(--border-color); border-radius: 5px; padding: 3px; background: white; flex-shrink: 0; }
.psb-product-info { display: flex; flex-direction: column; min-width: 0; }
.psb-product-info h4 { font-size: 13px; font-weight: 700; color: var(--dark-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.psb-product-info .psb-price { font-size: 15px; font-weight: 800; color: var(--primary-orange); }
.psb-product-info .psb-old { font-size: 11px; color: var(--text-gray); text-decoration: line-through; margin-left: 5px; font-weight: 500; }
.psb-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.psb-buttons .btn-add-cart-v2,
.psb-buttons .btn-buy-now-v2 { width: auto; padding: 10px 22px; font-size: 13px; }

/* --- RESPONSIVE LAYOUT PRODUCTO --- */
@media (max-width: 1300px) {
    .product-main-layout { grid-template-columns: 1fr 1.5fr; gap: 20px; }
    .product-buy-col { grid-column: 1 / -1; position: static; margin-top: 20px; }
    .product-advantages-row { grid-template-columns: repeat(3, 1fr); }
    .advantage-item:nth-child(3) { border-right: none; }
    .advantage-item:nth-child(4), .advantage-item:nth-child(5) { border-top: 1px solid var(--border-color); }
    .advantage-item:nth-child(5) { border-right: none; }
    .tab-product-grid { grid-template-columns: repeat(5, 1fr); }
    .psb-product-info h4 { max-width: 220px; }
}

@media (max-width: 1024px) {
    .product-main-layout { grid-template-columns: 1fr; }
    .product-gallery-col { padding: 10px; }
    .gallery-main-wrap { height: 250px; }
    .product-advantages-row { grid-template-columns: 1fr; }
    .advantage-item { border-right: none; border-bottom: 1px solid var(--border-color); }
    .advantage-item:last-child { border-bottom: none; }
    .tabs-header { gap: 15px; }
    .tab-btn { font-size: 13px; }
    .tab-product-grid { grid-template-columns: repeat(4, 1fr); }
    .tab-brand-content { flex-direction: column; align-items: flex-start; }
    .tab-brand-logo { width: 100px; height: 70px; }
    .product-sticky-bottom { padding: 8px 0; }
    .psb-product { display: none; }
    .psb-buttons { width: 100%; }
    .psb-buttons .btn-add-cart-v2,
    .psb-buttons .btn-buy-now-v2 { flex: 1; padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 768px) {
    .tab-product-grid { grid-template-columns: repeat(2, 1fr); }
}






/* Contenedor Grid de 3 columnas - Alineación perfecta */
.product-main-layout {
    display: grid;
    grid-template-columns: 32% 44% 24%; /* Centro más ancho, derecha más fina */
    gap: 20px; /* Un pelín menos de espacio para que respiren mejor */
    align-items: stretch; /* ¡CLAVE! Hace que las 3 columnas midan lo mismo de alto */
    margin-bottom: 30px;
}

/* --- COLUMNA IZQUIERDA: GALERÍA --- */
.product-gallery-col {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja las miniaturas hacia abajo si sobra espacio */
    height: 100%; /* Ocupa todo el alto disponible */
}

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px;
    height: 100%; /* Para que iguale en altura a las otras columnas */
}

.buy-box-v2 {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%; /* La caja ocupa todo el alto */
}

/* Empujamos los enlaces de abajo (Comparar/Deseos) al fondo de la caja */
.buy-footer-links {
    margin-top: auto; 
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}


/* Contenedor Grid de 3 columnas - Alineación perfecta */
.product-main-layout {
    display: grid;
    grid-template-columns: 32% 44% 24%; /* Centro más ancho, derecha más fina */
    gap: 20px;
    align-items: start; /* IMPORTANTE: Quitamos el stretch para que la caja derecha NO se estire */
    margin-bottom: 30px;
}

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px; /* Se queda pegada arriba al hacer scroll */
}

.buy-box-v2 {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    /* Altura automática según el contenido, NO 100% */
}

/* Arreglamos la barra de stock para que se vea más integrada */
.buy-availability {
    display: flex;
    flex-direction: column; /* Ponemos el texto arriba y la barra abajo */
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 15px;
}
.buy-availability .stock-mini {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
    margin-left: 0;
}
.stock-bar-mini {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}
.stock-fill-mini {
    height: 100%;
    background: #f59e0b;
    border-radius: 3px;
}

/* Los enlaces de abajo quedan pegados tras los botones */
.buy-footer-links {
    margin-top: 15px; /* En lugar de auto */
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Contenedor Grid de 3 columnas - Ajuste de espacios */
.product-main-layout {
    display: grid;
    /* Izquierda: 32%, Centro: 40%, Derecha: 26% (más ancha y con más margen) */
    grid-template-columns: 32% 40% 26%; 
    gap: 30px; /* Más espacio entre columnas */
    align-items: start;
    margin-bottom: 30px;
}

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px;
    /* Añadimos un pequeño padding-left para asegurar que no se pegue al centro */
    padding-left: 10px; 
}

/* --- BADGES DE LA GALERÍA --- */
.gallery-badges-top {
    position: absolute;
    top: 25px; /* Los subimos un poco para que queden por encima de la foto */
    left: 25px; /* Los alineamos con el margen de la foto */
    display: flex;
    gap: 5px;
    z-index: 10;
}


/* =========================================
   LAYOUT PRODUCT PAGE (3 COLUMNAS)
   ========================================= */

.product-main-layout {
    display: grid;
    /* Aumentamos un poco más el margen entre columnas */
    grid-template-columns: 32% 39% 27%; 
    gap: 35px; 
    align-items: start;
    margin-bottom: 30px;
}

/* --- COLUMNA IZQUIERDA: GALERÍA --- */
.product-gallery-col {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* BADGES FLOTANTES (Más arriba) */
.gallery-badges-top {
    position: absolute;
    top: -12px; /* Los subimos por encima del borde blanco */
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.badge-tag {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra para que destaquen */
}

//* =========================================
   LAYOUT PRODUCT PAGE (3 COLUMNAS)
   ========================================= */

.product-main-layout {
    display: grid;
    /* Izquierda 32%, Centro 39%, Derecha 27% - Ajustado para margen */
    grid-template-columns: 32% 39% 27%; 
    gap: 35px; 
    align-items: start;
    margin-bottom: 30px;
}

/* --- COLUMNA IZQUIERDA: GALERÍA --- */
.product-gallery-col {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Quitamos margin-top para que empiece a la misma altura que el resto */
    margin-top: 0; 
}

/* BADGES FLOTANTES (Más arriba) */
.gallery-badges-top {
    position: absolute;
    top: -12px; /* Los subimos por encima del borde blanco */
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.badge-tag {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* CONTENEDOR DE LA IMAGEN (ZOOM) */
.gallery-main-wrap {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    position: relative;
    margin-bottom: 15px;
    margin-top: 10px; /* Margen para que los badges no tapen la imagen */
    cursor: crosshair;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Efecto Zoom */
.gallery-main-wrap:hover .gallery-main-img {
    transform: scale(1.8);
}

/* Icono de la lupa flotante */
.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26,32,44,0.7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s;
}
.gallery-main-wrap:hover .zoom-icon {
    background: var(--primary-orange);
}

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px;
    /* Margen para separar del centro */
    margin-left: 10px; 
}


/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px;
    margin-left: 10px;
    margin-right: 30px; /* Mantenemos tu ajuste para centrar la caja */
}

/* --- BADGES DE LA GALERÍA --- */
.gallery-badges-top {
    position: absolute;
    top: 25px; /* Los bajamos para que queden DENTRO del recuadro blanco */
    left: 35px; /* Los alineamos con el borde de la imagen */
    display: flex;
    gap: 5px;
    z-index: 10;
}

.badge-tag {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}


/* =========================================
   LAYOUT PRODUCT PAGE (3 COLUMNAS)
   ========================================= */

.product-main-layout {
    display: grid;
    /* Izquierda 32%, Centro 39%, Derecha 27% - Ajustado para margen */
    grid-template-columns: 32% 39% 27%; 
    gap: 35px; 
    align-items: start;
    margin-bottom: 30px;
}

/* --- COLUMNA IZQUIERDA: GALERÍA --- */
.product-gallery-col {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Quitamos margin-top para que empiece a la misma altura que el resto */
    margin-top: 0; 
}

/* BADGES FLOTANTES (Ahora dentro de la imagen) */
.gallery-badges-top {
    position: absolute;
    top: 25px; /* Los bajamos para que queden dentro del recuadro */
    left: 25px; 
    display: flex;
    gap: 5px;
    z-index: 10;
}
.badge-tag {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* CONTENEDOR DE LA IMAGEN (ZOOM) */
.gallery-main-wrap {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    position: relative;
    margin-bottom: 15px;
    margin-top: 0; /* Quitamos margen superior */
    cursor: crosshair;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Efecto Zoom */
.gallery-main-wrap:hover .gallery-main-img {
    transform: scale(1.8);
}

/* Icono de la lupa flotante */
.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26,32,44,0.7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s;
}
.gallery-main-wrap:hover .zoom-icon {
    background: var(--primary-orange);
}

/* --- COLUMNA DERECHA: BUY BOX --- */
.product-buy-col {
    position: sticky;
    top: 20px;
    /* Márgenes para separar del centro y del borde de la pantalla */
    margin-left: 10px; 
    margin-right: 30px; 
}









/* Botón Solicitar descuento por volumen */
.btn-volume-discount {
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease; /* Animación suave */
    border: 1px dashed var(--dark-blue);
    background: #f8fafc;
    color: var(--dark-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

/* Efecto al pasar el ratón */
.btn-volume-discount:hover {
    background: #fff7ed; /* Fondo naranja muy clarito */
    border-color: var(--primary-orange); /* Borde naranja */
    color: var(--primary-orange); /* Texto naranja */
    transform: translateY(-2px); /* Se eleva un poquito */
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.15); /* Sombra suave */
}

/* Efecto de pulso sutil para llamar la atención (opcional) */
.btn-volume-discount::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-volume-discount:hover::before {
    left: 100%; /* Brillo que cruza el botón al pasar el ratón */
}






/* =========================================
   DISEÑO PERSONALIZADO DE RESEÑAS (TABS)
   ========================================= */

.reviews-section {
    padding: 10px 0;
}

/* Sub-pestañas (Reseñas / Preguntas) */
.reviews-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}
.review-tab-btn {
    padding: 10px 0;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}
.review-tab-btn.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}
.review-tab-btn:hover {
    color: var(--primary-orange);
}

/* Contenedores de sub-pestañas */
.review-subpane { display: none; animation: fadeIn 0.3s; }
.review-subpane.active { display: block; }

/* Layout de 2 columnas para reseñas */
.reviews-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Columna Izquierda: Resumen */
.reviews-summary-col {
    width: 30%;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.overall-rating .rating-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}
.rating-stars-lg { color: #f59e0b; font-size: 20px; margin: 10px 0; }
.overall-rating p { font-size: 12px; color: var(--text-gray); margin-bottom: 20px; }

/* Barras de criterios */
.rating-criteria { text-align: left; margin-bottom: 25px; }
.criteria-item { margin-bottom: 12px; }
.criteria-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}
.criteria-label strong { color: var(--dark-blue); }
.criteria-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.criteria-fill {
    height: 100%;
    background: var(--primary-orange);
    border-radius: 3px;
}

/* Botón Escribir Reseña */
.btn-write-review {
    width: 100%;
    padding: 12px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-write-review:hover { background: #e65c00; }

/* Columna Derecha: Lista */
.reviews-list-col {
    width: 70%;
}

/* Filtros */
.reviews-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-gray);
}
.filter-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: white;
    cursor: pointer;
}

/* Tarjetas de Reseña */
.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: 0.2s;
}
.review-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.review-user { display: flex; gap: 12px; align-items: center; }
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.user-info strong { display: block; font-size: 14px; color: var(--dark-blue); }
.verified-badge {
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.review-meta { text-align: right; }
.review-stars { color: #f59e0b; font-size: 12px; margin-bottom: 4px; }
.review-date { font-size: 11px; color: var(--text-gray); }

.review-title { font-size: 16px; font-weight: 800; color: var(--dark-blue); margin-bottom: 8px; }
.review-text { font-size: 14px; color: var(--text-gray); line-height: 1.5; margin-bottom: 15px; }

/* Galería de fotos en reseñas */
.review-gallery { display: flex; gap: 8px; margin-bottom: 15px; }
.review-gallery img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border-color);
}
.review-gallery img:hover { transform: scale(1.05); border-color: var(--primary-orange); }

/* Footer de la reseña (Útil / Reportar) */
.review-footer {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}
.btn-helpful, .btn-report {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.btn-helpful:hover { color: var(--primary-orange); }
.btn-report:hover { color: #ef4444; }

/* =========================================
   VISTA DE PREGUNTAS Y RESPUESTAS
   ========================================= */

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.questions-header h3 { font-size: 20px; font-weight: 800; color: var(--dark-blue); }

.question-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.q-header, .a-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.a-header { margin-bottom: 0; }

.q-icon, .a-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.q-icon { background: #fff7ed; color: var(--primary-orange); }
.a-icon { background: #f0fdf4; color: #22c55e; }

.q-content strong { font-size: 15px; color: var(--dark-blue); display: block; margin-bottom: 4px; }
.q-date { font-size: 11px; color: var(--text-gray); }

.a-content p { font-size: 14px; color: var(--text-gray); line-height: 1.5; margin-bottom: 5px; }
.a-author { font-size: 12px; color: var(--text-gray); font-style: italic; }
.a-author strong { color: var(--dark-blue); }

/* Responsive */
@media (max-width: 768px) {
    .reviews-layout { flex-direction: column; }
    .reviews-summary-col, .reviews-list-col { width: 100%; }
    .reviews-tabs { overflow-x: auto; white-space: nowrap; }
    .review-header { flex-direction: column; gap: 10px; }
    .review-meta { text-align: left; }
}







/* =========================================
   RESPONSIVE LAYOUT PRODUCT PAGE (MÓVIL)
   ========================================= */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .product-main-layout {
        /* Cambiamos a 2 columnas en tablet: Galería a la izq, Info a la der */
        grid-template-columns: 45% 55%; 
        gap: 20px;
    }
    /* La caja de compra (Buy Box) baja al fondo ocupando todo el ancho */
    .product-buy-col {
        grid-column: 1 / -1; 
        position: static; /* Quitamos el sticky en tablet */
        margin: 20px 0 0 0;
        max-width: 500px; /* Para que no se estire demasiado */
        margin-left: auto;
        margin-right: auto;
    }
    .buy-box-v2 { padding: 15px; }
}

/* Móviles */
@media (max-width: 768px) {
    .product-main-layout {
        /* TODO EN UNA SOLA COLUMNA */
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    /* Reseteamos anchos y márgenes para que ocupen el 100% */
    .product-gallery-col, 
    .product-info-col, 
    .product-buy-col {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ajustes de la galería en móvil */
    .gallery-main-wrap {
        height: 280px;
    }
    .gallery-thumbs img {
        width: 50px;
        height: 50px;
    }
    .gallery-badges-top {
        top: 15px;
        left: 15px;
    }

    /* Ajustes de la info en móvil */
    .product-title-v2 {
        font-size: 22px;
    }
    .product-features-icons {
        justify-content: space-between; /* Iconos repartidos */
    }
    
    /* Caja de compra en móvil */
    .product-buy-col {
        margin-top: 10px;
    }
    .buy-box-v2 {
        max-width: 100%; /* Ocupa todo el ancho */
    }

    /* Ajustes de las ventajas (Pago seguro, etc) */
    .product-advantages-row {
        grid-template-columns: 1fr;
    }
    .advantage-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
    }
    .advantage-item:last-child {
        border-bottom: none;
    }

    /* Ajustes de las Pestañas (Tabs) */
    .tabs-header {
        gap: 15px;
        padding-bottom: 5px;
    }
    .tab-btn {
        font-size: 13px;
        padding: 10px 0;
    }

    /* Ajustes de las Reseñas y Preguntas en móvil */
    .reviews-layout {
        flex-direction: column; /* Resumen arriba, lista abajo */
        gap: 20px;
    }
    .reviews-summary-col, 
    .reviews-list-col {
        width: 100%; /* Ocupan todo el ancho */
    }
    .reviews-summary-col {
        padding: 15px;
    }
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    .review-meta {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .questions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Botones de acción fijos (Sticky Bottom) en móvil */
    .product-sticky-bottom {
        padding: 8px 0;
    }
    .psb-product {
        display: none; /* Ocultamos la info del producto en la barra para ahorrar espacio */
    }
    .psb-buttons {
        width: 100%;
    }
    .psb-buttons .btn-add-cart-v2,
    .psb-buttons .btn-buy-now-v2 {
        flex: 1;
        padding: 10px 12px;
        font-size: 12px;
    }
}



/* =========================================
   SECCIÓN: COMPRADOS JUNTOS HABITUALMENTE (FBT)
   ========================================== */

.fbt-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.fbt-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.fbt-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fbt-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Lista de productos */
.fbt-products-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.fbt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    transition: 0.2s ease;
    min-width: 200px;
}

.fbt-item:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
}

.fbt-main-item {
    background: #fff7ed;
    border-color: #fed7aa;
}

.fbt-checkbox {
    display: flex;
    align-items: center;
}

.fbt-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.fbt-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.fbt-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    mix-blend-mode: multiply;
}

.fbt-info {
    display: flex;
    flex-direction: column;
}

.fbt-label {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.fbt-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 140px;
}

.fbt-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-orange);
}

.fbt-plus {
    color: var(--text-gray);
    font-size: 14px;
}

/* Resumen de precio y botón */
.fbt-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 220px;
}

.fbt-total-price {
    text-align: right;
    font-size: 14px;
    color: var(--text-gray);
}

.fbt-total-price strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1;
    margin-top: 5px;
}

.fbt-add-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .fbt-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .fbt-products-list {
        width: 100%;
        justify-content: center;
    }
    .fbt-summary {
        width: 100%;
        align-items: stretch;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }
}

@media (max-width: 768px) {
    .fbt-products-list {
        flex-direction: column;
        align-items: stretch;
    }
    .fbt-plus {
        display: none; /* Ocultamos los "+" en móvil vertical */
    }
    .fbt-item {
        width: 100%;
    }
    .fbt-info h4 {
        max-width: 100%; /* Dejamos que ocupe todo el ancho */
    }
}



/* Estilos de precios en FBT */
.fbt-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fbt-old-price {
    font-size: 11px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.fbt-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-orange);
}

.fbt-discount {
    background: var(--primary-orange);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}