html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ============================================================
   GUARDIAN LIGHT THEME — matched to The Guardian logo palette
   Navy #172D36 · Green #16804A · Red #C9363E · White #FFFFFF
   ============================================================ */
:root {
  --u-bg:        #F8F5EF;   /* warm editorial paper */
  --u-panel:     #F1EDE4;
  --u-card:      #FFFFFF;
  --u-navy:      #172D36;
  --u-navy-hi:   #203B46;
  --u-border:    #E7E0D2;
  --u-border-hi: #D4CBB9;
  --u-green:     #16804A;
  --u-green-hi:  #1B9E5C;
  --u-red:       #C9363E;
  --u-red-hi:    #E04850;
  --u-text:      #1C2B31;
  --u-body:      #455F68;
  --u-muted:     #6E8590;
  --u-faint:     #A8B4AB;
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
}

/* ---------- editorial premium layer ---------- */
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .28em;
  text-transform: uppercase; color: var(--u-green);
}
.eyebrow.on-dark { color: #6FD9A5; }
.rule-line { height: 1px; background: var(--u-border); border: none; }
.sec-num {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  color: var(--u-faint); font-size: .9em;
}
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* editorial product card — hairline, no heavy shadow, serif name */
.product-card {
  border: 1px solid var(--u-border) !important;
  box-shadow: none !important;
  background: var(--u-card) !important;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -14px rgba(23,45,54,.22) !important;
  border-color: var(--u-border-hi) !important;
}

/* promo strip — ink bar, italic serif */
.v2-promo { background: var(--u-navy); }
.v2-promo span, .v2-promo i { color: #DDE8EA !important; }
.v2-promo a { color: #6FD9A5 !important; }
.v2-promo .promo-italic { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 500; }

/* refined page-title band (store/about/toko-resmi headers) */
.page-band .eyebrow { margin-bottom: .75rem; }
.page-band h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }

/* elegant notice box (anti-fraud warning) */
.notice-box {
  border: 1px solid #E8CFA6; border-left: 4px solid #C99504;
  background: #FDF8EC; border-radius: 12px;
}

/* ---------- backoffice enterprise polish ---------- */
#app table thead th {
  text-transform: uppercase; font-size: 11px; letter-spacing: .08em;
  color: var(--u-muted); font-weight: 700;
}
#app tbody tr { transition: background .15s ease; }
#app .bg-slate-50.rounded-xl, #app .bg-slate-50.rounded-2xl,
#app div.bg-slate-50.border {
  background: var(--u-panel);
}
/* stat cards — hairline + subtle */
#app .rounded-xl.bg-white.border, #app .rounded-2xl.bg-white.border {
  border-color: var(--u-border) !important;
  box-shadow: 0 1px 3px rgba(23,45,54,.04) !important;
}

/* channel rows (toko-resmi) */
.channel-card {
  border: 1px solid var(--u-border) !important;
  box-shadow: none !important;
}
.channel-card:hover { border-color: var(--u-green) !important; box-shadow: 0 10px 28px -12px rgba(23,45,54,.18) !important; }

body {
  color: var(--u-text);
  background: var(--u-bg);
}

/* ---------- surfaces ---------- */
#app .bg-white {
  background: var(--u-card);
  box-shadow: 0 1px 2px rgba(23,45,54,.05), 0 8px 24px rgba(23,45,54,.05);
}
#app .bg-slate-50 { background: transparent; }
#app .bg-slate-100 { background: var(--u-panel); }
#app .bg-slate-900 { background: var(--u-navy); }   /* dark accent band + admin sidebar */
#app .bg-slate-800 { background: var(--u-navy-hi); }

/* banner headers -> soft light band with brand glow */
#app section.bg-emerald-700 {
  background:
    radial-gradient(640px 240px at 15% 0%, rgba(22,128,74,.10) 0%, transparent 60%),
    radial-gradient(640px 240px at 90% 100%, rgba(201,54,62,.07) 0%, transparent 60%),
    linear-gradient(120deg, #FFFFFF 0%, #EEF4F1 55%, #F2F6F5 100%);
  border-bottom: 1px solid var(--u-border);
  color: var(--u-text);
}
#app section.bg-emerald-700 .text-emerald-100 { color: #4E7560; }

