/* ============================================
   VARIABLES - Colores dinámicos desde BD
   Por defecto (serán sobrescritos por PHP)
   ============================================ */
:root {
    --primary: #e91e8c;
    --primary-hover: #c2177a;
    --primary-light: rgba(233, 30, 140, 0.15);
    --primary-glow: rgba(233, 30, 140, 0.4);
    --primary-border: rgba(233, 30, 140, 0.3);
    --primary-overlay: rgba(233, 30, 140, 0.15);
    --primary-shadow: rgba(233, 30, 140, 0.1);
    --bg: #0f0f0f;
    --bg-dark: #080808;
    --dark: var(--bg);
    --darker: var(--bg-dark);
    --card-bg: #1a1a1a;
    --card: #1a1a1a;
    --text: #f5f5f5;
    --text-light: var(--text);
    --text-gray: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --success: #4caf50;
    --danger: #f44336;
--secondary: #ff6eb4;
    --secondary-border: rgba(255, 110, 180, 0.4);
    --secondary-glow: rgba(255, 110, 180, 0.4);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg); color: var(--text, var(--text-light)); overflow-x: hidden; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark, var(--darker)); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
a { text-decoration: none; color: inherit; }

/* ============================================
   HEADER
   ============================================ */


.nav-container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; height: 100%; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; }
.logo img { max-height: 45px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.logo span { color: white; }
.nav-search { flex: 1; max-width: 400px; margin: 0 30px; position: relative; }
.nav-search input { width: 100%; padding: 10px 20px 10px 45px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50px; color: white; font-size: 0.9rem; transition: all 0.3s ease; }
.nav-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 20px var(--primary-light); }
.nav-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.cart-btn { background: var(--primary-light); border: 1px solid var(--secondary-border); color: var(--primary); padding: 10px 20px; border-radius: 50px; cursor: pointer; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; position: relative; }
.cart-btn:hover { background: linear-gradient(45deg, var(--primary), var(--secondary)); color: white; transform: translateY(-2px); }
.cart-btn .cart-count { background: white; color: var(--primary); }
.cart-btn:hover .cart-count { color: var(--primary); }
.cart-count { background: var(--primary); color: white; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-btn:hover .cart-count { background: white; color: var(--primary); }

/* ============================================
   HERO
   ============================================ */
.hero-banner { padding-top: 90px; background: linear-gradient(135deg, var(--bg) 0%, var(--card) 50%, var(--bg) 100%); position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: center; }
.hero-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(233, 30, 140, 0.12) 0%, transparent 70%); animation: pulse-bg 4s ease-in-out infinite; }
@keyframes pulse-bg { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.hero-inner { max-width: 1300px; margin: 0 auto; padding: 50px 25px; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }
.hero-inner h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 15px; background: linear-gradient(135deg, #fff 0%, var(--primary) 60%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-inner p { color: var(--text-gray); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge { background: var(--primary-light); border: 1px solid rgba(233, 30, 140, 0.3); color: var(--secondary); padding: 7px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.hero-img { text-align: center; }
.hero-img img { max-width: 300px; width: 100%; filter: drop-shadow(0 20px 40px rgba(233, 30, 140, 0.3)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.btn-hero { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(45deg, var(--primary), var(--primary-hover)); color: white; padding: 14px 35px; border-radius: 50px; font-weight: 700; font-size: 1rem; text-decoration: none; margin-top: 20px; transition: all 0.3s ease; box-shadow: 0 10px 30px var(--primary-glow); }
.btn-hero:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 20px 40px var(--primary-glow); }

/* ============================================
   CATEGORÍAS
   ============================================ */
.categories-bar { background: var(--card, var(--darker)); padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: sticky; top: 68px; z-index: 900; }
.categories-scroll { max-width: 1300px; margin: 0 auto; padding: 0 25px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-btn { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-gray); padding: 9px 20px; border-radius: 50px; cursor: pointer; font-size: 0.88rem; font-weight: 600; white-space: nowrap; transition: all 0.3s ease; display: flex; align-items: center; gap: 7px; text-decoration: none; }
.cat-btn:hover, .cat-btn.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-color: var(--primary); box-shadow: 0 8px 25px var(--primary-light); transform: translateY(-2px); }

/* ============================================
   SHOP Y PRODUCTOS
   ============================================ */
.shop-section { max-width: 1300px; margin: 0 auto; padding: 50px 25px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; flex-wrap: wrap; gap: 15px; }
.section-title { font-size: 1.8rem; font-weight: 800; }
.section-title span { color: var(--primary); }
.products-count { color: var(--text-gray); font-size: 0.88rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

.product-card { background: linear-gradient(145deg, var(--card-bg), #1f1f1f); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(233, 30, 140, 0.4); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.product-badge-wrap { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 5px; }
.badge-tag { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-new { background: linear-gradient(45deg, var(--primary), var(--secondary)); color: white; }
.badge-sale { background: linear-gradient(45deg, #f44336, #e53935); color: white; }
.badge-hot { background: linear-gradient(45deg, #ff9800, #f57c00); color: white; }
.badge-best { background: linear-gradient(45deg, #9c27b0, #7b1fa2); color: white; }
.product-wishlist { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; background: rgba(0, 0, 0, 0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-gray); font-size: 0.9rem; }
.product-wishlist:hover, .product-wishlist.active { background: var(--primary); border-color: var(--primary); color: white; transform: scale(1.1); }
.product-img-wrap { height: 220px; overflow: hidden; background: linear-gradient(135deg, #1a0a12, #1f1f1f); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-overlay { position: absolute; inset: 0; background: rgba(233, 30, 140, 0.15); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.product-card:hover .product-overlay { opacity: 1; }
.overlay-btn { background: white; color: var(--primary); padding: 9px 20px; border-radius: 50px; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; gap: 7px; transform: translateY(10px); transition: transform 0.3s ease; text-decoration: none; }
.product-card:hover .overlay-btn { transform: translateY(0); }
.product-info { padding: 18px; }
.product-category { font-size: 0.72rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; cursor: pointer; transition: color 0.3s; text-decoration: none; color: var(--text-light); display: block; }
.product-name:hover { color: var(--primary); }
.product-desc { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.stars { color: #ffc107; font-size: 0.8rem; }
.rating-count { font-size: 0.75rem; color: var(--text-gray); }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.old-price { text-decoration: line-through; color: var(--text-gray); font-size: 0.82rem; display: block; }
.new-price { color: var(--primary); font-size: 1.2rem; font-weight: 900; }
.add-cart-btn { background: linear-gradient(45deg, var(--primary), var(--primary-hover)); color: white; border: none; padding: 10px 16px; border-radius: 12px; cursor: pointer; font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; gap: 7px; transition: all 0.3s ease; white-space: nowrap; }
.add-cart-btn:hover { transform: scale(1.05); }
.add-cart-btn.added { background: linear-gradient(45deg, var(--success), #43a047); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-gray); }
.empty-state i { font-size: 4rem; color: var(--primary); margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-light); }

/* ============================================
   CARRITO SIDEBAR
   ============================================ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; right: -500px; top: 0; width: 100%; max-width: 480px; height: 100vh; height: 100dvh; height: -webkit-fill-available; max-height: 100svh; background: var(--card); z-index: 2001; transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; border-left: 1px solid var(--border); overflow: hidden; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--card); flex-shrink: 0; }
.cart-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.cart-close { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; color: var(--text-gray); font-size: 1.2rem; border: none; }
.cart-close:hover { background: var(--primary); color: white; transform: rotate(90deg); }
.cart-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.cart-item { display: flex; gap: 15px; padding: 15px; background: var(--card); border-radius: 14px; margin-bottom: 12px; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; position: relative; }
.cart-item:hover { border-color: var(--primary); }
.cart-item-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; border: 2px solid var(--primary); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { color: var(--primary); font-weight: 800; font-size: 1rem; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; background: var(--primary-light); border: 1px solid var(--primary); border-radius: 8px; color: var(--primary); cursor: pointer; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.qty-btn:hover { background: var(--primary); color: white; }
.qty-display { font-weight: 700; font-size: 0.95rem; min-width: 25px; text-align: center; }
.cart-item-remove { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; background: rgba(244, 67, 54, 0.15); border: none; border-radius: 50%; color: #f44336; cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.cart-item-remove:hover { background: #f44336; color: white; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-gray); }
.cart-empty i { font-size: 3.5rem; color: var(--primary); opacity: 0.4; margin-bottom: 15px; }
.cart-footer { padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(135deg, #1a0a12, #111); flex-shrink: 0; position: relative; z-index: 2; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-gray); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 1.2rem; font-weight: 800; }
.cart-total span:last-child { color: var(--card); font-size: 1.5rem; }
.btn-checkout { width: 100%; background: linear-gradient(45deg, var(--primary), var(--secondary)); color: white; border: none; padding: 16px; border-radius: 14px; font-size: 1rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 30px var(--primary-glow), 0 0 20px var(--primary-light); position: relative; overflow: hidden; flex-shrink: 0; min-height: 48px; }
.btn-checkout::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.btn-checkout:hover { transform: scale(1.02); box-shadow: 0 15px 40px var(--primary-glow), 0 0 30px var(--primary-light); }
.btn-checkout:hover::before { left: 100%; }

/* ============================================
   MODAL CHECKOUT
   ============================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 3000; display: none; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(10px); }
.modal-overlay.open { display: flex; }
.modal-content { background: var(--card); width: 100%; max-width: 650px; border-radius: 24px; padding: 35px; position: relative; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); max-height: 92vh; overflow-y: auto; }
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.close-modal { position: absolute; top: 18px; right: 22px; font-size: 1.5rem; cursor: pointer; color: var(--text-gray); transition: all 0.3s ease; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: none; border: none; }
.close-modal:hover { color: white; background: rgba(255, 255, 255, 0.1); transform: rotate(90deg); }
.modal-header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 20px; }
.modal-header h2 { color: var(--primary); font-size: 1.6rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 2px; }
.step-indicator { display: flex; justify-content: center; gap: 50px; position: relative; margin-bottom: 5px; }
.step-indicator::before { content: ''; position: absolute; top: 50%; left: 15%; right: 15%; height: 3px; background: #333; z-index: 0; transform: translateY(-50%); border-radius: 2px; }
.step { width: 42px; height: 42px; background: #2a2a2a; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; font-weight: 700; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 3px solid #333; font-size: 0.9rem; }
.step.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 25px var(--primary-glow); transform: scale(1.15); }
.step.completed { background: var(--success); border-color: var(--success); color: white; }

/* ============================================
   FORMULARIOS
   ============================================ */
.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.88rem; color: var(--text-gray); font-weight: 500; }
.form-control { width: 100%; padding: 13px 16px; background: #151515; border: 1px solid #333; border-radius: 12px; color: white; font-size: 0.95rem; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 20px var(--primary-light); }
.row { display: flex; gap: 15px; }
.col { flex: 1; }

/* ============================================
   MÉTODOS DE PAGO
   ============================================ */
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.payment-option { background: linear-gradient(145deg, #1a1a1a, #222222); border: 2px solid #333; border-radius: 16px; padding: 16px 12px; cursor: pointer; text-align: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-gray); position: relative; overflow: hidden; }
.payment-option::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.5s ease; }
.payment-option:hover::before { left: 100%; }
.payment-option:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); }
.payment-option.selected { transform: translateY(-2px) scale(1.02); }

/* PayPal */
.payment-option[data-method="paypal"] { background: linear-gradient(145deg, #1a2a5e, #253b80); border-color: #253b80; }
.payment-option[data-method="paypal"]:hover { border-color: #3d5cb8; box-shadow: 0 15px 35px rgba(37, 59, 128, 0.5); }
.payment-option[data-method="paypal"]:hover i { color: #6b8cff; transform: scale(1.2); }
.payment-option[data-method="paypal"].selected { background: linear-gradient(145deg, #253b80, #1e3270); border-color: #4a7be0; box-shadow: 0 10px 30px rgba(37, 59, 128, 0.6); }
.payment-option[data-method="paypal"].selected i { color: #6b8cff; }
@keyframes paypalPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 59, 128, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(37, 59, 128, 0); } }
.payment-option[data-method="paypal"]:not(.selected) { animation: paypalPulse 2.5s ease-in-out infinite; }

/* Tarjeta */
.payment-option[data-method="card"] { background: linear-gradient(145deg, #2a1a1a, #3d2020); border-color: #5a2525; }
.payment-option[data-method="card"]:hover { border-color: #ff5a5f; box-shadow: 0 15px 35px rgba(255, 90, 95, 0.4); }
.payment-option[data-method="card"]:hover i { color: #ff7a7f; transform: scale(1.2); }
.payment-option[data-method="card"].selected { background: linear-gradient(145deg, #3d2020, #2a1515); border-color: #ff5a5f; box-shadow: 0 10px 30px rgba(255, 90, 95, 0.5); }
.payment-option[data-method="card"].selected i { color: #ff7a7f; }

/* Transferencia */
.payment-option[data-method="transfer"]:hover { border-color: #4caf50; box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4); }
.payment-option[data-method="transfer"]:hover i { color: #4caf50; transform: scale(1.2); }
.payment-option[data-method="transfer"].selected { border-color: #4caf50; background: linear-gradient(145deg, rgba(76, 175, 80, 0.2), rgba(30, 30, 30, 0.9)); }
.payment-option[data-method="transfer"].selected i { color: #4caf50; }

/* Contra Entrega */
.payment-option[data-method="cod"]:hover { border-color: #2196f3; box-shadow: 0 15px 35px rgba(33, 150, 243, 0.4); }
.payment-option[data-method="cod"]:hover i { color: #2196f3; transform: scale(1.2); }
.payment-option[data-method="cod"].selected { border-color: #2196f3; background: linear-gradient(145deg, rgba(33, 150, 243, 0.2), rgba(30, 30, 30, 0.9)); }
.payment-option[data-method="cod"].selected i { color: #2196f3; }

.payment-option i { font-size: 1.8rem; transition: all 0.3s ease; display: block; }
.payment-option span { font-size: 0.8rem; font-weight: 600; }

/* ============================================
   CUENTAS BANCARIAS
   ============================================ */
.bank-accounts { background: #151515; border-radius: 12px; padding: 18px; margin-top: 18px; border: 1px solid #333; display: none; }
.bank-accounts.visible { display: block; animation: fadeIn 0.4s ease; }
.bank-account-option { display: flex; align-items: center; padding: 13px; background: #1e1e1e; border: 2px solid #333; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.3s ease; }
.bank-account-option:hover { border-color: #444; }
.bank-account-option.selected { border-color: var(--primary); background: rgba(255,255,255,0.08); }
.bank-radio { width: 20px; height: 20px; border: 2px solid #444; border-radius: 50%; margin-right: 13px; position: relative; transition: all 0.3s ease; flex-shrink: 0; }
.bank-account-option.selected .bank-radio { border-color: var(--primary); background: var(--primary); }
.bank-account-option.selected .bank-radio::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 11px; font-weight: bold; }
.bank-info strong { display: block; color: var(--primary); margin-bottom: 3px; font-size: 0.9rem; }
.bank-info span { font-size: 0.8rem; color: #888; }
.bank-info .account-num { font-family: monospace; font-size: 0.95rem; color: #fff; margin-top: 4px; }
.upload-area { border: 2px dashed #444; padding: 25px; text-align: center; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; position: relative; background: #151515; margin-top: 15px; }
.upload-area:hover { border-color: var(--primary); background: rgba(233, 30, 140, 0.05); }
.upload-area input { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }
.upload-preview { max-width: 100%; max-height: 160px; margin-top: 12px; border-radius: 8px; display: none; border: 2px solid var(--success); }

/* ============================================
   INFO BOX
   ============================================ */
.info-box { background: rgba(76, 175, 80, 0.1); border: 1px solid var(--success); border-radius: 12px; padding: 16px; margin-top: 18px; display: none; }
.info-box.visible { display: block; animation: fadeIn 0.4s ease; }
.info-box h5 { color: var(--success); margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.info-box p { font-size: 0.88rem; color: #aaa; }

/* ============================================
   BOTONES
   ============================================ */
.btn-next { background: linear-gradient(45deg, var(--primary), var(--primary-hover)); color: white; padding: 15px 35px; border-radius: 50px; font-weight: 800; font-size: 1rem; border: none; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 30px var(--primary-glow); margin-top: 10px; }
.btn-next:hover { transform: scale(1.02); box-shadow: 0 15px 40px var(--primary-glow); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; background: #444 !important; }
.btn-next:disabled:hover { transform: none !important; box-shadow: none !important; }
.btn-back { background: transparent; color: var(--text-gray); padding: 12px 25px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 1px solid #333; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; margin-top: 10px; width: 100%; }
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-finish { background: linear-gradient(45deg, var(--success), #43a047); color: white; padding: 16px 35px; border-radius: 50px; font-weight: 800; font-size: 1rem; border: none; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3); margin-top: 10px; }
.btn-finish:hover { transform: scale(1.02); box-shadow: 0 15px 40px rgba(76, 175, 80, 0.5); }

/* ============================================
   RESUMEN DEL PEDIDO
   ============================================ */
.summary-box { background: rgba(255, 255, 255, 0.03); padding: 18px; border-radius: 12px; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, 0.05); }
.summary-box p { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.9rem; display: flex; gap: 8px; align-items: flex-start; }
.summary-box p:last-child { border-bottom: none; }
.summary-box p strong { color: var(--primary); min-width: 100px; flex-shrink: 0; }
.total-display { text-align: center; margin-bottom: 22px; }
.total-display .label { font-size: 0.88rem; color: var(--text-gray); margin-bottom: 5px; }
.total-display .amount { color: var(--primary); font-size: 2.5rem; font-weight: 900; text-shadow: 0 0 30px var(--primary-glow); }
.savings-badge { color: var(--danger); font-size: 0.95rem; margin-top: 5px; }

/* ============================================
   PAYPAL
   ============================================ */
#paypal-payment-element, #card-payment-element { min-height: 80px; background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%); border: 1px solid #333; border-radius: 16px; padding: 20px; margin-top: 15px; display: flex; align-items: center; justify-content: center; }
.paypal-loading-container { text-align: center; padding: 25px 20px; color: var(--text-gray); }
.paypal-loading-container i { font-size: 2rem; color: var(--primary); animation: pulse 1.5s ease-in-out infinite; display: block; margin-bottom: 10px; }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.paypal-success { text-align: center; padding: 20px; background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.05)); border: 2px solid var(--success); border-radius: 16px; margin-top: 15px; animation: slideIn 0.4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
.paypal-success i { font-size: 3rem; color: var(--success); display: block; margin-bottom: 12px; animation: successPop 0.5s ease; }
@keyframes successPop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.paypal-success h4 { color: var(--success); margin-bottom: 8px; font-size: 1.1rem; }
.paypal-success p { font-size: 0.85rem; color: #aaa; margin: 4px 0; }

/* ============================================
   TOAST
   ============================================ */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: linear-gradient(45deg, var(--primary), var(--primary-hover)); color: white; padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; z-index: 9999; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px var(--primary-glow); white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================
   FLOATING CART
   ============================================ */
.floating-cart { position: fixed; bottom: 30px; right: 25px; background: linear-gradient(45deg, var(--primary), var(--primary-hover)); color: white; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; z-index: 999; cursor: pointer; box-shadow: 0 8px 25px var(--primary-glow); transition: all 0.3s ease; border: none; animation: pulse-cart 2s infinite; }
@keyframes pulse-cart { 0% { box-shadow: 0 0 0 0 var(--primary-glow); } 70% { box-shadow: 0 0 0 15px rgba(233, 30, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 30, 140, 0); } }
.floating-cart:hover { transform: scale(1.1); }
.floating-cart-count { position: absolute; top: -5px; right: -5px; background: white; color: var(--primary); width: 22px; height: 22px; border-radius: 50%; font-size: 0.72rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* ============================================
   WHATSAPP FLOAT — Redondo + burbujas
   ============================================ */
.wa-float-wrap {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    z-index: 920;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: bottom 0.45s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.3s ease, transform 0.3s ease;
}
.wa-float-bubble {
    position: relative;
    max-width: 240px;
    padding: 12px 36px 12px 16px;
    background: rgba(255, 255, 255, 0.97);
    color: #1a1a1a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-float-bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: waBubblePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes waBubblePop {
    0% { opacity: 0; transform: translateY(12px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-float-bubble-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: #666;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.wa-float-bubble-close:hover { background: rgba(0, 0, 0, 0.12); color: #333; }
.wa-float {
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waFloatBob 3s ease-in-out infinite;
}
@keyframes waFloatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.wa-float:hover { animation: none; transform: scale(1.08); }
.wa-float-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.45);
    animation: waRingPulse 2.2s ease-out infinite;
    pointer-events: none;
}
.wa-float-ring--delay { animation-delay: 1.1s; inset: -12px; border-width: 1px; opacity: 0.6; }
@keyframes waRingPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.45); opacity: 0; }
}
.wa-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #25D366, #1aab54);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    z-index: 1;
}
.wa-float:hover .wa-float-btn {
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ocultar WhatsApp flotante cuando el carrito o checkout están abiertos */
body.cart-open .wa-float-wrap,
body.checkout-open .wa-float-wrap {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

/* Producto: subir WhatsApp cuando aparece la barra sticky */
body.page-producto.pdp-sticky-active .wa-float-wrap {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 945;
}
body.page-producto.pdp-sticky-active .wa-float-bubble {
    max-width: min(200px, calc(100vw - 100px));
}

/* ── Ubicación automática + totales checkout ── */
.location-auto-box {
    background: linear-gradient(135deg, rgba(233,30,140,0.08), rgba(124,77,255,0.05));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}
.location-auto-box h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.location-status-box {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.location-status-box.is-success { border-color: rgba(76,175,80,0.4); color: var(--text-light); }
.location-status-box.is-warn { border-color: rgba(255,152,0,0.4); }
.location-status-box.is-loading { opacity: 0.85; }
.loc-detect-btn {
    width: 100%;
    margin-top: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
}
.loc-detect-btn:hover { opacity: 0.92; }
.loc-inline-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}
.checkout-totals-panel {
    background: var(--card);
    border: 1px solid var(--primary);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.checkout-totals-panel .ctp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}
.checkout-totals-panel .ctp-row--total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-light);
}
.checkout-totals-panel .ctp-row--total span:last-child {
    color: var(--primary);
    font-size: 1.2rem;
}
.loc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.loc-modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.loc-modal-box--wide { max-width: 440px; }
.loc-modal-box h4 { margin: 0 0 10px; color: var(--primary); font-size: 1.15rem; }
.loc-modal-box p { margin: 0; font-size: 0.88rem; color: var(--text-gray); line-height: 1.5; }
.loc-modal-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    background: rgba(233,30,140,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
}
.loc-confirm-text { font-weight: 600; color: var(--text-light) !important; margin-bottom: 12px !important; }
.loc-confirm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 14px 0;
    font-size: 0.8rem;
}
.loc-confirm-meta span {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.loc-confirm-meta .loc-warn { color: #ff9800; border-color: rgba(255,152,0,0.3); }
.loc-modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.loc-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.loc-btn--primary { background: var(--primary); color: #fff; }
.loc-btn--ghost { background: var(--bg); color: var(--text-light); border: 1px solid var(--border); }
.loc-modal-hint { margin-top: 14px !important; font-size: 0.75rem !important; opacity: 0.7; }

/* ── Upsell checkout ── */
.upsell-wrap { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.upsell-free-progress {
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(233,30,140,0.06));
    border: 1px solid rgba(76,175,80,0.35);
    border-radius: 14px;
    padding: 14px 16px;
}
.upsell-free-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.upsell-free-progress-head strong { color: var(--primary); }
.upsell-progress-track {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.upsell-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4caf50);
    border-radius: 99px;
    transition: width 0.5s ease;
}
.upsell-progress-hint { font-size: 0.78rem; color: var(--text-gray); margin: 8px 0 0; }
.upsell-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 14px;
    animation: fadeIn 0.4s ease;
}
.upsell-card--highlight {
    border-color: rgba(76,175,80,0.5);
    background: linear-gradient(135deg, rgba(76,175,80,0.08), rgba(233,30,140,0.05));
    box-shadow: 0 0 0 1px rgba(76,175,80,0.15);
}
.upsell-card-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.upsell-card-body { flex: 1; min-width: 0; line-height: 1.35; }
.upsell-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(233,30,140,0.15);
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.upsell-card--highlight .upsell-badge { background: rgba(76,175,80,0.2); color: #4caf50; }
.upsell-card-title { font-size: 0.88rem; font-weight: 700; color: var(--text-light); }
.upsell-card-msg { font-size: 0.76rem; color: var(--text-gray); margin: 4px 0 0; }
.upsell-card-msg b { color: var(--success, #4caf50); }
.upsell-card-action { text-align: right; flex-shrink: 0; }
.upsell-price-old { font-size: 0.75rem; color: var(--text-gray); text-decoration: line-through; display: block; }
.upsell-price-now { font-size: 1.05rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.upsell-add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.upsell-add-btn:hover { opacity: 0.9; }
.upsell-add-btn:disabled { opacity: 0.5; cursor: wait; }
.checkout-cart-list { max-height: 200px; overflow-y: auto; padding-right: 6px; margin-bottom: 10px; }
.checkout-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}
.checkout-cart-item img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; }
.checkout-cart-item-info { flex: 1; min-width: 0; }
.checkout-cart-item-name { font-size: 0.85rem; font-weight: 700; }
.checkout-cart-item-qty { font-size: 0.75rem; color: var(--text-gray); }
.checkout-cart-item-price { color: var(--primary); font-weight: 800; font-size: 0.9rem; }
.checkout-var { color: var(--primary); font-size: 0.75rem; }
.checkout-cart-totals { border-top: 1px solid var(--border); padding-top: 10px; font-size: 0.88rem; color: var(--text-gray); }
.checkout-cart-totals > div { display: flex; justify-content: space-between; padding: 3px 0; }
.checkout-cart-total-row { font-size: 1.05rem; font-weight: 800; color: var(--text-light); margin-top: 6px; padding-top: 8px !important; border-top: 1px solid var(--border); }
.checkout-cart-total-row span:last-child { color: var(--primary); }
.payment-option.disabled { opacity: 0.35 !important; pointer-events: none !important; }

/* ── Checkout por pasos ── */
.checkout-section {
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}
.checkout-section-head {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted, var(--text-gray));
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-section-head i { color: var(--primary); }
.checkout-cart-panel {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.checkout-cart-empty {
    text-align: center;
    color: var(--text-muted, var(--text-gray));
    font-size: 0.85rem;
    padding: 16px 8px;
    margin: 0;
}
.checkout-cart-item-body { flex: 1; min-width: 0; }
.checkout-cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 8px;
}
.checkout-cart-item-opts {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 2px;
}
.checkout-cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.checkout-item-remove {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(244, 67, 54, 0.12);
    color: #f44336;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.checkout-item-remove:hover {
    background: #f44336;
    color: #fff;
}
.checkout-upsell-panel { margin-bottom: 18px; }

/* ── Stock en tiempo real ── */
.product-img-wrap .product-badge-discount,
.product-img-wrap .badge-sale,
.main-image-container .img-badge,
.main-image-container .product-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.12);
}
.product-img-wrap .stock-live-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    top: auto;
    right: auto;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    line-height: 1.2;
    max-width: calc(100% - 20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.stock-live-badge--low {
    background: rgba(255, 152, 0, 0.94);
    color: #1a1a1a;
}
.stock-live-badge--reserved {
    background: rgba(233, 30, 140, 0.92);
    color: #fff;
}
.stock-live-badge--sold_out {
    background: rgba(40, 40, 40, 0.92);
    color: #fff;
}
.stock-qty-live {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #888);
    letter-spacing: 0.02em;
}
.stock-qty-live:empty { display: none; }
.product-card[data-stock-status="low"] .stock-qty-live { color: #ff9800; }
.product-card[data-stock-status="reserved"] .stock-qty-live,
.product-card[data-inventory-left="0"] .stock-qty-live { color: var(--danger, #f44336); }
.stock-live-count {
    font-weight: 800;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}
.stock-count-pulse {
    animation: stockCountPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--primary) !important;
}
@keyframes stockCountPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.stock-live-pdp-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.stock-live-pdp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 10px;
    transition: background 0.3s ease;
}
.stock-live-pdp--ok { color: var(--success, #4caf50); background: rgba(76,175,80,0.08); }
.stock-live-pdp--low { color: #ff9800; background: rgba(255,152,0,0.12); border: 1px solid rgba(255,152,0,0.25); }
.stock-live-pdp--warn { color: #f44336; background: rgba(244,67,54,0.12); border: 1px solid rgba(244,67,54,0.25); }
.stock-live-pdp--danger { color: var(--danger, #f44336); }
.stock-live-pdp--hint { color: var(--text-muted, #888); font-size: 0.76rem; font-weight: 600; background: rgba(255,255,255,0.04); padding: 4px 10px; border-radius: 8px; }

/* ── PDP stock meta (debajo del título) ── */
.product-stock-meta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.stock-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, background 0.3s ease;
}
.stock-meta-pill--ok {
    color: var(--success, #4caf50);
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.22);
}
.stock-meta-pill--low {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.28);
}
.stock-meta-pill--out,
.stock-meta-pill--warn {
    color: var(--danger, #f44336);
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.22);
}
.stock-meta-pill--cart {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
}
.stock-meta-animate .stock-meta-pill {
    animation: stockMetaPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stockMetaPop {
    0% { transform: scale(0.92); opacity: 0.7; }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); opacity: 1; }
}
.product-card .price-wrap { padding: 0; }
.product-card .product-category { padding: 0; }
.product-card .product-name { padding: 0; }
.product-card-body { display: flex; flex-direction: column; flex: 1; }

/* Tablet (iPad Pro, etc.) — carrito sticky footer */
@media (min-width: 601px) and (max-width: 1024px) {
    .cart-sidebar {
        max-width: min(480px, 52vw);
    }
    .cart-footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================
   FOOTER — Minimal Premium
   ============================================ */
.store-footer {
    position: relative;
    background: var(--footer-bg, var(--bg-dark));
    margin-top: 80px;
    overflow: hidden;
}
.sf-accent-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--footer-accent, var(--primary)), transparent);
    opacity: 0.5;
}
.store-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}
.sf-hero-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid color-mix(in srgb, var(--footer-text) 18%, transparent);
}
.sf-brand { flex: 1; min-width: 0; }
.sf-brand--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.sf-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.sf-logo img {
    max-height: 72px;
    max-width: 200px;
    object-fit: contain;
    display: block;
    opacity: 1;
}
.sf-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.sf-tagline {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--footer-text);
    opacity: 0.88;
    max-width: 420px;
    line-height: 1.6;
}
.sf-wa-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    background: color-mix(in srgb, var(--footer-text) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--footer-text) 14%, transparent);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.sf-wa-cta:hover {
    background: color-mix(in srgb, #25D366 10%, transparent);
    border-color: color-mix(in srgb, #25D366 35%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.12);
}
.sf-wa-cta-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #25D366, #1aab54);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.sf-wa-cta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sf-wa-cta-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--footer-text);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.sf-wa-cta-action {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--footer-text);
    opacity: 0.95;
    letter-spacing: -0.2px;
}
.sf-wa-cta-arrow {
    font-size: 0.7rem;
    color: var(--footer-text);
    opacity: 0.35;
    margin-left: 4px;
    transition: transform 0.25s, opacity 0.25s;
}
.sf-wa-cta:hover .sf-wa-cta-arrow {
    transform: translateX(3px);
    opacity: 0.7;
    color: #25D366;
}
.sf-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}
.sf-nav-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--footer-text);
    opacity: 0.78;
    margin-bottom: 16px;
}
.sf-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sf-nav-list li { margin-bottom: 10px; }
.sf-nav-list li:last-child { margin-bottom: 0; }
.sf-nav-list a,
.sf-nav-static {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--footer-text);
    opacity: 0.92;
    text-decoration: none;
    line-height: 1.45;
    transition: opacity 0.2s, color 0.2s;
}
.sf-nav-list a i,
.sf-nav-static i {
    width: 14px;
    font-size: 0.78rem;
    opacity: 0.75;
    flex-shrink: 0;
    text-align: center;
    color: var(--footer-accent, var(--primary));
}
.sf-nav-list a:hover {
    opacity: 1;
    color: var(--footer-accent, var(--primary));
}
.sf-nav-list a:hover i { opacity: 1; color: var(--footer-accent, var(--primary)); }
.sf-nav-static { cursor: default; align-items: flex-start; }
.sf-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid color-mix(in srgb, var(--footer-text) 10%, transparent);
}
.sf-social-row {
    display: flex;
    gap: 6px;
}
.sf-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    opacity: 0.75;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--footer-text) 12%, transparent);
    transition: all 0.25s ease;
}
.sf-social-link:hover {
    opacity: 1;
    color: var(--footer-accent, var(--primary));
    border-color: color-mix(in srgb, var(--footer-accent, var(--primary)) 40%, transparent);
    background: color-mix(in srgb, var(--footer-accent, var(--primary)) 8%, transparent);
    transform: translateY(-2px);
}
.sf-copy {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--footer-text);
    opacity: 0.9;
    letter-spacing: 0.2px;
    text-align: left;
}

footer:not(.store-footer) { background: var(--darker); padding: 40px 25px; text-align: center; color: var(--text-gray); font-size: 0.88rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
footer:not(.store-footer) .logo { display: inline-block; margin-bottom: 15px; }

/* ============================================
   TELÉFONO
   ============================================ */
.phone-input-group { display: flex; gap: 8px; }
.phone-select { width: 70px; flex-shrink: 0; padding: 12px 0px; font-size: 0.9rem; text-align: center; }
.phone-input { flex: 1; }
.phone-input::placeholder { font-size: 0.85rem; color: #666; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-img img { max-width: 220px; }
    .nav-search { display: none; }
    .package-options { grid-template-columns: 1fr; }
    .row { flex-direction: column; }
    
    /* Productos: 2 columnas en tablets */
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .product-img-wrap { height: 180px; }
}

/* Móviles - 1 sola columna */
@media (max-width: 600px) {
    .products-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    .product-img-wrap { height: 200px; }
    .cart-sidebar { max-width: 100%; }
    .modal-content { padding: 20px; }
    .phone-input-group { flex-direction: column; }
    .phone-select { width: 100%; }
}
/* ============================================
   MEJORAS MÓVIL
   ============================================ */

/* HEADER - Logo más pequeño en móvil */
@media (max-width: 600px) {
    .nav-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .logo span {
        font-size: 0.95rem;
    }
    
    .cart-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .cart-btn i {
        font-size: 1rem;
    }
    
    .cart-btn span.cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}

/* ============================================
   CARRITO SIDEBAR - MÓVIL MEJORADO
   ============================================ */
@media (max-width: 600px) {
    .cart-sidebar {
        max-width: 100%;
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 15px;
        flex-direction: row;
        justify-content: center;
        position: relative;
    }
    
    .cart-header h3 {
        font-size: 0;
        /* Ocultamos el texto "Mi Carrito" */
    }
    
    .cart-header h3::before {
        content: '\f07a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.4rem;
        color: var(--primary);
    }
    
    /* Icono de cierre más pequeño y a la derecha */
    .cart-close {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
    }
    
    /* Carrito vacío - más compacto */
    .cart-empty {
        padding: 40px 15px;
    }
    
    .cart-empty i {
        font-size: 2.5rem;
    }
    
    .cart-empty h3 {
        font-size: 1.1rem;
    }
    
    /* Items del carrito - más compactos */
    .cart-items {
        padding: 15px;
    }
    
    .cart-item {
        padding: 10px;
        gap: 10px;
    }
    
    .cart-item-img {
        width: 55px;
        height: 55px;
    }
    
    .cart-item-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .cart-item-controls {
        margin-top: 5px;
    }
    
    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .qty-display {
        font-size: 0.85rem;
        min-width: 20px;
    }
    
    .cart-item-remove {
        top: 5px;
        right: 5px;
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    /* Footer del carrito */
    .cart-footer {
        padding: 15px;
    }
    
    .cart-subtotal {
        font-size: 0.85rem;
    }
    
    .cart-total {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .cart-total span:last-child {
        font-size: 1.2rem;
    }
    
    .btn-checkout {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* ============================================
   MODAL CHECKOUT - MÓVIL MEJORADO
   ============================================ */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        margin: 0;
    }
    
    .close-modal {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .step-indicator {
        gap: 30px;
    }
    
    .step {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    /* Carrito en checkout modal */
    .checkout-cart-panel { max-height: 180px; }
    .checkout-cart-item { padding: 8px; gap: 10px; }
    .checkout-cart-item-img { width: 44px; height: 44px; }
    .checkout-item-remove { width: 34px; height: 34px; }
    .upsell-card { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .upsell-card-img { width: 48px; height: 48px; }
    .upsell-card-action { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    
    /* Formularios más compactos */
    .form-step h3 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .row {
        gap: 10px;
    }
    
    /* Teléfono - select más pequeño */
    .phone-select {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    /* Métodos de pago - 2 columnas */
    .payment-methods {
        gap: 8px;
    }
    
    .payment-option {
        padding: 12px 8px;
    }
    
    .payment-option i {
        font-size: 1.4rem;
    }
    
    .payment-option span {
        font-size: 0.75rem;
    }
    
    /* Cuentas bancarias */
    .bank-account-option {
        padding: 10px;
    }
    
    .bank-info strong {
        font-size: 0.85rem;
    }
    
    .bank-info span {
        font-size: 0.75rem;
    }
    
    .account-num {
        font-size: 0.85rem !important;
    }
    
    /* Upload area */
    .upload-area {
        padding: 15px;
    }
    
    .upload-area i {
        font-size: 1.4rem;
    }
    
    /* Botones */
    .btn-next {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-back {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-finish {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    /* Resumen */
    .summary-box {
        padding: 12px;
    }
    
    .summary-box p {
        font-size: 0.8rem;
        padding: 5px 0;
    }
    
    .summary-box p strong {
        min-width: 80px;
    }
    
    .total-display .label {
        font-size: 0.8rem;
    }
    
    .total-display .amount {
        font-size: 2rem;
    }
    
    /* PayPal */
    #paypal-payment-element,
    #card-payment-element {
        min-height: 60px;
        padding: 15px;
    }
    
    .paypal-success {
        padding: 15px;
    }
    
    .paypal-success i {
        font-size: 2rem;
    }
    
    .paypal-success h4 {
        font-size: 1rem;
    }
}

/* ============================================
   FLOATING CART - MÓVIL
   ============================================ */
@media (max-width: 600px) {
    .floating-cart {
        bottom: 20px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}

/* WHATSAPP + FOOTER — MÓVIL */
@media (max-width: 600px) {
    .wa-float-wrap {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(14px + env(safe-area-inset-right, 0px));
    }
    body.page-producto.pdp-sticky-active .wa-float-wrap {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }
    .wa-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.45rem;
    }
    .wa-float-bubble {
        max-width: 200px;
        font-size: 0.78rem;
    }
    .sf-wa-cta { width: 100%; max-width: 320px; }
    .sf-nav-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .sf-nav-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sf-nav-col .sf-nav-list a,
    .sf-nav-col .sf-nav-static {
        justify-content: center;
    }
    .sf-nav-col--contact {
        width: 100%;
        max-width: 360px;
        margin: 4px auto 0;
        padding: 22px 20px;
        border-radius: 18px;
        background: color-mix(in srgb, var(--footer-text) 6%, transparent);
        border: 1px solid color-mix(in srgb, var(--footer-text) 12%, transparent);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    }
    .sf-nav-col--contact .sf-nav-label {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        margin-bottom: 18px;
        opacity: 0.9;
    }
    .sf-nav-col--contact .sf-nav-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sf-nav-col--contact .sf-nav-list li {
        margin-bottom: 12px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .sf-nav-col--contact .sf-nav-list a,
    .sf-nav-col--contact .sf-nav-static {
        font-size: 0.9rem;
        padding: 10px 14px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--footer-text) 4%, transparent);
        border: 1px solid color-mix(in srgb, var(--footer-text) 8%, transparent);
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
    .sf-nav-col--contact .sf-nav-list a:hover {
        background: color-mix(in srgb, var(--footer-accent, var(--primary)) 10%, transparent);
        border-color: color-mix(in srgb, var(--footer-accent, var(--primary)) 25%, transparent);
    }
    .sf-nav-col--contact .sf-nav-static {
        align-items: center;
        text-align: center;
        line-height: 1.5;
    }
    .sf-nav-col--contact .sf-nav-list a i,
    .sf-nav-col--contact .sf-nav-static i {
        width: 18px;
        font-size: 0.9rem;
    }
    .sf-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-top: 24px;
    }
    .sf-bottom-left,
    .sf-bottom-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .sf-copy {
        text-align: center;
        font-size: 0.78rem;
        line-height: 1.5;
        max-width: 320px;
    }
    .sf-social-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .sf-social-link {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    .sf-logo img { max-height: 60px; max-width: 180px; }
    .store-footer-inner { padding: 36px 18px 28px; }
    .store-footer { margin-top: 48px; }
    footer:not(.store-footer) {
        padding: 25px 15px;
        font-size: 0.8rem;
    }
    footer:not(.store-footer) .logo { font-size: 1rem; }
}

/* ============================================
   TOAST - MÓVIL
   ============================================ */
@media (max-width: 600px) {
    .toast {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        padding: 12px 20px;
        font-size: 0.85rem;
        max-width: 90%;
    }
    
    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   HERO - MÓVIL
   ============================================ */
@media (max-width: 600px) {
    .hero-banner {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-inner {
        padding: 30px 15px;
    }
    
    .hero-inner h1 {
        font-size: 1.8rem;
    }
    
    .hero-inner p {
        font-size: 0.9rem;
    }
    
    .hero-badges {
        gap: 8px;
    }
    
    .hero-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .hero-img img {
        max-width: 180px;
    }
    
    .btn-hero {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ============================================
   CATEGORÍAS - MÓVIL
   ============================================ */
@media (max-width: 600px) {
    .categories-bar {
        top: 55px;
        padding: 12px 0;
    }
    
    .cat-btn {
        padding: 7px 14px;
        font-size: 0.78rem;
    }
}



/* ============================================
   PRODUCTO.PHP - RESPONSIVE COMPLETO
   ============================================ */

/* HEADER - Logo más pequeño en móvil */
@media (max-width: 600px) {
    .nav-container { padding: 0 15px; gap: 8px; }
    .logo { font-size: 1rem; letter-spacing: 1px; }
    .logo span { font-size: 0.9rem; }
    .cart-btn { padding: 8px 12px; font-size: 0.75rem; }
    .cart-btn i { font-size: 0.9rem; }
    .cart-count { width: 18px; height: 18px; font-size: 0.6rem; }
}

/* BREADCRUMB */
@media (max-width: 600px) {
    .breadcrumb {
        padding: 85px 15px 15px;
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* PRODUCT SECTION */
@media (max-width: 900px) {
    .product-section {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 15px;
    }
    .product-gallery { position: static; }
    .main-img-wrap img { height: 300px; }
    .product-title { font-size: 1.6rem; }
    .price-new { font-size: 2rem; }
}

@media (max-width: 600px) {
    .product-section { padding: 10px 15px 40px; }
    .main-img-wrap { border-radius: 16px; }
    .main-img-wrap img { height: 220px; }
    .img-badge { top: 12px; left: 12px; padding: 5px 12px; font-size: 0.75rem; }
    
    .product-title { font-size: 1.3rem; margin-bottom: 10px; }
    .product-cat-link { font-size: 0.7rem; margin-bottom: 8px; }
    
    .product-rating-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }
    .stars { font-size: 0.9rem; }
    .rating-text { font-size: 0.75rem; }
    .stock-badge { font-size: 0.7rem; padding: 4px 10px; }
    
    .price-section { padding: 15px; border-radius: 12px; margin-bottom: 15px; }
    .price-old { font-size: 0.95rem; }
    .price-new { font-size: 1.8rem; }
    .price-save { font-size: 0.75rem; }
    
    /* Cantidad - más compacto */
    .qty-section { margin-bottom: 15px; gap: 10px; }
    .qty-section label { font-size: 0.8rem; }
    .qty-controls { border-radius: 8px; }
    .qty-ctrl-btn { width: 32px; height: 32px; font-size: 1rem; }
    .qty-num { width: 40px; font-size: 0.9rem; }
    
    /* Botones de acción */
    .action-btns { gap: 8px; margin-bottom: 15px; }
    .btn-add-cart, .btn-buy-now {
        padding: 12px 15px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    .btn-wishlist-prod {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    /* Features - 1 columna */
    .product-features { grid-template-columns: 1fr; gap: 8px; }
    .feature-item { padding: 10px; }
    .feature-item span { font-size: 0.75rem; }
    
    /* Tabs */
    .tabs { margin-bottom: 15px; }
    .tab-buttons { 
        gap: 3px; 
        padding: 4px; 
        border-radius: 10px;
        overflow-x: auto;
    }
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
        white-space: nowrap;
        min-width: fit-content;
    }
    .tab-content p { font-size: 0.85rem; line-height: 1.6; }
    .tab-content ul li { font-size: 0.8rem; padding: 8px 0; padding-left: 22px; }
}

/* PRODUCTOS RELACIONADOS */
@media (max-width: 900px) {
    .related-section { padding: 0 15px 50px; }
    .related-title { font-size: 1.3rem; margin-bottom: 20px; }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .related-section { padding: 0 15px 40px; }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-card { border-radius: 14px; }
    .product-img-wrap { height: 160px; }
    .product-info { padding: 12px; }
    .product-category { font-size: 0.65rem; }
    .product-name { font-size: 0.85rem; margin-bottom: 8px; }
    .product-footer { gap: 8px; }
    .new-price { font-size: 1rem; }
    .add-cart-btn { padding: 8px 12px; font-size: 0.75rem; }
}

/* CARRITO SIDEBAR - MÓVIL */
@media (max-width: 600px) {
    .cart-sidebar {
        max-width: 100%;
        width: 100%;
        right: -100%;
    }
    .cart-header { padding: 12px; }
    .cart-header h3 {
        font-size: 0;
    }
    .cart-header h3::before {
        content: '\f07a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.3rem;
        color: var(--primary);
    }
    .cart-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .cart-items { padding: 12px; }
    .cart-item {
        padding: 10px;
        gap: 10px;
    }
    .cart-item-img {
        width: 55px;
        height: 55px;
    }
    .cart-item-name { font-size: 0.8rem; }
    .cart-item-price { font-size: 0.85rem; }
    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }
    .cart-item-remove {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    .cart-footer { padding: 12px; }
    .cart-total { font-size: 0.95rem; margin-bottom: 10px; }
    .cart-total span:last-child { font-size: 1.1rem; }
    .btn-checkout {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* MODAL CHECKOUT - MÓVIL */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 18px 18px 0 0;
        padding: 18px;
        margin: 0;
    }
    .close-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    .modal-header { margin-bottom: 15px; padding-bottom: 12px; }
    .modal-header h2 { font-size: 1.1rem; margin-bottom: 10px; }
    .step-indicator { gap: 25px; }
    .step {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    .checkout-cart-panel { max-height: 160px; font-size: 0.82rem; }
    .checkout-cart-item-img { width: 40px; height: 40px; }
    
    /* Formularios */
    .form-step h3 { font-size: 0.9rem !important; margin-bottom: 12px !important; }
    .form-group { margin-bottom: 12px; }
    .form-group label { font-size: 0.75rem; margin-bottom: 5px; }
    .form-control { padding: 10px 12px; font-size: 0.85rem; border-radius: 8px; }
    
    /* Métodos de pago */
    .payment-methods { gap: 8px; margin-bottom: 15px; }
    .payment-option {
        padding: 10px 8px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    .payment-option i { font-size: 1.2rem; }
    
    /* Cuentas bancarias */
    .bank-account-option { padding: 10px; }
    .bank-info strong { font-size: 0.8rem; }
    .bank-info span { font-size: 0.7rem; }
    .account-num { font-size: 0.8rem !important; }
    .upload-area { padding: 15px; }
    
    /* Botones */
    .btn-next {
        padding: 12px 20px;
        font-size: 0.85rem;
        margin-top: 8px;
    }
    .btn-back {
        padding: 10px 18px;
        font-size: 0.8rem;
        margin-top: 6px;
    }
    .btn-finish {
        padding: 13px 20px;
        font-size: 0.85rem;
    }
    
    /* Resumen */
    .summary-box { padding: 12px; margin-bottom: 12px; }
    .summary-box p { font-size: 0.75rem; padding: 5px 0; }
    .summary-box p strong { min-width: 70px; }
    .total-display .label { font-size: 0.75rem; }
    .total-display .amount { font-size: 1.8rem; }
}

/* FLOATING CART - MÓVIL */
@media (max-width: 600px) {
    .floating-cart {
        bottom: 15px;
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    .floating-cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

/* TOAST - MÓVIL */
@media (max-width: 600px) {
    .toast {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        padding: 10px 18px;
        font-size: 0.8rem;
        max-width: 90%;
    }
    .toast.show { transform: translateX(-50%) translateY(0); }
}

/* FOOTER - TABLET */
@media (max-width: 900px) {
    .sf-nav-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .sf-nav-col--contact {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sf-nav-col--contact .sf-nav-list a,
    .sf-nav-col--contact .sf-nav-static {
        justify-content: center;
    }
    .sf-nav-col--contact .sf-nav-static {
        align-items: center;
        text-align: center;
    }
}