/* ==========================================================================
   DANACO Frozen Food — gaya utama
   Inspirasi: DEFA Group (navy + oren, kad kategori) & Fish&More (biru ais, corak segitiga)
   ========================================================================== */

:root {
  /* Warna jenama (daripada PDF) */
  --navy-950: #061A36;
  --navy-900: #0A2448;
  --navy-800: #0B2D5B;
  --navy-700: #123D75;
  --ice-500: #3FA9DC;
  --ice-400: #5DB9E4;
  --ice-200: #BFE3F5;
  --ice-100: #DDF0FA;
  --ice-50:  #EEF7FC;

  /* Semantik */
  --color-primary: var(--navy-800);
  --color-on-primary: #FFFFFF;
  --color-accent: #C4480A;          /* CTA oren, 5.0:1 pada putih */
  --color-accent-hover: #A63C08;
  --color-accent-soft: #FDEBDD;
  --color-bg: #F5F9FC;
  --color-surface: #FFFFFF;
  --color-text: #0B1B33;
  --color-muted: #4A5B72;           /* 6.6:1 pada putih */
  --color-border: #D8E4EF;
  --color-success: #15803D;
  --color-danger: #B91C1C;

  /* Tipografi */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.3rem + 3vw, 3.5rem);

  /* Ruang (4/8) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 45, 91, .06), 0 1px 3px rgba(11, 45, 91, .08);
  --shadow: 0 4px 12px rgba(11, 45, 91, .08), 0 2px 4px rgba(11, 45, 91, .05);
  --shadow-lg: 0 18px 40px rgba(11, 45, 91, .16);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 150ms;
  --dur: 240ms;

  --header-h: 72px;
  --catbar-h: 64px;

  /* z-index */
  --z-sticky: 20; --z-header: 30; --z-fab: 40; --z-drawer: 100; --z-toast: 110;
}

/* ---------- Asas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--catbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: var(--s-4); top: -60px; z-index: 200; background: var(--navy-800); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: var(--s-3); }

:focus-visible { outline: 3px solid var(--ice-500); outline-offset: 2px; border-radius: 4px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Butang ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 20px;
  border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: 8px 16px; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(196, 72, 10, .25); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--outline { border-color: var(--color-accent); color: var(--color-accent); background: #fff; }
.btn--outline:hover { background: var(--color-accent-soft); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
.btn--ghost { background: transparent; color: var(--color-muted); }
.btn--ghost:hover { color: var(--color-danger); background: #FEF2F2; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--color-border);
  background: #fff; color: var(--navy-800); cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.icon-btn:hover { background: var(--ice-50); border-color: var(--ice-200); }
.badge {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700;
  background: var(--ice-100); color: var(--navy-800);
}
.chip--accent { background: var(--color-accent-soft); color: var(--color-accent-hover); }
.chip .ico { width: 16px; height: 16px; }

.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ice-500); margin-bottom: var(--s-3); }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow--light { color: var(--ice-200); }
.h2 { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy-800); letter-spacing: -.01em; }
.h2--light { color: #fff; }
.lead { font-size: var(--fs-lg); color: var(--color-muted); max-width: 62ch; margin-top: var(--s-2); }
.lead--light { color: var(--ice-100); }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: #fff; font-size: var(--fs-sm);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 44px; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang .ico { width: 18px; height: 18px; margin-inline-end: 6px; opacity: .8; }
.lang__btn {
  min-width: 44px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 8px;
  background: transparent; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
}
.lang__btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang__btn[aria-pressed="true"] { background: #fff; color: var(--navy-800); }
.lang__btn[lang="ar"] { font-family: var(--font-ar); }
.topbar__contact { display: flex; align-items: center; gap: var(--s-3); }
.topbar__wa { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; }
.topbar__wa:hover { background: rgba(255, 255, 255, .12); }
.topbar__label { color: var(--ice-200); }
.topbar__phone { font-weight: 700; font-size: var(--fs-base); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 400px) { .topbar__phone { font-size: var(--fs-sm); } .lang__btn { min-width: 40px; padding-inline: 8px; } }
.topbar__phone:hover { text-decoration: underline; }
@media (max-width: 560px) { .topbar__label { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); flex: none; }
.brand img { width: 40px; height: auto; border-radius: 6px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
.brand__text small { font-size: .625rem; font-weight: 700; letter-spacing: .32em; color: var(--ice-500); margin-top: 4px; }
.brand--light { color: #fff; }

.nav { display: flex; gap: var(--s-1); margin-inline-start: var(--s-3); }
.nav a {
  position: relative; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--navy-800); text-decoration: none;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav a:hover { background: var(--ice-50); }
.nav a.is-active { color: var(--color-accent); }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: currentColor; }
.header__actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: var(--s-2) var(--s-4) var(--s-4);
    background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: var(--fs-base); }
  .nav a.is-active::after { display: none; }
}
@media (max-width: 767px) { .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-5); }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr; align-items: center;
  min-height: 520px; border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(93, 185, 228, .55), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(63, 169, 220, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, #145A9C 100%);
  color: #fff;
}
.hero__pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none;
  background-image:
    linear-gradient(60deg, transparent 47%, rgba(255,255,255,.5) 48%, rgba(255,255,255,.5) 52%, transparent 53%),
    linear-gradient(-60deg, transparent 47%, rgba(255,255,255,.5) 48%, rgba(255,255,255,.5) 52%, transparent 53%);
  background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
}
[dir="rtl"] .hero__pattern { -webkit-mask-image: linear-gradient(-100deg, transparent 35%, #000 75%); mask-image: linear-gradient(-100deg, transparent 35%, #000 75%); }
.hero__copy { padding: var(--s-7) var(--s-5) var(--s-6); position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.02em; max-width: 15ch; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero__lead { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--ice-100); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--s-6); margin: var(--s-7) 0 0; }
@media (max-width: 639px) {
  .hero__stats { display: grid; grid-template-columns: auto auto 1fr; gap: var(--s-5); margin-top: var(--s-6); }
  .hero__stats dt { font-size: 1.5rem; }
  .hero__stats dd { font-size: var(--fs-xs); }
}
.hero__stats div { min-width: 0; }
.hero__stats dt { font-size: 1.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats dd { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--ice-200); max-width: 18ch; }

/* Mobile/tablet: kotak nisbah tetap, 2 baris tersusun (belakang: ayam + kambing, depan: nanas + daging + kentang) */
.hero__visual {
  position: relative; width: calc(100% - 2 * var(--s-4)); max-width: 520px;
  aspect-ratio: 1 / .8; margin: 0 auto calc(var(--s-6) + var(--s-5));
}
.hero__visual::before { /* pentas cahaya di bawah produk */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2%; height: 30%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 60%, rgba(191, 227, 245, .45), transparent 70%);
}
.hv { position: absolute; height: auto; filter: drop-shadow(0 14px 16px rgba(3, 18, 40, .45)); }
.hv--chicken { width: 44%; inset-inline-start: 3%;  top: 3%;    z-index: 1; }
.hv--lamb    { width: 46%; inset-inline-end: 2%;    top: 6%;    z-index: 1; }
.hv--beef    { width: 52%; inset-inline-start: 24%; bottom: 4%; z-index: 3; }
.hv--fruit   { width: 19%; inset-inline-start: 4%;  bottom: 4%; z-index: 4; }
.hv--fries   { width: 19%; inset-inline-end: 4%;    bottom: 4%; z-index: 4; }