/* soft tints */
#app .bg-emerald-50  { background: #EDF6F1; }
#app .bg-emerald-100 { background: #DDF0E6; }

/* status chips */
#app .bg-blue-100  { background: #E4EEFD; }
#app .bg-amber-100 { background: #FDF1D7; }
#app .bg-red-100   { background: #FBE7E8; }
#app .bg-red-50    { background: #FBEFF0; }
#app .text-blue-800  { color: #2F6FDB; }
#app .text-amber-800 { color: #B45309; }
#app .text-red-800, #app .text-red-700 { color: var(--u-red); }
#app .text-red-500, #app .text-red-600 { color: var(--u-red-hi); }

/* ---------- text ---------- */
#app .text-slate-900, #app .text-slate-800 { color: var(--u-text); }
#app .text-slate-700 { color: var(--u-body); }
#app .text-slate-600 { color: var(--u-body); }
#app .text-slate-500 { color: var(--u-muted); }
#app .text-slate-400 { color: var(--u-faint); }
#app .text-slate-300 { color: #AEC1C8; }  /* admin sidebar links on navy */
#app .text-emerald-700, #app .text-emerald-800 { color: var(--u-green); }
#app .text-emerald-600 { color: var(--u-green-hi); }
#app .text-emerald-400 { color: var(--u-green-hi); }
#app .text-gold-500 { color: var(--u-red); }
#app .text-gold-400 { color: var(--u-red-hi); }

/* hover states */
#app .hover\:bg-slate-100:hover { background: #EDF3F4; }
#app .hover\:bg-slate-50:hover  { background: #F2F6F6; }
#app .hover\:bg-slate-800:hover { background: var(--u-navy-hi); }
#app .hover\:bg-red-50:hover    { background: #FBEFF0; }
#app .hover\:bg-white:hover     { background: #F2F6F6; }
#app .hover\:text-slate-900:hover { color: var(--u-text); }
#app .hover\:text-slate-600:hover { color: var(--u-body); }
#app .hover\:text-emerald-700:hover { color: var(--u-green-hi); }

/* ---------- borders ---------- */
#app .border:not([class*="border-"]),
#app .border-t, #app .border-b, #app .border-x, #app .border-y,
#app .border-l, #app .border-r,
#app .border-slate-200, #app .border-slate-300, #app .border-slate-100 {
  border-color: var(--u-border);
}
#app .border-emerald-200 { border-color: #CBE6D8; }
#app .border-emerald-700 { border-color: var(--u-green); }
#app .border-transparent { border-color: transparent; }
#app .border-white { border-color: rgba(255,255,255,.9); }

/* ---------- forms ---------- */
#app input[type="text"], #app input[type="email"], #app input[type="tel"],
#app input[type="password"], #app input[type="number"],
#app select, #app textarea {
  background: #FFFFFF;
  color: var(--u-text);
  border-color: var(--u-border-hi);
}
#app input::placeholder, #app textarea::placeholder { color: var(--u-faint); }
#app select option { background: #FFFFFF; color: var(--u-text); }

input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--u-green) !important;
  box-shadow: 0 0 0 3px rgba(22,128,74,.14);
}

/* ---------- buttons ---------- */
#app .bg-emerald-700:not(section) { background-color: var(--u-green); }
#app .hover\:bg-emerald-800:hover:not(section) { background-color: #116B3E; }
#app .bg-emerald-600 { background-color: var(--u-green-hi); }
#app button.bg-emerald-700, #app a.bg-emerald-700 {
  transition: box-shadow .22s ease, transform .15s var(--ease-out);
}
#app button.bg-emerald-700:hover, #app a.bg-emerald-700:hover {
  box-shadow: 0 8px 22px rgba(23,45,54,.22);
}
#app .bg-gold-500 { background-color: var(--u-red); }
#app .hover\:bg-gold-400:hover { background-color: #D9444C; }
#app .bg-gold-400 { background-color: #D9444C; }
#app button.bg-gold-500, #app a.bg-gold-500 {
  box-shadow: 0 8px 22px rgba(201,54,62,.25);
}
#app button.bg-gold-500:hover, #app a.bg-gold-500:hover {
  box-shadow: 0 10px 28px rgba(201,54,62,.35);
}

/* ---------- header & chrome ---------- */
#site-header {
  color: var(--u-navy);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(23,45,54,.08);
  box-shadow: none;
}
#site-header .text-white { color: var(--u-navy); }
#site-header .bg-emerald-700.text-white, #site-header .bg-emerald-700 .text-white { color: #fff; }
#site-header.scrolled {
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 24px rgba(23,45,54,.08);
}
#mobile-menu { border-top: 1px solid var(--u-border); padding: .75rem 1rem 1.25rem; }
#site-header a:hover, #site-header button:hover { color: var(--u-red); }
#site-header .hover\:bg-emerald-800:hover { background: #EEF3F4; }

footer { background: var(--u-navy) !important; border-top: none; }
footer .text-slate-300 { color: #AEC1C8; }
footer .text-slate-500 { color: #8FA5AC; }
footer h4, footer .text-white { color: #FFFFFF; }

#toast > div {
  background: var(--u-navy);
  border: none;
  box-shadow: 0 14px 44px rgba(23,45,54,.3);
}

/* social media buttons */
.social-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #DCE7EA;
  transition: all .2s var(--ease-out);
}
.social-btn:hover { background: var(--u-green); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-tag {
  position: absolute; bottom: -5px; right: -5px;
  background: var(--u-red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 0 4px; border-radius: 6px; line-height: 1.4;
}

/* ---------- hero (light editorial) ---------- */
.hero-light {
  background:
    radial-gradient(700px 380px at 15% 10%, rgba(22,128,74,.08) 0%, transparent 60%),
    radial-gradient(700px 380px at 90% 90%, rgba(201,54,62,.06) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--u-bg) 100%);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(11,24,30,.90) 0%, rgba(23,45,54,.62) 50%, rgba(23,45,54,.18) 100%);
}
.page-content > section.relative:first-child::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(transparent, var(--u-bg)); pointer-events: none;
}
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* hero slider */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s ease, transform 6.5s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide-brand {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(22,128,74,.10) 0%, transparent 60%),
    radial-gradient(700px 400px at 85% 90%, rgba(201,54,62,.08) 0%, transparent 60%),
    linear-gradient(135deg, #FFFFFF 0%, #F2F6F4 55%, #EDF4F0 100%);
}
.hero-brand-mark {
  width: min(340px, 55%);
  opacity: .5;
  filter: drop-shadow(0 18px 40px rgba(23,45,54,.18));
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(23,45,54,.22); transition: all .35s var(--ease-out);
}
.hero-dot:hover { background: rgba(23,45,54,.45); }
.hero-dot.active { width: 26px; background: var(--u-navy); }

/* hero arrows + interactive hover */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  width: 42px; height: 42px; border-radius: 999px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); color: var(--u-navy);
  border: 1px solid rgba(23,45,54,.08);
  box-shadow: 0 6px 18px rgba(11,24,30,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; cursor: pointer;
  transition: opacity .35s var(--ease-out), transform .3s var(--ease-out), background .2s;
}
.hero-frame:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.hero-arrow:active { transform: translateY(-50%) scale(.92); }
@media (hover: none) { .hero-arrow { opacity: .9; } }

.hero-frame:hover .hero-slide.active {
  transform: scale(1.07) translate(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -18px));
  transition: transform .6s var(--ease-out), opacity 1.1s ease;
}

/* Print (kwitansi) */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  @page { margin: 14mm; }
}

