/* ==========================================================================
   Sultani Indonesia: Tema A "Arabesque Modern" (PRD Front End 5)
   Heading El Messiri, body Figtree. Warna tetap dari palet yang sudah ada.
   Mobile-first; breakpoint 768 / 1024 / 1280; container maks. 1200 px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font (self-host, subset Latin, font-display: swap)
   -------------------------------------------------------------------------- */
@font-face { font-family: "El Messiri"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/el-messiri-latin-600.woff2") format("woff2"); }
@font-face { font-family: "El Messiri"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/el-messiri-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700.woff2") format("woff2"); }

/* Fallback dengan penyesuaian metrik agar pergantian font tidak menggeser layout (CLS). */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"); size-adjust: 100.5%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "El Messiri Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 100%; descent-override: 40%; line-gap-override: 0%; }

/* --------------------------------------------------------------------------
   Design token (PRD Front End 5.5)
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #ec7303;         /* nilai asli dari CSS sebelumnya */
    --color-primary-hover: #f28a2a;
    --color-on-primary: #241b14;      /* teks gelap di atas oranye: kontras ±6:1 (AA) */
    --color-primary-text: #b35500;    /* oranye untuk teks di atas putih/krem (AA) */
    --color-gold: #b8892e;            /* ornamen, garis */
    --color-gold-text: #87631f;       /* teks emas kecil di atas krem (AA) */
    --color-cream: #faf7f2;
    --color-cream-2: #f3ede4;
    --color-surface: #ffffff;
    --color-ink: #241b14;
    --color-text: #3d342c;
    --color-muted: #6b5e54;
    --color-dark: #221913;
    --color-line: #ece5db;
    --color-success: #2f7d4f;
    --color-warning: #9a5c00;
    --color-danger: #9b3d2e;

    --font-heading: "El Messiri", "El Messiri Fallback", Georgia, serif;
    --font-body: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-card: 14px;
    --radius-btn: 10px;
    --radius-sm: 8px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --container: 1200px;
    --shadow: 0 1px 2px rgba(36, 27, 20, .05), 0 10px 30px rgba(36, 27, 20, .07);

    --header-h: 64px;
    --nav-h: 64px;
    --bar-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Pola bintang 8 sudut (dipakai dengan opacity rendah) */
    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23000'%3E%3Crect x='6' y='6' width='12' height='12'/%3E%3Crect x='6' y='6' width='12' height='12' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E");
    --star-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23b8892e'%3E%3Crect x='21' y='21' width='14' height='14'/%3E%3Crect x='21' y='21' width='14' height='14' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");

    /* Bootstrap */
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
    --bs-body-color: var(--color-text);
    --bs-body-bg: var(--color-surface);
    --bs-primary: var(--color-primary);
    --bs-primary-rgb: 236, 115, 3;
    --bs-link-color: var(--color-primary-text);
    --bs-link-color-rgb: 179, 85, 0;
    --bs-link-hover-color: var(--color-ink);
    --bs-border-color: var(--color-line);
}

@media (min-width: 1024px) { :root { --header-h: 76px; } }

.container { max-width: calc(var(--container) + 2 * var(--space-4)); }

/* --------------------------------------------------------------------------
   Dasar & tipografi (PRD Front End 5.4)
   -------------------------------------------------------------------------- */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

body.has-buy-bar { padding-bottom: calc(var(--nav-h) + var(--bar-h) + var(--safe-bottom) + var(--space-3)); }

@media (min-width: 1024px) { body, body.has-buy-bar { padding-bottom: 0; } }

h1, h2, h3, .h-heading { font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); letter-spacing: 0; }
h1, .h1-size { font-size: 38px; line-height: 1.15; }
h2, .h2-size { font-size: 28px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }

@media (min-width: 1024px) {
    h1, .h1-size { font-size: 56px; line-height: 1.1; }
    h2, .h2-size { font-size: 36px; }
    h3 { font-size: 20px; }
}

small, .text-small { font-size: 14px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-primary-text); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: var(--space-4); top: var(--space-2); z-index: 2000; background: var(--color-surface); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }

/* Label seksi: huruf biasa, diawali bintang emas (5.4, 5.6 no. 4) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gold-text);
    margin-bottom: var(--space-2);
}

.eyebrow::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--color-gold);
    -webkit-mask: var(--star) center / contain no-repeat;
    mask: var(--star) center / contain no-repeat;
}

/* Penekanan: garis bawah emas tipis (5.6 no. 1) */
.underline-gold { background: linear-gradient(var(--color-gold), var(--color-gold)) left 92% / 100% 3px no-repeat; padding-bottom: 2px; }

.price { font-family: var(--font-body); font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Tombol (5.6 no. 6: radius 10 px)
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-font-family: var(--font-body);
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--radius-btn);
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
}

.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.6rem; min-height: 52px; }
.btn-sm { --bs-btn-padding-y: .45rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .9rem; min-height: 40px; }

.btn-primary {
    --bs-btn-color: var(--color-on-primary);
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: var(--color-on-primary);
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: var(--color-primary-hover);
    --bs-btn-active-color: var(--color-on-primary);
    --bs-btn-active-bg: #d96a03;
    --bs-btn-active-border-color: #d96a03;
    --bs-btn-disabled-color: var(--color-on-primary);
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
    --bs-btn-focus-shadow-rgb: 236, 115, 3;
}

.btn-outline {
    --bs-btn-color: var(--color-ink);
    --bs-btn-bg: var(--color-surface);
    --bs-btn-border-color: #d6ccbf;
    --bs-btn-hover-color: var(--color-ink);
    --bs-btn-hover-bg: var(--color-cream);
    --bs-btn-hover-border-color: var(--color-ink);
    --bs-btn-active-color: var(--color-ink);
    --bs-btn-active-bg: var(--color-cream-2);
    --bs-btn-active-border-color: var(--color-ink);
}

.btn-link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 600; color: var(--color-ink); }
.btn-link-arrow:hover { color: var(--color-primary-text); }
.btn-link-arrow .bi-arrow-right { transition: transform .2s; }
.btn-link-arrow:hover .bi-arrow-right { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header (FE-01)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.3) blur(10px);
    -webkit-backdrop-filter: saturate(1.3) blur(10px);
    border-bottom: 1px solid var(--color-line);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { height: 44px; width: auto; display: block; }
.brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--color-ink); }
@media (min-width: 1024px) { .brand img { height: 56px; } }

.header-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    color: var(--color-ink);
    font-size: 1.2rem;
}

.header-icon:hover { background: var(--color-cream); color: var(--color-ink); }
.header-icon.is-wa { background: var(--color-primary); color: var(--color-on-primary); }
.header-icon.is-wa:hover { background: var(--color-primary-hover); }

/* Pencarian dengan saran langsung (FE-02) */
.search-field { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.search-field > .bi-search { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }

.search-field .form-control {
    height: 46px;
    padding-left: 42px;
    border-radius: var(--radius-btn);
    background: var(--color-cream);
    border: 1px solid transparent;
    font-size: 15px;
}

.search-field .form-control:focus { background: var(--color-surface); border-color: #efb27a; box-shadow: 0 0 0 4px rgba(236, 115, 3, .14); }

.suggest-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1040;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: var(--space-2);
    max-height: 70vh;
    overflow: auto;
}

.suggest-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-sm); color: var(--color-text); min-height: 44px; }
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--color-cream); color: var(--color-text); }
.suggest-item img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-cream-2); flex-shrink: 0; }
.suggest-item strong { display: block; color: var(--color-ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.suggest-item small { color: var(--color-muted); }
.suggest-item .price { margin-left: auto; color: var(--color-primary-text); white-space: nowrap; font-size: 14px; }
.suggest-empty, .suggest-all { display: block; padding: var(--space-3); font-size: 14px; color: var(--color-muted); }
.suggest-all { font-weight: 600; color: var(--color-primary-text); border-top: 1px solid var(--color-line); margin-top: var(--space-1); }

/* --------------------------------------------------------------------------
   Bottom navigation (PRD 4.4) & tombol WhatsApp mengambang (FE-04)
   -------------------------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-line);
}

.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--color-muted); font-size: 12px; font-weight: 600; }
.bottom-nav a .bi { font-size: 1.3rem; line-height: 1; }
.bottom-nav a.active { color: var(--color-primary-text); }
.bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-primary); }

.wa-float {
    position: fixed;
    right: var(--space-4);
    bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--space-4));
    z-index: 1028;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(36, 27, 20, .22);
    opacity: 0;
    transform: translateY(16px) scale(.9);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { color: var(--color-on-primary); background: var(--color-primary-hover); }

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */
.section { padding: var(--space-12) 0; }
.section-cream { background: var(--color-cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: var(--space-6); }
.page-head h1 { font-size: 32px; margin: 0; }
@media (min-width: 1024px) {
    .section { padding: var(--space-16) 0 80px; }
    .section-head { margin-bottom: var(--space-8); }
    .page-head h1 { font-size: 44px; }
}

.empty-state { text-align: center; color: var(--color-muted); padding: var(--space-12) var(--space-6); background: var(--color-cream); border-radius: var(--radius-card); }
.empty-state > .bi { font-size: 2rem; color: var(--color-gold); display: block; margin-bottom: var(--space-3); }
.empty-state h2 { font-size: 22px; margin-bottom: var(--space-2); }
.empty-state p { max-width: 440px; margin: 0 auto var(--space-4); }

/* Baris geser horizontal di HP */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-1); scrollbar-width: none; }
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; }
@media (min-width: 768px) { .scroll-row { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .scroll-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: var(--space-6); } }