@media (min-width: 1024px) {
  .hero__panel { grid-template-columns: 1.02fr 1fr; min-height: 560px; }
  .hero__copy { padding: var(--s-8) 0 var(--s-8) var(--s-8); }
  [dir="rtl"] .hero__copy { padding: var(--s-8) var(--s-8) var(--s-8) 0; }
  .hero__visual { width: auto; max-width: none; aspect-ratio: auto; height: 100%; min-height: 480px; margin: 0; }
  .hero__visual::before { display: none; }
  .hv--beef    { width: 58%; inset-inline-start: 16%; bottom: 10%; }
  .hv--chicken { width: 42%; inset-inline-start: -2%; top: 12%; }
  .hv--lamb    { width: 48%; inset-inline-end: 2%; top: 9%; }
  .hv--fries   { width: 22%; inset-inline-end: 8%; bottom: 8%; }
  .hv--fruit   { width: 18%; inset-inline-start: 2%; bottom: 6%; }
}

/* Kad perkhidmatan (gaya DEFA) */
.services {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin: calc(var(--s-6) * -1) var(--s-4) 0;
  background: var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, 1fr); margin-inline: var(--s-7); } }
.service {
  display: flex; align-items: center; gap: var(--s-3); height: 100%;
  padding: var(--s-4) var(--s-5); background: #fff; text-decoration: none;
  transition: background-color var(--dur-fast);
}
.service:hover { background: var(--ice-50); }
.service__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--color-accent-soft); color: var(--color-accent); flex: none; }
.service__ico .ico { width: 24px; height: 24px; stroke-width: 1.75; }
.service strong { display: block; font-size: var(--fs-base); color: var(--navy-800); }
.service small { display: block; font-size: var(--fs-xs); color: var(--color-muted); line-height: 1.4; }
.service__chev { margin-inline-start: auto; color: var(--navy-800); transition: transform var(--dur-fast); }
.service:hover .service__chev { transform: translateX(3px); }
[dir="rtl"] .service:hover .service__chev { transform: scaleX(-1) translateX(3px); }

/* ---------- Seksyen ---------- */
.section { padding-block: var(--s-8); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
.section__head { margin-bottom: var(--s-6); }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }

/* ---------- Grid kategori (gaya kad DEFA) ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } .cat-card:first-child, .cat-card:last-child { grid-column: span 2; } }
.cat-card {
  --accent: var(--ice-500);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 168px; padding: var(--s-5);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur);
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--ice-200); }
.cat-card__media { position: relative; flex: 0 0 44%; height: 130px; display: grid; place-items: center; }
.cat-card__media::before {
  content: ""; position: absolute; z-index: -1; width: 128px; height: 128px; border-radius: 50%;
  background: var(--accent); opacity: .9;
}
.cat-card__media::after {
  content: ""; position: absolute; z-index: -1; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); inset-inline-end: 6%; bottom: 4%; box-shadow: 18px -26px 0 -3px var(--accent);
}
.cat-card__media img { max-height: 130px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(11, 45, 91, .25)); transition: transform var(--dur) var(--ease-out); }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body { border-inline-start: 2px solid var(--navy-800); padding-inline-start: var(--s-4); }
.cat-card__title { font-size: var(--fs-xl); font-weight: 800; color: var(--navy-800); text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
html[lang="ar"] .cat-card__title { text-transform: none; }
.cat-card__count { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--color-accent); }
.cat-card__count .ico { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .cat-card:first-child { min-height: 200px; }
  .cat-card:first-child .cat-card__media { height: 170px; }
  .cat-card:first-child .cat-card__media::before { width: 170px; height: 170px; }
  .cat-card:first-child .cat-card__media img { max-height: 170px; }
}

/* ---------- Promo ---------- */
.promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: center;
  padding: var(--s-6); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% 50%, rgba(232, 181, 60, .35), transparent 70%),
    linear-gradient(120deg, var(--ice-100), var(--ice-50));
  border: 1px solid var(--ice-200);
}
.promo__title { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy-800); margin: var(--s-3) 0 var(--s-2); max-width: 22ch; }
.promo p { color: var(--color-muted); margin-bottom: var(--s-5); }
.promo__visual { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 220px; }
.promo__visual img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(11, 45, 91, .25)); }
.promo__visual img:nth-child(2) { height: 88%; margin-inline: -24px; position: relative; z-index: 1; }
.promo__visual img:nth-child(3) { height: 80%; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.2fr 1fr; padding: var(--s-7) var(--s-8); } .promo__visual { height: 260px; } }

