/* ── Tokens (products-specific) ── */
:root {
    --p: #04764E; --pl: #e8f5ef; --acc: #f59e0b;
    --sep: #eeeeee; --row-odd: #ffffff; --row-even: #f7f9f8;
    --muted: #888;
}

/* ── Hero ── */
.hero { position: relative; height: 268px; background: url('../images/background/bg1.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.80) 100%); }
.hero-topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; z-index: 2; }
.hero-icon-btn { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: none; color: #fff; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.hero-info { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px 42px; text-align: center; }
.biz-logo { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; box-shadow: 0 4px 20px rgba(0,0,0,.35); margin-bottom: 10px; }
.biz-name { color: #fff; font-size: 18px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.biz-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.82); font-size: 12px; }
.biz-meta span { display: flex; align-items: center; gap: 4px; }
.biz-rating { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.hero-actions { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); background: rgba(0,0,0,.35); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.12); }
.hero-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 11px 4px; background: none; border: none; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .2px; border-right: 1px solid rgba(255,255,255,.12); -webkit-tap-highlight-color: transparent; transition: background .2s; }
.hero-action-btn:last-child { border-right: none; }
.hero-action-btn:active { background: rgba(255,255,255,.12); }
.hero-action-icon { font-size: 17px; line-height: 1; }

/* ── Sticky Bar ── */
.sticky-bar { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 12px 16px 0; }
.search-wrap { position: relative; margin-bottom: 12px; }
.search-wrap input { width: 100%; border: 2px solid #eee; border-radius: 50px; padding: 10px 44px 10px 18px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .25s; background: #fafafa; }
.search-wrap input:focus { border-color: var(--p); background: #fff; }
.search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0; color: #bbb; line-height: 0; }

/* ── Category Tabs ── */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.cat-scroll::-webkit-scrollbar { height: 0; }
.cat-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 50px; background: #f5f5f5; color: #555; font-size: 12px; font-weight: 600; border: 2px solid transparent; flex-shrink: 0; transition: all .2s; -webkit-tap-highlight-color: transparent; }
.cat-btn.active { background: var(--pl); color: var(--p); border-color: var(--p); }
.cat-btn .ci { font-size: 14px; }

/* ── Section Divider ── */
.sec-div { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 18px 16px 10px; display: flex; align-items: center; gap: 8px; background: #fff; }
.sec-div::after { content: ''; flex: 1; height: 1px; background: var(--sep); }

/* ── Product List ── */
.prod-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.prod-card { display: flex; align-items: stretch; border-radius: 18px; overflow: hidden; border: 1px solid var(--sep); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.prod-card.row-odd  { background: #fff; }
.prod-card.row-even { background: #f7f9f8; }
.prod-img-wrap { flex-shrink: 0; width: 110px; position: relative; }
.prod-img-wrap img { width: 110px; height: 100%; min-height: 118px; object-fit: cover; display: block; }
.prod-badge { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 3px 7px; border-radius: 20px; color: #fff; letter-spacing: .3px; }
.prod-badge.popular { background: var(--acc); }
.prod-badge.new     { background: #10b981; }
.prod-star { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.52); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 20px; display: flex; align-items: center; gap: 3px; backdrop-filter: blur(4px); }
.prod-body { flex: 1; padding: 12px 12px 12px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.prod-cat  { font-size: 9px; font-weight: 700; color: var(--p); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 3px; }
.prod-name { font-size: 13px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-desc { font-size: 11px; color: var(--muted); margin: 0 0 7px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Allergens ── */
.allergen-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.alg-wrap { position: relative; font-size: 16px; cursor: pointer; line-height: 1; -webkit-tap-highlight-color: transparent; }
.alg-tip { display: none; position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: #222; color: #fff; font-size: 10px; font-weight: 600; white-space: nowrap; padding: 5px 9px; border-radius: 8px; pointer-events: none; z-index: 99; }
.alg-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #222; }
.alg-wrap.open .alg-tip { display: block; }

/* ── Product Footer ── */
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-price { font-size: 16px; font-weight: 800; color: var(--p); margin: 0; }
.prod-price-old { font-size: 10px; color: #bbb; text-decoration: line-through; margin: 0; }
.qty-wrap { display: flex; align-items: center; background: #f0f0f0; border-radius: 12px; overflow: hidden; }
.qty-wrap button { width: 32px; height: 32px; background: none; border: none; font-size: 18px; font-weight: 700; color: var(--p); display: flex; align-items: center; justify-content: center; }
.qty-wrap span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; color: #222; }
.cust-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--p); color: #fff; border: none; padding: 7px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.cust-btn:active { transform: scale(.92); }

/* ── Empty State ── */
.empty-wrap { text-align: center; padding: 40px 20px; display: none; }
.empty-wrap.show { display: block; }
.empty-wrap .ei { font-size: 50px; margin-bottom: 10px; }
.empty-wrap h5 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #333; }
.empty-wrap p  { font-size: 12px; color: var(--muted); margin: 0; }

/* ── Cart FAB ── */
.cart-fab { position: fixed; bottom: 86px; left: 50%; transform: translateX(calc(300px - 68px)); width: 52px; height: 52px; border-radius: 50%; background: var(--p); box-shadow: 0 4px 18px rgba(4,118,78,.4); display: none; align-items: center; justify-content: center; z-index: 80; border: none; color: #fff; text-decoration: none; }
.cart-fab.show { display: flex; }
.fab-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
.fab-badge.show { display: flex; }

/* ── Modal Overlays ── */
.modal-overlay { display: none; position: fixed; top: 0; bottom: 0; width: 100%; max-width: 600px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); z-index: 9999; align-items: flex-end; }
.modal-overlay.show { display: flex; }
.modal-sheet { background: #fff; width: 100%; border-radius: 24px 24px 0 0; max-height: 90vh; overflow-y: auto; animation: slideUp .32s cubic-bezier(.16,1,.3,1); }
.modal-handle { width: 40px; height: 4px; background: #ddd; border-radius: 4px; margin: 14px auto 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--sep); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-title { font-size: 16px; font-weight: 700; color: #222; margin: 0; }
.modal-close { width: 32px; height: 32px; border-radius: 10px; background: #f5f5f5; border: none; font-size: 20px; line-height: 1; color: #555; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 16px 20px 36px; }

/* ── Info Sheet Styles ── */
.info-biz-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.info-biz-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.info-biz-name { font-size: 15px; font-weight: 700; color: #222; margin: 0 0 2px; }
.info-biz-sub  { font-size: 11px; color: var(--muted); margin: 0; }
.info-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--sep); font-size: 13px; color: #333; }
.info-row:last-child { border-bottom: none; }
.info-row-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.map-box { width: 100%; height: 200px; border-radius: 16px; background: #e8f0eb; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; border: 1px solid var(--sep); margin-bottom: 16px; }
.map-btn { background: var(--p); color: #fff; border: none; padding: 9px 22px; border-radius: 10px; font-size: 13px; font-weight: 700; margin-top: 8px; text-decoration: none; }
.rating-bar-wrap { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--sep); margin-bottom: 4px; }
.rating-big { text-align: center; }
.rating-num { font-size: 44px; font-weight: 800; color: #222; line-height: 1; }
.rating-stars-big { color: var(--acc); font-size: 18px; margin: 2px 0; }
.rating-count { font-size: 11px; color: var(--muted); }
.rating-bars { flex: 1; }
.r-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.r-bar-row span { font-size: 11px; color: var(--muted); width: 8px; }
.r-bar-bg { flex: 1; background: #eee; border-radius: 4px; height: 6px; overflow: hidden; }
.r-bar-fill { height: 100%; background: var(--acc); border-radius: 4px; }
.review-card { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sep); }
.review-card:last-child { border-bottom: none; }
.review-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-name  { font-size: 13px; font-weight: 700; color: #222; margin: 0 0 2px; }
.review-stars { color: var(--acc); font-size: 12px; margin: 0 0 5px; letter-spacing: 1px; }
.review-text  { font-size: 12px; color: #555; margin: 0; line-height: 1.55; }
.review-date  { font-size: 10px; color: var(--muted); margin: 5px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* ── Variant Sheet ── */
.var-prod-head { display: flex; gap: 14px; align-items: center; padding: 0 20px 16px; border-bottom: 1px solid var(--sep); }
.var-prod-img  { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.var-prod-name { font-size: 14px; font-weight: 700; color: #222; margin: 0 0 4px; line-height: 1.3; }
.var-prod-price { font-size: 15px; font-weight: 800; color: var(--p); margin: 0; }
.var-group { padding: 16px 20px 0; }
.var-group-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; }
.pill-row { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 8px; margin-top: 2px; }
.v-pill { padding: 7px 14px; border-radius: 50px; background: #f5f5f5; color: #444; font-size: 12px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .2s; user-select: none; -webkit-tap-highlight-color: transparent; }
.v-pill.active { background: var(--pl); color: var(--p); border-color: var(--p); }
.v-pill.chk { display: flex; align-items: center; gap: 5px; }
.v-pill.chk .chk-box { width: 14px; height: 14px; border: 2px solid #ccc; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; transition: all .2s; }
.v-pill.chk.active .chk-box { background: var(--p); border-color: var(--p); color: #fff; }
.var-divider { height: 1px; background: var(--sep); margin: 14px 20px 0; }
.var-continue { display: block; width: calc(100% - 40px); margin: 18px 20px 0; padding: 15px; background: var(--p); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }

/* ── Cart Sheet ── */
.cs-prod { display: flex; gap: 14px; align-items: center; padding: 0 20px 16px; border-bottom: 1px solid var(--sep); }
.cs-img  { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.cs-name { font-size: 14px; font-weight: 700; color: #222; margin: 0 0 3px; line-height: 1.3; }
.cs-variants { font-size: 11px; color: var(--muted); margin: 0 0 4px; }
.cs-price { font-size: 16px; font-weight: 800; color: var(--p); margin: 0; }
.cs-note { padding: 14px 20px 0; }
.cs-note label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 6px; }
.cs-note input { width: 100%; border: 2px solid #eee; border-radius: 12px; padding: 10px 14px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .25s; }
.cs-note input:focus { border-color: var(--p); }
.cs-qty-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; }
.cs-qty-lbl { font-size: 13px; font-weight: 600; color: #333; }
.cs-qty-ctrl { display: flex; align-items: center; background: #f5f5f5; border-radius: 12px; overflow: hidden; }
.cs-qty-ctrl button { width: 36px; height: 36px; background: none; border: none; font-size: 20px; font-weight: 700; color: var(--p); display: flex; align-items: center; justify-content: center; }
.cs-qty-ctrl span { min-width: 28px; text-align: center; font-size: 14px; font-weight: 700; color: #222; }
.cs-total-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 0; }
.cs-total-lbl { font-size: 13px; color: var(--muted); }
.cs-total-val { font-size: 20px; font-weight: 800; color: var(--p); }
.cs-confirm { display: block; width: calc(100% - 40px); margin: 16px 20px 0; padding: 15px; background: var(--p); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }

/* ── Filter Overlay ── */
.filter-overlay { display: none; position: fixed; top: 0; bottom: 0; width: 100%; max-width: 600px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); z-index: 9999; align-items: flex-end; }
.filter-overlay.show { display: flex; }
.filter-sheet { background: #fff; width: 100%; border-radius: 24px 24px 0 0; animation: slideUp .3s cubic-bezier(.16,1,.3,1); }
.fs-title { font-size: 16px; font-weight: 700; padding: 16px 20px; border-bottom: 1px solid var(--sep); margin: 0; }
.fs-body { padding: 16px 20px 0; }
.fs-grp-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fs-chip { padding: 7px 14px; border-radius: 50px; background: #f5f5f5; color: #555; font-size: 12px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.fs-chip.active { background: var(--pl); color: var(--p); border-color: var(--p); }
.fs-apply { display: block; width: calc(100% - 40px); margin: 8px 20px 32px; padding: 14px; background: var(--p); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }
