/* ==========================================================================
   Onix — toko contoh untuk mencoba widget livechat (views/livechat/store.php). Halaman mandiri yang meniru situs pelanggan:
   tidak memakai tokens.css aplikasi supaya widget tampil seperti di situs lain. Fase 5i: tampilan toko yang lebih nyata
   (ilustrasi produk dari img/store-products.svg, layanan, FAQ) + bilah uji dengan panduan.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.store-body {
    --ink: #1E262C; --ink-2: #4D5963; --ink-3: #6E7A84; --line: #E8E4DC; --surface: #FFFFFF; --page: #FAF9F6; --sale: #B4430E;
    margin: 0; background: var(--page); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
button { font: inherit; }
.store-body .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }

/* --- Bilah uji / demo ------------------------------------------------------------------------ */
.store-note { background: #1F2A33; color: #EEF2F5; font-size: 13.5px; }
.store-note.is-demo { background: #FE7F2D; color: #2A1406; }
.store-note-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: min(1120px, 100% - 40px); margin-inline: auto; padding-block: 9px; }
.store-note-badge { flex: none; padding: 2px 8px; border-radius: 4px; background: #FE7F2D; color: #2A1406; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.store-note.is-demo .store-note-badge { background: #2A1406; color: #FFE7D6; }
.store-note p { flex: 1 1 360px; min-width: 0; line-height: 1.45; }
.store-note-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.store-note-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: #FFFFFF; color: #1F2A33; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.store-note-button .icon { width: 15px; height: 15px; }
.store-note-button.is-plain { background: rgba(255, 255, 255, .12); color: inherit; }
.store-note.is-demo .store-note-button.is-plain { background: rgba(42, 20, 6, .1); }
.store-guide { flex-basis: 100%; }
.store-guide summary { display: inline-flex; align-items: center; gap: 4px; color: #C9D4DC; font-weight: 600; cursor: pointer; list-style: none; }
.store-guide summary::-webkit-details-marker { display: none; }
.store-guide summary .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.store-guide[open] summary .icon { transform: rotate(180deg); }
.store-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; margin-top: 10px; padding: 0 0 4px; list-style: none; counter-reset: step; }
.store-guide li { position: relative; padding-left: 30px; line-height: 1.5; color: #DCE3E8; counter-increment: step; }
.store-guide li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 12px; font-weight: 700; }

/* --- Header ---------------------------------------------------------------------------------- */
.store-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 246, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .store-header { background: var(--page); } }
.store-header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.store-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.store-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--page); font-size: 15px; }
.store-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.store-nav a { color: var(--ink-2); text-decoration: none; }
.store-nav a:hover { color: var(--ink); }

