/* BukuKita — Toko Buku & ATK | style.css */
/* Palet: #1565c0 (primer biru), #43a047 (aksen hijau), #f3f8ff (background) */

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

:root {
  --blue:   #1565c0;
  --blue2:  #1976d2;
  --blue3:  #e3f0fb;
  --green:  #43a047;
  --green2: #388e3c;
  --bg:     #f3f8ff;
  --white:  #ffffff;
  --gray1:  #f5f5f5;
  --gray2:  #e0e0e0;
  --gray3:  #9e9e9e;
  --text:   #212121;
  --text2:  #555;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(21,101,192,.10);
  --font:   -apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── DEMO BAR ── */
.demo-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: .78rem;
  padding: .38rem 1rem;
  letter-spacing: .02em;
}
.demo-bar a { color: #ffe082; font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* ── NAV ── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--blue3);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(21,101,192,.08);
}
.nav-wrap {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.2rem;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.25rem; font-weight: 800; color: var(--blue);
  letter-spacing: -.01em;
}
.logo-icon {
  width: 38px; height: 38px; flex-shrink: 0;
}
.logo span.accent { color: var(--green); }
nav ul { display: flex; gap: .2rem; align-items: center; }
nav ul li a {
  display: block; padding: .42rem .75rem;
  border-radius: 6px; font-size: .93rem; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s;
}
nav ul li a:hover, nav ul li a.active {
  background: var(--blue3); color: var(--blue); text-decoration: none;
}
.btn-nav {
  background: var(--green); color: #fff !important;
  padding: .42rem 1rem !important; border-radius: 6px;
}
.btn-nav:hover { background: var(--green2) !important; }

