/* ============================================================
   AMANAH OFFICIAL — Halaman belanja (design system v2)
   File : public/assets/css/shop.css
   Beranda, listing /produk, saran pencarian, detail produk.
   ============================================================ */

/* ── Umum halaman ── */
.crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--muted);
  padding: 12px 0;
}
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand); }
.crumb span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--ink-2); font-size: 13px;
}
.chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); font-weight: 600; }

.empty2 {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 48px 16px; background: var(--surface); border-radius: var(--r);
  grid-column: 1 / -1;
}
.empty2 h2 { font-size: 17px; }
.empty2 p { color: var(--muted); font-size: 14px; max-width: 360px; margin-bottom: 8px; }
.empty2-ic { width: 56px; height: 56px; color: var(--brand-100); stroke-width: 1.5; }

/* Baris produk geser horizontal */
.hscroll {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 8px; padding: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 640px)  { .hscroll { grid-auto-columns: 28%; } }
@media (min-width: 1024px) { .hscroll { grid-auto-columns: calc((100% - 5 * 10px) / 6); gap: 10px; padding: 16px; } }

/* ══════════ BERANDA ══════════ */
.home { padding-top: 12px; }

.hb { display: grid; gap: 8px; }
@media (min-width: 900px) { .hb { grid-template-columns: 2fr 1fr; } }

.hb-main { position: relative; border-radius: var(--r); overflow: hidden; }
.hb-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth;
}
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  position: relative; display: flex; align-items: center;
  min-height: 150px; padding: 20px 22px; color: #fff; overflow: hidden;
}
@media (min-width: 640px) { .hb-slide { min-height: 220px; padding: 32px 40px; } }
.hb-b1 { background: linear-gradient(120deg, #E8547A 0%, #B9356A 100%); }
.hb-b2 { background: linear-gradient(120deg, #8E5BB5 0%, #E8547A 100%); }
.hb-b3 { background: linear-gradient(120deg, #2D1B33 0%, #8A2E5E 100%); }
.hb-text { position: relative; z-index: 1; max-width: 70%; }
.hb-text h2 { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; }
.hb-text p { font-size: 13px; opacity: .9; margin: 6px 0 12px; }
@media (min-width: 640px) {
  .hb-text h2 { font-size: 30px; }
  .hb-text p { font-size: 15px; }
}
.hb-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand-dark);
  font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 16px;
}
.hb-art { position: absolute; right: -14px; bottom: -20px; opacity: .22; }
.hb-art .ic { width: 150px; height: 150px; stroke-width: 1.4; }
@media (min-width: 640px) { .hb-art { right: 24px; bottom: -10px; } .hb-art .ic { width: 210px; height: 210px; } }

.hb-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.hb-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .5); transition: width .2s; }
.hb-dots button.active { width: 18px; background: #fff; }

.hb-side { display: none; }
@media (min-width: 900px) {
  .hb-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
}
.hb-mini {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-radius: var(--r); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1);
}
.hb-mini .ic { width: 34px; height: 34px; color: var(--brand); }
.hb-mini span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.hb-mini strong { font-size: 16px; color: var(--ink); }
.hb-mini:hover { box-shadow: var(--shadow-2); }

.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin: 10px 0 0; padding: 10px 4px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1);
}
.perks li {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  font-size: 11px; color: var(--ink-2);
}
.perks .ic { width: 22px; height: 22px; color: var(--brand); }
@media (min-width: 640px) {
  .perks li { flex-direction: row; justify-content: center; font-size: 14px; gap: 8px; }
}

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(7, 1fr); } }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; text-align: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: box-shadow .15s;
}
.cat-item:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.cat-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand);
}
.cat-ic .ic { width: 26px; height: 26px; }
.cat-name { font-size: 13px; color: var(--ink); }

