/* Storefront-only refinement. Product data, links and prices remain server-rendered. */
body:not(.admin-body) .jdl-section {
    display: block;
    min-width: 0;
    color: var(--theme-primary, var(--hijau));
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.015em;
    text-transform: none;
    overflow-wrap: anywhere;
}
body:not(.admin-body) .jdl-section::before,
body:not(.admin-body) .jdl-section::after { display: none; content: none; }
body:not(.admin-body) .jdl-section + h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.3; font-weight: 600; letter-spacing: -.035em; padding-bottom: 16px; }

/* Catalog hierarchy: image/sold badge > grouped name/variants > grouped pricing. */
body:not(.admin-body) .card-group1.no-scroll:has(> .store-product-card) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 32px 20px; }
body:not(.admin-body) .store-product-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #292929; text-decoration: none; }
body:not(.admin-body) .store-product-card:hover { transform: none; box-shadow: none; color: #292929; }
body:not(.admin-body) .store-product-card:focus-visible { outline: 2px solid var(--hijau); outline-offset: 5px; }
body:not(.admin-body) .store-product-card div { min-width: 0; width: auto; }
body:not(.admin-body) .store-product-card > .product-card-media { width: 100%; margin: 0; overflow: hidden; border-radius: 6px; background: var(--theme-soft, #f7f5f2); }
body:not(.admin-body) .store-product-card .img-card1 { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; border: 0; border-radius: 6px; opacity: 1; transform: none; }
body:not(.admin-body) .store-product-card .img-card1-wm { inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; z-index: 1; pointer-events: none; }
body:not(.admin-body) .store-product-card:hover .img-card1 { transform: none; opacity: 1; }
body:not(.admin-body) .store-product-card > .product-card-body { width: 100%; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-inline: 2px; transform: none; }
body:not(.admin-body) .store-product-card .product-card-heading,
body:not(.admin-body) .store-product-card .product-card-pricing { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; }
/* Reserve equal title and variant rows so prices line up across a grid row. */
body:not(.admin-body) .store-product-card .product-card-heading > .varian { width: 100%; height: 1.6em; min-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.admin-body) .store-product-card .product-card-heading > .product-card-variants { display: flex; align-items: center; gap: 6px; }
body:not(.admin-body) .store-product-card .product-card-variant-preview { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.admin-body) .store-product-card .product-card-variant-count { flex: 0 0 auto; white-space: nowrap; color: var(--theme-primary, var(--hijau)); }
body:not(.admin-body) .store-product-card .product-card-pricing { min-height: 3.25rem; }
body:not(.admin-body) .store-product-card:hover .product-card-body { transform: none; }
body:not(.admin-body) .store-product-card h5 { order: 0; margin: 0; color: #292929; font-size: .8125rem; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; height: 3em; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
body:not(.admin-body) .store-product-card .container-varian { order: 1; width: 100%; margin: 0 !important; padding: 0 !important; overflow: visible; }
body:not(.admin-body) .store-product-card .container-varian > div { display: flex; width: 100%; flex-wrap: wrap; gap: 2px 7px; }
body:not(.admin-body) .store-product-card .varian { order: 1; max-width: 100%; margin: 0 !important; padding: 0; background: transparent; border: 0; border-radius: 0; color: #666; font-size: .75rem; font-weight: 400; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
body:not(.admin-body) .store-product-card .container-varian .varian + .varian::before { content: '·'; margin-right: 7px; }
body:not(.admin-body) .store-product-card .harga { order: 2; display: block !important; margin-top: 0 !important; color: var(--theme-primary, var(--hijau)); font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body:not(.admin-body) .store-product-card .product-card-price-meta { order: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 8px !important; max-width: 100%; }
body:not(.admin-body) .store-product-card .diskon-coret { margin: 0; color: #767676; font-size: .75rem !important; line-height: 1.5; overflow-wrap: anywhere; }
body:not(.admin-body) .store-product-card .diskon-bwh { display: inline-block; position: static; margin: 0; padding: 2px 5px; border-radius: 3px; background: var(--theme-soft-1, var(--hijaumuda1)); color: var(--theme-primary, var(--hijau)); font-size: .75rem; font-weight: 600; line-height: 1.4; }
body:not(.admin-body) .store-product-card .terjual-badge { display: block; position: absolute; right: 8px; bottom: 8px; z-index: 2; max-width: calc(100% - 16px); margin: 0; padding: 3px 7px; background: var(--theme-background, #fff); color: var(--theme-primary, var(--hijau)); border: 1px solid var(--theme-soft-2, #e7d7c9); border-radius: 4px; box-shadow: none; backdrop-filter: none; font-size: .6875rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; pointer-events: none; }
body:not(.admin-body) .store-product-card .product-card-body > .small { order: 5; font-size: .75rem; line-height: 1.5; }

/* Flash-sale items keep their price, savings and real stock information. */
body:not(.admin-body) .flash-sale-card { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
body:not(.admin-body) .flash-sale-card:hover { transform: none; box-shadow: none; }
body:not(.admin-body) .flash-sale-image { border-radius: 10px; }
body:not(.admin-body) .flash-sale-image img:not(.flash-sale-watermark) { object-fit: contain; }
body:not(.admin-body) .flash-sale-info { padding: 12px 0 0; }
body:not(.admin-body) .flash-sale-info h3 { height: auto; display: block; overflow: visible; font-weight: 500; line-height: 1.5; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
body:not(.admin-body) .flash-sale-price span { font-weight: 700; }
body:not(.admin-body) .flash-sale-badge { box-shadow: none; border-radius: 5px; font-size: .7rem; font-weight: 600; }

@media (max-width: 575.98px) {
    body:not(.admin-body) .card-group1.no-scroll:has(> .store-product-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; padding-inline: 0; }
    body:not(.admin-body) .store-product-card { gap: 10px; }
    body:not(.admin-body) .store-product-card > .product-card-body { gap: 8px; }
    body:not(.admin-body) .store-product-card h5 { font-size: .78125rem; line-height: 1.5; }
    body:not(.admin-body) .store-product-card .harga { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .store-product-card, .store-product-card * { transition: none !important; } }

/* Home benefits: inherit the active admin-selected theme; no raster icon colors. */
.home-benefits {
    margin-top: clamp(32px, 5vw, 64px);
    padding-block: 32px;
    background: transparent;
    color: var(--theme-primary);
    border-top: 1px solid var(--theme-soft-2);
    border-bottom: 0;
}
.home-benefits-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }

/* Voucher announcement modal */
.buyer-layout .modal-voucher {
    position: fixed;
    z-index: 1200 !important;
    inset: 0 !important;
    overflow-y: auto;
    padding: 20px;
    background: rgb(32 31 27 / 58%);
    backdrop-filter: blur(5px);
    overscroll-behavior: contain;
}
.buyer-layout .container-notif-voucher {
    position: relative;
    width: min(100%, 460px);
    max-height: min(90vh, 780px);
    overflow: auto;
    border: 1px solid rgb(47 45 32 / 10%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgb(24 23 19 / 28%);
    animation: voucher-notice-enter .22s ease-out both;
}
.buyer-layout .voucher-notice-poster {
    display: block;
    width: 100%;
    max-height: min(60vh, 520px);
    object-fit: cover;
    background: #f4f1ec;
}
.buyer-layout .voucher-notice-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgb(47 45 32 / 10%);
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: #2f2d20;
    box-shadow: 0 3px 12px rgb(0 0 0 / 9%);
    cursor: pointer;
}
.buyer-layout .voucher-notice-close:hover { background: #f5f1eb; }
.buyer-layout .voucher-notice-close .material-icons { font-size: 21px; }
.buyer-layout .voucher-notice-content { padding: 16px 20px 20px; }
.buyer-layout .voucher-notice-pagination { display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.buyer-layout .voucher-notice-content .btn-primary1 { min-height: 46px; border-radius: 8px; font-size: 13px; font-weight: 600; }
@keyframes voucher-notice-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 575.98px) {
    .buyer-layout .modal-voucher { padding: 14px; }
    .buyer-layout .container-notif-voucher { width: 100%; max-height: 88vh; border-radius: 13px; }
    .buyer-layout .voucher-notice-poster { max-height: 58vh; object-fit: contain; }
    .buyer-layout .voucher-notice-close { top: 9px; right: 9px; width: 36px; height: 36px; }
    .buyer-layout .voucher-notice-content { padding: 13px 15px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .buyer-layout .container-notif-voucher { animation: none; }
}
.home-benefit { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 16px; min-width: 0; padding-inline: 24px; }
.home-benefit:first-child { padding-left: 0; }
.home-benefit:last-child { padding-right: 0; }
.home-benefit + .home-benefit { border-left: 1px solid var(--theme-soft-2); }
.home-benefit-icon { display: block; width: 32px; height: 32px; color: var(--theme-primary); }
.home-benefit-copy { min-width: 0; }
.home-benefit-copy h2 { margin: 0 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; line-height: 1.5; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; }
.home-benefit-copy p { margin: 0; color: #626262; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 991.98px) {
    .home-benefits { padding-block: 8px; }
    .home-benefits-list { grid-template-columns: minmax(0, 1fr); }
    .home-benefit, .home-benefit:first-child, .home-benefit:last-child { padding: 20px 0; gap: 16px; }
    .home-benefit + .home-benefit { border-left: 0; border-top: 1px solid var(--theme-soft-2); }
    .home-benefit-copy h2 { margin-bottom: 4px; }
}

/* Home collections share a quiet heading and the existing storefront card grid. */
body:not(.admin-body) .home-product-section { margin-block: 40px; }
body:not(.admin-body) .home-product-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
body:not(.admin-body) .home-product-section-title { margin: 0; font-size: clamp(1.125rem,1rem + .45vw,1.375rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.5; }
body:not(.admin-body) .home-product-section-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .8125rem; font-weight: 400; color: var(--theme-primary); text-decoration: none; }
body:not(.admin-body) .home-product-section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
body:not(.admin-body) .home-product-section-link:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
@media (max-width: 575.98px) {
    body:not(.admin-body) .home-product-section { margin-block: 28px; }
    body:not(.admin-body) .home-product-section-heading { gap: 6px 12px; margin-bottom: 16px; }
    body:not(.admin-body) .home-product-section-title { font-size: 1.125rem; }
}

/* Flash Sale uses the same quiet hierarchy as the regular home collections. */
body:not(.admin-body) .flash-sale-section { margin-block: 36px !important; }
body:not(.admin-body) .flash-sale-shell { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body:not(.admin-body) .flash-sale-head { align-items: flex-end; gap: 20px 32px; margin-bottom: 24px; padding: 0; }
body:not(.admin-body) .flash-sale-title-wrap { min-width: 0; flex: 1 1 55%; }
body:not(.admin-body) .flash-sale-kicker { gap: 6px; padding: 0; border-radius: 0; background: transparent; color: #737373; font-size: .75rem; font-weight: 400; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
body:not(.admin-body) .flash-sale-kicker svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--theme-primary); }
body:not(.admin-body) .flash-sale-title { margin: 6px 0; font-family: 'Plus Jakarta Sans',sans-serif; font-size: clamp(1.125rem,1rem + .45vw,1.375rem); font-weight: 500; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; color: var(--theme-primary); }
body:not(.admin-body) .flash-sale-title-wrap p { max-width: 600px; font-size: .8125rem; line-height: 1.7; color: #626262; overflow-wrap: anywhere; }
body:not(.admin-body) .flash-sale-action { flex: 0 1 auto; min-width: 0; gap: 8px 20px; }
body:not(.admin-body) .flash-countdown { width: auto; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body:not(.admin-body) .flash-countdown-label { font-weight: 400; font-size: .75rem; color: #737373; }
body:not(.admin-body) .flash-countdown-time { gap: 4px; font-weight: 500; font-size: .875rem; }
body:not(.admin-body) .flash-countdown-time span { min-width: 28px; height: 30px; padding-inline: 4px; border-radius: 4px; background: var(--theme-soft); color: var(--theme-primary); box-shadow: none; }
body:not(.admin-body) .flash-countdown-time b { font-weight: 400; color: var(--theme-primary); }
body:not(.admin-body) .flash-sale-see-all { width: auto; min-height: 44px; padding: 0; gap: 8px; border-radius: 0; background: transparent; color: var(--theme-primary); font-size: .8125rem; font-weight: 400; white-space: nowrap; }
body:not(.admin-body) .flash-sale-see-all:hover { background: transparent; color: var(--theme-primary); text-decoration: underline; text-underline-offset: 4px; }
body:not(.admin-body) .flash-sale-products { gap: 20px; padding: 2px 0 8px; }
body:not(.admin-body) .flash-sale-card { display: flex; flex-direction: column; min-width: 0; flex: 0 0 calc((100% - 80px)/5); }
body:not(.admin-body) .flash-sale-image { flex-shrink: 0; width: 100%; border-radius: 6px; background: var(--theme-soft); }
body:not(.admin-body) .flash-sale-watermark { z-index: 2; pointer-events: none; object-fit: contain; }
body:not(.admin-body) .flash-sale-badge { z-index: 3; top: 8px; left: 8px; min-height: 24px; padding: 3px 6px; border-radius: 4px; font-size: .6875rem; font-weight: 500; }
body:not(.admin-body) .flash-sale-info { padding-top: 12px; }
body:not(.admin-body) .flash-sale-info h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 3em; margin-bottom: 8px; overflow: hidden; font-size: .8125rem; font-weight: 500; line-height: 1.5; }
body:not(.admin-body) .flash-sale-price { gap: 4px; }
body:not(.admin-body) .flash-sale-price span { font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
body:not(.admin-body) .flash-sale-price del { font-size: .75rem; line-height: 1.5; color: #737373; }
body:not(.admin-body) .flash-sale-stock { margin-top: 8px; }
body:not(.admin-body) .flash-sale-stock span { margin: 0; text-align: left; color: #737373; font-size: .75rem; font-weight: 400; line-height: 1.5; }
body:not(.admin-body) .flash-sale-nav { top: clamp(64px,8vw,110px); width: 44px; height: 44px; padding: 0; border: 1px solid var(--theme-soft-2); border-radius: 50%; background: var(--theme-background,#fff); color: var(--theme-primary); box-shadow: none; transform: translateY(-50%); }
body:not(.admin-body) .flash-sale-nav svg { width: 20px; height: 20px; }
body:not(.admin-body) .flash-sale-nav--prev { left: 6px; }
body:not(.admin-body) .flash-sale-nav--next { right: 6px; }
body:not(.admin-body) .flash-sale-nav:hover { background: var(--theme-soft); color: var(--theme-primary); transform: translateY(-50%); }
body:not(.admin-body) .flash-sale-nav:disabled { visibility: hidden; }
body:not(.admin-body) .flash-sale-section :is(a,button):focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
@media (max-width: 991.98px) {
    body:not(.admin-body) .flash-sale-head { display: grid; gap: 12px; }
    body:not(.admin-body) .flash-sale-action { justify-content: space-between; }
    body:not(.admin-body) .flash-sale-products { gap: 16px; }
    body:not(.admin-body) .flash-sale-card { flex-basis: calc((100% - 32px)/3); }
}
@media (max-width: 575.98px) {
    body:not(.admin-body) .flash-sale-section { margin-block: 28px !important; }
    body:not(.admin-body) .flash-sale-head { margin-bottom: 16px; }
    body:not(.admin-body) .flash-sale-products { gap: 12px; }
    body:not(.admin-body) .flash-sale-card { flex-basis: calc((100% - 12px)/2); }
    body:not(.admin-body) .flash-sale-info h3 { font-size: .78125rem; }
    body:not(.admin-body) .flash-sale-price span { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { body:not(.admin-body) .flash-sale-card { transition: none; } }