/* --------------------------------------------------------------------------
   Bingkai gambar produk: persegi 1:1 dengan sudut membulat halus
   (menggantikan bingkai lengkung atas permintaan pemilik proyek)
   -------------------------------------------------------------------------- */
.media-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-cream-2);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-line);
}

.media-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Banner slider beranda (FE-10..12)
   Banner gambar dalam bingkai bersudut bulat, titik navigasi di bawah.
   -------------------------------------------------------------------------- */
.hero-banner { padding: var(--space-4) 0 var(--space-2); }
@media (min-width: 1024px) { .hero-banner { padding: var(--space-6) 0 var(--space-4); } }

.banner-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--color-line);
    background: var(--color-cream);
}

.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: start; }
.banner-slide a { display: block; }
.banner-slide img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }

.banner-dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); }
.banner-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d9d0c4; transition: background .2s, transform .2s; }
.banner-dots button[aria-current="true"] { background: var(--color-primary); transform: scale(1.15); }
/* Area sentuh 44 px tanpa membesarkan titik */
.banner-dots button { position: relative; }
.banner-dots button::after { content: ""; position: absolute; inset: -17px; }

/* Banner bawaan (tanpa gambar banner dari admin) */
.banner-default {
    display: grid;
    gap: var(--space-6);
    padding: var(--space-8) var(--space-6);
    background:
        radial-gradient(circle at 100% 0%, rgba(236, 115, 3, .16) 0 120px, transparent 121px),
        radial-gradient(circle at 0% 100%, rgba(184, 137, 46, .14) 0 90px, transparent 91px),
        var(--color-surface);
}

.banner-default::before {
    content: "";
    position: absolute;
    left: var(--space-6);
    bottom: var(--space-6);
    width: 72px;
    height: 72px;
    background: var(--star-pattern) 0 0 / 18px 18px;
    opacity: .35;
    pointer-events: none;
}

.banner-copy { position: relative; z-index: 1; }
.banner-kicker { display: inline-block; font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--color-primary-text); margin-bottom: var(--space-1); }
.banner-kicker::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--color-primary); margin-top: var(--space-2); }
.banner-default h1 { margin: var(--space-2) 0 var(--space-3); font-size: 34px; line-height: 1.1; }
.banner-default h1 span { display: block; color: var(--color-primary-text); }
.banner-copy p { color: var(--color-muted); max-width: 30rem; margin-bottom: var(--space-6); }
.banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }

.btn-banner {
    --bs-btn-color: var(--color-on-primary);
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: var(--color-on-primary);
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: var(--color-primary-hover);
    --bs-btn-active-color: var(--color-on-primary);
    --bs-btn-active-bg: #d96a03;
    --bs-btn-border-radius: 999px;
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-font-size: 1.05rem;
    min-height: 52px;
    box-shadow: 0 8px 20px rgba(236, 115, 3, .28);
}

.banner-product { position: relative; z-index: 1; display: block; width: min(78%, 320px); margin-inline: auto; }

.banner-product::before {
    content: "";
    position: absolute;
    inset: 8% -6% -4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 115, 3, .14), rgba(236, 115, 3, 0) 70%);
    z-index: -1;
}

.banner-product img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: 0 18px 40px rgba(36, 27, 20, .16); }

.banner-price {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 112%;
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.banner-price strong { color: var(--color-primary-text); font-variant-numeric: tabular-nums; }

.banner-features { position: relative; z-index: 1; list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); }
.banner-features li { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; color: var(--color-ink); line-height: 1.3; font-size: 15px; }

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    color: var(--color-primary-text);
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(36, 27, 20, .1);
    border: 1px solid var(--color-line);
}

@media (min-width: 768px) {
    .banner-default { grid-template-columns: 1.2fr 1fr; align-items: center; padding: var(--space-12); }
    .banner-features { grid-column: 1 / -1; margin-top: var(--space-6); }
}

@media (min-width: 1024px) {
    .banner-default { grid-template-columns: 1.25fr 1fr auto; gap: var(--space-8); min-height: 440px; max-height: 640px; padding: var(--space-12) 56px; }
    .banner-default h1 { font-size: 52px; }
    .banner-kicker { font-size: 26px; }
    .banner-product { width: 100%; max-width: 360px; }
    .banner-features { grid-column: auto; grid-template-columns: 1fr; gap: var(--space-6); margin: 0; }
    .banner-features li { font-size: 16px; max-width: 170px; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* Strip informasi di bawah banner gambar (FE-13) */
.info-strip { padding: var(--space-3) 0 0; }
.info-strip ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.info-strip ul::-webkit-scrollbar { display: none; }
.info-strip li { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); font-size: 14px; font-weight: 600; color: var(--color-ink); }
.info-strip li .bi { color: var(--color-primary-text); }
@media (min-width: 1024px) { .info-strip ul { justify-content: center; } }

/* --------------------------------------------------------------------------
   Kartu produk (FE-20..22)
   -------------------------------------------------------------------------- */
.product-grid { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
@media (min-width: 1024px) { .product-grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; } }

/* Kartu kotak ala marketplace: latar putih, garis tipis, isi berpadding, font Roboto */
.product-card {
    --card-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--card-font);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.product-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 14px rgba(36, 27, 20, .12); transform: translateY(-2px); }
