/* =========================================================
   MERONA4D — Stylesheet
   Tema: HITAM · MERAH · PUTIH
   Struktur: Variabel > Reset > Komponen > Layout > Responsive
   ========================================================= */

:root {
  /* --- Merah --- */
  --brand:        #d81022;   /* merah solid: dipakai sebagai latar (teks putih di atasnya) */
  --brand-dark:   #a30b19;   /* merah gelap: state :hover dari --brand */
  --accent:       #ff4552;   /* merah terang: dipakai sebagai teks/aksen di atas hitam */
  --accent-dark:  #e02b39;

  /* --- Hitam & putih --- */
  --ink:          #ffffff;   /* teks utama */
  --muted:        #a3a3ac;   /* teks sekunder */
  --line:         #2b2b31;   /* garis & border */
  --bg:           #0a0a0b;   /* latar dasar (hitam) */
  --bg-soft:      #141418;   /* permukaan satu tingkat di atas --bg */
  --bg-deep:      #000000;   /* hitam pekat (footer) */

  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(0, 0, 0, .55);
  --shadow-lg:    0 12px 32px rgba(0, 0, 0, .72);
  --glow:         0 0 22px rgba(216, 16, 34, .35);
  --container:    1280px;
  --header-h:     68px;
  --font:         "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
input::placeholder { color: var(--muted); opacity: 1; }
select option { background: var(--bg-soft); color: var(--ink); }
::selection { background: var(--brand); color: #fff; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.mt { margin-top: 20px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--glow); }
.btn--light { background: #fff; color: var(--bg); }
.btn--light:hover { background: #e9e9ee; }
.btn--outline { border: 1.5px solid var(--brand); color: var(--ink); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Tombol menyala (glow) ----------
   Dipakai .btn--glow, .btn--buy, dan dua banner DAFTAR/LOGIN.
   Dua lapis: nyala berdenyut (glowPulse) + kilau lewat (glowSweep). */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(216, 16, 34, .45), 0 0 22px rgba(216, 16, 34, .22), inset 0 0 14px rgba(255, 69, 82, .15); }
  50%      { box-shadow: 0 0 18px rgba(255, 69, 82, .85), 0 0 46px rgba(255, 69, 82, .45), inset 0 0 22px rgba(255, 69, 82, .34); }
}
@keyframes glowSweep {
  0%        { transform: translateX(-140%) skewX(-18deg); }
  55%, 100% { transform: translateX(340%) skewX(-18deg); }
}

.btn--glow, .btn--buy, .pdp-banner {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1.5px solid rgba(255, 69, 82, .6);   /* 1.5px agar tingginya sama dengan .btn--outline */
  animation: glowPulse 2.4s ease-in-out infinite;
}
.btn--glow::before, .btn--buy::before, .pdp-banner::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  animation: glowSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
.btn--glow:hover, .btn--buy:hover, .pdp-banner:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .btn--glow, .btn--buy, .pdp-banner { animation: none; box-shadow: 0 0 14px rgba(216, 16, 34, .5); }
  .btn--glow::before, .btn--buy::before, .pdp-banner::before { animation: none; opacity: 0; }
}

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--accent); }
.icon-btn.round { border: 1px solid var(--line); font-size: 22px; line-height: 1; }
.badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 100px; display: grid; place-items: center;
}

/* =========================================================
   ANNOUNCEMENT + TOPBAR
   ========================================================= */
