/* =====================================================================
   SIPS — tema page customer (Fresh · Premium · Delicious)
   Fail ini hanya untuk index.html. Dashboard outlet guna style.css sahaja.
   Tukar warna di sini sahaja (CSS variables).
   ===================================================================== */
body.cust {
  /* Palet SIPS */
  --forest: #123F2B;      /* Primary brand */
  --pandan: #7BAE65;      /* Secondary green */
  --cream-bg: #FFF9EF;    /* Main background */
  --ivory: #F8F0DF;       /* Secondary background */
  --card: #FFFFFF;        /* Card background */
  --barley: #D9AC67;      /* Accent gold */
  --honey: #E8B65B;       /* Button gold */
  --sage: #E8F2D7;        /* Promo background */
  --ink: #142F23;         /* Main text */
  --grey: #6E7169;        /* Secondary text */

  --shadow-sm: 0 2px 8px rgba(18, 63, 43, .06);
  --shadow: 0 10px 28px -12px rgba(18, 63, 43, .22), 0 2px 6px rgba(18, 63, 43, .05);
  --radius: 20px;

  /* Petakan ke token komponen sedia ada (light theme sahaja) */
  --bg: var(--cream-bg); --surface: var(--card); --surface-2: var(--ivory);
  --fg: var(--ink); --muted: var(--grey); --line: #EADFCB;
  --band: var(--forest); --band-fg: #FFF9EF;
  --green: var(--forest); --cream: #FFF9EF; --gold: var(--barley); --gold-ink: #A87A32;
  --accent: var(--forest); --accent-fg: #fff;
  --new: #C0562B; --new-bg: #FBE6DA; --ready: #2F7A52; --ready-bg: #E1F0D9; --prep-bg: #F6EAD6;
  --r: var(--radius);
  --f-display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --f-script: "Kaushan Script", "Brush Script MT", cursive;

  color-scheme: light;
  background:
    radial-gradient(60% 40% at 85% 6%, rgba(232, 182, 91, .20), transparent 70%),
    radial-gradient(50% 35% at 0% 30%, rgba(123, 174, 101, .14), transparent 70%),
    linear-gradient(180deg, #FFF9EF 0%, #FBF3E4 45%, #FFF9EF 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
}
html:root { color-scheme: light; background: #FFF9EF; }
body.cust::before { background: var(--forest); }
body.cust .num { font-variant-numeric: tabular-nums; }

/* ---------- HEADER ---------- */
body.cust header.band { background: transparent; padding-top: 10px; }
body.cust header.band .wrap {
  background: var(--forest); border-radius: 22px; padding-block: 8px; padding-inline: 16px 10px;
  box-shadow: 0 10px 24px -14px rgba(18, 63, 43, .6);
  margin-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  max-width: 1150px; flex-wrap: nowrap;
}
@media (min-width: 1180px) { body.cust header.band .wrap { margin-inline: auto; } }
body.cust .logo { height: 44px; width: auto; border-radius: 0; }
body.cust .tag { display: none; }
body.cust .acct {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: #FFF9EF; color: var(--forest); border: 0; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
body.cust .acct:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
body.cust .acct .star { color: var(--honey); }
body.cust .banner { background: var(--ivory); border: 0; }
@media (max-width: 400px) { body.cust .acct { padding: 9px 12px; font-size: 13px; } body.cust .logo { height: 38px; } }

/* ---------- HERO ---------- */
.hero2 {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; column-gap: 8px; row-gap: 0; padding-block: 18px 6px;
}
.hero2::before {
  content: ""; position: absolute; inset: 10% 0 0 40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 182, 91, .28), rgba(123, 174, 101, .10) 60%, transparent);
}
.h-copy { min-width: 0; align-self: end; }
.hero2 h1 { margin: 0; line-height: 1; text-wrap: balance; }
.hero2 .script {
  display: block; font-family: var(--f-script); font-weight: 400; color: var(--forest);
  font-size: clamp(34px, 9.5vw, 64px); line-height: 1.05; letter-spacing: 0;
}
.hero2 .solid {
  display: inline-block; font-family: var(--f-display); font-weight: 800; color: var(--ink);
  font-size: clamp(26px, 7.4vw, 48px); letter-spacing: -.02em; margin-top: 4px; position: relative;
}
.hero2 .solid::after {
  content: ""; position: absolute; left: 30%; right: 0; bottom: -8px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--barley) 25%, var(--honey));
  transform: rotate(-1.5deg);
}
.hero2 p { margin: 18px 0 0; color: var(--ink); opacity: .85; font-size: 15px; line-height: 1.55; max-width: 40ch; }
.hero2 mark { background: #DDEBC8; color: var(--forest); font-weight: 800; border-radius: 8px; padding: 1px 7px; }
.where2 {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--forest); color: #FFF9EF; border-radius: 999px; padding: 12px 20px 12px 16px;
  box-shadow: 0 10px 20px -12px rgba(18, 63, 43, .7); font-size: 15px; white-space: nowrap; max-width: 100%;
}
.where2 b { font-weight: 800; }
.where2 span { opacity: .85; }
.h-pic { position: relative; justify-self: end; width: 100%; max-width: 340px; grid-column: 2; grid-row: 1 / span 2; }
.where2 { grid-column: 1; justify-self: start; align-self: start; }
.h-pic img {
  display: block; width: 100%; height: auto; max-width: 100%;
  animation: floaty 6s ease-in-out infinite;
}
.h-note {
  position: absolute; top: 2%; right: 0; font-family: var(--f-script); color: var(--forest);
  font-size: clamp(14px, 3.6vw, 20px); line-height: 1.1; transform: rotate(-10deg); text-align: right;
}
@keyframes floaty { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .h-pic img { animation: none; } }
@media (max-width: 430px) {
  .hero2 { grid-template-columns: minmax(0, 1fr) 40%; gap: 0; }
  .hero2 p { font-size: 14px; }
  .h-pic { grid-row: 1; }
  .where2 { grid-column: 1 / -1; margin-top: 4px; }
  .where2 { padding: 10px 16px 10px 12px; font-size: 14px; }
  .tags span:nth-child(n+3) { display: none; }
}