/* ── HAMBURGER (checkbox-hack) ── */
#nav-toggle { display: none; }
.nav-label {
  display: none; cursor: pointer; flex-direction: column;
  gap: 5px; width: 30px; padding: 4px 0;
}
.nav-label span {
  display: block; height: 3px; background: var(--blue); border-radius: 3px;
  transition: transform .2s, opacity .2s;
}
@media (max-width: 700px) {
  .nav-label { display: flex; }
  nav { display: none; width: 100%; }
  #nav-toggle:checked ~ nav { display: block; }
  nav ul { flex-direction: column; padding: .5rem 0; }
  nav ul li a { padding: .6rem 1rem; border-radius: 0; }
  .nav-wrap { flex-wrap: wrap; }
  #nav-toggle:checked ~ .nav-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #nav-toggle:checked ~ .nav-label span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .nav-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
.section { padding: 3rem 0; }
.section-sm { padding: 2rem 0; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0d47a1 60%, #1b5e20 100%);
  color: #fff; padding: 3.5rem 1.2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(67,160,71,.25) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  position: relative;
}
.hero-text h1 { font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 900; line-height: 1.2; margin-bottom: .8rem; }
.hero-text p { font-size: 1.05rem; opacity: .9; margin-bottom: 1.5rem; max-width: 440px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.badge {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  padding: .25rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .7rem 1.5rem; border-radius: 8px;
  font-size: .95rem; font-weight: 700; cursor: pointer; transition: filter .15s, transform .1s;
  border: none; text-align: center;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* Hero illustration */
.hero-ilus {
  display: flex; justify-content: center; align-items: center;
}
.hero-ilus svg { width: 100%; max-width: 320px; height: auto; }

/* ── KATEGORI STRIP ── */
.cat-strip { background: var(--white); border-bottom: 1px solid var(--gray2); }
.cat-grid {
  max-width: 1100px; margin: 0 auto; padding: 1.1rem 1.2rem;
  display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: none;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: var(--bg); border: 1.5px solid var(--gray2); border-radius: 12px;
  padding: .65rem 1rem; min-width: 80px; cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none; color: var(--text);
}
.cat-chip:hover { border-color: var(--blue); background: var(--blue3); text-decoration: none; }
.cat-chip svg { width: 28px; height: 28px; }
.cat-chip span { font-size: .72rem; font-weight: 600; white-space: nowrap; }

/* ── SECTION HEADERS ── */
.sec-head { text-align: center; margin-bottom: 2rem; }
.sec-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--blue); margin-bottom: .4rem; }
.sec-head p { color: var(--text2); font-size: .95rem; }
.sec-line {
  width: 50px; height: 4px; background: linear-gradient(90deg,var(--blue),var(--green));
  border-radius: 4px; margin: .6rem auto 0;
}

/* ── PRODUCT GRID ── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.2rem;
}
.prod-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: 0 6px 24px rgba(21,101,192,.16); transform: translateY(-3px); }
.prod-thumb {
  width: 100%; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prod-info { padding: .85rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.prod-cat { font-size: .7rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.prod-name { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.prod-author { font-size: .75rem; color: var(--gray3); }
.prod-price { font-size: 1rem; font-weight: 800; color: var(--blue); margin-top: auto; padding-top: .4rem; }
.prod-price-old { font-size: .78rem; color: var(--gray3); text-decoration: line-through; }
.prod-actions { padding: 0 .85rem .85rem; display: flex; gap: .5rem; }
.prod-actions .btn { flex: 1; font-size: .8rem; padding: .4rem .5rem; border-radius: 6px; }

/* Book thumbnail CSS art */
.book-cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px 0 0 4px;
  position: relative; overflow: hidden;
}
.book-spine {
  position: absolute; left: 0; top: 0; width: 12px; height: 100%;
  filter: brightness(.7);
}

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  border-radius: var(--radius); padding: 2.2rem 2rem;
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.promo-banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .4rem; }
.promo-banner p { opacity: .9; font-size: .95rem; }
.promo-banner .btn-outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.15); }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.2rem; }
.testi-card {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--blue);
}
.testi-stars { color: #f9a825; font-size: 1rem; margin-bottom: .5rem; }
.testi-text { font-size: .9rem; color: var(--text2); margin-bottom: .9rem; font-style: italic; }
.testi-name { font-size: .83rem; font-weight: 700; color: var(--blue); }

/* ── STATS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 1.2rem;
  text-align: center;
}
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text2); margin-top: .3rem; }

/* ── CATALOG PAGE ── */
.filter-row {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
/* CSS-only filter: radio buttons + label */
.filter-row input[type=radio] { display: none; }
.filter-btn {
  display: inline-block; padding: .38rem .9rem; border-radius: 20px;
  border: 1.5px solid var(--gray2); font-size: .83rem; font-weight: 600;
  cursor: pointer; background: var(--white); color: var(--text2);
  transition: all .15s;
}
#f-all:checked ~ .filter-row .lbl-all,
#f-buku:checked ~ .filter-row .lbl-buku,
#f-novel:checked ~ .filter-row .lbl-novel,
#f-atk:checked ~ .filter-row .lbl-atk,
#f-kantor:checked ~ .filter-row .lbl-kantor {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }

.search-bar {
  display: flex; gap: .5rem; margin-bottom: 1.5rem; max-width: 420px;
}
.search-bar input {
  flex: 1; padding: .55rem .9rem; border: 1.5px solid var(--gray2); border-radius: 8px;
  font-size: .93rem; font-family: var(--font); outline: none;
}
.search-bar input:focus { border-color: var(--blue); }
.search-bar button {
  padding: .55rem 1rem; background: var(--blue); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-size: .9rem;
}

/* ── PRODUK DETAIL ── */
.produk-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.produk-ilus {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; overflow: hidden;
}
.produk-info h1 { font-size: 1.55rem; font-weight: 800; color: var(--text); margin-bottom: .3rem; }
.produk-meta { font-size: .85rem; color: var(--gray3); margin-bottom: .8rem; }
.produk-harga { font-size: 1.6rem; font-weight: 900; color: var(--blue); margin-bottom: .3rem; }
.produk-harga-old { font-size: .95rem; color: var(--gray3); text-decoration: line-through; margin-bottom: .8rem; }
.produk-desc { color: var(--text2); font-size: .93rem; margin-bottom: 1rem; line-height: 1.7; }
.var-group { margin-bottom: 1rem; }
.var-group label { font-size: .83rem; font-weight: 700; color: var(--text); display: block; margin-bottom: .4rem; }
.var-options { display: flex; gap: .4rem; flex-wrap: wrap; }
.var-options input[type=radio] { display: none; }
.var-options label {
  border: 1.5px solid var(--gray2); border-radius: 6px; padding: .3rem .75rem;
  font-size: .82rem; cursor: pointer; background: var(--white);
}
.var-options input[type=radio]:checked + label { border-color: var(--blue); background: var(--blue3); color: var(--blue); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; }
.qty-btn { width: 34px; height: 34px; border: 1.5px solid var(--gray2); background: var(--white); border-radius: 6px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-num { font-size: 1rem; font-weight: 700; min-width: 28px; text-align: center; }
.produk-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.produk-btns .btn { min-width: 140px; }
.specs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .88rem; }
.specs-table tr:nth-child(even) td { background: var(--gray1); }
.specs-table td { padding: .55rem .75rem; border: 1px solid var(--gray2); }
.specs-table td:first-child { font-weight: 700; color: var(--text); width: 40%; }

/* ── ORDER FORM ── */
.order-wrap {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start;
}
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--blue); margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .6rem .85rem;
  border: 1.5px solid var(--gray2); border-radius: 8px;
  font-size: .93rem; font-family: var(--font); outline: none; background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .35rem; }