.announcement { background: var(--brand); color: #fff; font-size: 13px; }
.announcement__inner { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 38px; }
.announcement__text { margin: 0; text-align: center; }
.announcement__nav { color: #fff; opacity: .7; font-size: 20px; line-height: 1; padding: 0 4px; }
.announcement__nav:hover { opacity: 1; }

.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a:hover { color: var(--accent); }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__btn { color: var(--muted); font-size: 13px; }
.lang__btn.is-active { color: var(--accent); font-weight: 700; }

/* =========================================================
   HEADER + NAV
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: var(--shadow); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); gap: 12px;
}
.header__burger { display: none; flex-direction: column; gap: 4px; }
.header__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.logo { display: flex; align-items: center; gap: 10px; justify-self: center; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 18px;
}
.logo__text { font-weight: 800; letter-spacing: 3px; color: var(--ink); font-size: 20px; }
.logo--footer .logo__mark { background: var(--brand); color: #fff; }
.logo--footer .logo__text { color: #fff; }

/* Logo gambar (assets/merona4d-logo-usa.gif) — mark + teks disembunyikan */
.logo__img { display: block; height: 34px; width: auto; max-width: 100%; object-fit: contain; }
.logo.has-img .logo__mark,
.logo.has-img .logo__text { display: none; }
.logo--footer .logo__img { height: 40px; }
@media (max-width: 640px) { .logo__img { height: 26px; } }

.nav { border-top: 1px solid var(--line); }
.nav__list { display: flex; justify-content: center; gap: 6px; }
.nav__item > a {
  display: block; padding: 13px 16px; font-size: 14px; font-weight: 600;
  color: var(--ink); position: relative; transition: color .2s ease;
}
.nav__item:hover > a { color: var(--accent); }
.nav__item > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px;
  height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease;
}
.nav__item:hover > a::after { transform: scaleX(1); }
.nav__sale { color: var(--accent) !important; }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-soft); border-top: 1px solid var(--brand); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 55;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner {
  display: grid; grid-template-columns: repeat(3, 1fr) 300px;
  gap: 32px; padding-block: 28px 32px;
}
.mega__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 12px; }
.mega__col li + li { margin-top: 8px; }
.mega__col a { font-size: 14px; color: var(--muted); }
.mega__col a:hover { color: var(--accent); }
.mega__promo {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 22px; border-radius: var(--radius); color: #fff; min-height: 190px;
  background: linear-gradient(135deg, #d81022, #4a040c);
}
.mega__promo--alt { background: linear-gradient(135deg, #2a2a30, #0a0a0b); }
.mega__promo--kids { background: linear-gradient(135deg, #ff4552, #7a0512); }
.mega__promo-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; }
.mega__promo-title { font-size: 20px; font-weight: 700; }
.mega__promo-cta { font-size: 13px; opacity: .9; }

/* =========================================================
   SEARCH
   ========================================================= */
.search {
  position: sticky; top: var(--header-h); z-index: 58;
  background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 20px;
  box-shadow: var(--shadow);
}
.search__form { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--brand); border-radius: 100px; padding: 8px 18px; }
.search__icon { color: var(--accent); flex: none; }
.search__form input { flex: 1; border: 0; outline: none; background: none; padding: 4px 0; }
.search__close { font-size: 26px; line-height: 1; color: var(--muted); }
.search__hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chip { padding: 5px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; }
.chip:hover { border-color: var(--brand); color: var(--accent); }
.search__results { margin-top: 16px; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.sresult { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius); }
.sresult:hover { background: var(--bg-soft); }
.sresult__thumb { width: 48px; height: 56px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.sresult__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sresult__name { font-size: 14px; font-weight: 600; }
.sresult__price { font-size: 13px; color: var(--accent); font-weight: 700; }
.sresult__empty { color: var(--muted); font-size: 14px; padding: 8px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero__track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hero__slide {
  flex: 0 0 100%; min-height: 460px; display: flex; align-items: center; color: #fff;
}
.slide-1 { background: linear-gradient(120deg, #0a0a0b 0%, #d81022 100%); }
.slide-2 { background: linear-gradient(120deg, #4a040c 0%, #ff4552 100%); }
.slide-3 { background: linear-gradient(120deg, #000000 0%, #3a3a42 100%); }
.hero__content { max-width: 620px; }
.hero__tag {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(255,255,255,.18); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.hero__title { font-size: clamp(34px, 6vw, 60px); margin: 16px 0 12px; }
.hero__title em { font-style: normal; color: #fff; text-shadow: 0 0 18px rgba(255,69,82,.75); }
.hero__sub { font-size: 16px; opacity: .92; margin: 0 0 26px; max-width: 460px; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--brand); font-size: 26px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }
.hero__dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero__dots button.is-active { background: #fff; width: 26px; border-radius: 100px; }

/* =========================================================
   SECTION UMUM
   ========================================================= */
.section { padding-block: 56px; }
.section--tight { padding-block: 24px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section__title { font-size: 26px; }
.section__sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.link-all { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.slider-nav { display: flex; gap: 8px; }

/* ---------- Kategori ---------- */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.cat { display: grid; justify-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cat__img {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  font-size: 38px; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat:hover .cat__img { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--brand); }
.c1 { background: #1e0d10; } .c2 { background: #17171c; } .c3 { background: #240e12; } .c4 { background: #111116; }
.c5 { background: #1e0d10; } .c6 { background: #17171c; } .c7 { background: #240e12; } .c8 { background: #111116; }

/* ---------- Promo grid ---------- */
.promo { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.promo__card {
  position: relative; min-height: 230px; border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; display: flex; align-items: flex-end; padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo__card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.p1 { background: linear-gradient(135deg, #ff4552, #6b0510); }
.p2 { background: linear-gradient(135deg, #26262d, #000000); }
.p3 { background: linear-gradient(135deg, #d81022, #2a0207); }
.promo__kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.promo__card h3 { font-size: 24px; margin: 6px 0; }
.promo__card p { margin: 0 0 10px; font-size: 14px; opacity: .92; }
.promo__cta { font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  padding: 8px 20px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s ease;
}
.tab:hover { border-color: var(--brand); color: var(--accent); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =========================================================
   PRODUK
   ========================================================= */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 22px) / 5);
  gap: 22px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius);
  display: grid; place-items: center; font-size: 64px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.card__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(255, 69, 82, .10);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover .card__media::after { opacity: 1; }
.card__tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tag {
  padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--brand);
}
.tag--sale { background: var(--accent); color: #170003; }
.tag--new  { background: #fff; color: var(--bg); }
.card__wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(10,10,11,.82);
  border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 16px; color: #fff;
  box-shadow: var(--shadow);
}
.card__wish.is-active { color: var(--accent); border-color: var(--brand); }
.card__add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  padding: 10px; border-radius: 100px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(8px); transition: all .22s ease;
}
.card:hover .card__add { opacity: 1; transform: translateY(0); }
/* object-fit: contain — foto produk berbentuk persegi (1254x1254), kalau
   di-cover dalam bingkai 3:4 sisi kiri-kanannya kepotong. */
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__add--off { background: var(--line); color: var(--muted); cursor: not-allowed; }
.card__brand { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.card__name {
  font-size: 14px; font-weight: 600; margin: 3px 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--ink); }
.price--old { font-weight: 400; color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price--off { color: var(--accent); font-size: 13px; font-weight: 700; }
.card__colors { display: flex; gap: 5px; margin-top: 8px; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); }
.card__rate { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card__stock { color: var(--accent); font-weight: 600; }
.card__stock--out { color: var(--muted); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Skeleton saat data JSON dimuat */
.sk-card { display: grid; gap: 8px; }
.sk { background: linear-gradient(90deg, #141418 25%, #24242b 37%, #141418 63%); background-size: 400% 100%; border-radius: var(--radius); animation: sk 1.2s ease-in-out infinite; }
.sk--media { aspect-ratio: 3 / 4; }
.sk--line { height: 12px; border-radius: 4px; }
.sk--short { width: 55%; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Pesan bila data/site.json gagal dimuat */
.data-error {
  margin: 0; padding: 20px 24px; background: #1c0a0d; border-bottom: 3px solid var(--brand);
  color: #ffd8dc; font-size: 14px; line-height: 1.7;
}
.data-error h3 { color: var(--accent); margin-bottom: 6px; font-size: 17px; }
.data-error p { margin: 4px 0; }
.data-error code { background: rgba(255,69,82,.16); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.data-error__detail { font-family: Consolas, monospace; font-size: 12px; opacity: .7; margin-top: 10px !important; }

/* =========================================================
   FEATURES / CTA / BRAND / NEWSLETTER
   ========================================================= */
.features { background: var(--bg-soft); padding-block: 40px; }
.features__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.feature__ico { font-size: 30px; }
.feature h4 { font-size: 15px; margin: 8px 0 4px; color: var(--ink); }
.feature p { margin: 0; font-size: 13px; color: var(--muted); }

.cta-band { background: linear-gradient(120deg, #d81022 0%, #4a040c 55%, #0a0a0b 100%); color: #fff; padding-block: 44px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; }
.cta-band p { margin: 6px 0 0; opacity: .9; font-size: 14px; }

.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brands li {
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 80px;
  display: grid; place-items: center; font-weight: 700; letter-spacing: 1px;
  color: var(--ink); font-size: 15px; transition: all .2s ease;
}
.brands li:hover { border-color: var(--brand); box-shadow: var(--glow); color: var(--accent); }

.newsletter { background: var(--bg-soft); padding-block: 48px; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.newsletter h2 { font-size: 24px; color: var(--ink); }
.newsletter p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.newsletter__form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.newsletter__form input {
  flex: 1; padding: 12px 18px; border: 1px solid var(--line); border-radius: 100px;
  outline: none; background: var(--bg); color: var(--ink);
}
.newsletter__form input:focus { border-color: var(--brand); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-deep); border-top: 3px solid var(--brand); color: rgba(255,255,255,.72); font-size: 14px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.1fr;
  gap: 32px; padding-block: 52px 40px;
}
.footer__col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer__col li + li { margin-top: 9px; }
.footer__col a:hover { color: var(--accent); }
.footer__about { margin: 16px 0; line-height: 1.7; font-size: 13.5px; }
.footer__contact li { font-size: 13.5px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.stores { display: grid; gap: 10px; }
.store {
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px 14px;
  display: grid; line-height: 1.3;
}
.store span { font-size: 10px; opacity: .7; }
.store strong { color: #fff; font-size: 14px; }
.store:hover { border-color: var(--brand); }
.pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pays li {
  background: rgba(255,255,255,.08); border-radius: 4px; padding: 4px 9px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.footer__bottom { border-top: 1px solid rgba(255,255,255,.13); }
.footer__bottom-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 18px; font-size: 12.5px;
}
.footer__bottom p { margin: 0; }

/* =========================================================
   DRAWER / OVERLAY / TOAST / TO-TOP
   ========================================================= */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 340px; max-width: 88vw;
  background: var(--bg); z-index: 90; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer--right { left: auto; right: 0; width: 400px; transform: translateX(100%); }
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.drawer__head .icon-btn { font-size: 26px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 0 24px; }
.acc__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line);
}
.acc__head span { color: var(--muted); font-weight: 400; }
.acc__panel { display: none; background: var(--bg-soft); padding: 6px 0; }
.acc__item.is-open .acc__panel { display: block; }
.acc__panel a { display: block; padding: 9px 32px; font-size: 14px; color: var(--muted); }
.acc__panel a:hover { color: var(--accent); }
.drawer__links a { display: block; padding: 14px 20px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer__foot { padding: 20px; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }

/* Keranjang */
.cart { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 16px; align-content: start; }
.cart__empty { text-align: center; color: var(--muted); padding: 48px 0; }
.cart__empty span { font-size: 40px; display: block; margin-bottom: 8px; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; }
.citem__thumb { width: 64px; height: 76px; border-radius: 8px; display: grid; place-items: center; font-size: 28px; overflow: hidden; }
.citem__thumb img { width: 100%; height: 100%; object-fit: contain; }
.citem__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.citem__price { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.citem__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; border: 1px solid var(--line); border-radius: 100px; padding: 2px 10px; }
.citem__qty button { color: var(--ink); font-size: 16px; width: 18px; }
.citem__qty span { font-size: 13px; min-width: 16px; text-align: center; }
.citem__del { color: var(--muted); font-size: 18px; }
.citem__del:hover { color: var(--accent); }
.cart__foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.cart__row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.cart__row strong { font-size: 18px; color: var(--accent); }
.cart__note { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }

.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 80;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 100px;
  font-size: 14px; box-shadow: var(--shadow-lg); z-index: 120;
  opacity: 0; visibility: hidden; transition: all .25s ease;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 18px;
  opacity: 0; visibility: hidden; transition: all .25s ease;
}
.to-top.is-show { opacity: 1; visibility: visible; }

body.no-scroll { overflow: hidden; }

/* =========================================================
   TESTIMONI / ULASAN
   ========================================================= */
.testi-section { background: var(--bg-soft); }
.testi-summary { display: flex; align-items: center; gap: 12px; }
.testi-summary__num { font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1; }
.testi-summary .stars { font-size: 15px; }

.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.testi-card:hover { box-shadow: var(--glow); border-color: var(--brand); transform: translateY(-3px); }
.testi-card__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center; letter-spacing: .5px;
}
.testi-card__name { font-weight: 700; font-size: 14.5px; }
.testi-card__loc { font-size: 12.5px; color: var(--muted); }
.testi-card__rate { font-size: 15px; letter-spacing: 1px; }
.testi-card__text {
  margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); flex: 1;
  position: relative; padding-left: 14px; border-left: 3px solid var(--brand);
}
.testi-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.verified { color: #fff; font-weight: 600; }
.testi-card__prod { color: var(--muted); text-decoration: underline; max-width: 60%; text-align: right; }
.testi-card__prod:hover { color: var(--accent); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 20px); }
.faq-intro .section__sub { margin-bottom: 20px; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); overflow: hidden; transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--brand); box-shadow: var(--glow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255,255,255,.05); }
.faq-item__ico {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; flex: none;
}
.faq-item__ico::before, .faq-item__ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--accent);
  transform: translate(-50%, -50%); transition: transform .22s ease, opacity .22s ease;
}
.faq-item__ico::before { width: 14px; height: 2px; }
.faq-item__ico::after  { width: 2px; height: 14px; }
.faq-item[open] .faq-item__ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item__body { padding: 0 20px 18px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.faq-item__body p { margin: 0; }

/* =========================================================
   HALAMAN DETAIL PRODUK (produk.html)
   ========================================================= */
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__name a { color: inherit; }
.card__name a:hover { color: var(--accent); }

/* Breadcrumb */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; font-size: 13px; color: var(--muted); }
.crumb a { text-transform: capitalize; }
.crumb a:hover { color: var(--accent); }
.crumb strong { color: var(--ink); font-weight: 600; }

/* Dua banner promo */
.pdp-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.pdp-banner {
  position: relative; overflow: hidden; border-radius: 8px; min-height: 62px;
  display: grid; place-items: center; text-align: center; line-height: 1.2;
  background: linear-gradient(90deg, #6b0510, #d81022 45%, #6b0510);
  color: #fff; box-shadow: var(--shadow);
  transition: filter .2s ease;
}
.pdp-banner:hover { filter: brightness(1.15); }
.pdp-banner__label {
  font-size: 20px; font-weight: 800; letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 255, 255, .55), 0 0 22px rgba(255, 69, 82, .8);
}
.pdp-banner__sub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }

/* Grid utama: galeri + kotak beli */
.pdp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; padding-bottom: 40px; }

/* Galeri */
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery__main {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--bg-soft);
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main .ph { width: 100%; height: 100%; display: grid; place-items: center; }
.gallery__thumbs { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.gallery__thumbs[hidden] { display: none; }   /* satu foto: strip + panah disembunyikan */
.gallery__list { display: flex; gap: 10px; overflow-x: auto; flex: 1; padding: 2px; scrollbar-width: none; }
.gallery__list::-webkit-scrollbar { display: none; }
.gallery__list li {
  flex: none; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .2s ease;
}
.gallery__list li.is-active { border-color: var(--brand); }
.gallery__list li img { width: 100%; height: 100%; object-fit: contain; }
.gallery__list li .ph { width: 100%; height: 100%; display: grid; place-items: center; }
.gallery__nav { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 18px; line-height: 1; flex: none; }
.gallery__nav:hover { background: var(--bg-soft); color: var(--accent); }

/* Kotak informasi & pembelian */
.buybox { padding-top: 4px; }
.pill {
  display: inline-block; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.buybox__title { font-size: 24px; font-weight: 600; line-height: 1.35; }
.buybox__brand { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.buybox__brand:hover { text-decoration: underline; }
.buybox__rating { margin: 10px 0 0; font-size: 14px; }
.stars { color: var(--accent); letter-spacing: 2px; }
.stars--off { color: var(--line); }
.muted { color: var(--muted); font-size: 13px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Pilihan varian */
.opt + .opt { margin-top: 18px; }
.opt__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__size {
  min-width: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg-soft); transition: all .15s ease;
}
.opt__size:hover { border-color: var(--brand); }
.opt__size.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt__color {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 0 0 0 var(--brand); transition: box-shadow .15s ease;
}
.opt__color.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* Harga */
.pdp-price { font-size: 30px; font-weight: 700; color: var(--ink); }
.buybox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tax { font-size: 12px; color: var(--muted); }
.buybox__line { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.buybox__line strong { color: var(--ink); }
.buybox__line a { color: var(--accent); text-decoration: underline; }

.buybox__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; }
.stock { color: #fff; font-weight: 600; }
.stock--low { color: var(--accent); }
.stock--out { color: var(--muted); }
.ship { color: var(--muted); }

/* Tombol beli */
.buybox__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.wish-lg { width: 44px; height: 44px; font-size: 20px; }
.wish-lg.is-active { color: var(--accent); border-color: var(--accent); }
.qty { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.qty select { border: 0; outline: none; background: none; font-weight: 600; color: var(--ink); }
.buybox__actions .btn { flex: 1; min-width: 165px; padding: 13px 20px; }
.btn--buy { background: var(--brand); color: #fff; }
.btn--buy:hover { background: var(--brand-dark); }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--line); cursor: not-allowed; box-shadow: none; }

/* Cek ongkir */
.delivery h3 { font-size: 15px; margin-bottom: 10px; }
.delivery__form { display: flex; gap: 8px; max-width: 320px; }
.delivery__form input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--bg-soft); color: var(--ink); }
.delivery__form input:focus { border-color: var(--brand); }
.delivery__btn { padding: 10px 20px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; }
.delivery__btn:hover { background: var(--brand-dark); }
.delivery__result { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Deskripsi & keunggulan */
.pdp-desc { display: flex; gap: 10px; font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }
.pdp-desc__mark { color: var(--accent); font-size: 18px; line-height: 1.2; flex: none; }
.pdp-feat__title { font-size: 15px; margin: 24px 0 10px; }
.pdp-feat { list-style: disc; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.pdp-feat li { margin-bottom: 6px; }
.pdp-feat li.is-hidden { display: none; }
.link-more { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 3 * 22px) / 4); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .mega__inner { grid-template-columns: repeat(3, 1fr); }
  .mega__promo { display: none; }
}

@media (max-width: 900px) {
  .topbar, .nav { display: none; }
  .header__burger { display: flex; }
  .header__inner { min-height: 60px; }
  :root { --header-h: 60px; }
  .promo { grid-template-columns: 1fr; }
  .promo__card { min-height: 170px; }
  .features__inner { grid-template-columns: repeat(2, 1fr); }
  .hero__slide { min-height: 380px; }
  .section { padding-block: 40px; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .testi { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-intro { position: static; }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rail { grid-auto-columns: 64%; gap: 16px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat__img { width: 66px; height: 66px; font-size: 28px; }
  .cat { font-size: 12.5px; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-block: 36px 28px; }
  .hero__arrow { display: none; }
  .section__title { font-size: 21px; }
  .newsletter__form { max-width: none; width: 100%; }
  .card__add { opacity: 1; transform: none; position: static; margin-top: 10px; }
  .hide-sm { display: none; }

  .pdp-banners { grid-template-columns: 1fr; gap: 10px; }
  .pdp-banner__label { font-size: 17px; }
  .buybox__title { font-size: 20px; }
  .pdp-price { font-size: 25px; }
  .buybox__actions .btn { min-width: 0; flex: 1 1 100%; }
  .gallery__main { aspect-ratio: 4 / 5; }
  .crumb { font-size: 12px; }

  .testi { grid-template-columns: 1fr; gap: 14px; }
  .testi-card { padding: 18px; }
  .testi-summary__num { font-size: 30px; }
  .faq-item summary { font-size: 14px; padding: 14px 46px 14px 16px; }
  .faq-item__body { padding: 0 16px 16px; font-size: 13.5px; }
}
