/* Island of Durian Store v3 · bridge for pages that keep the parent layout (cart, checkout, account, vouchers, member,
   help, tracking, content pages). Re-points the parent's design tokens to the v3 palette and all-sans type, so those
   pages read as the same store. Loaded after the parent CSS and shell.css. */

:root {
	--bg: #F6F2EE;
	--bg-2: #F3EEE8;
	--surface: #FFFFFF;
	--sand: #FDECEC;
	--sand-2: #FADADB;
	--line: #EEE8E2;
	--line-2: #DED7D0;
	--ink: #2A2527;
	--ink-2: #6B6466;
	--ink-3: #757072;
	--red: #E3161E;
	--red-600: #C8141C;
	--red-700: #7E0E14;
	--gold: #B8121A;
	--gold-600: #B8121A;
	--night: #1E1A1D;
	--gold-50: #FDECEC;
	--gold-100: #FADADB;
	--amber: #B8121A;
	--amber-50: #FDECEC;
	--blue-50: #F6F2EE;
	--font-serif: "Archivo", "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
	--font-sans: "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
	--fs-base: 1rem;
	--fs-md: 1.0625rem;
	--fs-2xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
	--fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	--r: 12px;
	--r-lg: 16px;
	--container: 1320px;
}

body.xd { font-family: var(--font-sans); font-size: 16px; line-height: 1.55; background: var(--bg); }
/* Headings in Archivo, heavy and tight (the parent used a serif here). */
.xd h1, .xd h2, .xd .h1, .xd .h2, .xd .serif, .xd .sec-title, .xd .mcb-tier, .xd .size-tile strong, .xd .col-tile strong, .xd .set-info h3, .xd .mcard-name, .xd .story-facts dt, .xd .rv-score, .xd .brand-card-body strong, .xd .flash-logo, .xd .flash-strip strong { font-family: var(--font-serif) !important; font-weight: 800 !important; font-style: normal !important; font-variation-settings: normal; letter-spacing: -.015em; }
.xd h3, .xd h4, .xd .card-title, .xd .co-step h2 { font-family: var(--font-serif); }
.xd .sec-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.12; }
.xd .phero { padding-block: clamp(24px, 3vw, 40px); background: var(--bg-2); }
.xd .phero h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); line-height: 1.05; }
.xd .page-banner h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }

/* Buttons: v3 shapes, Internal red is the action color */
.xd .btn { border-radius: 8px; font-family: var(--font-serif); font-weight: 700; }
.xd .btn--lg { height: 50px; }
.xd .btn--red { background: var(--red); }
.xd .btn--red:hover { background: var(--red-600); }
.xd .btn--dark { background: var(--red); border-color: var(--red); } /* r7: no dark buttons */
.xd .btn--wa:hover, .xd .btn--wa:focus-visible { background: #15803D; border-color: #15803D; color: #fff; } /* white text 5:1 (sheet #26) */

/* Cards and panels */
.xd .card, .xd .panel { border-radius: var(--r); }
.xd .container { max-width: calc(var(--container) + 2 * var(--gutter)); }

/* The parent's own header/footer bits are not rendered any more; keep their spacing hooks neutral. */
.xd .tabbar, .xd .wa-float { display: none !important; }

/* v3 cards inside the parent's grid and rail: dense rows */
.xd .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.xd .rail-track { grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; }
@media (max-width: 760px) {
	.xd .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.xd .rail-track { grid-auto-columns: 40%; gap: 10px; }
}
@media (min-width: 761px) and (max-width: 1180px) { .xd .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .xd .rail-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; } }