/* Page transitions */
.page-content { animation: pageIn .45s var(--ease-out); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveals */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-child { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal-child.visible { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 80ms; }
[data-delay="2"] { transition-delay: 160ms; }
[data-delay="3"] { transition-delay: 240ms; }
[data-delay="4"] { transition-delay: 320ms; }

/* Hero badge pulse */
.badge-dot { animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}

/* Product card motion */
.product-card {
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23,45,54,.14), 0 0 0 1px var(--u-border);
}
.product-card img { transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.06); }

/* Buttons */
.btn-press { transition: transform .15s ease, box-shadow .15s ease; }
.btn-press:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,45,54,.16); }
.btn-press:active { transform: translateY(0); }

/* checkout steps + tracking */
.step-active .step-dot { background: var(--u-green); color: #fff; border-color: var(--u-green); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--u-border-hi); background: #fff; color: var(--u-muted);
  font-size: 12px; font-weight: 600;
}
.tracking-line {
  position: absolute; left: 13px; top: 28px; bottom: -12px; width: 2px; background: #DFE9EB;
}
.tracking-item:last-child .tracking-line { display: none; }
.tracking-done .tracking-dot { background: var(--u-green); border-color: var(--u-green); }
.tracking-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--u-border-hi); background: #fff;
}