.product-card .media-frame { border: 0; border-radius: 0; }
.product-card .media-frame img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .media-frame img { transform: scale(1.04); }
.product-card.is-sold-out .media-frame img { filter: grayscale(.75); opacity: .7; }

.product-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #cdbfae; }

.badge-promo, .badge-soldout {
    position: absolute;
    z-index: 2;
    top: var(--space-2);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.badge-promo { left: var(--space-2); background: var(--color-primary); color: var(--color-on-primary); }
.badge-soldout { right: var(--space-2); background: var(--color-dark); color: #fff; }

.product-card-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; flex: 1; }
.product-card-meta { font-size: 13px; font-weight: 600; color: var(--color-gold-text); }
.product-card .product-card-meta { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-title {
    font-family: var(--card-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    min-height: calc(14px * 1.4 * 2);
    margin: 0 0 var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Seluruh kartu dapat diklik: tautan judul menutup kartu */
.product-card-link { color: var(--color-ink); }
.product-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card:hover .product-card-link { color: var(--color-ink); }
.product-card-link:focus-visible { outline: none; }
.product-card:has(.product-card-link:focus-visible) { outline: 2px solid var(--color-primary-text); outline-offset: 2px; }

.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin-top: auto; }
.price-now { font-size: 18px; font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.price-old { font-size: 14px; color: var(--color-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .price-now { font-size: 20px; } }
.product-card .price-now { font-size: 16px; font-weight: 500; color: var(--color-primary-text); }
.product-card .price-old { font-size: 12px; }

.stock-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; margin-top: 2px; }
.stock-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-available { color: var(--color-success); }
.stock-low { color: var(--color-warning); }
.stock-out { color: var(--color-danger); }

/* Tombol cepat WhatsApp di kartu (FE-21): selalu tampil di HP, saat hover di desktop */
.card-wa {
    position: absolute;
    z-index: 3;
    right: var(--space-3);
    top: calc(var(--card-media-h, 0px) - 56px);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-btn);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(36, 27, 20, .18);
}

.card-wa:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.card-wa .label { display: none; font-size: 14px; font-weight: 600; }
.product-card-media { position: relative; }
.product-card-media .card-wa { top: auto; bottom: var(--space-2); right: var(--space-2); width: 38px; height: 38px; font-size: 1rem; }
.product-card-media .card-wa .label { font-size: 13px; font-weight: 500; }

@media (hover: hover) and (min-width: 1024px) {
    .product-card-media .card-wa {
        left: var(--space-2);
        right: var(--space-2);
        width: auto;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .2s, transform .2s;
    }

    .product-card-media .card-wa .label { display: inline; }
    .product-card:hover .card-wa, .card-wa:focus-visible { opacity: 1; transform: none; }
}

/* Satu produk: layout sorotan agar tidak ada ruang kosong lebar (FE-22, temuan no. 5) */
.product-spotlight { display: grid; gap: var(--space-6); align-items: center; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: var(--space-4); position: relative; }
.product-spotlight .media-frame { max-width: 360px; width: 100%; margin-inline: auto; }
.product-spotlight h3 { font-size: 26px; margin: var(--space-1) 0 var(--space-3); }
.product-spotlight .price-row { margin: var(--space-3) 0 var(--space-4); }
.product-spotlight .price-now { font-size: 24px; }
.product-spotlight .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); position: relative; z-index: 2; }
@media (min-width: 768px) { .product-spotlight { grid-template-columns: minmax(240px, 360px) 1fr; padding: var(--space-6) var(--space-8); gap: var(--space-12); } .product-spotlight h3 { font-size: 32px; } }

.load-more { text-align: center; margin-top: 40px; }
.btn-load-more { min-width: 240px; }

/* Skeleton saat memuat (FE-24) */
.skeleton .media-frame, .skeleton .sk-line { background: linear-gradient(90deg, var(--color-cream-2) 0%, #f9f5ef 50%, var(--color-cream-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

.sk-line { height: 14px; border-radius: 4px; margin-top: var(--space-3); }
.sk-line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Filter katalog (FE-23)
   -------------------------------------------------------------------------- */
.catalog-tools { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-6); }
.catalog-search { flex: 1 1 280px; }
.catalog-search .search-field { max-width: none; margin: 0; }
.catalog-search .form-control { height: 48px; background: var(--color-surface); border-color: #ddd3c6; }

.filter-panel { border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); margin-bottom: var(--space-6); }
.filter-panel > summary { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); min-height: 48px; font-weight: 600; cursor: pointer; list-style: none; color: var(--color-ink); }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary .count { background: var(--color-primary); color: var(--color-on-primary); border-radius: 999px; font-size: 12px; padding: 0 7px; line-height: 20px; }
.filter-panel > summary .bi-chevron-down { margin-left: auto; transition: transform .2s; }
.filter-panel[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.filter-body { padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.filter-body .full { grid-column: 1 / -1; }
.filter-body label, .filter-body legend { font-size: 14px; font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-1); }
.filter-body .form-select, .filter-body .form-control { min-height: 44px; border-radius: var(--radius-btn); }
.filter-actions { display: flex; gap: var(--space-3); align-items: center; }
@media (min-width: 1024px) { .filter-body { grid-template-columns: repeat(5, 1fr) auto; align-items: end; } .filter-body .full { grid-column: auto; } }

.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(236, 115, 3, .14); border-color: #efb27a; }
.form-control:focus, .form-select:focus { border-color: #efb27a; box-shadow: 0 0 0 4px rgba(236, 115, 3, .14); }

/* --------------------------------------------------------------------------
   Keunggulan: strip bernomor 01–04 (FE-60, 5.6 no. 5 & 8)
   -------------------------------------------------------------------------- */
.advantages { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--color-line); }
.advantage { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--color-line); }
.advantage-num { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--color-gold-text); letter-spacing: .04em; padding-top: 4px; }
.advantage-icon { width: 48px; height: 48px; color: var(--color-primary-text); margin-bottom: var(--space-2); }
.advantage h3 { margin: 0 0 var(--space-1); }
.advantage p { margin: 0; color: var(--color-muted); font-size: 15px; }
@media (min-width: 1024px) {
    .advantages { grid-template-columns: repeat(4, 1fr); border-top: 0; }
    .advantage { grid-template-columns: 1fr; padding: 0 var(--space-6); border-bottom: 0; border-left: 1px solid var(--color-line); }
    .advantage:first-child { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Promo & testimoni
   -------------------------------------------------------------------------- */
.promo-card { display: flex; flex-direction: column; height: 100%; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow .25s; }
.promo-card:hover { box-shadow: var(--shadow); }
.promo-card-media { aspect-ratio: 16 / 10; background: var(--color-cream-2); overflow: hidden; }
.promo-card-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-card-body { padding: var(--space-4) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.promo-card-body h3 { margin: 0; }
.promo-card-period { font-size: 14px; font-weight: 600; color: var(--color-primary-text); margin: 0; display: flex; align-items: center; gap: 6px; }
.promo-card-text { color: var(--color-muted); font-size: 15px; margin: 0; }
.promo-card-body .btn { align-self: flex-start; margin-top: auto; }

.countdown { display: inline-flex; gap: var(--space-2); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--color-ink); }
.countdown span { background: var(--color-cream); border-radius: 6px; padding: 2px 7px; }

.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); padding: var(--space-6); margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.testimonial-card blockquote { margin: 0; font-size: 16px; color: var(--color-ink); }
.testimonial-card .rating { color: #c98a12; font-size: 14px; }
.testimonial-card figcaption { margin-top: auto; font-size: 14px; color: var(--color-muted); }
.testimonial-card figcaption strong { color: var(--color-ink); }

.rich-text { line-height: 1.75; }
.rich-text img { border-radius: var(--radius-card); margin: var(--space-3) 0; }
.rich-text ul, .rich-text ol { padding-left: 1.25rem; }
.rich-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: var(--space-4) 0; font-size: 15px; }
.rich-text th, .rich-text td { border: 1px solid #e4d9c8; padding: var(--space-2) var(--space-3); vertical-align: top; min-width: 120px; }
.rich-text thead th, .rich-text tr:first-child > td, .rich-text tr:first-child > th { background: var(--color-cream); font-weight: 700; }

/* --------------------------------------------------------------------------
   Detail produk (FE-30..36)
   -------------------------------------------------------------------------- */
.breadcrumb { --bs-breadcrumb-divider-color: #b7aa9b; --bs-breadcrumb-item-active-color: var(--color-muted); font-size: 14px; flex-wrap: nowrap; margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb-item.active { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gallery-stage { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-card); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-slide .media-frame { cursor: zoom-in; }
.gallery-slide .media-frame img { transition: transform .15s ease-out; }
.gallery-stage .badge-promo { top: var(--space-4); left: var(--space-4); }
.gallery-zoom-btn { position: absolute; right: var(--space-3); bottom: var(--space-3); z-index: 2; width: 44px; height: 44px; border-radius: var(--radius-btn); border: 0; background: rgba(255, 255, 255, .92); color: var(--color-ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-3); }
.gallery-dots span { width: 7px; height: 7px; border-radius: 4px; background: #d8cdbf; transition: width .2s; }
.gallery-dots span.active { width: 20px; background: var(--color-primary); }
.gallery-thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.gallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-cream-2); opacity: .65; box-shadow: 0 0 0 1px var(--color-line); transition: opacity .2s, box-shadow .2s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { opacity: 1; box-shadow: 0 0 0 2px var(--color-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 14, 9, .88); }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; border-radius: var(--radius-card); }
.lightbox-close { position: absolute; top: var(--space-2); right: var(--space-2); width: 44px; height: 44px; border-radius: var(--radius-btn); border: 0; background: rgba(255, 255, 255, .92); font-size: 1.2rem; }

.product-info h1 { font-size: 30px; margin: var(--space-1) 0 var(--space-3); }
@media (min-width: 1024px) { .product-info { position: sticky; top: calc(var(--header-h) + var(--space-6)); padding-left: var(--space-4); } .product-info h1 { font-size: 40px; } }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); color: var(--color-muted); font-size: 15px; }
.product-meta .stock-label { margin: 0; font-size: 14px; }

