/* SportZone ID — Toko Alat & Perlengkapan Olahraga */
/* Warna: #0d47a1 primer, #ff6f00 aksen, #f0f4ff background */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primer: #0d47a1;
  --primer-dark: #082f6b;
  --aksen: #ff6f00;
  --aksen-dark: #e65100;
  --bg: #f0f4ff;
  --bg2: #e3eaf8;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --white: #ffffff;
  --border: #c5d0e8;
  --success: #2e7d32;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(13,71,161,0.12);
  --shadow-lg: 0 6px 24px rgba(13,71,161,0.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
a { color: var(--primer); text-decoration: none; }
a:hover { color: var(--aksen); }
img { max-width: 100%; }
ul { list-style: none; }

/* === DEMO BAR === */
.demo-bar {
  background: #1a1a2e;
  color: #cdd8f0;
  text-align: center;
  padding: 7px 16px;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}
.demo-bar a { color: var(--aksen); font-weight: 600; }
.demo-bar a:hover { color: #ffa040; }

/* === HEADER & NAV === */
header {
  background: var(--primer);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--aksen);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo span { color: var(--aksen); }

/* Checkbox hack nav */
#nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-label span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}
nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav ul li a {
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: background .2s, color .2s;
  display: block;
}
nav ul li a:hover, nav ul li a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.nav-cta a {
  background: var(--aksen) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
}
.nav-cta a:hover { background: var(--aksen-dark) !important; }

@media (max-width: 768px) {
  .nav-label { display: flex; }
  nav {
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: var(--primer-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  #nav-toggle:checked ~ nav { max-height: 340px; }
  nav ul { flex-direction: column; padding: 12px 16px; gap: 2px; align-items: stretch; }
  nav ul li a { border-radius: 6px; }
  #nav-toggle:checked ~ .nav-label span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  #nav-toggle:checked ~ .nav-label span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .nav-label span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primer-dark) 0%, var(--primer) 50%, #1565c0 100%);
  color: var(--white);
  padding: 64px 16px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,111,0,0.12);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--aksen);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero h1 em { color: var(--aksen); font-style: normal; }
.hero p { font-size: 1.05rem; opacity: 0.88; max-width: 520px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--radius); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; border: 2px solid transparent; }
.btn-aksen { background: var(--aksen); color: var(--white); }
.btn-aksen:hover { background: var(--aksen-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-primer { background: var(--primer); color: var(--white); }
.btn-primer:hover { background: var(--primer-dark); color: var(--white); }

/* Hero visual */
.hero-visual {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 110px;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--aksen); }
.hero-stat span { font-size: 12px; opacity: 0.8; }

/* === SECTIONS === */
.section { padding: 56px 16px; }
.section-alt { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: 8px; }
.section-head h2 em { color: var(--primer); font-style: normal; }
.section-head p { color: var(--text-light); font-size: 15px; max-width: 520px; margin: 0 auto; }
.label { display: inline-block; background: var(--bg2); color: var(--primer); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }

/* === KATEGORI === */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.cat-card:hover { border-color: var(--primer); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.cat-icon { width: 52px; height: 52px; margin: 0 auto 12px; }
.cat-card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--text-light); }

/* === PRODUCT CARDS === */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prod-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.badge-new {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--aksen);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-sale {
  position: absolute;
  top: 10px; left: 10px;
  background: #d32f2f;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.prod-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.prod-info .cat-label { font-size: 11px; color: var(--primer); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.prod-info h3 { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.3; }
.prod-price { font-size: 1.1rem; font-weight: 800; color: var(--aksen); margin-top: 2px; }
.prod-price del { font-size: 12px; color: #999; font-weight: 400; margin-right: 6px; }
.prod-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-light); }
.stars { color: #f59e0b; }
.prod-actions { padding: 0 16px 16px; display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; transition: all .2s; }
.btn-sm-primer { background: var(--primer); color: var(--white); flex: 1; }
.btn-sm-primer:hover { background: var(--primer-dark); }
.btn-sm-aksen { background: var(--aksen); color: var(--white); }
.btn-sm-aksen:hover { background: var(--aksen-dark); }
.btn-sm-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-light); }
.btn-sm-outline:hover { border-color: var(--primer); color: var(--primer); }

/* === PROMO BANNER === */
.promo-banner {
  background: linear-gradient(135deg, var(--aksen) 0%, #e65100 100%);
  border-radius: 16px;
  padding: 36px 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(255,111,0,0.3);
}
.promo-banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.promo-banner p { opacity: 0.9; font-size: 14px; }
.promo-code {
  background: rgba(255,255,255,0.2);
  border: 2px dashed rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* === FILTER (CSS only) === */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-bar input[type=radio] { display: none; }
.filter-bar label {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  transition: all .2s;
  background: var(--white);
}
.filter-bar input[type=radio]:checked + label {
  background: var(--primer);
  border-color: var(--primer);
  color: var(--white);
}
.filter-bar label:hover { border-color: var(--primer); color: var(--primer); }

/* === PRODUCT DETAIL === */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prod-visual-big {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-detail-info h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.prod-detail-price { font-size: 2rem; font-weight: 900; color: var(--aksen); margin: 12px 0; }
.prod-detail-price del { font-size: 1rem; color: #999; font-weight: 400; margin-right: 8px; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; color: var(--text-light); }
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.varian-label { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.varian-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.varian-btn {
  padding: 7px 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  transition: all .2s;
}
.varian-btn:hover, .varian-btn.active { border-color: var(--primer); color: var(--primer); background: var(--bg); }
.color-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
}
.color-dot:hover, .color-dot.active { border-color: var(--primer); }
.qty-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-btn { width: 36px; height: 36px; border: 2px solid var(--border); background: var(--white); border-radius: 6px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.qty-val { font-size: 1rem; font-weight: 700; min-width: 30px; text-align: center; }
.prod-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.spec-list { list-style: none; }
.spec-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.spec-list li:last-child { border-bottom: none; }
.spec-list li strong { color: var(--text-light); font-weight: 500; }

@media (max-width: 768px) {
  .prod-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* === FORM === */
.form-wrap {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 680px;
  margin: 0 auto;
}
.form-wrap h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.form-wrap > p { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primer);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-opt { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-opt input { width: auto; accent-color: var(--primer); }
.radio-opt span { font-size: 14px; font-weight: 500; }
.btn-full { width: 100%; padding: 14px; font-size: 1rem; }
.form-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 18px; }
}

/* === KONTAK === */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.kontak-info h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; background: var(--bg2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.info-item p, .info-item a { font-size: 14px; color: var(--text-light); }
.info-item a:hover { color: var(--primer); }
.jam-buka { background: var(--bg2); border-radius: 10px; padding: 16px; margin-top: 8px; }
.jam-buka h4 { font-weight: 700; margin-bottom: 10px; font-size: 13.5px; }
.jam-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.jam-row:last-child { border-bottom: none; }
.wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 20px;
  transition: background .2s;
}
.wa-btn:hover { background: #1ebe5d; color: var(--white); }

@media (max-width: 768px) {
  .kontak-grid { grid-template-columns: 1fr; }
}

/* === TESTIMONI === */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.testi-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primer);
}
.testi-card p { font-size: 14px; color: var(--text-light); font-style: italic; margin-bottom: 14px; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primer); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 15px; }
.testi-name { font-size: 13.5px; font-weight: 700; }
.testi-loc { font-size: 12px; color: var(--text-light); }

/* === KEUNGGULAN === */
.keung-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.keung-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.keung-card:hover { transform: translateY(-3px); }
.keung-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primer), #1565c0); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.keung-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.keung-card p { font-size: 13px; color: var(--text-light); }

/* === FOOTER === */
footer {
  background: var(--primer-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 16px 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1100px; margin: 0 auto 40px; }
.footer-brand { color: var(--white); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; opacity: 0.8; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.3px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 13.5px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--aksen); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  opacity: 0.65;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* === ORDER SUCCESS BOX === */
.success-box {
  background: #e8f5e9;
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  display: none;
}
.success-box.show { display: block; }
.success-box p { color: var(--success); font-weight: 600; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.gap-12 { gap: 12px; }
.flex-center { display: flex; justify-content: center; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* === BACK TO TOP === */
.back-top { display: inline-block; margin-top: 20px; color: var(--primer); font-size: 13px; font-weight: 600; }

/* === ALERT STRIP === */
.alert-strip {
  background: var(--aksen);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
