﻿/* ============================================
   FUSION KEYS — Catálogo de Licencias
   Floating Header + Armonizado con fusiondigitalperu
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #f4f6fb;
    --bg-hero: #0a0f1e;
    --card: #ffffff;
    --card-hover: #fafbff;
    --text: #101828;
    --text-light: #ffffff;
    --muted: #5d6b82;
    --muted-light: #8b97ad;
    --border: #e4e8f0;
    --border-hover: #c8cfe0;
    --soft: #eef1f8;
    --primary: #ff7300;
    --primary-dark: #e66800;
    --primary-light: rgba(255, 115, 0, 0.15);
    --purple: #0260f8;
    --purple-light: rgba(2, 96, 248, 0.15);
    --green: #22c55e;
    --green-dark: #16a34a;
    --green-light: rgba(34, 197, 94, 0.10);
    --amber: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.05);
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.10);
    --shadow-glow: 0 0 24px rgba(255, 115, 0, 0.15);
    --shadow-card: 0 2px 8px rgba(16, 24, 40, 0.04);
    --shadow-card-hover: 0 12px 28px rgba(255, 115, 0, 0.15), 0 4px 10px rgba(16, 24, 40, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --radius-pill: 50px;
    --radius-float: 22px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1220px;
    --nav-bg: rgba(255, 255, 255, 0.96);
    
    /* Adaptables para Hero y Header */
    --header-glass: rgba(255, 255, 255, 0.85);
    --hero-base: #fcfdfd; /* Un blanco perla más limpio */
    --hero-mesh-orange: rgba(255, 115, 0, 0.06); /* Suave para modo claro */
    --hero-mesh-purple: rgba(2, 96, 248, 0.05); /* Suave para modo claro */
    --hero-text: #101828;
    
    --header-elem-bg: rgba(0, 0, 0, 0.05);
    --header-elem-border: rgba(0, 0, 0, 0.1);
    --header-elem-text: var(--text);
    --header-elem-hover: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg: #0f172a;
    --bg-hero: #020617;
    --card: #1e293b;
    --card-hover: #334155;
    --text: #f8fafc;
    --text-light: #ffffff;
    --muted: #94a3b8;
    --muted-light: #64748b;
    --border: #334155;
    --border-hover: #475569;
    --soft: #1e293b;
    --primary-light: rgba(255, 115, 0, 0.25);
    --purple-light: rgba(2, 96, 248, 0.25);
    --green-light: rgba(34, 197, 94, 0.20);
    --nav-bg: rgba(15, 23, 42, 0.92);
    
    --header-glass: rgba(10, 15, 30, 0.85);
    --hero-base: #060b14; /* Azul oscuro más profundo para resaltar el neón */
    --hero-mesh-orange: rgba(255, 115, 0, 0.22); /* Más intenso en modo oscuro */
    --hero-mesh-purple: rgba(2, 96, 248, 0.18);
    --hero-text: #ffffff;
    
    --header-elem-bg: rgba(255, 255, 255, 0.08);
    --header-elem-border: rgba(255, 255, 255, 0.15);
    --header-elem-text: #ffffff;
    --header-elem-hover: rgba(255, 255, 255, 0.15);
}

body.dark-mode .brand-logo-img {
    /* Eliminado el fondo blanco para que el PNG sea transparente */
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 115, 0, 0.08), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(2, 96, 248, 0.08), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(255, 115, 0, 0.05), transparent 28%),
        var(--bg);
    min-height: 100vh;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

/* =============================================
   STICKY HEADER (full-width)
   ============================================= */
.header-spacer {
    display: none;
}

#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-float {
    background: var(--header-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Top Row: Logo + Search + Actions ── */
.header-top {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 16px 24px;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 140px; /* Aumentado de 95px a 140px para mayor impacto visual */
    width: auto;
    display: block;
    object-fit: contain;
}

.header-actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Header Search ── */
.header-search-desktop {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    transition: all var(--transition);
}

.header-search-desktop:focus-within {
    transform: scale(1.02);
}

.search-icon-hd {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
}

.search-input-hd {
    width: 100%;
    background: var(--header-elem-bg);
    border: 1px solid var(--header-elem-border);
    color: var(--header-elem-text);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px 12px 46px;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-input-hd:focus {
    background: var(--card);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.search-input-hd::placeholder {
    color: var(--muted);
}

.search-input-hd:focus {
    background: var(--header-elem-hover);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.2);
}

.clear-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-light);
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.clear-search-icon:hover {
    color: var(--header-elem-text);
}

/* ── Header Nav (actions) ── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
    white-space: nowrap;
}

.download-center-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 115, 0, 0.3);
}

body.dark-mode .download-center-link {
    color: #ffffff !important;
}

.download-center-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 115, 0, 0.4);
    filter: brightness(1.1);
}

/* Currency Toggle */
.currency-toggle {
    position: relative;
    display: flex;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 3px;
    gap: 2px;
}

.currency-btn {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 7px;
    transition: color var(--transition);
    white-space: nowrap;
}

.currency-btn.active {
    color: var(--text);
}

.currency-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 4px);
    background: var(--card);
    border-radius: 7px;
    transition: transform var(--transition);
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.currency-toggle[data-active="USD"] .currency-slider {
    transform: translateX(calc(100% + 2px));
}

/* Cart & Icon Buttons */
.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--header-elem-bg);
    position: relative;
    border: 1px solid var(--header-elem-border);
    color: var(--header-elem-text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 10px 14px;
}
.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cart-extended {
    width: auto;
    height: 44px;
    gap: 10px;
    padding: 0 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: white;
    position: relative;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}