/* ---------- PROMO AHLI ---------- */
.promo-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #F1F7E6 0%, var(--sage) 60%, #E0EDCB 100%);
  border: 1px solid rgba(123, 174, 101, .35); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px 12px 8px; margin-top: 16px; overflow: hidden;
}
.promo-card img { width: 100%; height: auto; border-radius: 14px; mix-blend-mode: multiply; }
.promo-card .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); opacity: .75; }
.promo-card h2 { margin: 2px 0 4px; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 4.6vw, 24px); color: var(--forest); letter-spacing: -.01em; }
.promo-card p { margin: 0; font-size: 13.5px; color: var(--ink); opacity: .85; line-height: 1.45; }
.promo-card p b { color: var(--forest); }
.pc-btn {
  border: 0; background: var(--forest); color: var(--honey); font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 12px 18px; white-space: nowrap; box-shadow: 0 8px 16px -10px rgba(18, 63, 43, .8);
  transition: transform .15s ease;
}
.pc-btn:hover { transform: translateY(-1px); }
@media (max-width: 430px) {
  .promo-card { grid-template-columns: 30% minmax(0, 1fr); padding: 12px 14px 14px 6px; }
  .pc-btn { grid-column: 2; justify-self: start; padding: 10px 16px; font-size: 13.5px; }
}