/* --- Tombol ---------------------------------------------------------------------------------- */
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--page); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.store-button:hover { opacity: .9; }
.store-button:active { transform: scale(.97); }
.store-button.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.store-button.is-small { height: 38px; padding: 0 16px; font-size: 14px; }
.store-button.is-light { background: #FFFFFF; color: var(--ink); }

/* --- Hero ------------------------------------------------------------------------------------ */
.store-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding-block: 56px 64px; }
.store-eyebrow { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A6A3A; }
.store-hero h1 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.store-lede { max-width: 50ch; margin-top: 16px; color: var(--ink-2); font-size: 16.5px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store-perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.store-perks li { display: inline-flex; align-items: center; gap: 8px; }
.store-perks .icon { color: #8A6A3A; }
.store-hero-art { position: relative; aspect-ratio: 5 / 4.4; }
.store-hero-main, .store-hero-side { position: absolute; display: grid; place-items: center; border-radius: 22px; background: var(--tone-bg); color: var(--tone); }
.store-hero-main { inset: 0 0 12% 14%; }
.store-hero-main .store-art { width: 72%; height: 86%; }
.store-hero-side { left: 0; bottom: 0; width: 38%; aspect-ratio: 1; box-shadow: 0 0 0 6px var(--page), 0 18px 40px -18px rgba(30, 38, 44, .35); }
.store-hero-side .store-art { width: 74%; height: 74%; }
.store-hero-card { position: absolute; right: 6%; top: 7%; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 11px 14px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 14px 34px -14px rgba(30, 38, 44, .35); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.store-hero-card b { display: block; color: var(--ink); font-size: 13.5px; }
.store-online { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 4px rgba(34, 163, 90, .16); }

/* --- Bagian ---------------------------------------------------------------------------------- */
.store-section { padding-block: 36px; scroll-margin-top: 72px; }
.store-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 22px; }
.store-section-head h2 { font-size: 26px; letter-spacing: -.02em; }
.store-section-head p { color: var(--ink-3); font-size: 14.5px; }

/* --- Produk ---------------------------------------------------------------------------------- */
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.store-card { display: flex; flex-direction: column; gap: 14px; }
.store-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 18px; background: var(--tone-bg); color: var(--tone); overflow: hidden; }
.store-photo .store-art { width: 66%; height: 66%; transition: transform .35s ease; }
.store-card:hover .store-photo .store-art { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .store-card:hover .store-photo .store-art { transform: none; } }
.store-tag { position: absolute; top: 14px; left: 14px; padding: 3px 10px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 12px; font-weight: 600; }
.store-tag.is-sale { background: var(--sale); color: #FFFFFF; }
.store-card-body { display: grid; gap: 4px; }
.store-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.store-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.store-price b { font-size: 15.5px; }
.store-price s { color: var(--ink-3); font-size: 13.5px; }
.store-colors { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.store-swatches { display: inline-flex; gap: 4px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.swatch.is-sand { background: #D9C3A0; } .swatch.is-white { background: #F7F6F2; } .swatch.is-charcoal { background: #2F3B45; }
.swatch.is-sky { background: #9DB8D2; } .swatch.is-olive { background: #A9AE7B; } .swatch.is-khaki { background: #C8B37E; }
.swatch.is-indigo { background: #4F6A9A; } .swatch.is-black { background: #1B1F23; } .swatch.is-rose { background: #D9A79B; }
.store-ask { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; margin-top: auto; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.store-ask:hover { background: var(--ink); color: var(--page); box-shadow: none; }
.store-ask .icon { width: 16px; height: 16px; }

/* Nada warna ilustrasi: --tone = warna produk, --tone-bg = latar foto. */
.tone-sand { --tone: #D9C3A0; --tone-bg: #F3ECE1; }
.tone-sky { --tone: #9DB8D2; --tone-bg: #E8F0F6; }
.tone-olive { --tone: #B5B98A; --tone-bg: #EEEFE3; }
.tone-indigo { --tone: #4F6A9A; --tone-bg: #E6EAF3; }
.tone-stone { --tone: #2F3B45; --tone-bg: #EFECE6; }
.tone-rose { --tone: #D9A79B; --tone-bg: #F6E8E4; }

/* --- Layanan --------------------------------------------------------------------------------- */
.store-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.store-services li { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.store-service-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: #F3ECE1; color: #8A6A3A; }
.store-service-icon .icon { width: 20px; height: 20px; }
.store-services h3 { font-size: 15.5px; font-weight: 600; }
.store-services p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* --- FAQ ------------------------------------------------------------------------------------- */
.store-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.store-faq details { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.store-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.store-faq summary::-webkit-details-marker { display: none; }
.store-faq summary .icon { color: var(--ink-3); transition: transform .2s ease; }
.store-faq details[open] summary .icon { transform: rotate(45deg); }
.store-faq details p { padding: 0 18px 16px; color: var(--ink-2); font-size: 14.5px; }

/* --- Ajakan chat & footer -------------------------------------------------------------------- */
.store-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-block: 28px 8px; padding: 30px 32px; border-radius: 22px; background: var(--ink); color: #F3F1EC; }
.store-cta h2 { font-size: 24px; letter-spacing: -.02em; }
.store-cta p { margin-top: 6px; color: #C3CBD1; }
.store-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); }
.store-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 36px 28px; }
.store-footer-brand p { max-width: 36ch; margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.store-footer-col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.store-footer-title { margin-bottom: 2px; color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.store-footer-col a, .store-footer-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.store-footer-col a:hover, .store-footer-link:hover { color: var(--ink); text-decoration: underline; }
/* Ruang bawah untuk tombol widget yang melayang. */
.store-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 104px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* --- Responsif ------------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .store-hero { gap: 32px; padding-block: 36px 48px; }
    .store-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-guide ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .store-nav { display: none; }
    .store-header-inner { justify-content: space-between; min-height: 58px; }
    .store-hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
    .store-hero-art { width: min(440px, 100%); margin-inline: auto; }
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .store-faq { grid-template-columns: minmax(0, 1fr); }
    .store-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-footer-brand { grid-column: 1 / -1; }
    .store-cta { padding: 24px; }
}
@media (max-width: 480px) {
    .store-note p { flex-basis: 100%; }
    .store-photo { border-radius: 14px; }
    .store-card h3 { font-size: 14.5px; }
    .store-ask { height: 38px; padding: 0 10px; font-size: 13px; }
    .store-ask .icon { display: none; }
    .store-colors > span:last-child { display: none; }
    .store-services { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    /* Kartu layanan mendatar di HP: ikon di kiri, judul & teks di kanan. */
    .store-services li { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; padding: 16px; }
    .store-service-icon { grid-row: span 2; margin-bottom: 0; }
    .store-hero-card { right: 2%; max-width: 210px; }
}
