/* ================================================================
   BOTA E SPORTIT — Premium Soccer Jersey Store
   ================================================================ */

/* Reset & Foundation */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { height: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { height: 100%; overflow-x: hidden; }

:root {
    /* Palette — Clean White/Blue */
    --bg-deep: #f5f7fa;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --bg-elevated: #ffffff;
    --bg-surface: rgba(0,0,0,0.02);

    /* Accent — Modern Blue */
    --accent: #1a56db;
    --accent-light: #3b82f6;
    --accent-dim: rgba(26,86,219,0.08);
    --accent-glow: rgba(26,86,219,0.15);
    --accent-strong: rgba(26,86,219,0.35);

    /* Glass — Light mode */
    --glass: rgba(0,0,0,0.03);
    --glass-border: rgba(0,0,0,0.08);
    --glass-hover: rgba(0,0,0,0.05);
    --glass-strong: rgba(0,0,0,0.08);

    /* Text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-bright: #111827;

    /* Semantic */
    --danger: #ef4444;
    --success: #16a34a;
    --info: #3b82f6;

    /* Radius */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-full: 100px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows — softer for light mode */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(26,86,219,0.10);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================== AMBIENT BACKGROUND ===================== */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(26,86,219,0.06), transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(99,102,241,0.05), transparent 70%);
    bottom: -80px; right: -80px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(26,86,219,0.04), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    padding: 14px 18px;
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    border-top: 1px solid var(--glass-border);
    transform: translateY(100%);
    animation: slideUp 0.6s var(--ease-out) 1.2s forwards;
}

.cookie-banner.hidden { display: none; }

.cookie-banner p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex: 1;
}

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
    padding: 7px 16px;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease-out);
    letter-spacing: 0.2px;
}

.cookie-btn.accept {
    background: var(--accent);
    color: #fff;
}

.cookie-btn.accept:hover { background: var(--accent-light); transform: translateY(-1px); }

.cookie-btn.decline {
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.cookie-btn.decline:hover { background: var(--glass-hover); }

@keyframes slideUp { to { transform: translateY(0); } }

/* ===================== PROMO BANNER ===================== */
.promo-banner {
    background: linear-gradient(92deg, #1a56db 0%, #3b82f6 50%, #1a56db 100%);
    border-bottom: none;
    color: #ffffff;
    text-align: center;
    padding: 9px 40px 9px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
    z-index: 101;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner.hidden { display: none; }

.promo-inner { display: flex; align-items: center; gap: 8px; }

.promo-dot {
    width: 6px; height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: promoPulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes promoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.promo-close {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.promo-close:hover { color: #fff; }

/* ===================== HEADER ===================== */
.header {
    background: rgba(255,255,255,0.85);
    padding: 0 18px;
    height: 58px;
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.35s var(--ease-out);
}

.header.scrolled {
    background: rgba(255,255,255,0.96);
    border-bottom-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    height: 100%;
}

.logo-section {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.logo-section:hover { opacity: 0.85; }

.logo-mark {
    font-size: 1.4rem;
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--r-sm);
    border: 1px solid rgba(26,86,219,0.15);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.58rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header Buttons */
.header-btn {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-out);
}

.header-btn:hover {
    background: var(--glass-hover);
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.header-btn svg { width: 20px; height: 20px; }

.cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.35s var(--ease-spring);
    border: 2px solid var(--bg-deep);
}

.cart-count.visible { opacity: 1; transform: scale(1); }
.cart-count.bump { animation: cartBump 0.4s var(--ease-spring); }

@keyframes cartBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

.language-switcher { display: flex; gap: 3px; }

.lang-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 5px 8px;
    border-radius: var(--r-xs);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.lang-btn:hover {
    background: var(--glass-hover);
    border-color: rgba(0,0,0,0.12);
}

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===================== SEARCH ===================== */
.search-container {
    padding: 6px 0 12px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    padding: 0 16px;
    transition: all 0.3s var(--ease-out);
}

.search-bar:focus-within {
    border-color: rgba(26,86,219,0.35);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow-md);
}

.search-icon { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }

.search-input {
    background: none; border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    padding: 11px 10px;
    width: 100%;
    outline: none;
}

.search-input::placeholder { color: var(--text-muted); }

.search-clear {
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.search-clear:hover { color: var(--text-secondary); }

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow-xl);
}

.search-results.active {
    display: block;
    animation: dropIn 0.2s var(--ease-out);
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    padding: 11px 16px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.15s;
}

.search-result-item:hover { background: var(--accent-dim); }
.search-result-item:last-child { border-bottom: none; }

.search-result-icon { font-size: 1.15rem; width: 30px; text-align: center; }
.search-result-info { flex: 1; }
.search-result-name { font-size: 0.82rem; font-weight: 600; }
.search-result-league { font-size: 0.65rem; color: var(--text-secondary); margin-top: 1px; }
.search-result-price { color: var(--accent); font-size: 0.78rem; font-weight: 700; }

/* ===================== MAIN CONTENT ===================== */
.main-content {
    padding: 8px 18px 110px;
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}

/* Views */
.view { display: none; }

.view.active {
    display: block;
    animation: viewEnter 0.4s var(--ease-out);
}

@keyframes viewEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== HERO SECTION ===================== */
.hero-section {
    text-align: center;
    padding: 32px 0 24px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(26,86,219,0.2);
    border-radius: var(--r-full);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 14px;
    animation: badgePulse 3s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,86,219,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(26,86,219,0); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-bright);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    max-width: 340px;
    margin: 0 auto;
}

.hero-stat { text-align: center; }

.hero-stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hero-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--glass-border);
}

/* ===================== SECTION LABELS ===================== */
.section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 2px;
}