/* ---------- KATEGORI ---------- */
body.cust .chips { gap: 10px; padding-block: 18px 6px; }
body.cust .chips button {
  background: var(--card); color: var(--forest); border: 1px solid #E6DAC4; font-weight: 700; font-size: 15px;
  padding: 11px 22px; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, transform .15s;
}
body.cust .chips button:active { transform: scale(.97); }
body.cust .chips button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: 0 8px 18px -10px rgba(18, 63, 43, .8); }
body.cust .cat-title { font-family: var(--f-display); color: var(--ink); font-size: 15px; letter-spacing: .22em; font-weight: 800; margin: 22px 0 14px; }
body.cust .cat-title::after { background: linear-gradient(90deg, #D9C9A8, transparent); }

/* ---------- KAD PRODUK ---------- */
body.cust .grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 430px) { body.cust .grid { grid-template-columns: 1fr; } }
.item2 {
  display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 14px; align-items: stretch; text-align: left;
  background: var(--card); border: 1px solid #F0E6D4; border-radius: var(--radius); padding: 8px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.item2:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(18, 63, 43, .28); }
.item2:active { transform: scale(.985); }
.i-pic { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ivory); max-width: 100%; }
.i-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.item2:hover .i-pic img { transform: scale(1.04); }
.ill { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--tint) 55%, #fff) 0%, #F8F0DF 70%); }
.ill svg { width: 58%; height: auto; filter: drop-shadow(0 8px 10px rgba(18, 63, 43, .18)); }
.incart2 { position: absolute; left: 6px; top: 6px; background: var(--forest); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; }
.i-body { display: flex; flex-direction: column; min-width: 0; padding: 6px 4px 4px 0; }
.i-body h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--forest); letter-spacing: -.01em; line-height: 1.2; }
.i-body p { margin: 4px 0 8px; font-size: 13.5px; color: var(--grey); line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink); background: #F7F1E5; border-radius: 999px; padding: 3px 9px 3px 7px; }
.tags svg { color: var(--pandan); flex: none; }
.i-body .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.i-body .price { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--forest); }
.add2 {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #F4CD7F, var(--honey) 60%, #D79E3E);
  color: #fff; font-size: 26px; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 16px -6px rgba(200, 140, 40, .7); transition: transform .15s ease;
}
.item2:hover .add2 { transform: rotate(90deg); }