.reko-head {
  position: sticky; top: 56px; z-index: 5;
  background: var(--surface); text-align: center;
  border-bottom: 4px solid var(--brand);
  margin-bottom: 8px; box-shadow: var(--shadow-1);
}
@media (min-width: 768px) { .reko-head { top: 126px; } }
.reko-head h2 { color: var(--brand); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; padding: 14px; }
.reko-more { text-align: center; margin: 20px 0 8px; }
.reko-more .btn2 { min-width: 280px; }

/* ══════════ LISTING /produk ══════════ */
.lp-layout { display: block; }
@media (min-width: 1024px) {
  .lp-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
}
.lp-side { display: none; }
@media (min-width: 1024px) {
  .lp-side { display: block; position: sticky; top: 140px; }
}
.lp-side-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.lp-cat-list a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 0 7px 12px; font-size: 14px; color: var(--ink-2); position: relative;
}
.lp-cat-list a span { color: var(--muted); font-size: 12px; }
.lp-cat-list a:hover, .lp-cat-list a.active { color: var(--brand); }
.lp-cat-list a.active { font-weight: 600; }
.lp-cat-list a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -4px;
  border: 4px solid transparent; border-left-color: var(--brand);
}

.lp-title { font-size: 16px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lp-title strong { color: var(--brand); }
.lp-subtitle { font-size: 15px; margin: 24px 0 10px; color: var(--ink-2); text-transform: uppercase; }

.lp-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -12px 10px; padding: 0 12px;
}
.lp-chips::-webkit-scrollbar { display: none; }

.lp-sort {
  display: flex; align-items: center; gap: 8px;
  background: #EDE4EA; border-radius: var(--r-xs);
  padding: 8px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none;
}
.lp-sort::-webkit-scrollbar { display: none; }
.lp-sort-label { font-size: 14px; color: var(--ink-2); margin: 0 6px; }
.lp-sort-btn {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 34px; padding: 0 14px;
  background: var(--surface); border-radius: var(--r-xs);
  font-size: 14px; color: var(--ink);
}
.lp-sort-btn.active { background: var(--brand); color: #fff; }
.lp-count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; padding-right: 6px; }
@media (max-width: 767px) {
  .lp-sort { background: var(--surface); padding: 0; gap: 0; border-radius: 0; margin: 0 -12px 10px; border-bottom: 1px solid var(--line); }
  .lp-sort-btn { flex: 1; justify-content: center; border-radius: 0; font-size: 13px; padding: 0 8px; height: 42px; }
  .lp-sort-btn.active { background: var(--surface); color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); font-weight: 600; }
}

.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 34px; padding: 0 8px;
  border-radius: var(--r-xs); color: var(--ink-2); font-size: 15px;
}
.pager a:hover { color: var(--brand); }
.pager a.active { background: var(--brand); color: #fff; }

/* ══════════ SARAN PENCARIAN (header) ══════════ */
.sh-search-wrap { position: relative; }
.sh-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 960;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); box-shadow: var(--shadow-3);
  max-height: 70vh; overflow-y: auto; padding: 6px 0;
}
@media (min-width: 768px) { .sh-suggest { top: 46px; } }
.sh-suggest[hidden] { display: none; }
.sh-suggest-label { font-size: 12px; color: var(--muted); padding: 6px 14px; display: flex; justify-content: space-between; }
.sh-suggest-label button { border: 0; background: none; color: var(--brand); font-size: 12px; }
.sh-suggest a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; font-size: 14px; color: var(--ink);
}
.sh-suggest a.active, .sh-suggest a:hover { background: var(--brand-50); }
.sh-suggest img { width: 36px; height: 36px; object-fit: cover; border-radius: var(--r-xs); background: var(--brand-50); }
.sh-suggest .sg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-suggest .sg-name mark { background: none; color: var(--brand); font-weight: 600; }
.sh-suggest .sg-price { font-size: 13px; color: var(--price); flex-shrink: 0; }
.sh-suggest .ic { width: 16px; height: 16px; color: var(--muted); }

/* ══════════ DETAIL PRODUK ══════════ */
.pd-muted { color: var(--muted); font-size: 13px; }