.cart-extended:hover {
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}
.cart-extended .cart-info-text {
    color: white;
}
.cart-extended .cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: white !important;
    color: #ea580c !important;
    border: 2px solid #ea580c;
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}


.cart-extended i {
    font-size: 20px;
    color: var(--primary);
}

.cart-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.cart-extended .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--header-glass);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform: none;
}

.cart-total-header {
    font-size: 13px;
    font-weight: 800;
    color: var(--header-elem-text);
}

.cart-btn:hover {
    background: var(--header-elem-hover);
}

/* ── Mini Carrito Flotante (Dropdown) ── */
.cart-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    margin-top: 15px; /* Espacio para el pseudo-puente */
    padding: 16px;
}

/* Puente invisible para que el mouse no pierda el hover al bajar al dropdown */
.cart-dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
}

.cart-dropdown-wrapper:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.cart-dropdown-header h4 {
    font-size: 14px;
    font-weight: 800;
}

.cart-dropdown-count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.cart-dropdown-items {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.cart-dropdown-items::-webkit-scrollbar { width: 4px; }
.cart-dropdown-items::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

.dropdown-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dropdown-item img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--soft);
}

.dropdown-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dropdown-item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.dropdown-item-price {
    font-size: 12px;
    color: var(--primary);
    font-weight: 800;
}

.dropdown-item-qty {
    font-size: 11px;
    color: var(--muted);
}

.cart-dropdown-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.empty-cart-msg {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 20px 0;
}

/* ── Separator between rows ── */
.header-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── FILA INFERIOR: Categorías ── */
.header-bottom-nav {
    background: #060b14; /* Azul oscuro del footer */
    border-top: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-categories {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    min-height: 50px;
}

.header-categories::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: transparent;
    border: none;
    color: #a0aec0; /* Gris azulado claro */
    font-size: 13px;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    position: relative;
}

.filter-chip i {
    font-size: 14px;
}

.filter-chip:hover {
    color: #ffffff;
}

.filter-chip.active {
    color: var(--primary);
    font-weight: 800;
}

.filter-chip.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Hamburger */
.hamburger {
    display: none !important; /* Eliminado por completo */
}

.hamburger:hover {
    background: var(--card);
}

/* Mobile Search Bar Container */
.mobile-search-bar-container {
    display: none; /* Oculto en desktop */
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.mobile-search {
    position: relative;
}

.mobile-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
}

.mobile-search-input {
    width: 100%;
    background: var(--soft);
    border: 1px solid transparent;
    color: var(--text);
    font-size: 14px;
    padding: 12px 14px 12px 38px;
    border-radius: var(--radius-pill);
    outline: none;
    transition: var(--transition);
}

.mobile-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.mobile-currency {
    display: flex;
    gap: 8px;
}

.mobile-currency .currency-btn {
    flex: 1;
    padding: 10px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
}

.mobile-currency .currency-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   HERO SECTION REDESIGN (Premium V2)
   ============================================= */
.hero-redesign {
    width: 100%;
    /* Fondo Claro Ultra Premium: Blanco a gris muy sutil con destello naranja tras las cartas */
    background: 
        radial-gradient(circle at 80% 50%, rgba(255, 115, 0, 0.06) 0%, transparent 45%),
        linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0; /* Reducido de 60px a 40px */
    min-height: 350px; /* Reducido de 400px a 350px */
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

body.dark-mode .hero-redesign {
    /* Fondo Oscuro Ultra Premium: Negro/Slate con contraluz naranja tras las cartas */
    background: 
        radial-gradient(circle at 80% 50%, rgba(255, 115, 0, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #02040a 0%, #090e17 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-redesign::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, var(--hero-mesh-orange) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, var(--hero-mesh-purple) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .hero-redesign::before {
    display: none; /* Quitamos las manchas en modo oscuro para dejar el gradiente premium */
}

.hero-redesign .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Left Column */
.hero-text-content {
    flex: 1.2;
    max-width: 650px;
    min-width: 450px;
}

.hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hero-text);
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-gradient {
    background: linear-gradient(135deg, #ff7300, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-bottom: 5px;
    white-space: nowrap;
}

.hero-bullet-points {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--hero-text);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.bullet-dot {
    color: var(--primary);
    font-weight: bold;
}

.hero-features-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px; /* Reducido de 32px */
}

.hero-feature-badge {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

body.dark-mode .hero-feature-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-feature-badge i {
    font-size: 20px;
}

.hero-feature-badge span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(255, 115, 0, 0.4);
    transition: var(--transition);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 115, 0, 0.5);
    filter: brightness(1.1);
}

/* Right Column: Fan of Cards */
.hero-visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    min-width: 320px;
}

.cards-fan {
    position: relative;
    width: 500px; /* Aumentado de 320 a 500 para contener toda la expansión de las cartas */
    height: 380px;
}

.fan-card {
    position: absolute;
    width: 140px;
    height: 220px;
    border-radius: 14px;
    box-shadow: -5px 10px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    top: 60px;
    left: 180px; /* Centrado dentro de la caja de 500px ((500-140)/2) */
    
    /* Variables matemáticas para posicionamiento absoluto */
    --x: 0px;
    --y: 0px;
    --r: 0deg;
    transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
}