/* ---------- Katalog ---------- */
.catalog { padding-bottom: var(--s-7); }
.catbar {
  position: sticky; top: var(--header-h); z-index: var(--z-sticky);
  background: rgba(245, 249, 252, .94); backdrop-filter: blur(10px);
  border-block: 1px solid var(--color-border);
}
.catbar__inner { display: flex; align-items: center; gap: var(--s-3); min-height: var(--catbar-h); padding-block: var(--s-2); }
.search { position: relative; flex: 0 0 240px; }
.search .ico { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 8px 14px; padding-inline-start: 40px;
  border: 1px solid var(--color-border); border-radius: 10px; background: #fff; font-size: var(--fs-base);
}
.search input:focus { outline: none; border-color: var(--ice-500); box-shadow: 0 0 0 3px rgba(63, 169, 220, .25); }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
[dir="rtl"] .chips { -webkit-mask-image: linear-gradient(-90deg, #000 92%, transparent); mask-image: linear-gradient(-90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--color-border); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.chips a:hover { border-color: var(--ice-400); }
.chips a[aria-current="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chips a span { font-size: var(--fs-xs); opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  :root { --catbar-h: 112px; }
  .catbar__inner { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .search { flex: none; }
}

.catalog__note { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-sm); color: var(--color-muted); }
.catalog__note .ico { color: var(--ice-500); margin-top: 2px; }
.catalog__empty { text-align: center; padding: var(--s-8) 0; color: var(--color-muted); }

.cat-section { padding-top: var(--s-7); }
.cat-section__head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--s-5); margin-bottom: var(--s-5);
  border-radius: var(--radius); background: linear-gradient(110deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.cat-section__head::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 45%; opacity: .16;
  background-image:
    linear-gradient(60deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%),
    linear-gradient(-60deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%);
  background-size: 34px 59px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
[dir="rtl"] .cat-section__head::after { -webkit-mask-image: linear-gradient(-90deg, transparent, #000); mask-image: linear-gradient(-90deg, transparent, #000); }
.cat-section__num { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--ice-400); font-variant-numeric: tabular-nums; }
.cat-section__title { font-size: var(--fs-xl); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
html[lang="ar"] .cat-section__title { text-transform: none; letter-spacing: 0; }
.cat-section__desc { font-size: var(--fs-sm); color: var(--ice-100); margin-top: 2px; }
.cat-section__img { position: relative; z-index: 1; margin-inline-start: auto; height: 84px; width: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); display: none; }
@media (min-width: 640px) { .cat-section__img { display: block; } .cat-section__head { padding: var(--s-5) var(--s-6); } }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: var(--s-4); }
@media (max-width: 479px) { .p-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }

/* Kad produk */
.p-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.p-card:hover { box-shadow: var(--shadow-lg); border-color: var(--ice-200); }
.p-card__media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: var(--s-4);
  background:
    radial-gradient(circle at 50% 62%, #fff 0, #fff 30%, transparent 70%),
    linear-gradient(180deg, var(--ice-50), var(--ice-100));
}
.p-card__media::after { /* bayang lantai */
  content: ""; position: absolute; bottom: 9%; left: 22%; right: 22%; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 45, 91, .22), transparent); z-index: 0;
}
.p-card__media img { position: absolute; z-index: 1; inset: 8% 10% 10%; width: 80%; height: 82%; object-fit: contain; transition: transform var(--dur) var(--ease-out); }
.p-card:hover .p-card__media img { transform: scale(1.04); }
.p-card__ph { display: grid; place-items: center; gap: 6px; text-align: center; color: var(--ice-500); font-size: var(--fs-xs); font-weight: 600; position: relative; z-index: 1; }
.p-card__ph .ico { width: 44px; height: 44px; stroke-width: 1.25; }
.p-card__tags { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
html[lang="ar"] .tag { letter-spacing: 0; }
.tag--promo { background: var(--color-accent); color: #fff; }
.tag--oos { background: #fff; color: var(--color-danger); border: 1px solid #FECACA; }
.tag--brand { background: rgba(255, 255, 255, .9); color: var(--navy-800); border: 1px solid var(--color-border); text-transform: none; }

.p-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); flex: 1; }
.p-card__name { font-size: var(--fs-base); font-weight: 700; color: var(--navy-800); line-height: 1.3; }
.variants { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.variants legend { padding: 0; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--color-border); font-size: var(--fs-xs); font-weight: 600; color: var(--color-muted); background: #fff;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.variant input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.variant input:focus-visible + span { outline: 3px solid var(--ice-500); outline-offset: 2px; }
.variant:hover span { border-color: var(--ice-400); }
.p-card__size { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }

.p-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); }
.price { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; color: var(--navy-800); }
.price__cur { font-size: var(--fs-sm); font-weight: 700; }
.price__val { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.price--req { font-size: var(--fs-sm); font-weight: 700; color: var(--color-accent-hover); min-height: 33px; align-items: center; }
.p-card .btn { min-height: 44px; padding: 8px 12px; font-size: var(--fs-sm); }
.p-card .btn.is-added { background: var(--color-success); border-color: var(--color-success); color: #fff; box-shadow: none; }
.p-card .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.p-card--oos .p-card__media img { filter: grayscale(.6); opacity: .7; }
@media (max-width: 479px) {
  .p-card__body { padding: var(--s-3); }
  .p-card__name { font-size: var(--fs-sm); }
  .price__val { font-size: 1.25rem; }
  .p-card .btn { font-size: var(--fs-xs); padding-inline: 8px; white-space: normal; text-align: center; }
}

/* ---------- Tentang ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.about__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4;
  background: radial-gradient(circle at 50% 55%, #fff 0, var(--ice-100) 70%);
  display: grid; place-items: center; padding: var(--s-5);
}
.about__media > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(11, 45, 91, .22)); }
.about__logo { position: absolute; inset-inline-start: var(--s-5); bottom: var(--s-5); background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.about__logo img { width: 64px; }
.about__copy .h2 { margin-bottom: var(--s-4); }
.about__copy p + p { margin-top: var(--s-3); }
.about__copy p { color: var(--color-muted); font-size: var(--fs-lg); }

/* ---------- Kenapa kami ---------- */
.why { background: #fff; border-block: 1px solid var(--color-border); }
.why__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: var(--s-5); border-radius: var(--radius); background: var(--color-bg); border: 1px solid var(--color-border); }
.feature__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: #fff; margin-bottom: var(--s-4); }
.feature__ico .ico { width: 26px; height: 26px; stroke-width: 1.75; }
.feature h3 { font-size: var(--fs-lg); color: var(--navy-800); margin-bottom: var(--s-2); }
.feature p { color: var(--color-muted); font-size: var(--fs-sm); }

/* ---------- Langkah ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--s-4); counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.step { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 800; font-size: var(--fs-lg); margin-bottom: var(--s-4); }
.step h3 { font-size: var(--fs-lg); color: var(--navy-800); margin-bottom: var(--s-2); }
.step p { color: var(--color-muted); }

/* ---------- Hubungi ---------- */
.contact { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: #fff; }
.contact__inner { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
@media (min-width: 1024px) { .contact__inner { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact__list { display: grid; gap: var(--s-5); margin: var(--s-6) 0; }
.contact__list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--ice-200); flex: none; }
.contact__list small { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ice-200); font-weight: 700; margin-bottom: 2px; }
html[lang="ar"] .contact__list small { letter-spacing: 0; }
.contact__list a { color: #fff; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__list a:hover { text-decoration: underline; }
.link-light { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--ice-200) !important; font-size: var(--fs-sm); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-700); border: 1px solid rgba(255, 255, 255, .15); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: #fff; color: var(--color-text); border-radius: var(--radius-lg); padding: var(--s-6); box-shadow: var(--shadow-lg); }
.form__title { font-size: var(--fs-xl); color: var(--navy-800); margin-bottom: var(--s-5); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--navy-800); }
.req { color: var(--color-danger); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--color-border); background: var(--color-bg); font-size: var(--fs-base);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice-500); background: #fff; box-shadow: 0 0 0 3px rgba(63, 169, 220, .25); }
.field input[aria-invalid="true"] { border-color: var(--color-danger); background: #FEF2F2; }
.field__err { font-size: var(--fs-xs); color: var(--color-danger); margin-top: 6px; min-height: 0; font-weight: 600; }
.field__err:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding-top: var(--s-8); font-size: var(--fs-sm); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 640px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer__brand p { margin-top: var(--s-4); max-width: 34ch; }
.footer__h { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-4); }
html[lang="ar"] .footer__h { letter-spacing: 0; }
.footer__list { display: grid; gap: var(--s-2); }
.footer__list a { text-decoration: none; display: inline-block; padding-block: 2px; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: var(--s-7); padding-block: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); }

