/* SpiritDrop — design system shared across landing + app */

:root {
  --bg: #0c0c0e;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --fg: #f0ede6;
  --fg-muted: #8a8680;
  --accent: #e8590c;
  --accent-glow: rgba(232, 89, 12, 0.15);
  --gold: #f4a523;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ——— TYPOGRAPHY ——— */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.5px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ——— LANDING PAGE SECTIONS ——— */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, var(--accent-glow) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(244,165,35,0.08) 0%, transparent 50%), var(--bg); }
.hero-inner { max-width: 800px; text-align: center; position: relative; z-index: 2; }
.hero-badge { display: inline-block; padding: 6px 18px; border: 1px solid var(--accent); border-radius: 100px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 32px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(56px, 10vw, 110px); line-height: 0.95; letter-spacing: -1px; margin-bottom: 28px; }
.hero-sub { font-size: 19px; color: var(--fg-muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent)); }
.problem { padding: 100px 24px; background: var(--bg-elevated); }
.problem-inner, .how-inner, .sports-inner { max-width: 1100px; margin: 0 auto; }
.problem-label, .how-label, .sports-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.problem h2, .how h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); margin-bottom: 48px; max-width: 700px; }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.problem-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.problem-card h3 { font-size: 18px; margin-bottom: 10px; }
.problem-card p { color: var(--fg-muted); font-size: 15px; }
.how { padding: 100px 24px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.how-step { display: flex; gap: 20px; }
.step-num { font-family: var(--font-display); font-size: 48px; color: var(--accent); line-height: 1; flex-shrink: 0; }
.step-content h3 { font-size: 17px; margin-bottom: 8px; }
.step-content p { color: var(--fg-muted); font-size: 15px; }
.sports { padding: 80px 24px; background: var(--bg-elevated); }
.sports-marquee { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 40px; }
.sport-tag { padding: 8px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 14px; font-weight: 600; }
.sport-tag.tag-hot { border-color: var(--accent); color: var(--accent); }
.sports-callout { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 700px; }
.sports-callout h3 { font-size: 22px; margin-bottom: 12px; }
.sports-callout p { color: var(--fg-muted); }
.closing { padding: 120px 24px; text-align: center; background: radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 70%); }
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing h2 { font-family: var(--font-display); font-size: clamp(40px, 7vw, 72px); margin-bottom: 24px; }
.closing p { color: var(--fg-muted); font-size: 18px; margin-bottom: 40px; }
.site-footer { padding: 48px 24px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-family: var(--font-display); font-size: 24px; }
.footer-loc { color: var(--fg-muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--fg-muted); font-size: 14px; }
.footer-links a:hover { color: var(--fg); text-decoration: none; }

/* ——— APP NAV ——— */
.app-nav { background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: 0; z-index: 100; }
.app-nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-brand { font-family: var(--font-display); font-size: 22px; color: var(--fg); }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--fg-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cart { display: flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: opacity 0.15s; }
.nav-cart:hover { opacity: 0.9; }
.cart-badge { background: #fff; color: var(--accent); border-radius: 100px; padding: 1px 7px; font-size: 12px; font-weight: 700; }

/* ——— PAGE HEADER ——— */
.page-header { padding: 56px 24px 48px; background: radial-gradient(ellipse at 20% 50%, var(--accent-glow) 0%, transparent 60%); border-bottom: 1px solid var(--border); }
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--fg-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--fg); text-decoration: none; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); line-height: 1; margin-bottom: 12px; }
.page-header p { color: var(--fg-muted); font-size: 17px; }
.sport-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.sport-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ——— SCHOOL PROFILE ——— */
.school-section { padding: 64px 24px; }
.school-inner { max-width: 1100px; margin: 0 auto; }
.school-intro { margin-bottom: 48px; }
.school-intro h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.school-intro p { color: var(--fg-muted); max-width: 600px; }
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sport-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-decoration: none !important; transition: border-color 0.2s, transform 0.2s; display: block; }
.sport-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sport-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.sport-icon { width: 48px; height: 48px; background: var(--accent-glow); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sport-season { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.sport-card h3 { font-family: var(--font-display); font-size: 28px; color: var(--fg); margin-bottom: 6px; }
.sport-card p { font-size: 14px; color: var(--fg-muted); margin-bottom: 20px; }
.sport-card-cta { font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }

/* ——— STOREFRONT ——— */
.storefront-section { padding: 48px 24px 80px; }
.storefront-inner { max-width: 1100px; margin: 0 auto; }
.product-type-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--fg-muted); margin: 40px 0 20px; }
.product-type-label:first-child { margin-top: 0; }

/* Sport filter bar */
.sport-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.sport-filter-btn { padding: 8px 18px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card); color: var(--fg-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s; font-family: var(--font-body); }
.sport-filter-btn:hover { border-color: var(--accent); color: var(--fg); }
.sport-filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Product sport tag chip inside card */
.product-sport-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 4/3; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.product-card-img--photo { padding: 0; overflow: hidden; }
.product-card-img--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-card-body p { font-size: 14px; color: var(--fg-muted); margin-bottom: 16px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 24px; color: var(--fg); }
.btn-card { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity 0.15s; }
.btn-card:hover { opacity: 0.9; }