.price-block { margin: var(--space-6) 0; padding: var(--space-4); border-radius: var(--radius-card); background: var(--color-cream); }
.price-block .price-now { font-size: 26px; }
.price-block .price-old { font-size: 16px; }
.price-block .badge-promo-inline { display: inline-block; background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 6px; margin-bottom: var(--space-2); }
.price-block .shipping-promo { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); padding: 4px 10px; border-radius: 999px; background: #eef6ee; color: #1f6b35; font-size: 14px; font-weight: 600; }
.price-block .promo-note { font-size: 14px; color: var(--color-primary-text); font-weight: 600; margin-top: var(--space-1); }

.variant-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.variant-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-4); border: 1px solid #d6ccbf; border-radius: var(--radius-btn); color: var(--color-ink); font-weight: 600; font-size: 15px; }
.variant-chip:hover { border-color: var(--color-ink); color: var(--color-ink); }
.variant-chip.active { border-color: var(--color-primary); background: #fff4ea; box-shadow: inset 0 0 0 1px var(--color-primary); }
.variant-chip.is-out { color: var(--color-muted); text-decoration: line-through; }

.qty { display: inline-flex; align-items: center; border: 1px solid #d6ccbf; border-radius: var(--radius-btn); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: var(--color-surface); font-size: 1.1rem; color: var(--color-ink); }
.qty button:hover { background: var(--color-cream); }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--color-ink); margin-bottom: var(--space-2); }