/* ---------- FAB WhatsApp ---------- */
.fab {
  position: fixed; z-index: var(--z-fab); bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1A8D4E; color: #fff; box-shadow: 0 10px 24px rgba(26, 141, 78, .4);
  transition: transform var(--dur-fast), background-color var(--dur-fast);
}
.fab:hover { background: #157541; transform: scale(1.05); }
.fab .ico { width: 28px; height: 28px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6, 26, 54, .55); animation: fade var(--dur) var(--ease-out); }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg);
  animation: slide-in 320ms var(--ease-out);
}
[dir="rtl"] .drawer__panel { animation-name: slide-in-rtl; }
.drawer.is-closing .drawer__scrim { animation: fade-out 180ms ease-in forwards; }
.drawer.is-closing .drawer__panel { animation: slide-out 200ms ease-in forwards; }
[dir="rtl"] .drawer.is-closing .drawer__panel { animation-name: slide-out-rtl; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--color-border); }
.drawer__head h2 { font-size: var(--fs-xl); color: var(--navy-800); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-3) var(--s-5); overscroll-behavior: contain; }
.drawer__empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--color-muted); }
.drawer__empty .ico { width: 48px; height: 48px; color: var(--ice-400); margin: 0 auto var(--s-3); stroke-width: 1.5; }
.drawer__foot { padding: var(--s-4) var(--s-5) max(var(--s-4), env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); display: grid; gap: var(--s-2); background: var(--color-bg); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.drawer__total strong { font-size: var(--fs-xl); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.drawer__note { font-size: var(--fs-xs); color: var(--color-muted); margin-bottom: var(--s-2); }

.line { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--color-border); }
.line__img { width: 64px; height: 64px; border-radius: 10px; background: var(--ice-50); display: grid; place-items: center; padding: 4px; }
.line__img img { max-height: 100%; object-fit: contain; }
.line__img .ico { color: var(--ice-400); }
.line__name { font-weight: 700; color: var(--navy-800); font-size: var(--fs-sm); line-height: 1.3; }
.line__meta { font-size: var(--fs-xs); color: var(--color-muted); margin-top: 2px; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--navy-800); }
.qty button:hover { background: var(--ice-50); }
.qty button .ico { width: 16px; height: 16px; }
.qty input { width: 48px; height: 40px; border: 0; border-inline: 1px solid var(--color-border); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.line__price { font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.line__remove { border: 0; background: none; color: var(--color-muted); cursor: pointer; font-size: var(--fs-xs); font-weight: 600; padding: 8px 0; min-height: 32px; text-decoration: underline; }
.line__remove:hover { color: var(--color-danger); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; top: 16px; transform: translate(-50%, -20px);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--navy-900); color: #fff; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animasi ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes slide-in-rtl { from { transform: translateX(-100%); } }
@keyframes slide-out-rtl { to { transform: translateX(-100%); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