/* Savings: cart, checkout, receipt, order detail */
.xd .xsave { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: #E5F5EB; color: #12823F; font-weight: 700; font-size: 15px; }
.xd .xsave .ic { width: 18px; height: 18px; }
.xd .xsave-dd { color: #12823F; font-weight: 700; }
.xd .xreceipt { display: grid; gap: 14px; text-align: left; }
.xd .xreceipt-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xd .xreceipt-items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.xd .xreceipt-items img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.xd .xreceipt-items b { display: block; font-size: 15px; }
.xd .xreceipt-items small { display: block; font-size: 13px; color: var(--ink-3); }
.xd .xreceipt-items s { color: var(--ink-3); }
.xd .xreceipt-items em { font-style: normal; font-weight: 700; white-space: nowrap; }
.xd .xreceipt-sum { display: grid; gap: 6px; margin: 0; }
.xd .xreceipt-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.xd .xreceipt-sum dd { margin: 0; }
.xd .xreceipt-sum .neg dd { color: var(--red-600); }
.xd .xreceipt-sum .grand { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 800; font-size: 17px; }
.xd .xreceipt-print { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.xd .xreceipt-print .ic { width: 18px; height: 18px; }

/* Logo palette only on the parent-layout pages too (no gold, amber or blue accents) */
.xd .stars .ic-star, .xd .star-input label:hover, .xd .star-input label:hover ~ label, .xd .star-input input:checked ~ label { color: var(--red); fill: var(--red); }
.xd .rv-bars i b { background: var(--red); }
.xd .bar--gold > i { background: var(--red); }
.xd .vc--member .vc-side, .xd .vc--poin .vc-side { background: var(--t-gold); color: var(--t-gold-ink); } /* r7 soft tints, same as base.css */
.xd .vc--ultah .vc-side { background: var(--peach); color: var(--peach-ink); }
.xd .member-band { background: var(--sand); border-block: 1px solid var(--sand-2); }

/* Sign in / sign up (woocommerce/myaccount/form-login.php): phone + OTP, Google, Facebook, password ---------------- */
.xd .xauth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 0; max-width: 980px; margin: clamp(20px, 4vw, 48px) auto; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(30, 26, 29, .35); }
.xd .xauth-side { position: relative; display: grid; grid-template-rows: minmax(160px, 1fr) auto; background: var(--blush); color: var(--ink); } /* r7: soft blush panel, photo uncut */
.xd .xauth-photo { position: relative; overflow: hidden; }
.xd .xauth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xd .xauth-side-copy { display: grid; gap: 12px; padding: 18px 32px 32px; }
.xd .xauth-kicker { font: 800 12px/1 var(--font-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--red-600); }
.xd .xauth-side-title { margin: 0; font: 900 clamp(24px, 2.4vw, 32px)/1.05 var(--font-serif); font-stretch: 88%; }
.xd .xauth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.xd .xauth-side li { display: flex; align-items: center; gap: 10px; }
.xd .xauth-side li .ic { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: #fff; color: var(--red); }
.xd .xauth-box { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 3.4vw, 40px); }
.xd .xauth-box .xauth-h { margin: 0; font: 800 26px/1.15 var(--font-serif) !important; letter-spacing: -.015em; color: var(--ink); }
.xd .xauth-step, .xd .xauth-pw { display: grid; gap: 12px; }
.xd .xauth-step[hidden], .xd .xauth-pw[hidden], .xd .xauth-social[hidden] { display: none; }
.xd .xauth-lead { margin: 0; color: var(--ink-2); font-size: 15px; }
.xd .xauth-label { font: 700 14px/1.2 var(--font-serif); }
.xd .xauth-phone { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.xd .xauth-phone:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 22, 30, .1); }
.xd .xauth-phone span { display: grid; place-items: center; height: 100%; padding: 0 14px; background: var(--bg); border-right: 1.5px solid var(--line-2); font: 700 16px/1 var(--font-serif); color: var(--ink-2); }
.xd .xauth-phone input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 14px; font: 600 18px/1 var(--font-sans); letter-spacing: .04em; outline: none; background: transparent; }
.xd .xauth-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 700 16px/1 var(--font-serif); cursor: pointer; transition: background .2s; }
.xd .xauth-btn:hover { background: var(--red-600); }
.xd .xauth-btn.is-busy, .xd .xauth-btn:disabled { opacity: .6; cursor: progress; }
.xd .xauth-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--sand); color: var(--red-600); font-size: 14px; font-weight: 600; }
.xd .xauth-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.xd .xauth-note a, .xd .xauth-switch a { color: var(--red-600); font-weight: 700; }
.xd .xauth-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 0; border: 0; background: none; font: 700 14px/1 var(--font-serif); color: var(--ink-2); cursor: pointer; }
.xd .xauth-back .ic { width: 16px; height: 16px; }
.xd .xauth-test { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1.5px dashed var(--ink-3); background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.xd .xauth-test b { font: 800 18px/1 var(--font-serif); letter-spacing: .12em; color: var(--ink); }
.xd .xauth-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.xd .xauth-code input { width: 100%; height: 56px; border: 1.5px solid var(--line-2); border-radius: 10px; text-align: center; font: 800 24px/1 var(--font-serif); outline: none; }
.xd .xauth-code input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 22, 30, .1); }
.xd .xauth-resend { margin: 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.xd .xauth-resend button { padding: 0; border: 0; background: none; font: 700 14px/1 var(--font-serif); color: var(--red-600); cursor: pointer; }
.xd .xauth-social { display: grid; gap: 10px; }
.xd .xauth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.xd .xauth-or::before, .xd .xauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.xd .xauth-google { min-height: 44px; display: flex; justify-content: center; }
.xd .xauth-fb { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; font: 600 15px/1 var(--font-sans); color: var(--ink); cursor: pointer; }
.xd .xauth-fb .ic { width: 20px; height: 20px; color: #1877F2; }
.xd .xauth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.xd .xauth-switch { display: grid; gap: 8px; margin: 4px 0 0; justify-items: center; text-align: center; font-size: 14px; color: var(--ink-3); }
.xd .xauth-switch a[hidden] { display: none; }
.xd .xauth-notice { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-size: 14px; }
.xd .xauth-alt { display: grid; gap: 10px; }
.xd .xauth-alt[hidden] { display: none; }
.xd .xauth-alt-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: #fff; color: var(--ink); font: 700 15px/1 var(--font-serif); text-decoration: none; }
.xd .xauth-alt-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.xd .xauth-alt-btn .ic { width: 20px; height: 20px; color: var(--red); }
.xd .xauth-pw .woocommerce-password-strength { margin-top: 6px; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--ink-2); }
.xd .xauth-pw .woocommerce-password-strength.short, .xd .xauth-pw .woocommerce-password-strength.bad { background: var(--red-bg, #FDEDED); color: var(--red-ink, #B8121A); }
.xd .xauth-pw .woocommerce-password-strength.good, .xd .xauth-pw .woocommerce-password-strength.strong { background: var(--green-bg, #E5F5EB); color: var(--green, #12823F); }
.xd .xauth-pw .woocommerce-password-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 820px) {
	.xd .xauth { grid-template-columns: 1fr; margin: 0 calc(-1 * var(--gutter, 16px)); border-radius: 0; box-shadow: none; }
	.xd .xauth-side { display: none; }
	.xd .xauth-box { padding: 22px 16px 30px; }
	.xd .xauth-code input { height: 50px; font-size: 21px; }
}
.xd .xnotice-ok { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--sand); font-size: 14.5px; }
.xd .xnotice-ok .ic { flex: none; width: 20px; height: 20px; color: var(--red); }
.xd .xnotice-ok a { color: var(--red-600); font-weight: 700; }

/* Look r7 (Peter, 18 Nov 2026): no black or charcoal surfaces on the parent-layout pages either. The parent's default
   button, active pills, pagination, step numbers and countdown were ink; they become the red accent or a soft tint. */
/* :where() keeps this low (0,2,0), so component rules such as ".xd .vc .btn" (outlined voucher button) still win. */
:where(.xd) :is(.btn, .button):not(.btn--red, .btn--line, .btn--line-red, .btn--white, .btn--gold, .btn--wa, .btn--ghost, .btn--dark, .alt, .checkout-button) { background: var(--red); border-color: var(--red); color: #fff; }
:where(.xd) :is(.btn, .button):not(.btn--red, .btn--line, .btn--line-red, .btn--white, .btn--gold, .btn--wa, .btn--ghost, .btn--dark, .alt, .checkout-button):hover { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.xd .btn--white:hover { background: var(--red-bg, #FDECEC); color: var(--red-600); border-color: var(--red-bg, #FDECEC); }
.xd .pc-quick .btn:hover { background: var(--red); color: #fff; }
.xd .chip.is-on, .xd .chip[aria-pressed="true"], .xd .tabs--pills .tab.is-on, .xd .pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.xd .filter-list a.is-on { background: var(--red-bg, #FDECEC); color: var(--red-600); }
.xd .active-filters a { background: var(--red-bg, #FDECEC); color: var(--red-600); }
.xd .co-step h2 .n, .xd .cd b { background: var(--red); color: #fff; }
.xd .bdg--new { background: var(--mint-ink, #276E50); color: #fff; }
.xd .acc-nav .is-active a { background: var(--red-bg, #FDECEC); color: var(--red-600); }
.xd .avatar { background: var(--red); color: #fff; }
.xd .lang--drawer a.is-on { background: var(--red); color: #fff; }
/* Member tier pills: a light tint of the tier colour with the colour as text (was white on the solid colour) */
.xd .tier-pill:not(.tier-pill--inv) { background: color-mix(in srgb, var(--c, #8E5235) 14%, #fff); color: color-mix(in srgb, var(--c, #8E5235) 88%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #8E5235) 22%, #fff); }
/* Info page banner: text on a light linen band, the photo beside it in a rounded frame (no dark overlay on the photo) */
.xd .page-banner { display: block; min-height: 0; background: var(--linen, #FAF7F3); color: var(--ink); border-bottom: 1px solid var(--line); }
.xd .page-banner::before { display: none; }
.xd .page-banner > img { position: absolute; z-index: 0; top: 18px; bottom: 18px; left: auto; right: max(var(--gutter, 20px), calc((100% - var(--container)) / 2)); width: min(42%, 540px); height: calc(100% - 36px); border-radius: 16px; object-fit: cover; animation: none; }
.xd .page-banner-in { position: relative; z-index: 1; min-height: clamp(180px, 18vw, 260px); align-content: center; padding-block: 32px; padding-right: calc(min(42%, 540px) + 32px); }
.xd .page-banner h1 { color: var(--ink); }
.xd .page-banner p { color: var(--ink-2); }
@media (max-width: 760px) {
	.xd .page-banner { padding-top: 14px; }
	.xd .page-banner > img { position: static; display: block; width: calc(100% - 2 * var(--gutter, 16px)); height: auto; aspect-ratio: 16 / 9; margin-inline: auto; border-radius: 14px; }
	.xd .page-banner-in { min-height: 0; padding-block: 16px 22px; padding-right: var(--gutter, 16px); }
}

/* r7 (Peter 19 Nov: no empty slots). Help cards (Member "Cara dapat poin", Bantuan): a last row of two shares the width,
   a last row of one takes the full row. */
@media (min-width: 800px) {
	.help-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.help-grid > * { grid-column: span 2; }
	.help-grid > :nth-child(3n+1):nth-last-child(2), .help-grid > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
	.help-grid > :nth-child(3n+1):last-child { grid-column: 1 / -1; }
}
@media (max-width: 799px) {
	.help-grid > :nth-child(odd):last-child { grid-column: 1 / -1; }
}
/* Voucher page: groups with one or two vouchers sit side by side and widen to fill the row; a group of three or more
   takes the full width and its last row widens (4 vouchers = 2 + 2, 5 = 3 + 2). */
.vgroups { display: flex; flex-wrap: wrap; gap: 0 14px; }
.vgroup { flex: 1 1 100%; min-width: 0; }
.vgroup-h { margin: 22px 0 12px; }
@media (min-width: 700px) {
	.vgroup:has(.vgrid > :only-child) { flex: 1 1 280px; }
	.vgroup:has(.vgrid > :nth-child(2):last-child) { flex: 2 1 560px; }
	.vgroup .vgrid:has(> :only-child) { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
	.vgroup .vgrid--3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.vgroup .vgrid--3 > * { grid-column: span 2; }
	.vgroup .vgrid--3:has(> :only-child) > * { grid-column: 1 / -1; }
	.vgroup .vgrid--3 > :nth-child(3n+1):nth-last-child(2), .vgroup .vgrid--3 > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
	.vgroup .vgrid--3 > :nth-child(3n+1):nth-last-child(4), .vgroup .vgrid--3 > :nth-child(3n+1):nth-last-child(4) ~ * { grid-column: span 3; }
}
@media (min-width: 700px) and (max-width: 1099px) {
	.vgroup .vgrid > :nth-child(odd):last-child { grid-column: 1 / -1; }
}

/* Best sellers on the empty cart and the 404 page (r7): only complete rows (10 cards = 2 x 5, 4 x 2 on tablet shows 8). */
@media (min-width: 761px) and (max-width: 1180px) { .xd .pgrid--fill > :nth-child(4n+5):nth-last-child(-n+3), .xd .pgrid--fill > :nth-child(4n+5):nth-last-child(-n+3) ~ * { display: none; } }
@media (min-width: 1181px) { .xd .pgrid--fill > :nth-child(5n+6):nth-last-child(-n+4), .xd .pgrid--fill > :nth-child(5n+6):nth-last-child(-n+4) ~ * { display: none; } }