.pay-options input[type=radio] { display: none; }
.pay-label {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--gray2); border-radius: 8px; padding: .6rem .75rem;
  font-size: .83rem; cursor: pointer; transition: all .15s;
}
.pay-options input[type=radio]:checked + .pay-label { border-color: var(--blue); background: var(--blue3); font-weight: 700; color: var(--blue); }
.btn-wa {
  width: 100%; padding: .8rem; font-size: 1rem; font-weight: 800;
  background: #25d366; color: #fff; border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-wa:hover { background: #1ebe57; }

.order-summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.order-summary h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue); margin-bottom: 1rem; }
.sum-item { display: flex; justify-content: space-between; font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--gray2); }
.sum-item:last-of-type { border-bottom: none; }
.sum-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 800; color: var(--blue); padding-top: .75rem; margin-top: .25rem; border-top: 2px solid var(--blue3); }

/* ── KONTAK ── */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.info-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--blue); margin-bottom: 1.2rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.info-row svg { flex-shrink: 0; margin-top: 2px; }
.info-row div strong { font-weight: 700; display: block; margin-bottom: .15rem; font-size: .9rem; }
.info-row div span { font-size: .87rem; color: var(--text2); }
.jam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; font-size: .85rem; margin-top: .5rem; }
.jam-grid span:nth-child(odd) { font-weight: 600; }
.btn-wa-lg {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: #25d366; color: #fff; border-radius: 10px; padding: .9rem 1.5rem;
  font-size: 1rem; font-weight: 800; margin-top: 1rem; width: 100%;
  text-decoration: none; transition: background .15s;
}
.btn-wa-lg:hover { background: #1ebe57; text-decoration: none; }
.map-placeholder {
  background: linear-gradient(135deg, var(--blue3) 0%, #e8f5e9 100%);
  border-radius: var(--radius); height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; margin-top: 1rem; color: var(--blue2);
}

/* ── FOOTER ── */
footer {
  background: #0d2e6e; color: #b3c7e8;
  padding: 2.5rem 1.2rem 1.2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .logo { color: #fff; margin-bottom: .6rem; }
.footer-brand p { font-size: .83rem; line-height: 1.6; }
.footer-col h4 { font-size: .9rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: #b3c7e8; font-size: .83rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 1.5rem auto 0;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; color: rgba(255,255,255,.5);
}

/* ── BREADCRUMB ── */
.breadcrumb { padding: .75rem 1.2rem; background: var(--white); border-bottom: 1px solid var(--gray2); font-size: .82rem; }
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--gray3); margin: 0 .4rem; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0d47a1 100%);
  color: #fff; padding: 2.5rem 1.2rem;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: 1.7rem; font-weight: 900; margin-bottom: .3rem; }
.page-hero p { opacity: .85; font-size: .95rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ilus { display: none; }
  .hero-badges, .hero-btns { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .produk-detail { grid-template-columns: 1fr; }
  .order-wrap { grid-template-columns: 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 1.5rem; }
  .promo-banner { text-align: center; }
}