/* ===================== HOME GRID ===================== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.home-card {
    --card-color: var(--accent);
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 24px 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--card-color) 14%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.home-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-card:hover::before { opacity: 1; }
.home-card:hover::after { opacity: 0.6; }

.home-card:hover {
    border-color: color-mix(in srgb, var(--card-color) 25%, transparent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px color-mix(in srgb, var(--card-color) 10%, transparent);
}

.home-card:active { transform: scale(0.97); }

.home-card.retro {
    background: linear-gradient(145deg, #fffcf0 0%, #fef9e7 100%);
    border-color: rgba(200,168,78,0.2);
}

.home-card.retro:hover { border-color: rgba(200,168,78,0.45); }

.home-card.kids {
    background: linear-gradient(145deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: rgba(200,100,160,0.15);
    grid-column: span 2;
}

.home-card.kids:hover {
    border-color: rgba(200,100,160,0.35);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(200,100,160,0.08);
}

.home-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s var(--ease-spring);
}

.home-card:hover .icon { transform: scale(1.15); }

.home-card .title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.home-card .subtitle {
    font-size: 0.64rem;
    color: var(--text-secondary);
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

/* ===================== TRUST SECTION ===================== */
.trust-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 28px;
    padding: 16px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--glass);
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border);
    transition: all 0.25s var(--ease-out);
}

.trust-item:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.trust-icon-wrap {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

.trust-icon { font-size: 1.1rem; }

.trust-item strong {
    display: block;
    font-size: 0.68rem;
    color: var(--text-primary);
    font-weight: 600;
}

.trust-item small {
    font-size: 0.58rem;
    color: var(--text-muted);
}

/* ===================== BACK BUTTON ===================== */
.back-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 7px 14px 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    border-radius: var(--r-full);
    transition: all 0.25s var(--ease-out);
}

.back-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    transform: translateX(-2px);
}

.back-btn svg { flex-shrink: 0; }

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--text-bright);
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* ===================== TEAMS LIST ===================== */
.teams-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-card {
    --team-color: var(--accent);
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--team-color);
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--team-color) 8%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover::before { opacity: 1; }

.team-card:hover {
    border-color: var(--glass-border);
    border-left-color: var(--team-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.team-card:active { transform: scale(0.98); }

.team-icon {
    font-size: 1.4rem;
    width: 38px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-spring);
}

.team-card:hover .team-icon { transform: scale(1.15); }

.team-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.team-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    transition: all 0.25s var(--ease-out);
}

.team-card:hover .team-arrow {
    color: var(--team-color);
    transform: translateX(3px);
}

/* ===================== JERSEYS GRID ===================== */
.jerseys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.jersey-card {
    --team-color: var(--accent);
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.jersey-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--team-color) 6%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.jersey-card:hover::before { opacity: 1; }

.jersey-card:hover {
    border-color: color-mix(in srgb, var(--team-color) 35%, transparent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px color-mix(in srgb, var(--team-color) 8%, transparent);
}

.jersey-card:active { transform: scale(0.98); }

.jersey-icon {
    font-size: 2.5rem;
    width: 100%; height: 160px;
    background: var(--glass);
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-out);
}

.jersey-card:hover .jersey-icon {
    border-bottom-color: color-mix(in srgb, var(--team-color) 25%, transparent);
}

.jersey-icon.loading {
    background: linear-gradient(90deg, rgba(0,0,0,0.02) 25%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.02) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.jersey-img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.jersey-img.loaded { opacity: 1; }

.jersey-emoji {
    font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
}

.jersey-info { flex: 1; position: relative; z-index: 1; padding: 12px 14px; }

.jersey-type {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.jersey-name {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 3px 0;
    color: var(--text-bright);
}

.jersey-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--accent-light);
    font-weight: 700;
}