.pd-top { display: grid; gap: 0; overflow: hidden; }
@media (min-width: 900px) { .pd-top { grid-template-columns: 450px 1fr; gap: 28px; padding: 20px; } }

/* Galeri */
.pd-main { position: relative; background: var(--brand-50); }
@media (min-width: 900px) { .pd-main { border-radius: var(--r-sm); overflow: hidden; } }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-slide-ph .ic { width: 80px; height: 80px; color: var(--brand-100); stroke-width: 1.3; }
.pd-counter {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(36, 26, 40, .55); color: #fff; font-size: 12px;
  padding: 2px 10px; border-radius: 12px;
}
@media (min-width: 900px) { .pd-counter { display: none; } }
.pd-thumbs { display: none; }
@media (min-width: 900px) {
  .pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
  .pd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-xs); overflow: hidden; aspect-ratio: 1; background: var(--brand-50); }
  .pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--brand); }
  .pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
}

/* Info */
.pd-info { padding: 12px; }
@media (min-width: 900px) { .pd-info { padding: 0; } }
.pd-name { font-size: 17px; font-weight: 500; line-height: 1.4; }
@media (min-width: 900px) { .pd-name { font-size: 21px; } }
.pd-stats { display: flex; flex-wrap: wrap; align-items: center; margin: 8px 0 12px; font-size: 14px; color: var(--muted); }
.pd-stat { display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; border-left: 1px solid var(--line); color: var(--muted); }
.pd-stat:first-child { padding-left: 0; border-left: 0; }
.pd-stat strong { color: var(--ink); font-weight: 600; }
.pd-rate { color: var(--brand) !important; text-decoration: underline; text-underline-offset: 3px; }
.star-on { color: var(--star); }
.star-off { color: #E5DCE2; fill: #E5DCE2; }

.pd-price-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  background: var(--brand-50); padding: 14px 16px; margin: 0 -12px 8px;
}
@media (min-width: 900px) { .pd-price-box { margin: 0 0 12px; border-radius: var(--r-xs); padding: 16px 20px; } }
.pd-orig { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.pd-price { color: var(--price); font-size: 26px; font-weight: 600; }
@media (min-width: 900px) { .pd-price { font-size: 30px; } }
.pd-disc { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 2px; }

.pd-rows { margin: 0; }
.pd-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.pd-row dt, .pd-label { width: 96px; flex-shrink: 0; color: var(--muted); font-size: 14px; padding-top: 2px; }
.pd-row dd { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.pd-ship { display: inline-flex; align-items: center; gap: 6px; }
.pd-ship .ic { color: var(--success); }
.pd-row dd .pd-pay {
  display: inline-block; margin: 0 6px 4px 0;
  padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: 12px; color: var(--ink-2);
}
.pd-row dd:has(.pd-pay) { flex-direction: row; flex-wrap: wrap; }

.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-opt {
  min-height: 34px; padding: 4px 14px;
  border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--surface); color: var(--ink); font-size: 14px;
  position: relative;
}
.pd-opt:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pd-opt.active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.pd-opt.active::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  border: 6px solid transparent; border-right-color: var(--brand); border-bottom-color: var(--brand);
}
.pd-opt:disabled { color: #C8BDC5; background: #FAF7F9; cursor: not-allowed; text-decoration: line-through; }

.pd-qty-row { align-items: center; flex-wrap: wrap; }
.pd-qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-xs); }
.pd-qty button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--surface); color: var(--ink); }
.pd-qty button:disabled { color: #CFC4CC; }
.pd-qty input { width: 52px; height: 34px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 15px; outline: 0; }

.pd-hint { color: var(--danger); font-size: 13px; background: #FFF4F4; padding: 8px 12px; border-radius: var(--r-xs); margin: 4px 0 0; }
.pd-buy.shake .pd-hint { animation: pdShake .35s; }
@keyframes pdShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.pd-actions { display: none; gap: 12px; margin-top: 16px; }
.pd-actions .btn2 { min-height: 46px; padding: 0 22px; font-size: 15px; }
.pd-sheet-head, .pd-sheet-ok { display: none; }

.pd-minis { display: flex; gap: 20px; margin-top: 12px; }
.pd-mini { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.pd-mini.active { color: var(--brand); }
.pd-mini.active .ic { fill: currentColor; }

/* Desktop: panel beli inline */
@media (min-width: 768px) {
  .pd-actions { display: flex; }
}

/* Mobile: panel beli = bottom sheet */
@media (max-width: 767px) {
  .pd-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
    background: var(--surface); border-radius: 12px 12px 0 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    max-height: 85vh; overflow-y: auto;
    transform: translateY(105%); transition: transform .25s ease;
    box-shadow: var(--shadow-3);
  }
  .pd-buy.open { transform: none; }
  .pd-sheet-head { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; position: relative; }
  .pd-sheet-head img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--line); margin-top: -40px; background: var(--surface); }
  .pd-sheet-price { color: var(--price); font-size: 20px; font-weight: 600; }
  .pd-sheet-close { position: absolute; top: 0; right: 0; border: 0; background: none; color: var(--muted); padding: 4px; }
  .pd-buy .pd-row { flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .pd-buy .pd-qty-row { flex-direction: row; align-items: center; }
  .pd-buy .pd-qty-row .pd-label { flex: 1; }
  .pd-buy .pd-qty-row .pd-muted { display: none; }
  .pd-sheet-ok { display: flex; margin-top: 14px; min-height: 46px; font-size: 15px; }
}
.sheet-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); }
.sheet-backdrop[hidden] { display: none; }