/* CTA (FE-33): WhatsApp utama, Shopee & TikTok Shop sekunder */
.buy-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-6) 0 var(--space-2); }
.buy-buttons .btn-whatsapp { grid-column: 1 / -1; }
.btn-buy { --bs-btn-padding-y: .8rem; }
.btn-buy .bi { font-size: 1.15rem; }
.btn-buy.btn-whatsapp { --bs-btn-color: var(--color-on-primary); --bs-btn-bg: var(--color-primary); --bs-btn-border-color: var(--color-primary); --bs-btn-hover-color: var(--color-on-primary); --bs-btn-hover-bg: var(--color-primary-hover); --bs-btn-hover-border-color: var(--color-primary-hover); --bs-btn-active-color: var(--color-on-primary); --bs-btn-active-bg: #d96a03; min-height: 52px; }
.btn-buy.btn-shopee, .btn-buy.btn-tiktok-shop, .btn-buy.btn-tokopedia { --bs-btn-color: var(--color-ink); --bs-btn-bg: var(--color-surface); --bs-btn-border-color: #d6ccbf; --bs-btn-hover-color: var(--color-ink); --bs-btn-hover-bg: var(--color-cream); --bs-btn-hover-border-color: var(--color-ink); }
.btn-buy.btn-shopee .bi { color: #d73211; }
.btn-buy.btn-tokopedia .bi { color: #03ac0e; }
.btn-buy.btn-tiktok-shop .bi { color: #111; }
/* Tombol marketplace: lebar dan gaya sama, teks boleh dua baris. */
.buy-buttons .btn-buy:not(.btn-whatsapp) { --bs-btn-font-size: 14px; --bs-btn-padding-x: .5rem; line-height: 1.2; min-height: 48px; white-space: normal; }
/* WhatsApp tombol utama. */
.buy-buttons .btn-whatsapp { min-height: 56px; --bs-btn-font-size: 17px; box-shadow: 0 10px 22px rgba(236, 115, 3, .28); }
.btn-buy:disabled { --bs-btn-disabled-bg: var(--color-cream-2); --bs-btn-disabled-border-color: var(--color-cream-2); --bs-btn-disabled-color: #8d8174; --bs-btn-disabled-opacity: 1; cursor: not-allowed; }
.btn-buy:disabled .bi { color: inherit; }

.share-btn { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--color-muted); }
.share-btn:hover { color: var(--color-ink); }

.soldout-note { display: flex; gap: var(--space-2); background: #fbefeb; color: var(--color-danger); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: 15px; margin-top: var(--space-4); }

/* Accordion (FE-34) */
.accordion-list { margin-top: var(--space-8); border-top: 1px solid var(--color-line); }
.accordion-list details { border-bottom: 1px solid var(--color-line); }
.accordion-list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; cursor: pointer; list-style: none; font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--color-ink); }
.accordion-list summary::-webkit-details-marker { display: none; }
.accordion-list summary .bi { font-size: 1rem; transition: transform .2s; color: var(--color-muted); }
.accordion-list details[open] summary .bi { transform: rotate(45deg); }
.accordion-list .accordion-content { padding: 0 0 var(--space-6); color: var(--color-text); }

/* Sticky purchase bar mobile (PRD 5.3) */
.buy-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-bottom)); z-index: 1025; padding: var(--space-2) var(--space-3); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--color-line); box-shadow: 0 -8px 24px rgba(36, 27, 20, .06); }
.buy-bar-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.buy-bar .btn-buy:not(.btn-whatsapp) { gap: 6px; --bs-btn-font-size: 13px; --bs-btn-padding-x: .3rem; --bs-btn-padding-y: .45rem; min-height: 46px; }
.buy-bar .btn-buy:not(.btn-whatsapp) .bi { font-size: 1.05rem; }
/* Ponsel/tablet: di bagian detail hanya WhatsApp; tombol marketplace pindah ke bar bawah. */
@media (max-width: 991.98px) {
    .buy-buttons { grid-template-columns: 1fr; }
    .buy-buttons .btn-buy:not(.btn-whatsapp) { display: none; }
}
.buy-bar .btn-buy { --bs-btn-padding-x: .4rem; --bs-btn-padding-y: .55rem; --bs-btn-font-size: 14px; gap: 6px; min-height: 48px; }
.buy-bar .btn-buy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar-note { text-align: center; font-size: 13px; font-weight: 600; color: var(--color-danger); margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Kontak (FE-50)
   -------------------------------------------------------------------------- */
.contact-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-line); border-radius: var(--radius-card); color: var(--color-text); height: 100%; background: var(--color-surface); transition: border-color .2s, box-shadow .2s; }
.contact-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow); color: var(--color-text); }
.contact-card strong { color: var(--color-ink); }
.contact-icon { width: 48px; height: 48px; border-radius: var(--radius-btn); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; background: var(--color-cream); color: var(--color-ink); }
.contact-icon.is-primary { background: var(--color-primary); color: var(--color-on-primary); }
.contact-form { background: var(--color-cream); border-radius: var(--radius-card); padding: var(--space-6); }
.contact-form .form-control { border-radius: var(--radius-btn); min-height: 48px; background: var(--color-surface); }
.contact-form label { font-weight: 600; color: var(--color-ink); font-size: 14px; margin-bottom: var(--space-1); }