.fan-card:hover {
    z-index: 10 !important;
    /* Flota hacia arriba manteniendo su posición original en X y Rotación */
    transform: translateX(var(--x)) translateY(calc(var(--y) - 30px)) rotate(var(--r)) scale(1.1) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* Card 1: Netflix (Extremo Izquierdo) */
.card-netflix {
    background: #000000;
    z-index: 1;
    --x: -170px;
    --y: 25px;
    --r: -14deg;
}
.card-netflix .nf-logo { color: #E50914; font-size: 65px; font-weight: 900; line-height: 1; }
.card-netflix .nf-text { color: #E50914; font-size: 13px; font-weight: 800; letter-spacing: 3px; margin-top: 5px; }

/* Card 2: Disney+ (Medio Izquierdo) */
.card-disney {
    background: linear-gradient(135deg, #040714, #111a4a);
    z-index: 2;
    --x: -85px;
    --y: 8px;
    --r: -7deg;
}
.card-disney .ds-logo { color: #fff; font-size: 26px; font-family: cursive; font-style: italic; font-weight: bold; }

/* Card 3: Max (Centro) */
.card-max {
    background: #0B0E14;
    z-index: 3;
    --x: 0px;
    --y: 0px;
    --r: 0deg;
    border: 1px solid rgba(255,255,255,0.08);
}
.card-max .mx-logo { color: #fff; font-size: 28px; font-weight: 900; text-align: center; line-height: 1; }

/* Card 4: Spotify (Medio Derecho) */
.card-spotify {
    background: #191414;
    z-index: 4;
    --x: 85px;
    --y: 8px;
    --r: 7deg;
}
.card-spotify i { color: #1DB954; font-size: 55px; }
.card-spotify .sp-text { color: #fff; font-size: 15px; font-weight: 700; margin-top: 10px; }

/* Card 5: Prime Video (Extremo Derecho) */
.card-prime {
    background: #00A8E1;
    z-index: 5;
    --x: 170px;
    --y: 25px;
    --r: 14deg;
}
.card-prime .pm-logo { color: #fff; font-size: 36px; font-weight: 900; letter-spacing: -1px; margin-bottom: -5px; line-height: 1;}
.card-prime .pm-text { color: #fff; font-size: 28px; font-weight: 300; line-height: 1;}


/* =============================================
   CATALOG
   ============================================= */
#main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 20px 48px;
    scroll-margin-top: 195px; /* Ajuste fino para reducir el espacio en blanco sobre el título */
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* =============================================
   DOWNLOAD BANNER
   ============================================= */
#download-banner {
    max-width: var(--max-width);
    margin: -20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.banner-inner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-lg);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--purple-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.banner-text h3 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.banner-text p {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.banner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    font-weight: 750;
    font-size: 13px;
    border-radius: 14px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(37,99,235,.2);
}

.banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37,99,235,.3);
}



.product-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    min-height: 50vh;
}

/* Product Card (Detailed Style) */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-bounce), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    
    box-shadow: var(--shadow-card);
}

.no-anim .product-card {
    animation: none !important;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.product-badge.available { background: rgba(10, 15, 30, 0.6); backdrop-filter: blur(8px); }
.product-badge.available .badge-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }

.product-badge.bestseller { background: rgba(239, 68, 68, 0.9); }
.product-badge.bestseller .badge-icon { font-size: 12px; }

.product-badge.offer { background: rgba(108, 60, 255, 0.9); }
.product-badge.offer .badge-icon { font-size: 12px; }

.product-badge.recommended { background: rgba(245, 158, 11, 0.9); color: #000; border: none; }
.product-badge.recommended .badge-icon { font-size: 12px; color: #000; }

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444; /* Rojo vibrante para descuentos */
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    letter-spacing: -0.02em;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Skeletons */
#skeletonGrid .product-card {
    height: 380px;
    background: var(--card);
}
.skeleton-img { width: 100%; height: 180px; background: var(--border); border-radius: 12px; margin-bottom: 16px; animation: pulse 1.5s infinite ease-in-out; }
.skeleton-text { display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { background: var(--border); height: 14px; border-radius: 4px; animation: pulse 1.5s infinite ease-in-out; }
.skeleton-line.title { height: 24px; width: 80%; }
.skeleton-line.subtitle { width: 60%; margin-bottom: auto; }
.skeleton-features { display: flex; gap: 12px; }
.skeleton-features .skeleton-line { height: 40px; width: 100%; }
.skeleton-btn { height: 48px; background: var(--border); border-radius: 12px; margin-top: auto; animation: pulse 1.5s infinite ease-in-out; }


    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.product-image {
    width: 100%;
    height: 180px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--card);
}

.product-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.product-category i { font-size: 14px; }

.product-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Grid */
.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.feature:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

/* Prices */
.product-prices {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.price-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.price-col:first-child {
    border-right: 1px solid var(--border);
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-old {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
    display: block;
    height: 14px;
    margin-bottom: 2px;
    opacity: 0.7;
}

.price-old.placeholder {
    visibility: hidden; /* Ocupa espacio pero no se ve */
    text-decoration: none;
}



.price-value { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-top: 4px; }
.price-value.pen { color: var(--primary); }
.price-value.usd { color: var(--green-dark); }

/* Add Button & Trust Badge */
.add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0;
}
.add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.no-results i { font-size: 40px; margin-bottom: 16px; opacity: .3; display: block; }

/* =============================================
   ACTIVATION INFO
   ============================================= */
#activation-info {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 48px;
}

.info-inner h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.info-icon.phone { background: #fef3c7; color: #d97706; }
.info-icon.online { background: var(--primary-light); color: var(--primary); }
.info-icon.invite { background: var(--purple-light); color: var(--purple); }
.info-icon.vpn { background: var(--green-light); color: var(--green-dark); }

.info-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.info-card p { font-size: 13px; color: var(--muted); line-height: 1.5; font-weight: 500; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-float);
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(16px) scale(0.97);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.modal-close:hover { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.modal-hero-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    overflow: hidden;
}

.modal-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 48px 32px 32px; background: var(--card); }

.modal-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.modal-category i { font-size: 14px; }

.modal-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-description {
    margin-bottom: 24px;
    background: linear-gradient(145deg, #ffffff, #f4f7fb);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), 0 4px 15px rgba(0,0,0,0.02);
}

.modal-desc-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

.modal-desc-text:last-child {
    margin-bottom: 0;
}

.modal-desc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desc-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
    text-align: left;
}

.check-icon {
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.desc-link {
    color: var(--purple);
    text-decoration: underline;
    word-break: break-all;
    font-weight: 700;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-feature-box {
    background: var(--soft);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-feature-icon {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.modal-feature-text { display: flex; flex-direction: column; }
.modal-feature-title { font-size: 10px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-feature-value { font-size: 13px; font-weight: 700; color: #111827; }

.modal-feature-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.modal-price-row {
    margin-bottom: 24px;
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border: 1px solid rgba(2, 96, 248, 0.1);
    border-radius: 16px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(2, 96, 248, 0.04);
}

.modal-price {
    display: flex;
    width: 100%;
}

.modal-price-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.modal-price-col:first-child {
    border-right: 1px solid rgba(0,0,0,0.06);
}

.modal-price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 700;
    opacity: 0.7;
}

.modal-price-current {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.modal-price-current.pen { color: var(--primary); }
.modal-price-current.usd { color: var(--green-dark); }

.modal-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #0260f8 0%, #0044ff 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}


    70% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.modal-add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(234, 88, 12, 0.35);
    background: #c2410c;
}

.modal-trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.modal-trust-badges span {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-trust-badges i {
    color: var(--green-dark);
    font-size: 13px;
}

/* =============================================
   CART DRAWER
   ============================================= */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(6px);
    z-index: 300;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: min(400px, 90vw);
    background: var(--card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 40px rgba(15,23,42,.15);
}

.cart-overlay.active .cart-drawer { transform: translateX(0); }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px; border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cart-header h3 {
    font-size: 18px; font-weight: 900;
    display: flex; align-items: center; gap: 10px;
    letter-spacing: -0.02em;
}

.cart-close {
    background: var(--soft); border: none;
    color: var(--muted); width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 16px; cursor: pointer;
    transition: var(--transition);
}

.cart-close:hover { background: #e2e8f0; color: var(--text); transform: scale(1.05); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }

.cart-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.cart-item-icon {
    width: 48px; height: 48px; border-radius: 12px;
    overflow: hidden; flex-shrink: 0; background: var(--soft);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-item-icon img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-size: 14px; font-weight: 800; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cart-item-price { font-size: 13px; color: var(--primary); font-weight: 800; }

.cart-item-actions {
    display: flex; align-items: center; gap: 12px;
}

.cart-item-qty { display: flex; align-items: center; gap: 8px; }

.qty-btn {
    background: #f1f5f9; border: none;
    color: #334155; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 14px; cursor: pointer;
    transition: var(--transition); font-weight: 700;
}

.qty-btn:hover { background: #e2e8f0; color: #0f172a; }

.qty-value { font-size: 13px; font-weight: 700; min-width: 18px; text-align: center; }

.cart-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 16px; cursor: pointer;
    transition: var(--transition);
}

.cart-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.cart-footer { padding: 24px; border-top: 1px solid rgba(0,0,0,0.06); }

/* ✨ Checkout Form ✨ */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0;
    text-transform: none;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 16px 14px 40px;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.form-group select {
    padding-left: 40px;
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    background: #ffffff;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(2, 96, 248, 0.1);
}

.form-group input:focus + .input-wrapper i,
.form-group input:focus ~ i,
.input-wrapper:focus-within i {
    color: var(--purple);
}

.cart-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; font-size: 18px; font-weight: 800; color: var(--text);
}

.cart-total span:last-child { color: var(--primary); font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }

.whatsapp-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff; font-size: 16px; font-weight: 800;
    padding: 18px; border-radius: 14px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 25px rgba(37,211,102,0.3);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37,211,102,0.4);
    background: linear-gradient(135deg, #2ce06d 0%, #149c8c 100%);
}

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--card); border: 1px solid var(--primary);
    color: var(--text); font-size: 13px; font-weight: 700;
    padding: 12px 20px; border-radius: 14px;
    display: flex; align-items: center; gap: 8px;
    z-index: 400; opacity: 0; transition: all var(--transition);
    box-shadow: 0 8px 24px rgba(37,99,235,.15);
}

.toast i { color: var(--primary); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-title {
    font-size: 24px;
    font-weight: 850;
    margin-bottom: 24px;
    color: var(--text);
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: var(--soft);
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--border);
}

.faq-question i {
    transition: transform var(--transition);
    color: var(--muted);
}

.faq-item.active .faq-question {
    background: var(--border);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--card);
}

.faq-answer p, .faq-answer ul {
    padding: 20px 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.faq-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-bullets li {
    position: relative;
    padding-left: 16px;
}
.faq-bullets li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* =============================================
   MEGA FOOTER
   ============================================= */
.mega-footer {
    background: #060b14;
    color: #a0aec0;
    font-size: 13px;
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.mega-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr 1.2fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    padding-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.footer-col:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 40px;
}

.footer-brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social-circles {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-circle:hover { transform: translateY(-3px); }
.social-circle.wp { background: #25d366; }
.social-circle.tg { background: #0088cc; }
.social-circle.fb { background: #3b5998; }
.social-circle.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-list a:hover { color: #ffffff; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
}

.footer-contact i {
    color: #a0aec0;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.footer-payments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #a0aec0; /* Gris azulado apagado */
    transition: var(--transition);
    cursor: default;
    gap: 6px;
    padding: 4px;
}

.payment-badge:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.payment-badge i { 
    font-size: 20px; 
}

/* Solo ajustes tipográficos menores, sin colores chillones */
.payment-badge.visa i { font-size: 24px; }
.payment-badge.mc i { font-size: 24px; }
.payment-badge.paypal i { font-size: 20px; }
.payment-badge.binance i { font-size: 20px; }
.payment-badge.bcp { font-style: italic; font-weight: 700; letter-spacing: 0.5px; }
.payment-badge.bcp i { font-size: 12px; color: var(--primary); }
.payment-badge.yape { font-style: italic; text-transform: lowercase; font-weight: 800; letter-spacing: 0.5px; font-family: 'Inter', sans-serif; }
.payment-badge.plin { font-weight: 800; letter-spacing: 0.5px; font-family: 'Inter', sans-serif; }
.payment-badge.interbank { font-weight: 800; letter-spacing: -0.2px; font-family: 'Inter', sans-serif; }

.mega-footer .footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card:nth-child(1) { animation-delay: 0.02s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.08s; }
.product-card:nth-child(4) { animation-delay: 0.11s; }
.product-card:nth-child(5) { animation-delay: 0.14s; }
.product-card:nth-child(6) { animation-delay: 0.17s; }
.product-card:nth-child(7) { animation-delay: 0.20s; }
.product-card:nth-child(8) { animation-delay: 0.23s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 850px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */




/* El triangulito de mensaje del chat */


@keyframes slideInChat {
    0%, 100% { opacity: 0; transform: translateX(20px); pointer-events: none; }
    5%, 95% { opacity: 1; transform: translateX(0); pointer-events: auto; }
}







@media (max-width: 900px) {
    .hero-redesign .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px; /* Reducido para juntar el botón y las cartas */
    }
    .hero-text-content {
        align-items: center;
        min-width: 100%; /* Resetea el min-width del desktop */
    }
    .hero-bullet-points {
        justify-content: center;
    }
    .hero-features-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-visual-content {
        transform: scale(0.7); /* Achica las cartas un poco más */
        transform-origin: top center; /* Escala desde arriba hacia abajo */
        margin-top: -40px; /* Jala las cartas hacia arriba para tragarse el espacio vacío del top:60px interno */
        margin-bottom: -120px; /* Elimina el espacio vacío de abajo */
    }
}
@media (max-width: 768px) {
    .premium-body {
        padding: 20px !important;
    }
    .modal-title-row {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap;
        padding-right: 32px;
    }
    .modal-desc-text {
        text-align: center;
    }
    .modal-close {
        top: 20px;
        right: 20px;
    }
    .header-top {
        display: flex;
        justify-content: space-between;
        padding: 10px 16px;
    }
    .header-search-desktop { display: none; }
    .header-nav { display: none; }
    .hamburger { display: block; }
    
    .brand-logo-img {
        height: 48px; /* Logo más compacto en móvil para no engordar la cabecera */
    }

    .download-center-link {
        display: none !important; /* Ocultamos el botón Soporte superior en móvil para dar espacio al carrito */
    }

    .mobile-search-bar-container {
        display: block; /* Muestra el buscador en celular */
    }

    .header-categories { padding: 0 14px 10px; gap: 4px; justify-content: flex-start; }
    .filter-chip { font-size: 11px; padding: 5px 10px; }

    .hero-title { font-size: 26px; }

    .hero-stats { gap: 16px; padding: 14px 20px; }
    .stat-number { font-size: 18px; }

    #main-content { 
        padding: 24px 14px 36px; 
        scroll-margin-top: 115px; /* Ajustado al header más pequeño de móviles */
    }
    
    .mega-footer .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 30px;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .product-image { height: 160px; }
    
    /* Make features more compact on mobile */
    .product-features {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .feature-icon {
        width: 44px; height: 44px; font-size: 18px;
    }
    .feature-title { font-size: 12px; }
    .feature-desc { font-size: 11px; }
    
    .price-value { font-size: 20px; }
    .price-icon { width: 36px; height: 36px; font-size: 16px; }

    .info-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .nav-link-text { display: none; }

    .catalog-header h2 { font-size: 20px; }


    .modal-hero-image { height: 180px; }
    /* Mobile Drawer Modal (Bottom Sheet) */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal {
        border-radius: 24px 24px 0 0;
        margin-top: auto;
        transform: translateY(100%);
        border: none;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-overlay.active .modal {
        transform: translateY(0);
    }
}

@media (max-width: 550px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-redesign {
        display: none; /* User requested to hide the entire hero section on mobile */
    }
    .hero-visual-content {
        display: none;
    }
    .hero-features-row {
        display: none; /* User requested to hide features on mobile */
    }
    .hero-feature-badge {
        width: auto;
        height: auto;
        padding: 10px 8px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 1;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    body.dark-mode .hero-feature-badge {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .hero-feature-badge i {
        font-size: 24px;
        margin-bottom: 6px;
    }
    .hero-feature-badge span {
        display: block;
        font-size: 10px;
        font-weight: 600;
        text-align: center;
        line-height: 1.3;
        color: var(--text-muted);
    }
    .hero-actions {
        width: 100%;
        justify-content: center;
    }
    .hero-btn-primary {
        padding: 10px 20px; /* Mucho menos padding vertical y horizontal */
        font-size: 12px; /* Letra más pequeña */
        width: auto; /* Que se ajuste al texto, nada de estirarse */
        max-width: none;
        justify-content: center;
        border-radius: 30px;
        margin: 0 auto;
        letter-spacing: 0.5px;
    }
    .hero-title {
        font-size: 22px;
        margin-bottom: 4px;
        text-align: center;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .info-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 10px; padding: 10px 14px; }
    
    .mega-footer .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* =============================================
   PREMIUM MODAL DESIGNS (DYNAMIC PLANS)
   ============================================= */
.product-modal-premium {
    padding: 0;
    overflow: hidden;
    max-width: 440px;
}

.modal-header-image {
    display: block;
    width: 100%;
    height: 160px;
    background: #000;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 16px;
}

.modal-badges-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
}

.badge-offer {
    background: #5d3fd3; /* Purple */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-discount {
    background: #ef4444; /* Red */
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.premium-close {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    top: 16px;
    right: 16px;
    backdrop-filter: blur(4px);
}
.premium-close:hover {
    background: rgba(0,0,0,0.8);
    color: white;
}

.modal .premium-body {
    padding: 48px 32px 32px;
}

.modal-title-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-right: 40px;
    align-items: flex-start;
}

.modal-title-row .modal-title {
    font-size: 20px;
    margin: 0;
}

.modal-plan-selector {
    margin-bottom: 24px;
}

.modal-plan-selector label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.modal-plan-selector select {
    width: 100%;
    appearance: none;
    background: var(--soft);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px top 50%;
    background-size: 12px auto;
}

.modal-plan-selector select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(93, 63, 211, 0.1);
}

.modal-price-dual {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.price-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.price-val {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.price-val.pen {
    color: #f97316; /* Orange */
}

.price-val.usd {
    color: #10b981; /* Green */
}

.premium-btn {
    width: 100%;
    background: #f97316;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.premium-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.premium-badges {
    margin-top: 16px;
    background: var(--soft);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

/* -- Premium Product Card Grid -- */
.premium-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.premium-image {
    height: 150px;
    background: radial-gradient(circle at center, #232323 0%, #0a0a0a 100%);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.premium-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-header {
    margin-bottom: 6px;
}
.card-category-badge {
    display: inline-block;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 5px;
}
.card-selector-wrapper {
    margin-bottom: 10px;
}
.card-selector-label {
    display: block;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 5px;
    font-weight: 500;
}
.card-select-box {
    position: relative;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    overflow: hidden;
}
.card-select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    pointer-events: none;
}
.card-plan-select {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    appearance: none;
    outline: none;
    cursor: pointer;
}
/* custom arrow */
.card-select-box::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #111827;
}

.premium-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
    position: relative;
}
.premium-prices::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
}
.price-col {
    display: flex;
    flex-direction: column;
}
.price-title {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
}
.card-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 2px;
    min-height: 18px;
}
.card-old-price.transparent {
    color: transparent;
    text-decoration: none;
}
.price-value.pen {
    color: #ea580c;
    font-size: 20px;
    font-weight: 800;
}
.price-value.usd {
    color: #10b981;
    font-size: 20px;
    font-weight: 800;
}
.add-btn.premium-btn {
    width: 100%;
    background: #f97316;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    margin-top: auto;
}
.add-btn.premium-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(249,115,22,0.3);
}


.card-discount-badge {
    display: inline-block;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
    transition: opacity 0.2s;
    height: 18px;
    line-height: 12px;
}
.card-discount-badge.hidden {
    opacity: 0;
}


.premium-card .product-name {
    margin-bottom: 0;
}


.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 8px 35px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    transition: all 0.2s;
    height: 38px;
}
.custom-select-trigger:hover {
    border-color: var(--primary);
}
.custom-select-wrapper.open {
    z-index: 999;
}
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.custom-select-trigger .card-select-icon {
    position: absolute;
    left: 12px;
    color: #4b5563;
}
.trigger-arrow {
    color: #6b7280;
    font-size: 11px;
    transition: transform 0.2s;
}
.custom-select-wrapper.open .trigger-arrow {
    transform: rotate(180deg);
}
.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s;
    overflow: hidden;
}
.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-select-option {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
}
.custom-select-option:hover {
    background: #f3f4f6;
    color: var(--primary);
}
.custom-select-discount {
    background: #f3e8ff;
    color: var(--primary);
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 800;
}


.modal-desc-highlight {
    margin-bottom: 16px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1.5px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

body.dark-mode .modal-desc-highlight {
    background: var(--surface);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
}


.modal-price-dual {
    background: transparent;
    padding: 0;
    border: none;
    margin: 16px 0 20px 0 !important;
}

body.dark-mode .modal-price-dual {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}


.modal {
    max-width: 850px !important;
}

.modal-layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.modal-col-left {
    display: flex;
    flex-direction: column;
}

.modal-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .premium-body {
        padding: 20px !important;
    }
    .modal-title-row {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap;
        padding-right: 32px;
    }
    .modal-desc-text {
        text-align: center;
    }
    .modal-close {
        top: 20px;
        right: 20px;
    }
    .modal {
        max-width: 480px !important;
    }
    .modal-layout-split {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Currency Dropdown */
.currency-dropdown {
    position: relative;
    display: inline-block;
}
#currencyBtn {
    width: auto !important;
    padding: 0 16px !important;
    gap: 6px !important;
}
.currency-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}
.currency-dropdown:hover .currency-menu,
.currency-dropdown.active .currency-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.currency-option:hover {
    background: var(--bg);
    color: var(--text-primary);
}
.currency-option.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Variant Pills */
.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.variant-pill {
    flex: 1 1 calc(50% - 10px);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.variant-pill:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
}
.variant-pill.active {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}
.variant-pill-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.variant-pill-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}
/* =========================================
   NEW CART DRAWER / OVERLAY STYLES
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: flex-end;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-drawer {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #0f172a;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.cart-overlay.active .cart-drawer {
    transform: translateX(0);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}
.cart-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.cart-close:hover {
    color: #ef4444;
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.cart-item-icon img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.cart-item-price {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.9rem;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2px 6px;
}
.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
}
.qty-btn:hover {
    color: #38bdf8;
}
.qty-value {
    color: #fff;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}
.cart-total span:last-child {
    font-size: 1.4rem;
    color: #38bdf8;
}
.checkout-input {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.checkout-input:focus {
    outline: none;
    border-color: #38bdf8;
}
.whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}
.whatsapp-btn:hover {
    background: #1ebc5a;
}
.cart-empty {
    text-align: center;
    color: #94a3b8;
    margin-top: 50px;
}
/* --- NEW PREMIUM CART REDESIGN --- */
.cart-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.6) !important;
}

.cart-drawer {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
}

.cart-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 24px !important;
}

.cart-header h2 {
    font-size: 1.4rem !important;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.cart-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50%;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: rotate(90deg);
}

.cart-items {
    padding: 20px !important;
    gap: 16px !important;
    display: flex;
    flex-direction: column;
}

.cart-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cart-item-icon img {
    border-radius: 12px;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #f8fafc !important;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.95rem !important;
    color: var(--primary) !important;
    font-weight: 700;
}

.cart-item-qty {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.qty-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary) !important;
}

.qty-value {
    font-weight: 600;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    background: rgba(15, 23, 42, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 24px !important;
}

.cart-total {
    font-size: 1.2rem !important;
    color: #fff !important;
    margin-bottom: 20px !important;
}

.cart-total span:last-child {
    font-size: 1.5rem !important;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

.hero-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6) !important;
}

/* ============================================ */
/* FULL PAGE CART & CHECKOUT VIEWS              */
/* ============================================ */

.cart-page, .checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    min-height: 70vh;
}

.cart-page-breadcrumb {
    margin-bottom: 12px;
}

.cart-back-link {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}
.cart-back-link:hover { opacity: 0.8; }

.cart-page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-page-title i { color: var(--primary); }

.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
}

/* Cart Items Column */
.cart-page-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-page-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 14px;
    transition: box-shadow 0.25s, transform 0.2s;
}
.cart-page-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cart-item-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.cart-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}
.cart-item-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-plan {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.cart-item-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.qty-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control span {
    width: 34px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.cart-item-remove:hover { background: rgba(239,68,68,0.1); }

/* Empty Cart State */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-empty-state i {
    font-size: 3.5rem;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}
.cart-empty-state h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 8px;
}
.cart-empty-state p { font-size: 0.95rem; }

/* Summary Card */
.summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 160px;
}
.summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.summary-row.summary-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 8px;
    margin-bottom: 20px;
}
.summary-discount { color: #22c55e; }
.summary-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249,115,22,0.4);
}

