/* ============================================================
   SIDO MUNCUL STORE — Global Stylesheet
   Referensi tampilan: sidomunculstore.com
   ============================================================ */

:root {
  --brand-green: #1e7a3c;
  --brand-green-dark: #145c2c;
  --olive: #6f7d33;
  --olive-dark: #5c6a29;
  --banner-green-1: #1f6b34;
  --banner-green-2: #0f3d1d;
  --price-red: #e0301e;
  --gold: #f4b400;
  --cream: #fdf5e3;
  --cream-2: #faf0d7;
  --ink: #222;
  --muted: #777;
  --line: #e6e6e6;
  --dark-bar: #141414;
  --wa-green: #25a34a;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: #555;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}
.topbar .promo-lines { line-height: 1.3; padding: 6px 0; }
.topbar .promo-lines b { color: var(--brand-green); }
.topbar .top-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar .top-right span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }

/* ---------------- HEADER ---------------- */
.header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-green);
  display: grid; place-items: center; color: #fff; font-size: 20px;
}
.logo .brand-text { font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.logo .brand-text .thin { font-weight: 400; color: #555; }

.searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f2f2f2;
  border-radius: 30px;
  padding: 10px 18px;
}
.searchbar input {
  border: none; background: transparent; outline: none;
  flex: 1; font-size: 14px; color: #333;
}
.searchbar button { background: none; border: none; color: #666; font-size: 16px; }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-actions .action { text-align: center; font-size: 11px; color: #444; position: relative; }
.header-actions .action .ico { font-size: 20px; display: block; margin-bottom: 2px; }
.header-actions .action .badge-count {
  position: absolute; top: -6px; right: 2px;
  background: var(--price-red); color: #fff; font-size: 10px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 600;
}

/* ---------------- NAV ---------------- */
.mainnav { background: #fff; border-bottom: 1px solid var(--line); }
.mainnav .container { display: flex; align-items: center; gap: 8px; }
.mainnav .cat-btn {
  display: flex; align-items: center; gap: 8px;
  background: #f4f4f4; border: none; border-radius: 8px;
  padding: 10px 16px; font-weight: 600; font-size: 14px; color: #333;
  margin: 8px 8px 8px 0;
}
.mainnav nav { display: flex; gap: 26px; }
.mainnav nav a {
  padding: 16px 0; font-size: 14px; font-weight: 500; color: #333;
  border-bottom: 3px solid transparent;
}
.mainnav nav a:hover, .mainnav nav a.active { color: var(--brand-green); border-color: var(--brand-green); }

/* ---------------- HERO BANNER ---------------- */
.hero { padding: 24px 0; }
.hero-banner {
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, var(--banner-green-1), var(--banner-green-2));
  color: #fff; padding: 40px 48px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center;
  position: relative;
}
.hero-banner .hb-left h2 { font-size: 22px; margin-bottom: 8px; }
.hero-banner .hb-left p { opacity: .9; font-size: 14px; }
.hero-banner .device-mock {
  background: rgba(255,255,255,.12); border-radius: 14px; padding: 22px;
  backdrop-filter: blur(2px); min-height: 180px;
  display: grid; place-items: center; text-align: center;
}
.hero-title-band {
  display: inline-block; background: #7a5a2a; color: #fff;
  padding: 8px 18px; border-radius: 8px; font-weight: 700; margin-bottom: 6px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.step {
  background: rgba(255,255,255,.14); border-radius: 10px; padding: 12px; font-size: 12.5px;
}
.step .snum { display:inline-block; background:#7a5a2a; color:#fff; font-weight:700; font-size:11px; padding:3px 10px; border-radius:6px; margin-bottom:8px; }

/* ---------------- QUICK ICONS ---------------- */
.quick-icons { padding: 8px 0 28px; }
.quick-grid {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px;
}
.quick-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; background: #fff;
  transition: .18s; position: relative;
}
.quick-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.quick-card .qi { font-size: 26px; display: block; margin-bottom: 8px; }
.quick-card .qlabel { font-size: 12.5px; font-weight: 600; }
.quick-card .new-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--price-red); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}

/* ---------------- SECTIONS ---------------- */
.section { padding: 30px 0; }
.section h2.section-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.section p.section-sub { color: var(--muted); margin-bottom: 20px; }

/* pills / tabs */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  border: 1px solid #d9d9d9; background: #fff; color: #333;
  border-radius: 30px; padding: 9px 20px; font-size: 14px; font-weight: 500;
  transition: .15s;
}
.pill:hover { border-color: var(--olive); }
.pill.active { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------------- PRODUCT GRID / CARD ---------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; display: flex; flex-direction: column;
  transition: .18s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pc-thumb {
  position: relative; aspect-ratio: 1/1; background: #f4f5f2;
  display: grid; place-items: center; overflow: hidden;
}
.pc-thumb img.pc-img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6%; }
.pdp-gallery .main-img img.pc-img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6%; }
.cart-item .ci-thumb img.pc-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pc-thumb .ph-box {
  width: 78%; height: 78%; border-radius: 10px;
  display: grid; place-items: center; text-align: center; color: #fff;
  font-weight: 700; font-size: 13px; padding: 12px; line-height: 1.3;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.25);
}
.pc-thumb .ph-nophoto {
  color: #bbb; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  display: grid; place-items: center; gap: 6px;
}
.pc-thumb .ph-nophoto .cam { font-size: 30px; }
.pc-badges { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; }
.badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 5px; color: #fff;
}
.badge.single { background: #1e88e5; }
.badge.new { background: var(--gold); color: #3a2e00; }

.pc-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-title {
  font-size: 13.5px; font-weight: 600; color: #2b2b2b; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 37px;
}
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pc-rating .stars { color: var(--gold); letter-spacing: 1px; }
.pc-price { margin-top: auto; }
.pc-price .now { color: var(--price-red); font-weight: 800; font-size: 16px; }
.pc-price .old { color: #aaa; text-decoration: line-through; font-size: 12.5px; margin-left: 6px; }
.pc-actions { margin-top: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 8px; padding: 10px 18px;
  font-weight: 600; font-size: 14px; transition: .15s;
}
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-dark); }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-dark); }
.btn-outline { background: #fff; border: 1px solid var(--brand-green); color: var(--brand-green); }
.btn-outline:hover { background: #f0f8f2; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

.center-link { text-align: center; margin-top: 24px; font-weight: 700; }
.center-link a { color: #333; }
.center-link a:hover { color: var(--brand-green); }

.see-all-box {
  display: block; width: fit-content; margin: 24px auto 0;
  border: 1px solid #ccc; border-radius: 10px; padding: 12px 26px; font-weight: 700;
}
.see-all-box:hover { border-color: var(--brand-green); color: var(--brand-green); }

/* ---------------- NEWSLETTER ---------------- */
.newsletter { background: var(--olive); color: #fff; padding: 44px 0; margin-top: 40px; }
.newsletter .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.newsletter h3 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.news-form { display: flex; gap: 0; background: #fff; border-radius: 8px; overflow: hidden; max-width: 460px; margin-left: auto; }
.news-form input { flex: 1; border: none; outline: none; padding: 14px 18px; font-size: 14px; }
.news-form button { background: #fff; color: var(--olive); border: none; padding: 0 24px; font-weight: 800; border-left: 1px solid #eee; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--cream); padding: 48px 0 0; color: #444; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.footer h4 { font-size: 14px; letter-spacing: .5px; margin-bottom: 16px; color: #222; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a:hover { color: var(--brand-green); }
.footer .fl-mkt { color: var(--olive); font-weight: 600; }
.footer-brand .logo-foot { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 800; font-size: 20px; }
.footer-brand .phone { font-size: 22px; font-weight: 800; color: #222; display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.footer-brand .muted { color: #666; margin-bottom: 12px; }
.pay-badges, .ship-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pay-badges span, .ship-badges span {
  background: #fff; border: 1px solid #eadfc4; border-radius: 6px; padding: 6px 10px;
  font-size: 11px; font-weight: 700; color: #555; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.socials { display: flex; gap: 12px; margin-top: 12px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; background: #1b1b1b; color: #fff;
  display: grid; place-items: center; font-size: 18px; transition: .15s;
}
.socials a:hover { background: var(--brand-green); }
.footer-bottom { background: var(--dark-bar); color: #cfcfcf; text-align: center; padding: 16px; margin-top: 40px; font-size: 13px; }

/* ---------------- FLOATING WA ---------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  background: var(--wa-green); color: #fff; padding: 12px 20px; border-radius: 30px;
  font-weight: 700; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float:hover { filter: brightness(1.05); }

/* ---------------- BREADCRUMB ---------------- */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-green); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------------- KATEGORI LAYOUT ---------------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 20px 0 50px; }
.filter-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: fit-content; }
.filter-panel h4 { font-size: 15px; margin-bottom: 12px; }
.filter-group { margin-bottom: 22px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; cursor: pointer; color: #444; }
.filter-group label:hover { color: var(--brand-green); }
.shop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.shop-head h1 { font-size: 24px; }
.shop-head .count { color: var(--muted); font-size: 14px; }
.sort-select { border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; font-size: 14px; }

/* ---------------- PRODUCT DETAIL ---------------- */
.pdp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 20px 0 40px; }
.pdp-gallery .main-img {
  border: 1px solid var(--line); border-radius: 16px; aspect-ratio: 1/1;
  background: #f4f5f2; display: grid; place-items: center; overflow: hidden;
}
.pdp-gallery .main-img .ph-box { width: 70%; height: 70%; border-radius: 14px; display:grid; place-items:center; text-align:center; color:#fff; font-weight:700; padding:20px; box-shadow: inset 0 0 0 6px rgba(255,255,255,.25); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumbs .t { width: 70px; height: 70px; border: 1px solid var(--line); border-radius: 10px; background:#f4f5f2; display:grid; place-items:center; font-size:10px; color:#999; }
.pdp-info h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.pdp-info .pd-rating { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pdp-info .pd-rating .stars { color: var(--gold); }
.pd-price-box { background: #f8f8f6; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.pd-price-box .now { color: var(--price-red); font-weight: 800; font-size: 30px; }
.pd-price-box .old { color: #aaa; text-decoration: line-through; margin-left: 10px; }
.pd-price-box .disc-tag { background: #ffe3df; color: var(--price-red); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; margin-left: 10px; }
.pd-desc { color: #555; margin-bottom: 22px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-ctrl button { width: 38px; height: 40px; border: none; background: #f4f4f4; font-size: 18px; }
.qty-ctrl input { width: 50px; text-align: center; border: none; outline: none; font-size: 15px; }
.pdp-cta { display: flex; gap: 12px; }
.pd-meta { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; color: #555; }
.pd-meta div { margin-bottom: 8px; }
.pd-meta b { color: #333; }

/* ---------------- CART ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; padding: 20px 0 50px; align-items: start; }
.cart-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-thumb { width: 90px; height: 90px; border-radius: 10px; background: #f4f5f2; display:grid; place-items:center; overflow:hidden; }
.cart-item .ci-thumb .ph-box { width: 80%; height: 80%; border-radius: 8px; display:grid; place-items:center; color:#fff; font-size:10px; font-weight:700; text-align:center; padding:6px; }
.cart-item .ci-title { font-size: 14px; font-weight: 600; }
.cart-item .ci-price { color: var(--price-red); font-weight: 700; margin-top: 4px; }
.cart-item .ci-remove { color: #c00; font-size: 13px; background: none; border: none; margin-top: 6px; }
.cart-item .ci-right { text-align: right; }
.cart-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.cart-summary h3 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #555; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; color: #222; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-cart .big { font-size: 46px; margin-bottom: 12px; }

/* ---------------- STATIC PAGES ---------------- */
.page-hero { background: linear-gradient(120deg, var(--banner-green-1), var(--banner-green-2)); color: #fff; padding: 50px 0; }
.page-hero h1 { font-size: 32px; }
.page-hero p { opacity: .9; margin-top: 8px; }
.prose { padding: 36px 0 50px; max-width: 860px; }
.prose h2 { font-size: 22px; margin: 26px 0 12px; }
.prose p { margin-bottom: 14px; color: #444; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.value-card .vi { font-size: 32px; margin-bottom: 10px; }
.value-card h3 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: #666; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: #fff; border: none; padding: 18px 20px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-q .chev { transition: .2s; color: var(--brand-green); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: .25s; color: #555; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 400px; }

/* toast */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #222; color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-banner { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .newsletter .container { grid-template-columns: 1fr; }
  .news-form { margin-left: 0; }
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar, .header-actions .action span.lbl { display: none; }
  .header .container { flex-wrap: wrap; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .mainnav nav { gap: 16px; overflow-x: auto; }
  .section h2.section-title { font-size: 22px; }
}