.jersey-price-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===================== DETAIL VIEW ===================== */
.detail-container {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 0;
    margin-top: 8px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.detail-hero-wrap {
    width: 100%;
    height: 300px;
    background: var(--bg-deep);
    overflow: hidden;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.hero-slider {
    width: 100%; height: 100%;
    overflow: hidden;
}

.hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-slide {
    flex-shrink: 0;
    width: 100%; height: 100%;
}

.hero-slide img {
    width: 100%; height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
}

.hero-dot {
    width: 6px; height: 6px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.45);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
    flex-shrink: 0;
}

.hero-dot.active {
    width: 18px;
    background: #fff;
    border-radius: 3px;
}

.detail-body { padding: 20px; }

.detail-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--team-color, var(--accent)), transparent);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.detail-icon { font-size: 2.8rem; }



/* Jersey Thumbnails (gallery) */
.detail-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-thumb {
    width: 68px; height: 68px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}

.detail-thumb:hover { border-color: rgba(0,0,0,0.15); }
.detail-thumb.active { border-color: var(--accent); }

.detail-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
}

.detail-subtitle {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 2px;
}

/* ===================== OPTIONS ===================== */
.option-group { margin-bottom: 18px; }

.option-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-guide-link {
    color: var(--accent);
    font-size: 0.65rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.size-guide-link:hover { opacity: 0.7; }

.size-options { display: flex; flex-wrap: wrap; gap: 6px; }

.size-btn {
    background: var(--glass);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    min-width: 48px;
    text-align: center;
}

.size-btn:hover {
    border-color: rgba(0,0,0,0.15);
    background: var(--glass-hover);
    transform: translateY(-1px);
}

.size-btn.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.08);
}

/* Version Cards */
.version-options { display: flex; flex-direction: column; gap: 8px; }

.version-card {
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.version-card:hover {
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.version-card.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.08);
}

.version-header { display: flex; justify-content: space-between; align-items: center; }

.version-name { font-weight: 700; font-size: 0.88rem; }

.version-price {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1rem;
}

.version-desc { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

/* Customization */
.custom-inputs { display: flex; gap: 8px; }

.custom-input {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.25s var(--ease-out);
}

.custom-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.custom-input::placeholder { color: var(--text-muted); }

.custom-note {
    font-size: 0.68rem;
    color: var(--accent);
    margin-top: 6px;
    font-weight: 600;
}

/* ===================== PLAYER ROSTER ===================== */
.player-roster { margin-bottom: 18px; }

.player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.player-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    padding: 6px 12px 6px 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-family: inherit;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.player-chip:hover {
    border-color: rgba(26,86,219,0.25);
    background: var(--accent-dim);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.player-chip.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.player-chip-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--glass);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.65rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.player-chip.active .player-chip-num {
    background: var(--accent);
    color: #fff;
}

.player-chip-name {
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===================== DISCOUNT CODE ===================== */
.discount-section { margin-bottom: 16px; }

.discount-row { display: flex; gap: 8px; }

.discount-input {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    text-transform: uppercase;
    transition: all 0.25s;
}

.discount-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.discount-input::placeholder { color: var(--text-muted); text-transform: none; }

.discount-apply {
    background: var(--accent-dim);
    border: 1px solid rgba(26,86,219,0.2);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.discount-apply:hover {
    background: var(--accent-glow);
    transform: translateY(-1px);
}

.discount-msg { font-size: 0.68rem; margin-top: 6px; padding: 4px 0; font-weight: 500; }
.discount-msg.success { color: var(--success); }
.discount-msg.error { color: var(--danger); }

/* ===================== ORDER SUMMARY ===================== */
.order-summary {
    background: var(--accent-dim);
    border: 1px solid rgba(26,86,219,0.12);
    border-radius: var(--r-md);
    padding: 14px;
    margin: 18px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--glass-border);
}

.summary-row:last-child { border: none; }
.summary-row span:first-child { color: var(--text-secondary); }

.summary-row.discount { color: var(--accent); }
.summary-row.discount span { color: var(--accent); }

.summary-row.total {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid rgba(26,86,219,0.15);
}

.summary-row.total span { color: var(--accent); }

/* ===================== BUTTONS ===================== */
.detail-actions { display: flex; gap: 8px; }

.add-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s var(--ease-out);
    letter-spacing: 0.2px;
}

.add-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26,86,219,0.30);
}

.add-cart-btn:active:not(:disabled) { transform: scale(0.98); }

