/*
Theme Name: UMKMGO onlineshop Lite
Author: UMKMGO Project
Description: UMKMGO onlineshop Lite storefront with retail and approved reseller prices, standalone WordPress theme.
Version: 0.10.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: umkm-store
License: GPL-2.0-or-later
*/
:root {
    --brand: #0f766e;
    --brand-dark: #095a52;
    --ink: #17212a;
    --muted: #617081;
    --edge: #e1e7eb;
    --bg: #f5f7f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-dark); }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline: 3px solid #37b4a5; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.wrap { width: calc(100% - 48px); max-width: 1660px; margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 30; }
.head-inner { display: flex; align-items: center; gap: clamp(12px,2vw,28px); min-height: 74px; }
.brand { font-size: clamp(1.08rem,1.6vw,1.5rem); font-weight: 850; letter-spacing: -.035em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: auto; max-height: 55px; }
.main-nav { display: flex; gap: clamp(12px,2vw,30px); margin-left: auto; flex-shrink: 0; }
.main-nav a { font-weight: 600; }
.header-cart { flex-shrink: 0; display: inline-flex; gap: 8px; white-space: nowrap; align-items: center; }
.cart-icon { height: 22px; width: 22px; flex: 0 0 22px; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; border-radius: 40px; background: #d5efe9; color: #105e55; padding: 1px 8px; min-width: 26px; font-size: .8rem; font-weight: 800; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px; z-index: 60; }
.skip-link:focus { left: 8px; }
.btn { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 19px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-align: center; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.alt { background: #ebf7f4; color: #0c635c; }
.btn.alt:hover { background: #d9f1ea; }
.btn.outline { background: transparent; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn.outline:hover { background: #d8f6ed; }
.site-main { min-height: 65vh; }
.hero { padding: clamp(40px,5vw,100px) 0; background: linear-gradient(110deg,#d4faf2,#e8f0ff); }
.hero h1 { font-size: clamp(2rem,4.4vw,4.5rem); line-height: 1.13; max-width: 940px; margin: 0 0 18px; overflow-wrap: anywhere; }
.hero p { max-width: 720px; color: #3c555a; font-size: clamp(1rem,1.5vw,1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.section { padding: clamp(25px,3vw,56px) 0; }
.section-title { font-size: clamp(1.3rem,2.1vw,2rem); margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)); gap: clamp(12px,1.25vw,22px); }
.category-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,195px),1fr)); }
.card { background: #fff; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; min-width: 0; }
.product-card { transition: box-shadow .15s ease,transform .15s ease; }
.product-card:hover { box-shadow: 0 12px 22px rgba(15,35,40,.09); transform: translateY(-2px); }
.card-body { padding: clamp(12px,1.2vw,20px); }
.product-image-link { display: block; }
.product-photo { display: block; aspect-ratio: 1/1; object-fit: cover; width: 100%; background: #edf1f3; }
.placeholder { display: flex; align-items: center; justify-content: center; color: #82909b; font-size: 3rem; }
.price { font-size: clamp(1.04rem,1.6vw,1.35rem); font-weight: 800; margin: 10px 0; }
.muted { color: var(--muted); }
.card h3 { margin: 0; font-size: clamp(.95rem,1.2vw,1.1rem); line-height: 1.45; }
.stock-label { display: inline-block; color: #ad3535; font-size: .85rem; }
.category-card { padding: 14px; text-align: center; }
.category-card img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.category-card span { display: block; font-weight: 700; margin-top: 10px; }
.inner { padding: clamp(24px,3vw,60px) 0; }
.single-product { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(20px,4vw,70px); max-width: 1380px; margin: 0 auto; background: white; padding: clamp(16px,2.5vw,44px); border-radius: 18px; }
.single-product .product-photo { border-radius: 14px; }
.single-product h1 { font-size: clamp(1.5rem,2.6vw,2.5rem); line-height: 1.25; margin: 0; }
.product-description { overflow-wrap: anywhere; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-weight: 600; }
.field input,.field select,.field textarea { display: block; padding: 12px 13px; border: 1px solid #bbc7cf; border-radius: 9px; width: 100%; font-weight: 400; background: #fff; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus,.field textarea:focus { border-color: var(--brand); }
.field-label { display: block; font-weight: 700; margin: 8px 0; }
.required { color: #b12b2b; }
.qty-label { margin-top: 26px; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #bdccd1; border-radius: 12px; overflow: hidden; margin: 0 0 16px; }
.qty-stepper input { width: 75px; text-align: center; border: 0; border-left: 1px solid var(--edge); border-right: 1px solid var(--edge); border-radius: 0; appearance: textfield; -moz-appearance: textfield; padding: 10px 5px; }
.qty-stepper input::-webkit-outer-spin-button,.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-adjust { border: none; background: #ecf7f4; color: var(--brand-dark); padding: 7px 18px; font-size: 1.5rem; font-weight: 700; min-width: 52px; }
.qty-adjust:hover { background: #d1f1e8; }
.add-product-btn { display: block; }
.add-feedback { min-height: 1.4em; color: var(--brand-dark); }
.inline-link { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 4px; }
.site-footer { background: #15232a; color: white; padding: 32px 0; margin-top: 36px; }
.cart-panel { background: #fff; padding: clamp(15px,3vw,34px); border: 1px solid var(--edge); border-radius: 16px; max-width: 880px; margin: 0 auto; }
.cart-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.cart-item-name { font-weight: 700; overflow-wrap: anywhere; }
.cart-item-meta { color: var(--muted); font-size: .9rem; }
.cart-item .cart-qty { width: 70px; padding: 7px 8px; border: 1px solid #bdc7ce; border-radius: 8px; text-align: center; }
.cart-item button { border: 0; padding: 8px 10px; border-radius: 8px; background: #eef2f5; }
.cart-total { text-align: right; margin: 18px 0; }
.total { font-size: 1.35rem; font-weight: 800; }
.checkout-fields { border: 0; padding: 0; margin: 24px 0 0; }
.checkout-fields legend { font-size: 1.3rem; font-weight: 800; padding: 0; }
.checkout-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.checkout-grid .wide { grid-column: 1/-1; }
.checkout-hint { background: #e9f7f4; border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 8px; color: #174f48; }
.cart-status { min-height: 1.6em; color: #9f2e2e; }
.notice { padding: 14px; background: #fffae3; border-radius: 9px; }
.wp-block-image { max-width: 100%; }
@media (min-width: 1800px) { .wrap { max-width: 1780px; } }
@media (max-width: 900px) { .main-nav { display: none; } .head-inner { min-height: 64px; } .single-product { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
    .wrap { width: calc(100% - 28px); }
    .head-inner { gap: 10px; }
    .brand { flex: 1; }
    .header-cart { font-size: .78rem; padding: 9px 9px; gap: 5px; }
    .cart-icon { width: 18px; height: 18px; flex-basis: 18px; }
    .cart-count { font-size: .74rem; min-width: 22px; padding: 1px 5px; }
    .grid,.category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .category-card { padding: 8px; }
    .category-card span { font-size: .87rem; }
    .card-body { padding: 10px; }
    .price { font-size: 1rem; }
    .single-product { padding: 14px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: minmax(0,1fr) auto; }
    .cart-item button { grid-column: 2; }
}
@media (max-width: 355px) { .header-cart { font-size: .7rem; padding: 8px 6px; } .cart-icon { width: 16px; flex-basis: 16px; } .head-inner { gap: 6px; } }

/* --- UMKM Store v0.3.0: adaptive header / navigation / product search --- */
.header-layout { position: relative; display: grid; grid-template-columns: minmax(110px,240px) minmax(180px,1fr) auto auto; grid-template-areas: "brand search cart menu"; gap: clamp(10px,1.7vw,24px); align-items: center; min-height: 86px; padding: 10px 0; }
.header-layout .brand { grid-area: brand; display: flex; align-items: center; min-width: 0; max-width: 240px; }
.brand-image { display: block; max-width: 100%; width: auto; height: auto; max-height: 58px; object-fit: contain; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search { grid-area: search; min-width: 0; }
.store-search { display: flex; height: 47px; overflow: hidden; border: 1px solid #bacbd0; border-radius: 11px; background: #fff; }
.store-search:focus-within { outline: 2px solid #37b4a5; outline-offset: 2px; }
.store-search input { min-width: 0; width: 100%; flex: 1; border: 0; outline: 0; padding: 9px 13px; background: transparent; font-size: 1rem; }
.store-search input:focus-visible { outline: none; }
.store-search button { border: none; background: var(--brand); color: #fff; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; }
.store-search button:hover { background: var(--brand-dark); }
.header-layout .header-cart { grid-area: cart; margin: 0; justify-self: end; }
.header-cart .cart-label { font-weight: 700; }
.menu-toggle { grid-area: menu; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; justify-self: end; border: 1px solid var(--edge); border-radius: 11px; color: var(--ink); background: #fff; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: #e8f4f2; border-color: #8bc8be; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 1px); width: min(350px,calc(100vw - 28px)); background: white; border: 1px solid var(--edge); border-radius: 0 0 14px 14px; box-shadow: 0 14px 28px rgba(6,28,32,.16); padding: 12px; z-index: 35; }
.menu-panel[hidden], .promo-slide[hidden] { display: none !important; }
.nav-list, .menu-panel .menu { list-style: none; padding: 0; margin: 0; }
.nav-list a, .menu-panel .menu a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 650; }
.nav-list a:hover, .menu-panel .menu a:hover { background: #e7f4f1; }
.menu-panel .sub-menu { list-style: none; padding-left: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Banner promo slider: between category list and latest products --- */
.promo-section { padding-top: 8px; padding-bottom: 8px; }
.promo-slider { position: relative; overflow: hidden; background: #e8efef; border-radius: 16px; }
.promo-slides { width: 100%; }
.promo-slide { display: block; width: 100%; }
.promo-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16/5; object-fit: cover; }
.promo-prev, .promo-next { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: #18332e; font-size: 2rem; line-height: 1; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.promo-prev { left: 10px; }
.promo-next { right: 10px; }
.promo-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; background: rgba(0,0,0,.27); padding: 6px 8px; border-radius: 20px; }
.promo-dots button { width: 10px; height: 10px; border: none; border-radius: 50%; background: rgba(255,255,255,.6); padding: 0; }
.promo-dots button[aria-current="true"] { width: 24px; border-radius: 8px; background: white; }

/* --- Blog highlights, 5 latest posts --- */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-heading .section-title { margin-bottom: 0; }
.blog-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); }
.blog-card .blog-thumb { display: block; }
.blog-card .blog-thumb img, .blog-card .blog-thumb .product-photo { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.blog-card h3 { font-size: 1.03rem; margin: 8px 0; line-height: 1.4; }
.blog-card time, .blog-article time { color: var(--muted); font-size: .85rem; }
.blog-card p { font-size: .88rem; margin-bottom: 0; color: var(--muted); }
.archive-pagination { grid-column: 1/-1; }
.archive-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.archive-pagination a, .archive-pagination span { padding: 7px 12px; background: #fff; border: 1px solid var(--edge); border-radius: 8px; }
.blog-article-wrap { max-width: 980px; }
.blog-article-cover { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.blog-article-content { padding: clamp(18px,3vw,40px); overflow-wrap: anywhere; }
.blog-article-content h1 { line-height: 1.2; }
.entry-content img { height: auto; }

/* --- Product gallery and follow-up cart/category buttons --- */
.gallery-main .product-photo { aspect-ratio: 1; width: 100%; object-fit: contain; background: #f3f6f7; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.gallery-thumb { padding: 3px; border: 2px solid #d3dfe0; border-radius: 9px; overflow: hidden; background: #fff; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.gallery-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.product-actions .btn { flex: 1 1 205px; }

/* --- Trust-building multi-column store footer --- */
.site-footer { padding: 44px 0 16px; }
.footer-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr) minmax(0,1.1fr); gap: clamp(22px,3vw,60px); }
.footer-col { min-width: 0; }
.footer-col h2 { font-size: 1.12rem; line-height: 1.4; margin: 0 0 17px; color: #fff; }
.footer-col h3 { font-size: .93rem; color: #daeeeb; margin: 20px 0 5px; }
.footer-col p { line-height: 1.7; margin: 0 0 12px; }
.footer-muted { color: #bdd0d3; }
.footer-address { white-space: normal; }
.store-front-photo { display: block; border-radius: 12px; width: 100%; max-height: 260px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 15px; }
.store-map { display: block; border: 0; width: 100%; height: 255px; border-radius: 12px; background: #e5eded; margin-bottom: 14px; }
.footer-link { display: inline-block; padding: 9px 13px; border: 1px solid rgba(197,242,225,.5); border-radius: 9px; color: #d7fff2; font-weight: 650; }
.footer-link:hover { background: rgba(255,255,255,.13); color: #fff; }
.footer-text-link { color: #b1f5dc; font-weight: 700; text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.social-links a { text-decoration: underline; color: #d7fff2; font-size: .9rem; }
.social-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 17px; margin-top: 35px; color: #c6d4d6; }

@media (max-width: 1000px) {
    .footer-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-map-col { grid-column: 1/-1; }
    .store-map { max-width: none; }
}
@media (max-width: 680px) {
    .header-layout { grid-template-columns: minmax(0,1fr) auto auto; grid-template-rows: auto auto; grid-template-areas: "brand cart menu" "search search search"; gap: 10px 8px; min-height: 0; padding: 10px 0; }
    .header-layout .brand { max-width: none; }
    .brand-image { max-height: 44px; }
    .header-cart { font-size: .82rem; padding: 9px; gap: 5px; }
    .header-cart .cart-icon { height: 18px; width: 18px; flex-basis: 18px; }
    .menu-toggle { width: 42px; height: 42px; }
    .store-search { height: 44px; }
    .promo-slide img { aspect-ratio: 16/9; }
    .promo-prev, .promo-next { width: 34px; height: 34px; font-size: 1.7rem; }
    .footer-layout { grid-template-columns: 1fr; }
    .footer-map-col { grid-column: auto; }
    .footer-col h2 { margin-bottom: 10px; }
    .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-thumbnails { gap: 5px; }
    .product-actions { flex-direction: column; }
    .product-actions .btn { flex-basis: auto; width: 100%; }
}
@media (max-width: 375px) {
    .header-cart { padding: 7px; font-size: .72rem; }
    .header-layout { gap: 7px 6px; }
    .menu-toggle { width: 38px; height: 40px; }
    .cart-count { min-width: 21px; padding: 0 5px; }
}

#kategori-produk { scroll-margin-top: 160px; }

/* --- UMKM Store 0.4.0: compact, content-dependent hero and customizable palette --- */
.site-footer { background: var(--footer-bg,#15232a); }
.hero { padding: 16px 0; background: var(--hero-bg,#d4faf2); color: var(--hero-ink,#17212a); }
.hero-inner { display: flex; flex-direction: column; gap: 3px; }
.hero h1 { font-size: clamp(1.45rem,2.7vw,2.6rem); line-height: 1.17; margin: 0; max-width: none; }
.hero p { margin: 0; font-size: clamp(.92rem,1.2vw,1.08rem); line-height: 1.35; max-width: none; color: inherit; opacity: .88; }
.section-title { text-align: center; }
.centered-heading { position: relative; display: flex; align-items: center; justify-content: center; min-height: 36px; }
.centered-heading .section-title { text-align: center; margin-inline: auto; }
.centered-heading .inline-link { position: absolute; right: 0; font-size: .91rem; }
.blog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.price-display { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 11px; row-gap: 3px; }
.price-display .regular-price { font-size: .83em; color: var(--muted); font-weight: 500; }
.price-display .current-price { font-size: 1em; color: var(--brand-dark); font-weight: 850; }
.price-display .discount-saving { display: inline-flex; align-self: center; background: #e6f5df; border: 1px solid #b5dca5; padding: 3px 7px; border-radius: 7px; color: #23652a; font-size: .75em; font-weight: 750; white-space: nowrap; }
.product-main-price { margin-bottom: 4px; }
.stock-state { margin: 2px 0 12px; font-weight: 600; }
.qty-label { margin: 13px 0 7px; }
.order-entry-row { display: flex; align-items: stretch; gap: 9px; width: 100%; }
.order-entry-row .qty-stepper { margin: 0; flex: 0 0 auto; }
.order-entry-row .qty-stepper input { width: 47px; padding: 7px 2px; }
.order-entry-row .qty-adjust { min-width: 36px; padding: 6px 9px; }
.order-entry-row .add-product-btn { display: inline-flex; flex: 1 1 0; min-width: 0; padding: 8px 10px; line-height: 1.3; }
.add-feedback { min-height: 0; margin: 5px 0; font-size: .88rem; }
.product-marketplaces { border-top: 1px solid var(--edge); margin-top: 13px; padding-top: 11px; }
.marketplace-heading { font-weight: 700; margin: 0 0 7px; }
.marketplace-links { display: flex; flex-wrap: wrap; gap: 8px; }
.marketplace-link { display: inline-flex; padding: 7px 13px; color: var(--brand-dark); border: 1px solid var(--brand); border-radius: 9px; background: #fff; font-weight: 700; }
.marketplace-link:hover { background: #e8f7f3; }
.marketplace-note { font-size: .79rem; color: var(--muted); line-height: 1.45; margin: 7px 0 0; }
.product-actions { margin-top: 9px; gap: 8px; }
.product-actions .btn { flex: 1 1 150px; padding: 10px 12px; }
.gallery-thumbnails { grid-template-columns: repeat(5,minmax(0,1fr)); }
.follow-heading { margin: 18px 0 10px !important; }
.social-links { gap: 9px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.27); border-radius: 11px; width: 42px; height: 42px; text-decoration: none; transition: background .15s; }
.social-links a:hover, .social-links a:focus-visible { background: var(--brand); color: #fff; }
.social-svg { display: block; }
@media (min-width: 1300px) { .blog-grid { grid-template-columns: repeat(7,minmax(0,1fr)); } }
@media (min-width: 760px) and (max-width: 1299px) { .blog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 759px) {
    .hero { padding: 12px 0; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: .91rem; }
    .centered-heading { display: block; text-align: center; }
    .centered-heading .inline-link { position: static; display: inline-block; margin-top: 4px; }
    .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .order-entry-row .qty-adjust { min-width: 32px; padding: 6px 8px; }
    .order-entry-row .qty-stepper input { width: 37px; }
    .order-entry-row .add-product-btn { font-size: .83rem; padding: 8px 6px; }
    .product-actions { flex-direction: row; }
    .product-actions .btn { flex: 1 1 145px; width: auto; font-size: .84rem; padding: 9px 7px; }
}
@media (max-width: 350px) {
    .order-entry-row { gap: 5px; }
    .order-entry-row .qty-adjust { min-width: 28px; padding: 5px 6px; }
    .order-entry-row .qty-stepper input { width: 34px; }
    .order-entry-row .add-product-btn { font-size: .76rem; }
}

/* Stable archive and content layouts. */
.archive-heading { text-align: center; margin: 0 0 22px; }
.archive-description { max-width: 900px; margin: 0 auto 24px; text-align: center; }
.archive-pagination { margin-top: 24px; }
.standard-page { max-width: 1060px; }
.page-content { padding: clamp(18px,4vw,44px); }
.page-content h1 { margin-top: 0; }
.entry-content { overflow-wrap: anywhere; }

/* Accent button and menu states respect the chosen store palette. */
.btn.alt { background: color-mix(in srgb,var(--brand) 10%,white); color: var(--brand-dark); }
.btn.alt:hover { background: color-mix(in srgb,var(--brand) 20%,white); }
.btn.outline:hover, .marketplace-link:hover { background: color-mix(in srgb,var(--brand) 10%,white); }
.menu-toggle:hover,.menu-toggle[aria-expanded="true"] { background: color-mix(in srgb,var(--brand) 11%,white); border-color: var(--brand); }

/* UMKM Store 0.5.0 - compact discounted prices and live footer mini-cart */
.price-display { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 5px; }
.price-top-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; max-width: 100%; }
.price-display .regular-price { white-space: nowrap; font-size: .85em; line-height: 1.2; }
.price-display .discount-saving { align-self: auto; font-size: .7em; text-transform: none; line-height: 1.15; }
.price-display .current-price { display: block; line-height: 1.25; }
.checkout-wa-help { font-size: .84rem; line-height: 1.6; color: var(--muted); margin: 8px 0 12px; }
.checkout-wa-help a { color: var(--brand-dark); font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; }
.footer-layout { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(17px,2.4vw,34px); }
.footer-cart-scroll { overflow-y: auto; overscroll-behavior: contain; max-height: 240px; min-height: 88px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 5px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.5) transparent; }
.footer-cart-scroll:focus-visible { outline: 2px solid #b1f5dc; outline-offset: 3px; }
.footer-cart-list { list-style: none; padding: 0; margin: 0; }
.footer-cart-line { display: flex; justify-content: space-between; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: .86rem; line-height: 1.35; }
.footer-cart-line:last-child { border-bottom: 0; }
.footer-cart-item-name { min-width: 0; overflow-wrap: anywhere; }
.footer-cart-item-qty { flex: none; color: #d4e7e8; font-weight: 700; white-space: nowrap; }
.footer-cart-empty { color: #bdd0d3; font-size: .86rem; padding: 10px 0; line-height: 1.45; }
.footer-cart-total { margin: 10px 0 !important; font-size: .87rem; font-weight: 750; }
.footer-cart-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 11px 13px; border: 1px solid rgba(197,242,225,.5); border-radius: 9px; color: #fff; background: var(--brand); font-weight: 750; font-size: .9rem; width: 100%; }
.footer-cart-button:hover,.footer-cart-button:focus-visible { background: var(--brand-dark); color: #fff; }
@media (max-width: 1050px) and (min-width: 681px) {
  .footer-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-map-col { grid-column: auto; }
}
@media (max-width: 680px) {
  .footer-layout { grid-template-columns: 1fr; }
  .footer-map-col { grid-column: auto; }
  .footer-cart-scroll { max-height: 215px; }
}

/* UMKM Store v0.6.0: centered optional hero media, compact text-only hero, promo grid. */
.hero-has-media .hero-inner { align-items: center; text-align: center; }
.hero-has-media h1, .hero-has-media p { max-width: 980px; }
.hero-media { width: 100%; max-width: 980px; margin: 14px auto 0; }
.hero-media-frame { width: 100%; margin: auto; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; }
.hero-media-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 480px; object-fit: contain; margin: 0 auto; }
.hero-media-video { display: block; max-height: 480px; width: 100%; height: auto; background: #101820; }
.hero-youtube-frame { position: relative; aspect-ratio: 16/9; background: #101820; }
.hero-youtube-frame iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.product-promo-section .section-title { text-align: center; }
.product-promo-section { padding-top: 12px; }
@media (max-width: 650px) {
  .hero-media { margin-top: 10px; }
  .hero-media-frame { border-radius: 9px; }
  .hero-media-image { max-height: 280px; }
  .hero-media-video { max-height: 280px; }
}


/* UMKM Store v0.7.0 — Full-bleed Hero media, no theme-colored frame, no cropping.
 * The still-image height follows its own natural aspect ratio; no object-fit:cover.
 * Video uses its native aspect ratio; YouTube uses the provider's 16:9 player.
 * Only text-mode Hero keeps the customizable theme background.
 */
.hero.hero-has-media { padding: 0; margin: 0; border: 0; background: transparent; color: #fff; }
.hero-has-media .hero-stage { width: 100%; position: relative; isolation: isolate; }
.hero-has-media .hero-media { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.hero-has-media .hero-media-image,
.hero-has-media .hero-media-video {
    display: block; width: 100%; max-width: 100%; height: auto; max-height: none;
    margin: 0; padding: 0; border: 0; border-radius: 0;
    object-fit: contain; background: transparent;
}
.hero-has-media .hero-youtube-frame { width: 100%; max-width: none; position: relative; aspect-ratio: 16 / 9; background: #101820; }
.hero-has-media .hero-youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
/* Keep H1/tagline on top of media, instead of reserving an extra solid-color strip. */
.hero-media-caption {
    position: absolute; left: 50%; top: clamp(10px, 2.3vw, 32px);
    transform: translateX(-50%); z-index: 2; box-sizing: border-box;
    max-width: min(90%, 900px); padding: clamp(5px, .8vw, 12px) clamp(10px, 2vw, 24px);
    text-align: center; border-radius: 10px; color: #fff;
    background: rgba(0,0,0,.38); pointer-events: none;
    text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
.hero-media-caption h1 { color: inherit; font-size: clamp(1.2rem, 2.7vw, 2.5rem); line-height: 1.18; margin: 0; }
.hero-media-caption p { color: inherit; font-size: clamp(.78rem, 1.25vw, 1.06rem); line-height: 1.35; margin: 4px 0 0; }

/* Center all 1–6 promo cards and use the full available width on desktop,
 * without creating phantom empty columns to the right. */
.promo-products-grid {
    --promo-gap: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: var(--promo-gap);
    margin-inline: auto;
}
.promo-products-grid > .product-card {
    min-width: 0;
    width: auto;
    flex: 0 1 calc(16.666667% - 15px);
    max-width: 275px;
}
@media (max-width: 1150px) {
    .promo-products-grid > .product-card { flex-basis: calc(33.333333% - 12px); }
}
@media (max-width: 650px) {
    .hero-media-caption { top: 8px; padding: 5px 9px; max-width: 94%; border-radius: 7px; }
    .hero-media-caption h1 { font-size: clamp(1rem,4vw,1.42rem); }
    .hero-media-caption p { font-size: .75rem; }
    .promo-products-grid { --promo-gap: 12px; }
    .promo-products-grid > .product-card { flex-basis: calc(50% - 6px); }
}


/* UMKM Store v0.8.0: product-image cart rows, checkout guidance and Flash Sale. */
.cart-item-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-item-copy { min-width: 0; }
.cart-item-thumb { display: block; flex: 0 0 70px; width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid var(--edge); background: #f2f5f6; }
.cart-item-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #62727a; }
.checkout-wa-guidance { margin: 22px 0 18px; padding: 12px 16px; background: #f1f6f8; border: 1px solid var(--edge); border-radius: 10px; line-height: 1.6; }
.checkout-wa-guidance p { margin: 0; }
.checkout-wa-guidance p + p { margin-top: 10px; }
#umkm-checkout-form > .btn[type="submit"] { display: block; width: 100%; max-width: 420px; margin: 16px 0 8px; padding-block: 13px; }
.umkm-category-directory { margin-top: 20px; }
.flash-sale-intro { text-align: center; margin: 18px auto 28px; max-width: 680px; }
.flash-sale-label { font-weight: 750; font-size: 1.1rem; margin-bottom: 12px; }
.flash-sale-countdown { display: flex; align-items: center; justify-content: center; gap: clamp(7px, 2vw, 20px); }
.flash-time-unit { display: flex; flex-flow: column; align-items: center; min-width: clamp(64px, 12vw, 100px); background: var(--brand); color: #fff; padding: 12px 8px; border-radius: 12px; }
.flash-time-unit strong { font-variant-numeric: tabular-nums; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.15; }
.flash-time-unit small { font-size: .82rem; margin-top: 4px; }
.flash-sale-note { text-align: center; color: var(--muted); margin: 14px auto; }
.flash-sale-products { justify-items: stretch; }
.flash-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 25px; }
.flash-pagination a { padding: 7px 14px; background: #fff; border: 1px solid var(--edge); border-radius: 8px; }
.flash-pagination a[aria-current="page"] { background: var(--brand); color: #fff; }
@media (max-width: 650px) {
  .cart-item { grid-template-columns: 1fr auto; row-gap: 9px; }
  .cart-item-product { grid-column: 1 / -1; }
  .cart-item-thumb { width: 60px; height: 60px; flex-basis: 60px; }
  .cart-item .cart-qty { grid-column: 1; width: 90px; }
  .cart-item button { grid-column: 2; }
  .flash-time-unit { min-width: 0; flex: 1; padding: 12px 5px; }
}

/* UMKMGO onlineshop Lite v0.9.0: reseller profile and secure minimal-data onboarding. */
.umkmgo-reseller-area { margin: 16px auto 28px; max-width: 950px; }
.umkmgo-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.umkmgo-account-card { padding: 22px; border: 1px solid var(--edge); background: #fff; border-radius: 14px; margin-bottom: 18px; }
.umkmgo-account-card h2 { margin: 0 0 14px; font-size: 1.3rem; }
.umkmgo-account-card label { display: block; font-weight: 650; margin: 12px 0; }
.umkmgo-account-card input[type="text"],.umkmgo-account-card input[type="password"] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #c5cdd1; border-radius: 8px; }
.umkmgo-account-card .login-remember label { display: inline-flex; align-items: center; gap: 8px; }
.umkmgo-account-card input[type="submit"] { cursor: pointer; background: var(--brand); color: #fff; border: 0; padding: 11px 16px; border-radius: 8px; }
.umkmgo-account-card .btn { margin-top: 5px; }
.umkmgo-account-notice { background: #e8f4f0; padding: 13px; border-radius: 9px; }
.umkmgo-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; left: -9999px; }
.reseller-price-label { font-size: .75rem; font-weight: 800; color: var(--brand); letter-spacing: .01em; }
.umkmgo-account-link { display: block; border-top: 1px solid var(--edge); margin-top: 7px; padding: 13px 12px; font-weight: 750; color: var(--brand); }
@media(max-width:720px) {.umkmgo-account-grid { grid-template-columns: 1fr; } .umkmgo-account-card { padding: 15px; }}


/* UMKMGO onlineshop Lite 0.10.0 — 5+3 footer and two 1+6 promotional showcases. */
.site-footer { padding: 42px 0 18px; }
.footer-primary-grid, .footer-secondary-grid { display: grid; gap: clamp(16px, 1.6vw, 30px); }
.footer-primary-grid { grid-template-columns: repeat(5, minmax(0,1fr)); align-items: start; }
.footer-secondary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; margin-top: 28px; }
.footer-primary-grid .footer-col, .footer-secondary-grid .footer-col { min-width: 0; }
.store-front-photo { width: 100%; max-height: none; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 11px; }
.store-map { width: 100%; height: auto; max-width: none; aspect-ratio: 3 / 4; border-radius: 11px; }
.footer-contact-row { margin: 0 0 10px !important; }
.footer-contact-row a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: .89rem; }
.footer-contact-row svg { flex: 0 0 20px; }
.footer-service-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-service-links li { margin: 0; padding: 0; }
.footer-service-links a { color: #d7fff2; display: inline-block; line-height: 1.4; text-underline-offset: 3px; }
.footer-service-links a:hover { text-decoration: underline; color: white; }
.footer-logo-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-provider-logo { width: min(100%, 110px); height: 58px; object-fit: contain; flex: 0 0 auto; background: transparent; }
.footer-secondary-grid .social-links { align-items: center; }
.footer-primary-grid .footer-cart-scroll { max-height: 270px; }
.ad-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; align-items: stretch; }
.ad-main-panel { min-width: 0; min-height: 0; position: relative; }
.ad-showcase .ad-main-panel { aspect-ratio: 3 / 2; }
.ad-main-slider { width: 100%; height: 100%; aspect-ratio: 3 / 2; min-height: 0; background: #edf2f3; overflow: hidden; }
.ad-main-slider .promo-slides, .ad-main-slider .promo-slide, .ad-main-slider .promo-slide a { display: block; width: 100%; height: 100%; }
.ad-main-slider .promo-slide { overflow: hidden; }
.ad-main-slider .promo-slide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; display: block; }
.ad-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 12px; align-self: stretch; min-width: 0; }
.ad-mini { display: block; min-width: 0; min-height: 0; border-radius: 9px; overflow: hidden; background: #e7eeef; aspect-ratio: 2 / 1; }
.ad-mini img { display: block; width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.ad-showcase .ad-mini { aspect-ratio: auto; }
.ad-showcase .ad-mini img { height: 100%; aspect-ratio: auto; }
.ad-showcase .ad-main-slider { height: 100%; }
.hero.hero-showcase { background: transparent; padding: 16px 0; }
.hero-showcase .ad-main-panel { border-radius: 10px; overflow: hidden; background: #ebeff0; }
.hero-showcase .hero-stage { width: 100%; height: 100%; }
.hero-showcase .hero-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #101820; }
.hero-showcase .hero-media-image { max-height: none; height: 100%; width: 100%; object-fit: contain; }
.hero-showcase .hero-media-video { max-height: none; height: 100%; width: 100%; object-fit: contain; }
.hero-showcase .hero-youtube-frame { height: 100%; width: 100%; aspect-ratio: auto; }
.hero-showcase .hero-inner { height: 100%; padding: 22px; align-items: center; justify-content: center; text-align: center; }
.hero-showcase .hero-inner h1 { color: var(--hero-ink); }
.hero-showcase .hero-media-caption { max-width: 94%; }
.promo-section .ad-showcase .ad-main-panel { border-radius: 10px; overflow: hidden; }
@media (max-width: 1200px) {
  .footer-primary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-primary-grid .footer-map-col { grid-column: auto; }
  .footer-primary-grid .footer-cart-col { grid-column: auto; }
}
@media (max-width: 800px) {
  .ad-showcase { grid-template-columns: 1fr; }
  .ad-showcase .ad-main-panel { aspect-ratio: 3 / 2; }
  .ad-mini-grid { grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: auto; }
  .ad-mini, .ad-showcase .ad-mini { aspect-ratio: 2 / 1; }
  .ad-showcase .ad-mini img { aspect-ratio: 2 / 1; }
  .footer-primary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-secondary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 550px) {
  .footer-primary-grid, .footer-secondary-grid { grid-template-columns: 1fr; row-gap: 27px; }
  .footer-primary-grid .footer-map-col { grid-column: auto; }
  .store-front-photo, .store-map { width: min(100%, 340px); }
  .footer-secondary-grid { margin-top: 25px; padding-top: 25px; }
  .ad-showcase { gap: 9px; }
  .ad-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .ad-main-slider { border-radius: 9px; }
  .promo-section { padding-top: 12px; }
}

/* Keep pre-upgrade full-width slider proportions if no right-side ad images are set. */
.promo-section-solo .ad-main-slider { height: auto; aspect-ratio: 16 / 5; }
.promo-section-solo .ad-main-slider .promo-slides, .promo-section-solo .ad-main-slider .promo-slide, .promo-section-solo .ad-main-slider .promo-slide a { height: 100%; }
.promo-section-solo .ad-main-slider .promo-slide img { height: 100%; width: 100%; object-fit: contain; }
.hero:not(.hero-showcase) .ad-main-slider { aspect-ratio: 16 / 7; height: auto; }
@media (max-width: 680px) {
  .promo-section-solo .ad-main-slider { aspect-ratio: 16 / 9; }
  .hero:not(.hero-showcase) .ad-main-slider { aspect-ratio: 16 / 9; }
}

.showcase-title { font-size: clamp(1.15rem, 1.75vw, 1.5rem); margin: 0 0 14px; font-weight: 750; }