/* ---------- TROLI / SHEET ---------- */
body.cust .cartbar button {
  background: var(--forest); color: #FFF9EF; border-radius: 18px; padding: 15px 18px;
  box-shadow: 0 14px 30px -10px rgba(18, 63, 43, .6);
}
body.cust .cartbar .count { background: var(--honey); color: var(--forest); border-radius: 9px; }
body.cust .cartbar .tot { font-weight: 800; }
body.cust .sheet { background: var(--card); border-radius: 24px 24px 0 0; }
@media (min-width: 700px) { body.cust .sheet { border-radius: 24px; } }
body.cust .sheet h2 { font-family: var(--f-display); font-weight: 800; color: var(--forest); }
body.cust .btn { border-radius: 14px; font-weight: 800; }
body.cust .btn.wide { box-shadow: 0 10px 20px -12px rgba(18, 63, 43, .8); }
body.cust .seg button { background: var(--cream-bg); border-color: #E6DAC4; color: var(--ink); }
body.cust .seg button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
body.cust input[type=text], body.cust input[type=tel], body.cust input[type=email], body.cust input[type=password] {
  background: var(--cream-bg); border: 1px solid #E6DAC4; border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); width: 100%;
}
body.cust .hint { background: var(--cream-bg); border-color: #EFE4D0; }
body.cust .vpick button, body.cust .vcard { background: var(--cream-bg); border-color: #E6DAC4; }
body.cust .promo.slim { background: var(--sage); border: 1px solid rgba(123, 174, 101, .4); border-radius: 16px; }
body.cust .promo.slim .go { color: var(--forest); }
body.cust .card-pts { background: linear-gradient(135deg, var(--forest), #1C5A3D); border-radius: 20px; }
body.cust .card-pts .big { color: var(--honey); }
body.cust .bar i { background: linear-gradient(90deg, var(--pandan), var(--honey)); }
body.cust .done { background: var(--card); border: 0; box-shadow: var(--shadow); border-radius: 24px; }
body.cust .done .big { color: var(--forest); font-weight: 800; }
body.cust .steps div.on::before { background: linear-gradient(90deg, var(--pandan), var(--honey)); }
body.cust .earn { color: #A87A32; }

/* gambar dalam sheet produk */
.it-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.it-pic { position: relative; display: block; width: 112px; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--ivory); box-shadow: var(--shadow-sm); }
.it-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-head .price { font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--forest); }

/* hiasan daun & barli halus di belakang */
body.cust main#view-menu { position: relative; isolation: isolate; }
body.cust main#view-menu::after {
  content: ""; position: absolute; z-index: -2; top: 0; left: -30px; width: 160px; height: 260px; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Cpath d='M10 150 C30 100 40 60 90 10 C70 60 50 110 10 150Z' fill='%237BAE65'/%3E%3Cpath d='M10 150 C35 105 55 70 90 10' stroke='%23123F2B' stroke-width='1.2' fill='none' opacity='.5'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-12deg);
}
html:root, body.cust { overflow-x: clip; }

/* ---------- ucapan pada cawan ---------- */
.giftcta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 16px;
  background: linear-gradient(120deg, #FFF3F6, #FFF9EF); border: 1.5px dashed #E7A9BC; border-radius: 18px; padding: 14px 16px; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease; }
.giftcta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.giftcta .gc-ico { font-size: 26px; line-height: 1; }
.giftcta b { display: block; color: #9C3557; font-size: 15px; }
.giftcta small { display: block; color: var(--grey); font-size: 13px; margin-top: 2px; }
.giftcta .gc-add { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #F3C6D4; color: #9C3557; font-weight: 800; flex: none; }
.giftbox { margin-top: 16px; background: linear-gradient(160deg, #FFF3F6 0%, #FFF9EF 70%); border: 1.5px solid #F0C7D4; border-radius: 18px; padding: 14px 16px; }
.gb-head { display: flex; justify-content: space-between; align-items: center; color: #9C3557; }
.gb-head .linkish { border: 0; background: none; color: var(--grey); font-weight: 700; font-size: 13px; }
.gb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.gb-chips button { border: 1px solid #F0C7D4; background: #fff; color: #9C3557; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.gb-chips button[aria-pressed="true"] { background: #9C3557; color: #fff; border-color: #9C3557; }
.gb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.cust textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #E6DAC4; border-radius: 12px; padding: 10px 12px; resize: none; }
.field span small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--grey); }
.gb-prev { position: relative; margin: 14px auto 2px; width: min(100%, 260px); aspect-ratio: 5 / 3; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 18px -8px rgba(18,63,43,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 14px; gap: 4px; }
.gp-tag { position: absolute; top: -9px; left: 10px; background: var(--forest); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; letter-spacing: .04em; }
.gp-to { font-weight: 800; font-size: 13px; color: var(--ink); }
.gp-msg { font-family: var(--f-script); font-size: 20px; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.gp-from { font-weight: 700; font-size: 12px; color: var(--grey); }
.gline { display: block; color: #9C3557; font-weight: 600; margin-top: 2px; }
.closed-note { margin-top: 14px; background: #FFF1E6; border: 1px solid #F3C9A6; color: #7A3E12; border-radius: 16px; padding: 12px 16px; font-size: 14px; }

/* ---------- stok habis ---------- */
.item2.soldout { opacity: .62; cursor: not-allowed; }
.item2.soldout:hover { transform: none; }
.item2.soldout .i-pic img { filter: grayscale(.85); }
.so-badge { position: absolute; inset: auto 8px 8px 8px; background: rgba(20, 47, 35, .88); color: #fff; font-size: 12px; font-weight: 800; text-align: center; border-radius: 999px; padding: 4px 8px; letter-spacing: .04em; }
.so-txt { font-size: 12.5px; font-weight: 800; color: #B5502A; }
body.cust .line.gone .nm { text-decoration: line-through; text-decoration-color: rgba(181, 80, 42, .6); }

/* v7: anggaran siap & 5 langkah */
.eta-note { margin-top: 12px; background: #EEF5E6; border: 1px solid rgba(123,174,101,.45); color: var(--forest); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.eta-box { margin: 14px auto 4px; max-width: 360px; background: #EEF5E6; color: var(--forest); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.eta-box.late { background: #FFF1E6; color: #7A3E12; }
.steps5 { list-style: none; padding: 0; margin: 18px auto 10px; max-width: 360px; text-align: left; display: grid; gap: 8px; }
.steps5 li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--grey); font-size: 14.5px; }
.steps5 li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); font-size: 13px; font-weight: 800; flex: none; }
.steps5 li.done { color: var(--ink); }
.steps5 li.done span { background: #DDEBC8; color: var(--forest); }
.steps5 li.now { color: var(--forest); font-weight: 800; }
.steps5 li.now span { background: var(--forest); color: #fff; box-shadow: 0 0 0 4px #DDEBC8; }
body.cust .done.is-ready { box-shadow: 0 0 0 3px var(--honey), var(--shadow); }
