/* Template 01 component primitives. Pages only compose these components. */
.x-ui { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--x-text); }
.x-ui *, .x-ui *::before, .x-ui *::after { box-sizing: border-box; }
.x-ui button, .x-ui input, .x-ui textarea, .x-ui select { font: inherit; }
.x-ui button { -webkit-tap-highlight-color: transparent; }
.x-ui img { display:block; max-width:100%; }
.x-ui a { color:inherit; text-decoration:none; }

.x-btn { border:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 16px; border-radius:14px; font-weight:700; transition: none; }
.x-btn--lime { background:var(--x-lime); color:#171b14; }
.x-btn--dark { background:#2b302b; color:#fff; }
.x-btn--ghost { background:#f2f3f0; color:#2b302b; }
.x-icon-btn { width:42px; height:42px; padding:0; border-radius:50%; border:1px solid rgba(31,37,32,.06); background:#fff; color:#2b302b; display:inline-flex; align-items:center; justify-content:center; }

.x-card { background:var(--x-surface); border-radius:var(--x-radius-card); box-shadow:var(--x-shadow-card); }

.x-sheet-backdrop { position:fixed; inset:0; background:rgba(19,22,18,.48); z-index:9000; opacity:0; visibility:hidden; transition:opacity .22s ease, visibility .22s ease; }
.x-sheet-backdrop.is-open { opacity:1; visibility:visible; }
.x-bottom-sheet { position:fixed; left:0; right:0; bottom:0; z-index:9001; background:#fff; border-radius:20px 20px 0 0; box-shadow:0 -10px 40px rgba(20,24,18,.16); transform:translateY(105%); transition:transform .24s cubic-bezier(.22,.75,.2,1); max-height:min(88vh, 760px); display:flex; flex-direction:column; }
.x-bottom-sheet.is-open { transform:translateY(0); }
.x-sheet-grabber { width:48px; height:5px; border-radius:999px; background:#c9cdc7; margin:10px auto 12px; flex:0 0 auto; }
.x-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 18px 12px; flex:0 0 auto; }
.x-sheet-title { font-size:16px; font-weight:800; }
.x-sheet-scroll { overflow:auto; padding:0 18px calc(18px + env(safe-area-inset-bottom)); overscroll-behavior:contain; }
.x-sheet-close { width:40px; height:40px; border-radius:50%; border:0; background:#fff; color:#2a2f2a; box-shadow:0 6px 18px rgba(0,0,0,.1); display:inline-flex; align-items:center; justify-content:center; font-size:24px; line-height:1; }

.x-topbar { position:sticky; top:0; z-index:5000; width:100%; background:var(--x-lime); }
.x-topbar__inner { width:100%; display:flex; align-items:center; gap:10px; padding:10px 16px; min-height:62px; }
.x-topbar__left { display:flex; align-items:center; gap:8px; min-width:0; flex:1 1 auto; }
.x-topbar__right { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.x-location-pill, .x-join-pill { min-height:40px; border-radius:999px; display:inline-flex; align-items:center; gap:8px; padding:0 13px; font-size:12px; font-weight:800; white-space:nowrap; }
.x-location-pill { background:#2b302b; color:#fff; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.x-join-pill { background:#fff; color:#232722; border:1px solid rgba(35,39,34,.15); box-shadow:inset 0 1px 0 rgba(255,255,255,.8), inset -1px 0 0 rgba(35,39,34,.14); }

.x-home-head { background:var(--x-lime); position:relative; padding-bottom:116px; }
.x-clock-block { text-align:center; padding:8px 16px 4px; }
.x-clock { font-size:40px; line-height:1.04; font-weight:600; letter-spacing:-1.2px; }
.x-date { margin-top:4px; font-size:14px; line-height:1.35; color:#31362f; font-weight:700; }
.x-hero { position:absolute; left:16px; right:16px; bottom:-4px; border-radius:24px; overflow:hidden; box-shadow:0 12px 34px rgba(20,24,18,.14); height:190px; background:#eef0ea; }
.x-hero-track { display:flex; height:100%; transition:transform .35s ease; }
.x-hero-slide { flex:0 0 100%; height:100%; position:relative; }
.x-hero-slide__bg { position:absolute; inset:0; background:linear-gradient(135deg,#eef5d8,#dceac4); }
.x-hero-slide__content { position:relative; z-index:1; padding:24px; display:flex; flex-direction:column; justify-content:flex-end; height:100%; }
.x-hero-slide__eyebrow { font-size:12px; font-weight:800; opacity:.75; margin-bottom:6px; }
.x-hero-slide__title { font-size:24px; line-height:1.05; font-weight:800; max-width:230px; }
.x-hero-slide__copy { margin-top:6px; font-size:12px; max-width:230px; color:#4d5549; }
.x-hero-dots { position:absolute; left:18px; bottom:14px; display:flex; gap:6px; z-index:2; }
.x-hero-dot { width:6px; height:6px; border-radius:50%; background:rgba(39,44,37,.25); }
.x-hero-dot.is-active { width:18px; border-radius:999px; background:#2b302b; }

.x-home-content { background:#fff; padding:92px 0 110px; min-height:60vh; }
.x-section-head { display:flex; justify-content:space-between; align-items:center; padding:0 16px 10px; }
.x-section-title { font-size:16px; line-height:1.2; font-weight:800; }
.x-section-caption { font-size:12px; color:var(--x-muted); }
.x-category-wrap { position:sticky; top:62px; z-index:4900; background:#fff; border-bottom:1px solid rgba(31,37,32,.06); }
.x-category-scroller { display:flex; gap:16px; overflow-x:auto; padding:12px 16px 14px; scrollbar-width:none; scroll-snap-type:x proximity; }
.x-category-scroller::-webkit-scrollbar { display:none; }
.x-category-item { flex:0 0 82px; scroll-snap-align:start; text-align:center; border:0; background:transparent; padding:0; color:#2e342d; }
.x-category-image { width:78px; height:78px; margin:0 auto 8px; border-radius:15px; object-fit:cover; background:#edf0ea; }
.x-category-name { display:block; min-height:30px; font-size:11px; line-height:1.35; font-weight:800; }
.x-category-item.is-active .x-category-name { color:#8bb600; }
.x-category-item.is-active::after { content:''; display:block; height:2px; margin:7px auto 0; width:28px; background:#8bb600; border-radius:999px; }

.x-product-list { padding:12px 16px 0; }
.x-product-card { display:grid; grid-template-columns:minmax(0,1fr) 116px; column-gap:16px; padding:16px; margin:0 0 14px; border:1px solid #eceeea; border-radius:20px; background:#fff; box-shadow:0 6px 20px rgba(20,24,18,.05); }
.x-product-info { min-width:0; display:flex; flex-direction:column; justify-content:flex-start; }
.x-product-title { font-size:15px; line-height:1.35; font-weight:800; margin:0; }
.x-product-desc { margin:6px 0 0; font-size:12px; line-height:1.45; color:#676d66; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:35px; }
.x-price-old { margin-top:10px; font-size:11px; color:#a3a8a0; text-decoration:line-through; font-weight:700; }
.x-price { margin-top:2px; font-size:15px; font-weight:800; }
.x-product-actions { display:flex; flex-direction:column; align-items:center; gap:8px; }
.x-product-image-btn { width:112px; height:112px; padding:0; border:0; background:transparent; border-radius:18px; overflow:hidden; cursor:pointer; }
.x-product-image { width:100%; height:100%; object-fit:cover; border-radius:18px; background:#eef0ea; }
.x-qty { width:112px; min-height:36px; display:grid; grid-template-columns:36px 1fr 36px; align-items:center; border:1px solid #dfe3dc; border-radius:999px; background:#fff; overflow:hidden; }
.x-qty button { width:36px; height:36px; border:0; background:transparent; color:#2c312b; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:900; }
.x-qty span { text-align:center; font-size:13px; font-weight:800; }
.x-note-link { width:112px; min-height:32px; border:0; background:#fff; color:#555c53; font-size:11px; font-weight:800; text-align:center; }
.x-note-link.has-note { color:#262b26; }

.x-bottom-shell { position:fixed; left:0; right:0; bottom:0; z-index:6000; background:#fff; box-shadow:0 -8px 28px rgba(17,22,16,.12); transform:translateY(110%); transition:transform .24s cubic-bezier(.22,.75,.2,1); padding-bottom:env(safe-area-inset-bottom); }
.x-bottom-shell.is-visible { transform:translateY(0); }
.x-promo-strip { background:#f9faf7; padding:10px 16px 8px; }
.x-promo-text { font-size:11px; font-weight:800; color:#353a33; margin-bottom:8px; }
.x-promo-progress { height:5px; background:#e8ece4; border-radius:999px; overflow:hidden; }
.x-promo-progress > span { display:block; width:0; height:100%; background:var(--x-lime); border-radius:999px; transition:width .18s ease; }
.x-bottom-row { display:grid; grid-template-columns:minmax(0,1fr) 58px; gap:10px; align-items:center; padding:10px 14px 12px; }
.x-quick-checkout { min-width:0; min-height:58px; border:0; border-radius:16px; background:var(--x-lime); display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:0 14px; color:#20251f; }
.x-quick-checkout__qty { font-size:14px; font-weight:900; white-space:nowrap; }
.x-quick-checkout__source { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:10px; font-weight:800; text-align:left; }
.x-quick-checkout__total { font-size:14px; font-weight:900; white-space:nowrap; }
.x-cart-action { width:58px; height:58px; border:0; border-radius:16px; background:#fff; border:1px solid #dfe3dc; display:flex; align-items:center; justify-content:center; position:relative; }
.x-cart-icon { font-size:20px; line-height:1; filter:grayscale(1); }
.x-cart-badge { position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#ef3b3b; color:#fff; font-size:10px; font-weight:900; display:flex; align-items:center; justify-content:center; }

.x-page { min-height:100vh; background:#fff; }
.x-page__header { position:sticky; top:0; z-index:5000; background:#fff; border-bottom:1px solid var(--x-border); }
.x-page__head-row { min-height:60px; display:flex; align-items:center; gap:12px; padding:0 16px; }
.x-page__back { width:40px; height:40px; border-radius:50%; border:0; background:#f1f3ef; display:flex; align-items:center; justify-content:center; font-size:20px; }
.x-page__title { font-size:14px; font-weight:900; }
.x-page__body { padding:16px; }
.x-branch-card { padding:16px; border:1px solid #e9ece6; border-radius:20px; margin-bottom:14px; }
.x-branch-card__head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.x-branch-card__name { font-size:14px; font-weight:900; }
.x-branch-card__meta { margin-top:4px; font-size:11px; color:var(--x-muted); }
.x-cart-line { display:grid; grid-template-columns:64px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid #eff1ed; }
.x-cart-line:last-child { border-bottom:0; }
.x-cart-line__image { width:64px; height:64px; border-radius:14px; object-fit:cover; background:#eef0ea; }
.x-cart-line__name { font-size:13px; font-weight:800; }
.x-cart-line__note { margin-top:3px; font-size:10px; color:var(--x-muted); }
.x-cart-line__price { text-align:right; font-size:12px; font-weight:800; white-space:nowrap; }
.x-summary-card { padding:16px; border-radius:20px; background:#f7f8f5; }
.x-summary-row { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; padding:5px 0; }
.x-summary-row--total { margin-top:8px; padding-top:12px; border-top:1px solid #dfe4da; font-size:15px; font-weight:900; }

.x-checkout { padding-bottom:110px; }
.x-checkout-section { padding:16px; border-bottom:8px solid #f5f6f3; }
.x-checkout-section h2 { margin:0 0 12px; font-size:14px; font-weight:900; }
.x-checkout-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; }
.x-checkout-row + .x-checkout-row { border-top:1px solid #eff1ed; }
.x-checkout-label { font-size:11px; color:var(--x-muted); }
.x-checkout-value { margin-top:4px; font-size:13px; font-weight:900; }
.x-checkout-edit { border:0; background:transparent; color:#4c5548; font-size:12px; font-weight:800; }
.x-checkout-sticky { position:fixed; left:0; right:0; bottom:0; z-index:5900; background:#fff; border-top:1px solid var(--x-border); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); }
.x-checkout-sticky__row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; }
.x-payment-mini { font-size:11px; font-weight:800; color:#3a4137; }
.x-checkout-total { text-align:right; }
.x-checkout-total small { display:block; color:var(--x-muted); font-size:10px; }
.x-checkout-total strong { display:block; font-size:15px; }
.x-checkout-cta { min-height:46px; padding:0 16px; border:0; border-radius:14px; background:var(--x-lime); font-weight:900; }

.x-empty { padding:28px 16px; text-align:center; color:var(--x-muted); font-size:12px; }
.x-toast { position:fixed; left:50%; bottom:calc(98px + env(safe-area-inset-bottom)); transform:translate(-50%, 16px); background:#2b302b; color:#fff; padding:10px 14px; border-radius:999px; font-size:11px; font-weight:800; opacity:0; pointer-events:none; z-index:10000; transition:opacity .2s ease, transform .2s ease; }
.x-toast.is-show { opacity:1; transform:translate(-50%,0); }

@media (min-width: 768px) {
  .x-ui { min-height:100vh; }
  .x-ui__page { width:100%; max-width:none; margin:0; }
}