/* Toast */
#toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* Float animation for decorative cards */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-1 { animation: float 5s ease-in-out infinite; }
.float-2 { animation: float 6s ease-in-out infinite 1.5s; }
.float-3 { animation: float 4.5s ease-in-out infinite 3s; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #EDF2F3 25%, #F7FAFA 50%, #EDF2F3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--u-bg); }
::-webkit-scrollbar-thumb { background: #C4D3D8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #9AAEB5; }

/* POS scrollable panes — always-visible scrollbar + fade + hint */
.pos-scroll { scrollbar-width: thin; scrollbar-color: #94A3B8 #F1F5F9; }
.pos-scroll::-webkit-scrollbar { width: 9px; }
.pos-scroll::-webkit-scrollbar-track { background: #F1F5F9; border-radius: 9px; }
.pos-scroll::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 9px; border: 2px solid #F1F5F9; }
.pos-scroll::-webkit-scrollbar-thumb:hover { background: #0E8A5F; }
.pos-wrap .pos-hint { display: none; }
.pos-wrap.has-more:not(.at-bottom) .pos-hint { display: inline-flex; align-items: center; gap: 3px; }
.pos-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; opacity: 0; transition: opacity .2s; }
.pos-wrap.has-more:not(.at-bottom)::after { opacity: 1; }

/* store promo slider */
.store-slider { aspect-ratio: 16/10; }
@media (min-width: 640px) { .store-slider { aspect-ratio: 21/8; } }
.st-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.st-slide.active { opacity: 1; pointer-events: auto; }
.st-cap { position: absolute; left: 14px; bottom: 14px; z-index: 10; display: block; background: rgba(15,23,42,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 12px; max-width: 78%; transition: background .2s; }
.st-cap:hover { background: rgba(15,23,42,.88); }
.st-cap .eyeb { display: block; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6ee7b7; }
.st-cap .ttl { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-top: 2px; line-height: 1.3; }
.st-cap .arr { color: #6ee7b7; }
.st-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; border-radius: 9999px; background: rgba(255,255,255,.88); color: #14532d; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s, transform .15s; }
.st-arrow:active { transform: translateY(-50%) scale(.92); }
.store-slider:hover .st-arrow { opacity: 1; }
.st-prev { left: .75rem; }
.st-next { right: .75rem; }
@media (hover: none) { .st-arrow { opacity: .8; } }
.st-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transition: all .2s; }
.st-dot.active { width: 20px; background: #fff; }

/* kategori circle ala marketplace */
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.cat-circle .circle { width: 64px; height: 64px; border-radius: 9999px; overflow: hidden; border: 2px solid #e2e8f0; transition: border-color .2s, transform .2s; background: #f1f5f9; }
.cat-circle:hover .circle { border-color: #047857; transform: scale(1.06); }

/* flash sale countdown cell */
.fs-cell { background: #fff; color: #c2410c; font-weight: 800; border-radius: 6px; padding: 2px 7px; min-width: 30px; text-align: center; display: inline-block; font-variant-numeric: tabular-nums; }

/* mobile category chips — horizontal scroll + edge fade "swipe" hint */
.scroll-chips { scrollbar-width: none; -ms-overflow-style: none; }
.scroll-chips::-webkit-scrollbar { display: none; }
@media (max-width: 767.98px) {
  .scroll-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 32px), transparent 100%); }
  .scroll-chips.at-start { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%); }
  .scroll-chips.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%); }
  .scroll-chips.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
}
.v2-hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(22,128,74,.10), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(23,45,54,.06), transparent 60%);
}

.v2-hero .hero-frame {
  box-shadow: 0 30px 60px -20px rgba(23,45,54,.35);
}

/* floating shoppable card inside hero frame */
.hero-shop-card {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 30;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 14px;
  padding: .55rem .8rem .55rem .55rem;
  box-shadow: 0 10px 30px -8px rgba(23,45,54,.35);
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.hero-shop-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(23,45,54,.4); }
.hero-shop-card img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.hero-shop-card .nm { font-size: 12px; font-weight: 700; color: #172D36; line-height: 1.2; }
.hero-shop-card .pr { font-size: 11px; font-weight: 700; color: #16804A; }
.hero-shop-card .go { font-size: 10px; color: #64748B; display: flex; align-items: center; gap: 2px; }

/* hero shop cards — hover lift group */
.hero-shop-cards {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30;
  display: flex; gap: .5rem; align-items: flex-end;
}
.hero-shop-cards .hero-shop-card {
  position: relative; left: auto; bottom: auto; flex: 1 1 0;
  min-width: 0; padding: .5rem;
  opacity: .92; transform-origin: bottom center;
  animation: hscPop .55s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: var(--d, 0ms);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), opacity .3s ease, box-shadow .3s ease;
}
.hero-shop-cards:hover .hsc { transform: scale(.96); opacity: .72; }
.hero-shop-cards .hsc:hover {
  transform: scale(1.07) translateY(-6px); opacity: 1; z-index: 5;
  box-shadow: 0 18px 40px -10px rgba(23,45,54,.45);
}
.hero-shop-cards .hsc .nm {
  font-size: 11px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; display: block;
}
.hero-shop-cards .hsc .pr { white-space: nowrap; }
@keyframes hscPop {
  from { opacity: 0; transform: translateY(18px) scale(.85); }
  to   { opacity: .88; transform: translateY(0) scale(1); }
}

/* promo marquee strip */
.v2-promo { background: #C9363E; }
.v2-promo a:hover { text-decoration-thickness: 2px; }

/* credential band */
.v2-cred .yr { font-family: 'Playfair Display', Georgia, serif; }

/* product grid hover lift */
.v2-grid-lift > div { transition: transform .25s ease, box-shadow .25s ease; }
.v2-grid-lift > div:hover { transform: translateY(-4px); }

/* final CTA */
.v2-cta { background: radial-gradient(50rem 24rem at 50% -20%, rgba(255,255,255,.12), transparent 60%), #16804A; }

/* ---------- onimcare hero — brand dark, tidak ikut remap emerald ---------- */
.onimcare-hero {
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(22,128,74,.30) 0%, transparent 60%),
    radial-gradient(700px 320px at 85% 100%, rgba(201,54,62,.14) 0%, transparent 60%),
    linear-gradient(160deg, #0B4527 0%, var(--u-navy) 70%, #12242B 100%);
  color: #fff;
}
.onimcare-hero .eyebrow-o { color: #E04850; }
.onimcare-hero .sub { color: #C9DED2; }

/* ---------- NPC news marquee (onimcare) ---------- */
.npc-news { overflow: hidden; position: relative; }
.npc-news::before, .npc-news::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.npc-news::before { left: 0; background: linear-gradient(90deg, var(--u-bg), transparent); }
.npc-news::after { right: 0; background: linear-gradient(-90deg, var(--u-bg), transparent); }
.npc-track {
  display: flex; gap: 14px; width: max-content;
  animation: npcScroll 55s linear infinite;
}
.npc-news:hover .npc-track { animation-play-state: paused; }
@keyframes npcScroll { to { transform: translateX(-50%); } }
.npc-card {
  width: 300px; flex-shrink: 0; background: #fff; border: 1px solid var(--u-border);
  border-radius: 16px; overflow: hidden; text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
}
.npc-card:hover {
  transform: translateY(-4px); border-color: var(--u-green);
  box-shadow: 0 14px 30px -10px rgba(23,45,54,.22);
}
.npc-thumb {
  height: 170px; background-size: cover; background-position: center;
  background-color: #E4EBE8; position: relative;
}
.npc-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(23,45,54,.25));
}
.npc-body { padding: 14px 16px 16px; }
.npc-date { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--u-green); text-transform: uppercase; }
.npc-title {
  font-size: 14.5px; font-weight: 600; color: var(--u-text); line-height: 1.45; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.npc-read { font-size: 12px; font-weight: 700; color: var(--u-red); margin-top: 9px; display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) {
  .npc-card { width: min(80vw, 300px); }
  .npc-thumb { height: 46vw; max-height: 170px; }
}
@media (prefers-reduced-motion: reduce) { .npc-track { animation: none; } .npc-news { overflow-x: auto; } }

/* v2 switcher badge */
#v2-switch {
  position: fixed; left: 14px; bottom: 14px; z-index: 70;
  display: flex; align-items: center; gap: 8px;
  background: #172D36; color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(23,45,54,.5);
}
#v2-switch:hover { background: #1e3a46; }
#v2-switch .dot { width: 8px; height: 8px; border-radius: 50%; background: #E04850; }

/* ===== product image lightbox ===== */
.lb-overlay{position:fixed;inset:0;z-index:200;background:rgba(8,10,14,.94);display:flex;align-items:center;justify-content:center;animation:lbFade .18s ease;padding:12px}
@keyframes lbFade{from{opacity:0}to{opacity:1}}
.lb-stage{max-width:94vw;max-height:90vh;display:flex;flex-direction:column;align-items:center;gap:10px;margin:0}
.lb-img{max-width:94vw;max-height:82vh;object-fit:contain;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.5);user-select:none;-webkit-user-drag:none;opacity:0;transform:scale(.97);transition:opacity .18s ease,transform .18s ease}
.lb-img.lb-in{opacity:1;transform:scale(1)}
.lb-count{color:#cbd5e1;font-size:13px;font-weight:500;letter-spacing:.04em}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);cursor:pointer;transition:background .15s;z-index:2}
.lb-nav:hover{background:rgba(255,255,255,.28)}
.lb-prev{left:16px}.lb-next{right:16px}
.lb-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);color:#fff;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(4px);transition:background .15s;z-index:2}
.lb-close:hover{background:rgba(255,255,255,.28)}
.lb-zoomhint{position:absolute;bottom:26px;right:12px;width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.92);color:#0f172a;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.3);cursor:pointer;transition:transform .15s,background .15s;border:0}
.lb-zoomhint:hover{transform:scale(1.08);background:#fff}
@media (max-width:640px){
  .lb-nav{width:40px;height:40px;font-size:24px}
  .lb-prev{left:8px}.lb-next{right:8px}
  .lb-close{top:10px;right:10px;width:38px;height:38px;font-size:22px}
}

/* ux.css menerapkan scale(.94) ke SEMUA button:active — override ini harus
   tetap mempertahankan translateY(-50%) pada lb-nav supaya tombol tidak
   "kabur" dari bawah pointer saat ditekan (down≠up target -> klik batal) */
html.ux-on .lb-nav:active{transform:translateY(-50%) scale(.94) !important}
html.ux-on .lb-close:active,html.ux-on .lb-zoomhint:active{transform:scale(.94) !important}


/* rotasi .reveal (ux.css) bikin bounding box section melebar keluar viewport ->
   scroll horizontal di mobile. clip overflow-x global; 'clip' tidak membuat
   scroll container jadi position:sticky tetap aman (beda dgn 'hidden'). */
html, body { overflow-x: clip; }

/* ---- mobile bottom nav (pola amalaa) ---- */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff; border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}
#bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; margin: 4px; border-radius: 16px; position: relative;
  font-size: 11px; font-weight: 600; color: #64748b; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
#bottom-nav a svg, #bottom-nav a i[data-lucide] { width: 20px; height: 20px; }
#bottom-nav a.active { background: #ecfdf5; color: #047857; }
#bottom-nav.hidden { display: none; }
.bn-badge {
  position: absolute; top: 2px; left: calc(50% + 2px);
  background: #dc2626; color: #fff; font-size: 9px; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.bn-pad { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  #bottom-nav { display: none; }
  .bn-pad { padding-bottom: 0; }
}

/* ---- product description prose ---- */
.product-desc p { margin-bottom: .9em; }
.product-desc p:last-child { margin-bottom: 0; }
.product-desc ul, .product-desc ol { margin: 0 0 .9em; padding-left: 1.4em; }
.product-desc ul { list-style: disc; }
.product-desc ol { list-style: decimal; }
.product-desc strong { color: #334155; }
.product-desc a { color: #047857; text-decoration: underline; }

/* Backoffice sidebar collapse (desktop only) */
@media (min-width: 1024px) {
  #bo-sidebar { transition: transform .2s ease, width .2s ease, padding .2s ease; }
  #bo-sidebar.bo-collapsed { width: 4.75rem; padding-left: .75rem; padding-right: .75rem; }
  #bo-sidebar.bo-collapsed .bo-label { display: none; }
  #bo-sidebar.bo-collapsed > div:first-of-type { justify-content: center; padding-left: 0; padding-right: 0; }
  #bo-sidebar.bo-collapsed > div:first-of-type img { width: 2.5rem; }
  #bo-sidebar.bo-collapsed nav a,
  #bo-sidebar.bo-collapsed #admin-logout,
  #bo-sidebar.bo-collapsed #bo-collapse { justify-content: center; padding-left: 0; padding-right: 0; }
  #bo-sidebar.bo-collapsed .bo-collapse-ic { transform: rotate(180deg); }
}

/* Backoffice card tables — <1024px tiap baris jadi kartu ledger (label kiri tetap, nilai kanan kolom) */
@media (max-width: 1023px) {
  .table-card { overflow-x: visible !important; }
  .table-card table { min-width: 0 !important; display: block; }
  .table-card thead { display: none; }
  .table-card tbody { display: block; padding: .2rem .75rem .6rem; }
  .table-card tbody tr { display: block; margin: .6rem 0; padding: .65rem .8rem; border: 1px solid #e2e8f0 !important; border-radius: .65rem; background: #fff; }
  .table-card tbody td { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; padding: .18rem 0; border: 0 !important; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .table-card tbody td::before { content: attr(data-th); flex: 0 0 6.75rem; font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; text-align: left; }
  .table-card tbody td > * { min-width: 0; }
  .table-card tbody td > .flex { flex-wrap: wrap; }
  .table-card tbody td[data-th=""] { display: block; text-align: center; }
  .table-card tbody td[data-th=""]::before { content: none; }
}

/* Halaman Tentang — frame foto portrait (tidak ke-crop) */
.about-photo { position: relative; width: 100%; max-width: 380px; margin-inline: auto; }
.about-photo img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 12%; }
@media (max-width: 767px) { .about-photo { max-width: 300px; } }

/* Biodata /about — nilai rata kiri-kanan */
.about-dl dd { text-align: justify; }

/* Backoffice bottom nav — mobile only, mirror pola storefront */
.bo-bottomnav {
  display: none;
}
@media (max-width: 1023px) {
  .bo-bottomnav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  }
  .bo-bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: .55rem .25rem .5rem;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .bo-bn-item:hover { color: #fff; }
  .bo-bn-item.on { color: #34d399; }
  .bo-bn-item svg, .bo-bn-item i svg { width: 20px; height: 20px; }
}