.btn-whatsapp-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

.summary-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* Checkout Form */
.checkout-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.checkout-form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-form-title i { color: var(--primary); }

.checkout-field {
    margin-bottom: 18px;
}
.checkout-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.checkout-field .checkout-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.checkout-field .checkout-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

/* Checkout Items Summary */
.checkout-items-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.checkout-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.checkout-item-plan {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.checkout-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cart-page, .checkout-page {
        padding: 20px 16px 40px;
    }
    .cart-page-title {
        font-size: 1.4rem;
    }
    .cart-page-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }
    .cart-item-img-wrap {
        width: 60px;
        height: 60px;
    }
    .summary-card {
        position: static;
    }
}

/* ============================================ */
/* PRODUCT VIEW - PROFESSIONAL REDESIGN         */
/* ============================================ */

#productView {
    background: var(--bg);
    min-height: 80vh;
}

#productView .page-banner {
    background: var(--card) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 15px 0 !important;
}

#productView .breadcrumb {
    color: var(--text-muted) !important;
}
#productView .breadcrumb span { color: var(--text-muted) !important; }
#productView .breadcrumb .separator { color: var(--border) !important; }

#productView .product-detail-modal {
    gap: 40px !important;
}

#productView .product-image-wrapper {
    padding: 0 !important;
    max-width: 50% !important;
}