/* Toko */
.pd-shop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 12px; margin-top: 10px; }
@media (min-width: 900px) { .pd-shop { padding: 20px; gap: 16px; } }
.pd-shop-logo { width: 56px; height: 56px; background: var(--surface); border: 1px solid var(--line); }
.pd-shop-logo img { object-fit: contain; padding: 4px; }
.pd-shop-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 140px; }
.pd-shop-info strong { font-size: 16px; }
.pd-shop-info .pd-muted { display: inline-flex; align-items: center; gap: 4px; }
.pd-shop-actions { display: flex; gap: 8px; }
.pd-shop-actions .btn2 { min-height: 34px; padding: 0 12px; font-size: 13px; }

/* Seksi */
.pd-sec { padding: 14px 12px; margin-top: 10px; }
@media (min-width: 900px) { .pd-sec { padding: 20px 24px; } }
.pd-sec-title {
  font-size: 15px; font-weight: 600; text-transform: uppercase;
  background: #FAF5F8; padding: 10px 14px; margin: 0 -2px 14px; border-radius: var(--r-xs);
}
.pd-sec-title:not(:first-child) { margin-top: 22px; }
.pd-spec { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; padding: 0 14px; }
.pd-spec div { display: flex; gap: 12px; font-size: 14px; }
.pd-spec dt { width: 120px; flex-shrink: 0; color: var(--muted); }
.pd-spec dd { margin: 0; }
.pd-desc { padding: 0 14px; font-size: 14px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.pd-desc.folded { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.pd-more { display: flex; align-items: center; gap: 4px; margin: 8px auto 0; border: 0; background: none; color: var(--brand); font-size: 14px; }

.pd-rating-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-xs);
  padding: 16px 20px; margin-bottom: 8px;
}
.pd-rating-big { color: var(--brand); font-size: 16px; }
.pd-rating-big strong { font-size: 28px; font-weight: 600; }
.pd-rating-stars { display: flex; gap: 2px; }
.pd-rating-stars .ic { width: 20px; height: 20px; }
.pd-reviews li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pd-review-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pd-review p { font-size: 14px; color: var(--ink); }
.pd-review-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-review-media img, .pd-review-media video { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-xs); }
.pd-no-review { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.pd-no-review .ic { width: 40px; height: 40px; color: var(--brand-100); }
.pd-related-title { font-size: 15px; font-weight: 600; text-transform: uppercase; color: var(--ink-2); margin: 20px 0 10px; }

/* Bar beli sticky (mobile) */
.pd-bar { display: none; }
@media (max-width: 767px) {
  .pd-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: grid; grid-template-columns: 1fr 1fr 2fr;
    height: 54px; padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .pd-bar-ic {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; background: #F2FBF9; color: var(--success); font-size: 11px;
  }
  .pd-bar-cart { background: #F2FBF9; border-left: 1px solid var(--line); }
  .pd-bar-buy { border: 0; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; }
  .pd-bar button:disabled { background: #D9D1D6; color: #fff; }
  body:has(.pd-bar) { padding-bottom: 54px; }
  body:has(.pd-bar) .wa-float,
  body:has(.kr-bar) .wa-float,
  body:has(.co-bar) .wa-float { display: none !important; }
}

/* Animasi badge keranjang saat produk ditambahkan */
.sh-cart.bump .ic { animation: cartBump .45s ease; }
@keyframes cartBump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }

/* ══════════ PROMO (flash sale, voucher, gratis ongkir) ══════════ */
.pcard-badge-flash { display: inline-flex; align-items: center; gap: 2px; background: linear-gradient(90deg, #F2711C, #E8547A); }
.pcard-flashbar { position: relative; height: 16px; border-radius: 8px; background: #FFD6E0; overflow: hidden; }
.pcard-flashbar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #F2711C, #E8547A); border-radius: 8px; }
.pcard-flashbar em { position: relative; display: block; text-align: center; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; line-height: 16px; letter-spacing: .03em; text-shadow: 0 0 2px rgba(0,0,0,.25); }
.pcard-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: #11A08A; border: 1px solid #9ADBD0; border-radius: 2px; padding: 0 4px; }

.pd-flash {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, #F2711C, #E8547A); color: #fff;
  padding: 8px 16px; margin: 0 -12px;
}
@media (min-width: 900px) { .pd-flash { margin: 0; border-radius: var(--r-xs) var(--r-xs) 0 0; } }
.pd-flash-logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-style: italic; letter-spacing: .04em; }
.pd-flash-end { font-size: 12px; }
.pd-flash-end strong, [data-countdown] { font-variant-numeric: tabular-nums; }
.pd-flash-end strong { background: #241A28; padding: 2px 6px; border-radius: 3px; margin-left: 4px; }
.pd-price-flash { border-radius: 0 0 var(--r-xs) var(--r-xs); }
.pd-vouchers { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
.vc-tag {
  position: relative; display: inline-block; padding: 2px 10px; font-size: 12px; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 2px;
}

/* Beranda: flash sale & voucher */
.fs-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fs-logo { display: inline-flex; align-items: center; gap: 4px; color: #F2711C; font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .03em; }
.fs-timer { display: inline-flex; gap: 3px; align-items: center; font-size: 13px; }
.fs-timer b { background: #241A28; color: #fff; min-width: 24px; text-align: center; padding: 2px 4px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.vc-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 12px; }
.vc-strip::-webkit-scrollbar { display: none; }
.vc {
  flex: 0 0 260px; display: flex; align-items: stretch; background: var(--surface);
  border: 1px solid var(--brand-100); border-radius: var(--r-xs); overflow: hidden;
}
.vc-kiri { width: 74px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 6px; position: relative; }
.vc-kiri.vc-ongkir { background: #11A08A; }
.vc-kiri::after { content: ''; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle at 5px 6px, var(--surface) 3px, transparent 3.5px) 0 0 / 10px 12px repeat-y; }
.vc-kiri .ic { width: 22px; height: 22px; }
.vc-isi { flex: 1; padding: 8px 10px 8px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; }
.vc-isi strong { font-size: 13px; color: var(--ink); }
.vc-isi span { color: var(--muted); }
.vc-isi code { font-family: var(--font) !important; color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.vc-salin { align-self: center; margin-right: 10px; border: 0; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 2px; }
.hb-img { padding: 0; min-height: 0; aspect-ratio: 2 / 1; }
@media (min-width: 640px) { .hb-img { aspect-ratio: 16 / 5; } }
.hb-img picture, .hb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ══════════ BLOG ══════════ */
.bl { padding-bottom: 24px; }
.bl-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }
.bl-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.bl-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
@media (min-width: 1024px) { .bl-utama { grid-column: span 2; flex-direction: row; } .bl-utama .bl-img { width: 55%; aspect-ratio: auto; } .bl-utama strong { font-size: 22px !important; } }
.bl-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1200 / 630; background: var(--brand-50); color: var(--brand-100); overflow: hidden; flex-shrink: 0; }
.bl-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-img .ic { width: 48px; height: 48px; }
.bl-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.bl-body strong { font-size: 16px; line-height: 1.35; }
.bl-ring { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-body small { color: var(--muted); font-size: 12px; margin-top: auto; }
.bl-kat { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: var(--brand-50); padding: 2px 8px; border-radius: 2px; }
.bl-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1024px) { .bl-layout { grid-template-columns: 1fr 340px; } }
.bl-artikel { overflow: hidden; }
.bl-hero { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.bl-artikel-isi { padding: 20px; }
@media (min-width: 768px) { .bl-artikel-isi { padding: 28px 40px 36px; } }
.bl-artikel h1 { font-size: 24px; margin: 10px 0 6px; }
@media (min-width: 768px) { .bl-artikel h1 { font-size: 30px; } }
.bl-prose { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.bl-prose p, .bl-prose ul { margin-bottom: 16px; }
.bl-prose h2 { font-size: 20px; margin: 26px 0 10px; }
.bl-prose ul { padding-left: 20px; list-style: disc; }
.bl-prose a { color: var(--brand); text-decoration: underline; }
.bl-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.bl-share a, .bl-share button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 6px 12px; font-size: 13px; color: var(--ink); }
.bl-box { padding: 16px; margin-bottom: 12px; }
.bl-box h2 { font-size: 15px; margin-bottom: 12px; text-transform: uppercase; color: var(--ink-2); }
.bl-mini { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; line-height: 1.35; }
.bl-mini .bl-img { border-radius: var(--r-xs); }
.bl-mini small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.bl-side .bl-produk { grid-template-columns: 1fr 1fr !important; }

/* ══════════ HALAMAN TOKO ══════════ */
.tk { padding-top: 12px; }
.tk-head { display: grid; gap: 16px; padding: 18px; background: linear-gradient(135deg, var(--surface) 55%, var(--brand-50)); }
@media (min-width: 900px) { .tk-head { grid-template-columns: 380px 1fr; align-items: center; } }
.tk-profil { display: flex; gap: 16px; align-items: center; }
.tk-logo { width: 84px; height: 84px; background: var(--surface); border: 2px solid var(--brand-100); }
.tk-logo img { object-fit: contain; padding: 6px; }
.tk-head h1 { font-size: 20px; }
.tk-sub { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.tk-btn { display: flex; gap: 8px; margin-top: 10px; }
.tk-btn .btn2 { min-height: 32px; padding: 0 12px; font-size: 13px; }
.tk-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; color: var(--ink-2); }
.tk-stat li { display: flex; align-items: center; gap: 8px; }
.tk-stat .ic { color: var(--brand); width: 18px; height: 18px; }
.tk-stat strong { color: var(--brand); font-weight: 600; }
@media (max-width: 479px) { .tk-stat { grid-template-columns: 1fr; gap: 8px; } }

/* Kategori beranda: satu baris, geser horizontal (slider) */
.cat-grid {
  display: flex; grid-template-columns: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 22%; scroll-snap-align: start;
  border-bottom: 0;
}
.cat-item:last-child { border-right: 0; }
@media (min-width: 640px) { .cat-item { flex-basis: 120px; } }
@media (min-width: 1024px) { .cat-item { flex: 1 0 140px; } }
@media (max-width: 767px) {
  .pd-buy { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .pd-buy.open { visibility: visible; transition: transform .25s ease; }
}