/* ——— PRODUCT DETAIL ——— */
.product-detail { padding: 48px 24px 80px; }
.product-detail-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.product-img-wrap { aspect-ratio: 1/1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 96px; overflow: hidden; }
.product-img-wrap--photo { padding: 0; }
.product-img-wrap--photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }
.product-info h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.product-info .price { font-family: var(--font-display); font-size: 42px; color: var(--accent); margin-bottom: 24px; }
.product-info p { color: var(--fg-muted); margin-bottom: 28px; }
.option-label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 10px; display: block; }
.size-options, .color-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.option-btn { padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--fg); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
.option-btn:hover, .option-btn.active { border-color: var(--accent); color: var(--accent); }
.qty-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--fg); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-display { font-size: 18px; font-weight: 700; min-width: 32px; text-align: center; }
.btn-primary { display: block; width: 100%; padding: 16px 24px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; transition: opacity 0.15s; font-family: var(--font-body); }
.btn-primary:hover { opacity: 0.9; }
.related-section { padding: 0 24px 80px; }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-section h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 24px; }

/* ——— CART ——— */
.cart-section { padding: 48px 24px 80px; }
.cart-inner { max-width: 900px; margin: 0 auto; }
.cart-inner h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); margin-bottom: 32px; }
.cart-empty { text-align: center; padding: 80px 24px; color: var(--fg-muted); }
.cart-empty h2 { font-family: var(--font-display); font-size: 36px; margin-bottom: 16px; color: var(--fg); }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); padding: 0 16px 16px 0; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-name { font-weight: 700; margin-bottom: 4px; }
.cart-item-meta { font-size: 13px; color: var(--fg-muted); }
.cart-item-price { font-family: var(--font-display); font-size: 22px; }
.btn-remove { background: none; border: none; color: var(--fg-muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.btn-remove:hover { color: var(--accent); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.cart-summary-row.total { font-family: var(--font-display); font-size: 28px; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

/* ——— CHECKOUT ——— */
.checkout-section { padding: 48px 24px 80px; }
.checkout-inner { max-width: 900px; margin: 0 auto; }
.checkout-inner h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); margin-bottom: 32px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.form-input { width: 100%; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--fg); font-size: 15px; font-family: var(--font-body); outline: none; transition: border-color 0.15s; }
.form-input:focus { border-color: var(--accent); }
.order-summary-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.order-summary-panel h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.summary-item { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.summary-item-name { flex: 1; margin-right: 16px; }
.summary-item-meta { font-size: 12px; color: var(--fg-muted); }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 26px; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.error-msg { background: rgba(232,89,12,0.1); border: 1px solid var(--accent); border-radius: 8px; padding: 12px 16px; color: var(--accent); font-size: 14px; margin-bottom: 20px; }
.secure-note { text-align: center; font-size: 13px; color: var(--fg-muted); margin-top: 12px; }

/* ——— SUCCESS ——— */
.success-section { padding: 80px 24px; text-align: center; }
.success-inner { max-width: 600px; margin: 0 auto; }
.success-icon { font-size: 64px; margin-bottom: 24px; }
.success-inner h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); margin-bottom: 16px; }
.success-inner p { color: var(--fg-muted); font-size: 17px; margin-bottom: 32px; }
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: left; margin-bottom: 32px; }
.order-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 16px; }
.order-meta { display: flex; flex-direction: column; gap: 8px; }
.order-meta-row { display: flex; justify-content: space-between; font-size: 14px; }
.order-meta-row span:last-child { color: var(--fg-muted); }

/* ——— ADMIN ——— */
.admin-section { padding: 40px 24px 80px; }
.admin-inner { max-width: 1200px; margin: 0 auto; }
.admin-inner h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); margin-bottom: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 40px; color: var(--fg); }
.stat-value.accent { color: var(--accent); }
.stat-value.gold { color: var(--gold); }
.admin-table-section { margin-bottom: 48px; }
.admin-table-section h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 20px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); padding: 0 12px 14px 0; border-bottom: 1px solid var(--border); }
.data-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-badge.paid { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-badge.pending { background: rgba(244,165,35,0.15); color: var(--gold); }
.status-badge.fulfilled { background: rgba(99,102,241,0.15); color: #818cf8; }
.filter-bar { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-select { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); font-size: 14px; font-family: var(--font-body); outline: none; cursor: pointer; }
.btn-filter { padding: 8px 20px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.payout-row { background: var(--bg-card); }

/* ——— ADMIN LOGIN ——— */
.login-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; width: 100%; max-width: 400px; text-align: center; }
.login-card h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; }
.login-card p { color: var(--fg-muted); font-size: 14px; margin-bottom: 32px; }

/* ——— ERROR PAGE ——— */
.error-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.error-inner h1 { font-family: var(--font-display); font-size: clamp(40px, 8vw, 80px); margin-bottom: 16px; color: var(--accent); }
.error-inner p { color: var(--fg-muted); font-size: 17px; margin-bottom: 32px; }

/* ——— BULK PRICING ——— */
.bulk-tier-info { display: inline-block; padding: 6px 14px; background: rgba(244,165,35,0.12); border: 1px solid rgba(244,165,35,0.3); border-radius: 8px; font-size: 13px; color: var(--fg-muted); margin-bottom: 20px; }
.bulk-tier-label { color: var(--fg-muted); }
.bulk-tier-info strong { color: var(--gold); }
.bulk-callout { font-size: 14px; color: var(--gold); margin-left: 4px; }
.bulk-note { font-size: 12px; color: var(--fg-muted); font-weight: 400; }
.bulk-badge { display: inline-block; padding: 2px 8px; background: rgba(244,165,35,0.2); border: 1px solid var(--gold); border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--gold); margin-left: 6px; vertical-align: middle; }

/* ——— UTILITIES ——— */
.btn-secondary { display: inline-block; padding: 12px 24px; border: 1px solid var(--border); border-radius: 10px; color: var(--fg); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color 0.15s; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.mt-auto { margin-top: auto; }
.text-muted { color: var(--fg-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }

@media (max-width: 768px) {
  .product-detail-inner { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-links { display: none; }
}