#productView .product-image-wrapper > div {
    background: var(--card) !important;
    border: 1px solid var(--border);
    border-radius: 16px !important;
    padding: 20px;
}

#productView .product-image-wrapper img {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

#productView .product-info-wrapper {
    padding: 0 !important;
}

#productView .product-info-wrapper h1 {
    color: var(--text) !important;
    font-size: 2.2rem !important;
    letter-spacing: -0.5px;
}

/* Plan Pills */
#modalVariantPills {
    gap: 12px !important;
}

#modalVariantPills .variant-pill {
    background: var(--card) !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 10px 10px !important;
    color: var(--text) !important;
    transition: all 0.25s ease !important;
    min-width: 130px !important;
}

#modalVariantPills .variant-pill:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.15);
}

#modalVariantPills .variant-pill.active {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-color: #f97316 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

/* Price Box */
#productView .product-price-box {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 20px !important;
}

#modalPriceDisplay {
    color: var(--primary) !important;
    font-size: 2.2rem !important;
}

/* Add to Cart Button */
#productView button[onclick="addCurrentProductToCart()"] {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 8px 25px rgba(249,115,22,0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
#productView button[onclick="addCurrentProductToCart()"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(249,115,22,0.4) !important;
}

/* Detail Tabs */
#productView .detail-tabs {
    border-bottom: 1px solid var(--border) !important;
    gap: 4px;
}