.add-cart-btn:disabled {
    background: var(--glass);
    color: var(--text-muted);
    cursor: not-allowed;
}

.add-cart-btn.added {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    animation: buttonPop 0.35s var(--ease-spring);
}

@keyframes buttonPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.order-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.25s var(--ease-out);
}

.order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.order-btn:disabled {
    background: var(--glass);
    color: var(--text-muted);
    cursor: not-allowed;
}

.order-btn svg { width: 20px; height: 20px; }

/* ===================== RELATED PRODUCTS ===================== */
.related-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--glass-border);
}

.related-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.related-scroll::-webkit-scrollbar { display: none; }

.related-card {
    min-width: 125px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}

.related-card:hover {
    border-color: rgba(26,86,219,0.2);
    transform: translateY(-2px);
}

.related-card-img {
    width: 52px; height: 52px;
    border-radius: var(--r-sm);
    margin: 0 auto 6px;
    background: var(--glass);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.related-card-img img { width: 100%; height: 100%; object-fit: cover; }

.related-card-name {
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card-price {
    font-size: 0.72rem;
    color: var(--accent-light);
    font-weight: 700;
}

/* ===================== CART VIEW ===================== */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.cart-empty p { font-size: 0.88rem; }

.cart-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: viewEnter 0.25s var(--ease-out);
}

.cart-item-image {
    width: 54px; height: 54px;
    border-radius: var(--r-sm);
    background: var(--glass);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta { font-size: 0.68rem; color: var(--text-secondary); margin-top: 2px; }

.cart-item-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    color: var(--accent-light);
    font-weight: 700;
    white-space: nowrap;
}

.cart-item-remove {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r-xs);
    display: flex;
    transition: all 0.2s var(--ease-out);
}

.cart-item-remove:hover {
    color: var(--danger);
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.1);
}

.cart-total-section {
    background: var(--accent-dim);
    border: 1px solid rgba(26,86,219,0.12);
    border-radius: var(--r-md);
    padding: 16px;
    margin-top: 14px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.82rem;
}

.cart-total-row.grand-total {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(26,86,219,0.15);
}

.cart-total-row.grand-total span { color: var(--accent); }

.cart-discount-row { margin-top: 12px; }

/* ===================== MODAL ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; animation: fadeInModal 0.3s var(--ease-out); }

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    padding: 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: modalSlideUp 0.35s var(--ease-out);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r-sm);
    display: flex;
    transition: all 0.2s;
}

.modal-close:hover { color: var(--text-primary); background: var(--glass-hover); }

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.size-table-wrap { overflow-x: auto; }

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.size-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(26,86,219,0.15);
}

.size-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.size-table tr:last-child td { border-bottom: none; }

.size-table tbody tr:hover td {
    background: var(--accent-dim);
    color: var(--text-primary);
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active { display: flex; animation: fadeInModal 0.3s var(--ease-out); }

.lightbox-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s;
    z-index: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-body { max-width: 90vw; max-height: 80vh; }
.lightbox-body img { max-width: 100%; max-height: 80vh; border-radius: var(--r-md); }

/* ===================== FOOTER ===================== */
.footer {
    position: fixed;
    bottom: 22px; right: 22px;
    z-index: 100;
}

.whatsapp-float {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s var(--ease-spring);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active { transform: scale(0.92); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ===================== BADGES ===================== */
.kids-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e879a8 0%, #c04880 100%);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--r-full);
    margin-left: 6px;
    vertical-align: middle;
}

.free-badge {
    color: var(--accent-light);
    font-size: 0.68rem;
    font-weight: 700;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 85px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--bg-elevated);
    border: 1px solid rgba(26,86,219,0.2);
    color: var(--accent);
    padding: 11px 22px;
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: all 0.35s var(--ease-out);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================== SCROLL ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 500px) {
    .home-card { min-height: 125px; padding: 28px 14px; }
    .home-card .icon { font-size: 2.4rem; }
    .home-card .title { font-size: 0.92rem; }
    .hero-title { font-size: 2.1rem; }
}

@media (min-width: 600px) {
    .home-grid { grid-template-columns: repeat(3, 1fr); }
    .home-card.retro { grid-column: auto; }
    .home-card.kids { grid-column: span 3; }
    .trust-section { grid-template-columns: repeat(4, 1fr); }
    .teams-list { display: grid; grid-template-columns: repeat(2, 1fr); }
    .jerseys-grid { grid-template-columns: repeat(2, 1fr); }
    .jersey-icon { height: 180px; }
}

@media (min-width: 900px) {
    .teams-list { grid-template-columns: repeat(3, 1fr); }
    .jerseys-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { max-width: 400px; }
    .jersey-icon { height: 200px; }
}