/* --------------------------------------------------------------------------
   Footer (FE-70, FE-71)
   -------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--color-dark); color: #c4b8a9; padding: var(--space-8) 0 var(--space-6); margin-top: var(--space-16); font-size: 14px; line-height: 1.6; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--star-pattern) 0 0 / 56px 56px; opacity: .05; pointer-events: none; }
.site-footer .container { position: relative; }
.site-footer a { color: #efe6da; text-decoration: none; }
.site-footer a:hover { color: var(--color-primary-hover); }
.footer-logo { display: inline-block; background: var(--color-cream); border-radius: var(--radius-card); padding: var(--space-2) var(--space-3); }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: #fff; }
.footer-about { max-width: 340px; font-size: 13px; margin-bottom: var(--space-3); }
.footer-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: #e7cc92; margin-bottom: var(--space-2); }
.footer-links { font-size: 13px; margin: 0; }
.footer-links li { margin-bottom: 2px; break-inside: avoid; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 28px; }
.footer-links-cols { columns: 2; column-gap: var(--space-4); }
.social-link { width: 36px; height: 36px; border-radius: var(--radius-btn); border: 1px solid rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.social-link:hover { border-color: var(--color-primary-hover); }
.footer-seo { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: var(--space-6); padding-top: var(--space-4); font-size: 12.5px; color: #a89b8b; }
.footer-seo p { margin-bottom: var(--space-3); }
.footer-seo p:not(.footer-tags) a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(239, 230, 218, .35); }
.footer-subtitle { font-family: inherit; font-size: 13px; font-weight: 700; color: #e7dccd; margin: var(--space-4) 0 var(--space-1); }
.footer-subtitle:first-child { margin-top: 0; }
.footer-tags { display: flex; flex-wrap: wrap; }
.footer-tags a { color: #c4b8a9; padding: 2px 0; }
.footer-tags a:not(:last-child)::after { content: "|"; color: rgba(255, 255, 255, .2); margin: 0 var(--space-2); }
.footer-tags a:hover { color: var(--color-primary-hover); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: var(--space-4); padding-top: var(--space-4); font-size: 12.5px; color: #9c8f80; }

/* SEO-3: artikel */
.article-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line, #ece4d8); border-radius: var(--radius-card); overflow: hidden; }
.article-card-media { display: block; aspect-ratio: 16 / 9; background: var(--color-cream); }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #c9b79c; }
.article-card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.article-card-type { font-size: 12px; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; }
.article-card-title { font-size: 18px; line-height: 1.35; margin: 0; }
.article-card-title a { color: var(--color-ink); }
.article-card-title a:hover { color: var(--color-primary); }
.article-card-excerpt { font-size: 14px; color: var(--color-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-date { font-size: 13px; color: var(--color-muted); margin-top: auto; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: var(--space-2) 0 var(--space-3); }
.article-meta { font-size: 14px; color: var(--color-muted); }
.article-cover { width: 100%; height: auto; border-radius: var(--radius-card); margin: var(--space-4) 0 var(--space-6); }
.article-toc { background: var(--color-cream); border-radius: var(--radius-card); padding: var(--space-4); margin-bottom: var(--space-6); font-size: 15px; }
.article-toc summary { font-weight: 700; cursor: pointer; }
.article-toc ol { margin: var(--space-3) 0 0; padding-left: 1.25rem; }
.article-toc li { margin-bottom: var(--space-1); }
.article-body { font-size: 17px; }
.article-body h2 { font-size: 26px; margin: var(--space-8) 0 var(--space-3); scroll-margin-top: 96px; }
.article-body h3 { font-size: 20px; margin: var(--space-6) 0 var(--space-2); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--color-primary); padding-left: var(--space-4); color: var(--color-muted); font-style: italic; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding: var(--space-4); border: 1px solid #ecd9bd; background: #fff8ef; border-radius: var(--radius-card); }
.article-cta p { font-size: 14px; color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .product-card:hover .media-frame img { transform: none; }
}

/* --------------------------------------------------------------------------
   Produk lainnya di detail produk (FE-35): baris geser ringkas
   -------------------------------------------------------------------------- */
.related-section { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.related-head h2 { font-size: 20px; margin: 0; }
.related-all { font-size: 14px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.related-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: var(--space-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 var(--space-2); }
.related-scroller::-webkit-scrollbar { display: none; }
.related-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; color: var(--color-text); text-decoration: none; min-width: 0; }
.related-card:hover { color: var(--color-text); }
.related-card:hover .related-name { color: var(--color-primary); }
.related-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--color-cream); border: 1px solid var(--color-line); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb .bi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #cdbfae; }
.related-badge { position: absolute; top: 6px; left: 6px; background: var(--color-primary); color: var(--color-on-primary); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.related-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--color-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.related-price { font-size: 14px; font-weight: 700; color: var(--color-primary); }
.related-price s { font-size: 12px; font-weight: 400; color: var(--color-muted); margin-left: 4px; }
.related-soldout { font-size: 12px; font-weight: 600; color: var(--color-danger); }
.related-card.is-sold-out img { filter: grayscale(.75); opacity: .7; }
@media (min-width: 576px) { .related-scroller { grid-auto-columns: 30%; } }
@media (min-width: 992px) {
    .related-section { margin-top: var(--space-12); }
    .related-head h2 { font-size: 24px; }
    .related-scroller { grid-auto-columns: calc((100% - 4 * var(--space-4)) / 5); gap: var(--space-4); }
}

/* Tombol "Beli via …" di bar bawah HP: dua baris kecil. */
.buy-via { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; min-width: 0; }
.buy-via small { font-size: 10px; font-weight: 500; opacity: .8; }
.buy-via strong { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Breadcrumb HP: satu baris, nama produk dipotong rapi. */
.breadcrumb-item { flex-shrink: 0; }
.breadcrumb-item.active { flex-shrink: 1; min-width: 0; }
@media (max-width: 575.98px) {
    .breadcrumb { font-size: 13px; margin-bottom: var(--space-3); }
    .breadcrumb-item + .breadcrumb-item { padding-left: .35rem; }
    .breadcrumb-item + .breadcrumb-item::before { padding-right: .35rem; }
}