#productView .detail-tabs button {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s !important;
}
#productView .detail-tabs button:hover {
    background: rgba(249,115,22,0.05) !important;
}

#productView .detail-tab-content p {
    color: var(--text-muted) !important;
}

/* Responsive Product View */
@media (max-width: 768px) {
    #productView .product-detail-modal {
        flex-direction: column !important;
    }
    #productView .product-image-wrapper {
        max-width: 100% !important;
        min-width: unset !important;
    }
    #productView .product-info-wrapper {
        min-width: unset !important;
    }
    #productView .product-info-wrapper h1 {
        font-size: 1.6rem !important;
    }
    #modalVariantPills .variant-pill {
        min-width: 100px !important;
    }
}

/* ============================================ */
/* PRODUCT VIEW - PREMIUM REDESIGN V2           */
/* ============================================ */

.pv-category-badge {
    display: inline-block;
    background: rgba(249,115,22,0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.pv-product-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.pv-rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.pv-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #fbbf24;
    font-size: 0.85rem;
}
.pv-stars span {
    color: var(--text);
    font-weight: 700;
    margin-left: 6px;
    font-size: 0.9rem;
}
.pv-sold {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}
.pv-sold i { margin-right: 4px; }

.pv-features-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pv-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}
.pv-feature i {
    color: var(--primary);
    font-size: 0.85rem;
}
.pv-feature:nth-child(3) i { color: #25D366; }

/* Price Card */
.pv-price-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 16px;
}
.pv-price-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pv-price-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pv-price-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.pv-price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.pv-stock {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85rem;
}
.pv-stock i { margin-right: 4px; }
.pv-delivery {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.pv-delivery i { color: #fbbf24; margin-right: 4px; }

/* Buttons */
.pv-add-to-cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(249,115,22,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pv-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(249,115,22,0.4);
}

.pv-whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    color: #25D366;
    border: 2px solid #25D366;
    cursor: pointer;
    margin-bottom: 28px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}
.pv-whatsapp-btn:hover {
    background: #25D366;
    color: #fff;
}

/* Tabs */
.pv-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    gap: 0;
}
.pv-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.pv-tab:hover {
    color: var(--primary);
    background: rgba(249,115,22,0.04);
}
.pv-tab.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
}
.pv-tab i { font-size: 0.8rem; }

