:root {
  --black: #111111;
  --black-2: #202020;
  --primary: #1d6ce0;
  --primary-dark: #1451b5;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;
  --orange: #1d6ce0;
  --orange-dark: #1451b5;
  --yellow: #ffd400;
  --red: #e53935;
  --green: #169b55;
  --blue: #1d6ce0;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5eaf0;
  --soft: #f8fafc;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: #fff; color: var(--text); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.topbar { background: #1565c0; color: #fff; font-size: 12px; }
.topbar__inner { height: 36px; display: flex; align-items: center; justify-content: space-between; }
.topbar span, .topbar a { display: flex; align-items: center; gap: 6px; }
.topbar__inner > div { display: flex; gap: 24px; }
.topbar svg { width: 14px; height: 14px; }
.topbar a svg { color: #ffffff; }

.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.header__main { height: 78px; display: flex; align-items: center; gap: 28px; }
.mobile-header-action, .mobile-bottom-nav { display: none; }
.logo { width: 190px; flex: 0 0 auto; }
.logo img { width: 190px; height: 61px; object-fit: contain; mix-blend-mode: multiply; }
.search-box { height: 44px; display: flex; align-items: center; flex: 1; overflow: hidden; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.search-box--desktop { max-width: 570px; }
.search-category { height: 100%; display: flex; align-items: center; padding: 0 16px; border: 0; border-right: 1px solid #ddd; background: #f4f4f4; color: #333; white-space: nowrap; cursor: pointer; font-size: 11px; font-weight: 700; }
.search-category span { margin-left: 7px; color: #777; }
.search-box input { min-width: 0; flex: 1; height: 100%; padding: 0 15px; border: 0; outline: 0; background: transparent; color: #222; font-size: 12px; }
.search-box input::placeholder { color: #999; }
.search-submit { width: 48px; height: 100%; display: grid; place-items: center; border: 0; background: var(--primary); color: #fff; cursor: pointer; transition: background .15s ease; }
.search-submit:hover { background: var(--primary-dark); }
.search-submit svg { width: 19px; height: 19px; stroke-width: 2.2; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.account-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: #222; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.account-button > svg { width: 36px; height: 36px; padding: 8px; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #222; }
.account-button span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.account-button small { color: #999; font-size: 8px; font-weight: 500; }
.cart-button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #222; cursor: pointer; }
.cart-button svg { width: 21px; height: 21px; }
.cart-button .cart-count { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; font-size: 8px; }
.cart-count { min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: 50px; background: var(--orange); color: #fff; font-size: 9px; }
.mobile-search { display: none; }

.promo-area { padding: 16px 0 20px; }
.store-notice { height: 36px; display: grid; grid-template-columns: auto minmax(0,1fr); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--primary-border); border-radius: 6px; background: var(--primary-soft); color: #1e3a8a; font-size: 11px; }
.store-notice__label { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #dbeafe; color: #1e3a8a; box-shadow: 8px 0 15px rgba(29,108,224,.08); white-space: nowrap; }
.store-notice__label svg { width: 15px; height: 15px; flex: 0 0 auto; }
.store-notice__label strong { font-size: 10px; letter-spacing: .08em; }
.new-product-ticker { min-width: 0; overflow: hidden; }
.new-product-ticker__track { width: max-content; height: 100%; display: flex; align-items: center; animation: new-product-ticker 28s linear infinite; will-change: transform; }
.new-product-ticker__group { height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.new-product-ticker__item { display: flex; align-items: center; gap: 7px; padding: 0 18px; white-space: nowrap; font-weight: 600; }
.new-product-ticker__item::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); }
@keyframes new-product-ticker { to { transform: translateX(-50%); } }
.banner-slider { height: auto; position: relative; overflow: hidden; padding-bottom: 28px; touch-action: pan-y; user-select: none; }
.banner-track { height: auto; display: flex; align-items: center; gap: 14px; will-change: transform; transition: transform .52s cubic-bezier(.22,.72,.25,1); }
.banner-track.is-jumping { transition: none; }
.promo-slide { position: relative; height: auto; aspect-ratio: 1200/460; flex: 0 0 74%; overflow: hidden; border-radius: 7px; opacity: .42; pointer-events: none; transform: scale(.955); background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: opacity .45s ease, transform .45s ease, box-shadow .45s ease; }
.promo-slide.is-active { z-index: 2; opacity: 1; pointer-events: auto; transform: scale(1); box-shadow: 0 7px 22px rgba(0,0,0,.18); }
.promo-slide > img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-arrow { position: absolute; z-index: 5; top: 45%; width: 34px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 3px; background: rgba(255,255,255,.92); color: #222; cursor: pointer; transform: translateY(-50%); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.banner-arrow svg { width: 18px; height: 18px; }
.banner-arrow--prev { left: 18px; }
.banner-arrow--prev svg { transform: rotate(180deg); }
.banner-arrow--next { right: 18px; }
.banner-dots { position: absolute; z-index: 5; left: 50%; bottom: 4px; display: flex; gap: 6px; transform: translateX(-50%); }
.banner-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d2d2d2; cursor: pointer; }
.banner-dots button.is-active { width: 22px; border-radius: 10px; background: var(--orange); }

.quick-info { min-height: 66px; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.quick-info > div { display: flex; align-items: center; justify-content: center; gap: 11px; border-right: 1px solid var(--line); }
.quick-info > div:last-child { border-right: 0; }
.quick-info svg { width: 24px; height: 24px; color: var(--primary); }
.quick-info span { display: flex; flex-direction: column; gap: 2px; color: #64748b; font-size: 10.5px; }
.quick-info strong { color: #1f2937; font-size: 12px; }

.category-section { padding-top: 20px; }
.category-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.category-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.category-head span { color: #64748b; font-size: 11px; }
.category-carousel { position: relative; }
.category-list { display: grid; grid-template-rows: repeat(2,110px); grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px 8px; overflow-x: auto; padding: 2px 42px 8px; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-arrow { position: absolute; z-index: 4; top: 50%; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #e3e3e3; border-radius: 50%; background: rgba(255,255,255,.96); color: #222; cursor: pointer; transform: translateY(-50%); box-shadow: 0 4px 13px rgba(0,0,0,.1); transition: opacity .2s, color .2s, border-color .2s, transform .2s; }
.category-arrow:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-50%) scale(1.05); }
.category-arrow:disabled { opacity: .28; cursor: default; pointer-events: none; }
.category-arrow svg { width: 16px; height: 16px; }
.category-arrow--prev { left: 2px; }
.category-arrow--prev svg { transform: rotate(180deg); }
.category-arrow--next { right: 2px; }
.category-item { min-width: 0; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #111; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.category-item:hover, .category-item.is-active { border-color: var(--primary-border); background: var(--primary-soft); box-shadow: 0 5px 16px rgba(29,108,224,.1); transform: translateY(-2px); }
.category-item b { max-width: 100%; min-height: 28px; padding: 0 5px; overflow: hidden; text-align: center; font-size: 11.5px; line-height: 1.25; }
.category-photo { width: 68px; height: 62px; display: block; background-repeat: no-repeat; border-radius: 9px; background-color: #f8fafc; }
.all-products { width: 58px; height: 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; border-radius: 12px; background: #f1f3f5; }
.all-products i { border-radius: 4px; background: #e53935; }
.all-products i:nth-child(2) { background: #f5e1b9; }
.all-products i:nth-child(3) { background: #087cc1; }
.all-products i:nth-child(4) { background: #169b55; }

.product-section { padding: 32px 0 38px; background: #fff; }
.product-section--discount { border: 0; background: #fff; }
.product-section--favorite { background: #fff; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.section-title > div:first-child { position: relative; padding-left: 12px; }
.section-accent { position: absolute; left: 0; top: 2px; width: 4px; height: 40px; border-radius: 4px; background: var(--primary); }
.section-title h2 { margin: 0 0 3px; color: #0f172a; font-size: 21px; font-weight: 800; }
.section-title p { margin: 0; color: #64748b; font-size: 12px; }
.carousel-controls { display: flex; gap: 6px; }
.carousel-controls button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 50%; background: #fff; cursor: pointer; }
.carousel-controls button:first-child svg { transform: rotate(180deg); }
.carousel-controls svg { width: 15px; height: 15px; }
.product-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; overflow-x: auto; padding: 1px 1px 8px; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: #bbb transparent; }
.product-card { min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #ddd; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.product-card[hidden] { display: none; }
.product-image { position: relative; aspect-ratio: 1.12/1; background-repeat: no-repeat; border-bottom: 1px solid #ececec; }
.product-media--grocery { background-image: url("assets/images/products-grocery.png"); background-size: 300% 200%; }
.product-media--daily { background-image: url("assets/images/products-daily.png"); background-size: 300% 200%; }
.p-rice { background-position: 0 0; }
.p-oil { background-position: 50% 0; }
.p-noodle { background-position: 100% 0; }
.p-water { background-position: 0 100%; }
.p-biscuit { background-position: 50% 100%; }
.p-coffee { background-position: 100% 100%; }
.p-milk { background-position: 0 0; }
.p-tea { background-position: 50% 0; }
.p-detergent { background-position: 100% 0; }
.p-soap { background-position: 0 100%; }
.p-cigarette { background-position: 50% 100%; }
.p-soda { background-position: 100% 100%; }
.discount-badge, .favorite-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 5px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; }
.favorite-badge { background: var(--primary); }
.product-detail { padding: 15px; }
.product-type { display: block; color: var(--primary-dark); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.product-detail h3 { min-height: 46px; margin: 7px 0 8px; color: #0f172a; font-size: 15.5px; font-weight: 750; line-height: 1.4; }
.sold { margin: 0 0 10px; color: #64748b; font-size: 11px; }
.product-detail del { display: block; min-height: 18px; color: #94a3b8; font-size: 11px; }
.price { display: block; margin-top: 3px; color: #dc2626; font-size: 18px; font-weight: 850; }
.price small { color: #64748b; font-size: 11px; font-weight: 650; }
.carton-price { min-height: 32px; margin: 7px 0 12px; color: #334155; font-size: 11px; font-weight: 650; line-height: 1.45; }
.add-cart { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; cursor: pointer; font-size: 12.5px; font-weight: 800; transition: background .15s ease; }
.add-cart:hover { background: var(--primary-dark); }
.add-cart svg { width: 14px; height: 14px; }
.product-section--favorite .section-title { margin-bottom: 18px; }
.favorite-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: initial; gap: 16px; overflow: visible; padding: 0; scroll-snap-type: none; scrollbar-width: auto; }
.favorite-grid .product-card { scroll-snap-align: none; }
.favorite-grid .favorite-badge { display: none; }
.favorite-load-more { min-width: 176px; height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px auto 0; padding: 0 20px; border: 1.5px solid var(--primary); border-radius: 6px; background: #fff; color: var(--primary-dark); cursor: pointer; font-size: 12px; font-weight: 800; transition: background .2s,color .2s,transform .2s; }
.favorite-load-more:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.favorite-load-more svg { width: 13px; height: 13px; transform: rotate(90deg); }
.favorite-load-more[hidden] { display: none; }
.discount-panel { position: relative; isolation: isolate; padding: 22px 25px 24px; overflow: hidden; border: 1px solid rgba(29,108,224,.16); border-radius: 14px; background: linear-gradient(115deg,#134eb0 0%,#1d6ce0 52%,#3b82f6 100%); box-shadow: 0 10px 28px rgba(20,81,181,.18); }
.discount-panel::before { content: ""; position: absolute; z-index: -1; top: -115px; right: -75px; width: 330px; height: 260px; border-radius: 50%; background: radial-gradient(circle,rgba(255,255,255,.45) 0 2px,transparent 3px) 0 0/18px 18px; opacity: .35; transform: rotate(-8deg); }
.discount-panel .section-title { align-items: center; margin-bottom: 17px; }
.discount-panel .section-title > div:first-child { padding-left: 0; }
.discount-panel .section-accent { display: none; }
.section-eyebrow { display: block; width: max-content; margin-bottom: 6px; padding: 5px 9px; border-radius: 4px; background: rgba(255,255,255,.2); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.discount-panel .section-title h2 { margin-bottom: 4px; color: #fff; font-size: 27px; letter-spacing: -.035em; }
.discount-panel .section-title p { color: rgba(255,255,255,.9); font-size: 13px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 50px; background: rgba(255,255,255,.92); color: var(--primary-dark); font-size: 12px; font-weight: 800; white-space: nowrap; transition: background .2s, transform .2s; }
.section-link:hover { background: #fff; transform: translateY(-1px); }
.section-link svg { width: 13px; height: 13px; }
.discount-carousel-wrap { position: relative; }
.discount-panel .product-carousel { grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; padding: 2px 2px 5px; scrollbar-width: none; }
.discount-panel .product-carousel::-webkit-scrollbar { display: none; }
.discount-panel .product-card { border: 0; border-radius: 9px; box-shadow: 0 4px 12px rgba(15,35,85,.18); transition: transform .2s, box-shadow .2s; }
.discount-panel .product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,35,85,.24); }
.discount-panel .product-image { background-color: #fff; }
.discount-panel .discount-badge { background: #e8302a; }
.discount-panel .add-cart { border-radius: 6px; background: var(--primary); }
.discount-panel .add-cart:hover { background: var(--primary-dark); }
.discount-edge-control { position: absolute; z-index: 5; top: 42%; width: 38px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(20,81,181,.15); border-radius: 50px; background: #fff; color: var(--primary-dark); cursor: pointer; box-shadow: 0 4px 13px rgba(15,35,85,.18); transform: translateY(-50%); transition: transform .2s, background .2s, color .2s; }
.discount-edge-control:hover { background: var(--primary-dark); color: #fff; transform: translateY(-50%) scale(1.06); }
.discount-edge-control svg { width: 17px; height: 17px; }
.discount-edge-control--prev { left: -17px; }
.discount-edge-control--prev svg { transform: rotate(180deg); }
.discount-edge-control--next { right: -17px; }
.no-results { margin: 20px 0 0; color: #777; text-align: center; font-size: 11px; }

.footer { background: #1565c0; color: #ffffff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.2fr; gap: 50px; padding: 45px 0 38px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { width: 205px; height: 89px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer h3 { margin: 0 0 8px; color: #fff; font-size: 14px; font-weight: 800; }
.footer p, .footer a, .footer span { color: rgba(255,255,255,.9); font-size: 12px; line-height: 1.7; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer__brand p { max-width: 290px; }
.footer__brand > a { display: flex; align-items: center; gap: 6px; color: #ffffff; font-size: 13px; font-weight: 700; }
.footer__brand svg { width: 16px; height: 16px; }
.footer-wa { width: max-content; padding: 8px 14px; border: 1px solid rgba(255,255,255,.65); border-radius: 6px; color: #fff !important; font-weight: 700; transition: background .15s ease; }
.footer-wa:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.footer__bottom { background: #0e4c96; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.88); font-size: 11px; }
.footer__bottom .container { height: 46px; display: flex; align-items: center; }
.floating-wa { position: fixed; z-index: 25; right: 20px; bottom: 20px; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 15px; border-radius: 50px; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(14,113,57,.25); font-size: 10px; font-weight: 700; }
.floating-wa svg { width: 21px; height: 21px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart-drawer { position: fixed; z-index: 61; top: 0; right: 0; width: min(420px,100%); height: 100dvh; display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .3s ease; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open .cart-drawer { transform: translateX(0); }
.cart-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #ddd; }
.cart-head small { color: var(--orange); font-size: 8px; font-weight: 800; }
.cart-head h2 { margin: 3px 0 0; font-size: 20px; }
.cart-head button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 50%; background: #fff; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 22px; }
.empty-cart { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #888; }
.empty-cart svg { width: 42px; height: 42px; }
.empty-cart strong { color: #333; font-size: 12px; }
.empty-cart span { font-size: 9px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px 0; border-bottom: 1px solid #eee; }
.cart-line h3 { margin: 0 0 5px; font-size: 10px; line-height: 1.5; }
.cart-line strong { color: var(--orange-dark); font-size: 10px; }
.qty-control { display: flex; align-items: center; gap: 5px; }
.qty-control button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.qty-control svg { width: 12px; height: 12px; }
.qty-control span { min-width: 16px; text-align: center; font-size: 10px; }
.cart-footer { padding: 18px 22px; border-top: 1px solid #ddd; }
.cart-footer > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; font-size: 11px; }
.cart-footer > div strong { font-size: 16px; }
.checkout-button { width: 100%; height: 44px; border: 0; border-radius: 4px; background: var(--orange); color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.checkout-button:disabled { opacity: .45; cursor: not-allowed; }
.cart-footer > small { display: block; margin-top: 7px; color: #999; text-align: center; font-size: 8px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; min-width: 280px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 5px; background: #111; color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%,20px); transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.toast > svg { width: 18px; height: 18px; color: var(--orange); }
.toast div { display: flex; flex-direction: column; gap: 2px; }
.toast strong { font-size: 9px; }
.toast span { color: #bbb; font-size: 8px; }

@media (max-width: 1000px) {
  .logo { width: 160px; }
  .logo img { width: 160px; }
  .header__main { gap: 16px; }
  .account-button span { display: none; }
  .account-button > svg { width: 36px; height: 36px; }
  .search-category { display: none; }
  .category-list { grid-auto-columns: 135px; }
  .product-carousel { grid-auto-columns: calc((100% - 48px) / 4); }
  .discount-panel .product-carousel { grid-auto-columns: calc((100% - 36px) / 4); }
  .favorite-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 116px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 22px); }
  .topbar__inner { height: 29px; font-size: 8px; }
  .topbar__inner > div > span { display: none; }
  .header__main { position: relative; height: 72px; justify-content: space-between; }
  .logo { position: absolute; left: 50%; width: 145px; transform: translateX(-50%); }
  .logo img { width: 145px; height: 56px; }
  .mobile-header-action { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e5e5e5; border-radius: 50%; background: #fff; color: #202020; }
  .mobile-header-action svg { width: 22px; height: 22px; stroke-width: 1.9; }
  .mobile-header-action--menu { margin-right: auto; }
  .mobile-header-action--search { margin-left: auto; padding: 0; cursor: pointer; }
  .mobile-header-action--account { margin-left: 0; }
  .mobile-search-icon--close { display: none; }
  .mobile-header-action--search[aria-expanded="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
  .mobile-header-action--search[aria-expanded="true"] .mobile-search-icon--open { display: none; }
  .mobile-header-action--search[aria-expanded="true"] .mobile-search-icon--close { display: block; }
  .search-box--desktop, .account-button { display: none; }
  .header__actions { display: none; }
  .mobile-search:not([hidden]) { display: block; padding-bottom: 12px; animation: mobile-search-in .18s ease-out; }
  .mobile-search .search-box { height: 43px; border-color: #ddd; border-radius: 24px; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
  .mobile-search .search-submit { width: 49px; border-radius: 50%; }
  @keyframes mobile-search-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
  .promo-area { padding-top: 10px; }
  .store-notice { height: 34px; margin-bottom: 10px; }
  .store-notice__label { gap: 5px; padding: 0 8px; }
  .store-notice__label svg { width: 13px; height: 13px; }
  .store-notice__label strong { font-size: 9px; }
  .new-product-ticker__item { padding: 0 12px; font-size: 10px; }
  .banner-slider { height: auto; padding-bottom: 22px; }
  .banner-track { height: auto; gap: 8px; }
  .promo-slide { height: auto; aspect-ratio: 1200/460; flex-basis: 100%; }
  .promo-slide::after { display: none; }
  .banner-arrow { width: 27px; height: 34px; }
  .banner-arrow--prev { display: grid; left: 5px; }
  .banner-arrow--next { right: 5px; }
  .banner-dots { bottom: 3px; }
  .quick-info { min-height: 60px; }
  .quick-info > div { gap: 5px; padding: 8px 5px; }
  .quick-info svg { width: 19px; height: 19px; }
  .quick-info span { font-size: 8.5px; }
  .quick-info strong { font-size: 10px; }
  .category-head { margin-bottom: 9px; }
  .category-list { grid-template-rows: repeat(2,96px); grid-auto-columns: 92px; max-width: 100%; gap: 7px 6px; padding: 2px 28px 9px; }
  .category-arrow { width: 29px; height: 29px; }
  .category-arrow svg { width: 14px; height: 14px; }
  .category-arrow--prev { left: -3px; }
  .category-arrow--next { right: -3px; }
  .category-item { height: 96px; gap: 5px; scroll-snap-align: start; }
  .category-item b { min-height: 25px; padding: 0 3px; font-size: 10.5px; }
  .category-photo { width: 56px; height: 55px; }
  .all-products { width: 53px; height: 53px; }
  .product-section { padding: 27px 0 31px; }
  .product-section--discount { padding: 20px 0 26px; }
  .section-title h2 { font-size: 19px; }
  .section-title p { font-size: 11px; }
  .carousel-controls { display: none; }
  .product-carousel { grid-auto-columns: minmax(170px, 54%); max-width: 100%; gap: 10px; scrollbar-width: none; }
  .discount-panel { padding: 16px 12px 14px; border-radius: 11px; }
  .discount-panel::before { top: -130px; right: -130px; }
  .discount-panel .section-title { align-items: flex-end; margin-bottom: 13px; }
  .discount-panel .section-title h2 { font-size: 22px; }
  .discount-panel .section-title p { max-width: 240px; font-size: 11.5px; line-height: 1.45; }
  .section-eyebrow { margin-bottom: 4px; padding: 4px 7px; font-size: 9px; }
  .section-link { gap: 4px; padding: 8px 11px; font-size: 10.5px; }
  .section-link svg { width: 11px; height: 11px; }
  .discount-panel .product-carousel { grid-auto-columns: minmax(170px,60%); gap: 9px; padding-inline: 1px; }
  .favorite-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-columns: initial; gap: 10px; overflow: visible; padding: 0; }
  .favorite-load-more { margin-top: 18px; }
  .discount-edge-control { top: 31%; width: 31px; height: 41px; }
  .discount-edge-control--prev { left: -9px; }
  .discount-edge-control--next { right: -9px; }
  .product-carousel::-webkit-scrollbar { display: none; }
  .product-detail { padding: 11px; }
  .product-type { font-size: 10px; }
  .product-detail h3 { min-height: 42px; margin: 6px 0 7px; font-size: 13.5px; line-height: 1.38; }
  .sold { margin-bottom: 8px; font-size: 10px; }
  .product-detail del { min-height: 15px; font-size: 10px; }
  .price { font-size: 15.5px; }
  .price small { font-size: 10px; }
  .carton-price { min-height: 28px; margin: 6px 0 10px; font-size: 10px; }
  .add-cart { height: 39px; font-size: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 34px 0; }
  .footer__brand { grid-column: 1/-1; }
  .footer__grid > div:last-child { grid-column: 1/-1; }
  .floating-wa { display: none; }
  .toast { bottom: 70px; min-width: calc(100% - 24px); }
  .mobile-bottom-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding: 5px 8px env(safe-area-inset-bottom); border-top: 1px solid #e5e5e5; background: rgba(255,255,255,.97); box-shadow: 0 -5px 20px rgba(0,0,0,.08); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #666; cursor: pointer; font-size: 10px; font-weight: 650; }
  .mobile-bottom-nav a.is-active { color: var(--primary-dark); }
  .mobile-bottom-nav svg { width: 22px; height: 22px; stroke-width: 1.8; }
  .mobile-bottom-nav .mobile-wa-icon { color: #25d366; }
  .mobile-cart-icon { position: relative; display: grid; place-items: center; }
  .mobile-cart-icon .cart-count { position: absolute; top: -7px; right: -12px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 7px; }
}

@media (max-width: 390px) {
  .quick-info svg { display: none; }
  .product-carousel { grid-auto-columns: minmax(155px, 57%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