/* Related Products */
.pv-related-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pv-related-title i { color: var(--primary); }

.pv-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.pv-related-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.pv-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.pv-related-img {
    height: 140px;
    overflow: hidden;
    background: var(--bg-secondary);
}
.pv-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.pv-related-card:hover .pv-related-img img {
    transform: scale(1.05);
}
.pv-related-info {
    padding: 14px;
}
.pv-related-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-related-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 768px) {
    .pv-product-title { font-size: 1.5rem !important; }
    .pv-price-value { font-size: 1.8rem; }
    .pv-features-row { gap: 6px; }
    .pv-feature { padding: 6px 10px; font-size: 0.72rem; }
    .pv-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pv-related-img { height: 110px; }
    .pv-tabs { overflow-x: auto; }
    .pv-tab { white-space: nowrap; padding: 10px 14px; font-size: 0.82rem; }
}

/* Compact Plan Pills */
#modalVariantPills .variant-pill > div:first-child {
    font-size: 0.8rem !important;
    margin-bottom: 2px !important;
}
#modalVariantPills .variant-pill > div:last-child {
    font-size: 1rem !important;
}

/* Compact Price Card */
.pv-price-card {
    padding: 14px 18px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}
.pv-price-value {
    font-size: 1.8rem !important;
}


/* View Transitions */
#homeView, #productView, #cartView, #checkoutView {
    animation: fadeSlideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Tab Content Container */
.detail-tab-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}




/* Fix Cart Button Contrast */
.cart-extended i,
.cart-extended .cart-info-text,
.cart-extended .cart-total-header {
    color: #ffffff !important;
}

.cart-extended .cart-count {
    background: #ffffff !important;
    color: #ea580c !important;
}

.variant-pill.active div { color: #ffffff !important; }

/* Discount Badge on Variant Pills */
.pill-discount {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: white !important;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    z-index: 5;
    border: 2px solid var(--bg);
}


/* Staggered Entrance Animation for Product Cards */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* Modal Pill Override */
#modalVariantPills .variant-pill {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}
#modalVariantPills .variant-pill .vp-name {
    color: var(--text-muted);
}
#modalVariantPills .variant-pill .vp-price {
    color: var(--text);
}
#modalVariantPills .variant-pill.active {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-color: #ea580c !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
#modalVariantPills .variant-pill.active .vp-name,
#modalVariantPills .variant-pill.active .vp-price {
    color: white !important;
}


/* =========================================
   PREMIUM WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-tooltip {
    background: var(--card);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    position: relative;
}

.whatsapp-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Tooltip tail */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--card);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
}

.whatsapp-float {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid #25D366;
    animation: pulse-wa 2s infinite;
    z-index: -1;
}

/* Hover Expansion */
.whatsapp-float .wa-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s ease;
    margin-left: 0;
}

.whatsapp-float:hover {
    width: 250px;
    padding: 0 24px 0 14px;
    justify-content: flex-start;
}

.whatsapp-float:hover .wa-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
}

@keyframes pulse-wa {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    .whatsapp-float:hover {
        width: 55px; /* Disable pill expansion on mobile */
        padding: 0;
        justify-content: center;
    }
    .whatsapp-float:hover .wa-text {
        display: none;
    }
}

/* Form Error States */
.checkout-input.error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
