:root {
  --ink: #18221d;
  --muted: #68736d;
  --forest: #173d2c;
  --forest-2: #21563e;
  --sage: #a8c7ae;
  --mint: #dfece0;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --amber: #dba83f;
  --red: #b9483e;
  --shadow: 0 20px 60px rgba(30, 49, 39, .10);
  --shadow-soft: 0 10px 32px rgba(30, 49, 39, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.2rem; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.site-main { min-height: 65vh; }
.eyebrow { color: var(--forest-2); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #69a678; box-shadow: 0 0 0 5px rgba(105,166,120,.16); display: inline-block; }
.announcement { min-height: 36px; background: var(--forest); color: #eef6ef; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 18px; font-size: .82rem; text-align: center; }
.site-header { height: 76px; width: min(calc(100% - 36px), var(--max)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.22rem "Manrope", sans-serif; letter-spacing: -.04em; }
.brand-wordmark { width: 154px; height: auto; }
.brand-wordmark-light { filter: grayscale(1) brightness(0) invert(1); opacity: .94; }
.brand-icon { width: 38px; height: 38px; object-fit: cover; border-radius: 12px; }
.age-logo { width: min(100%, 220px); height: auto; margin: 0 auto 18px; }
.brand-light { color: white; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { color: #46534c; font-size: .93rem; font-weight: 600; }
.desktop-nav a:hover { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .cart-button { appearance: none; border: 0; background: var(--cream); color: var(--ink); min-width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cart-button { padding: 0 14px; gap: 8px; background: var(--forest); color: white; }
.cart-button b { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--sage); color: var(--forest); font-size: .72rem; }
.mobile-menu-button { display: none; }
.mobile-nav { display: none; }
.button { border: 0; min-height: 46px; padding: 0 20px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: white; box-shadow: 0 10px 24px rgba(23,61,44,.18); }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { background: var(--cream); color: var(--forest); }
.button-danger { background: #f4d9d5; color: #7c302b; }
.button-danger:hover { background: #ebc8c2; }
.button-quiet { background: transparent; color: var(--muted); }
.button-wide { width: 100%; }
.button-large { min-height: 58px; font-size: 1rem; }
.button-small { min-height: 36px; padding: 0 14px; border-radius: 11px; font-size: .85rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.home-intro { min-height: 670px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding-block: 70px 90px; }
.intro-copy h1 { max-width: 720px; margin: 20px 0 22px; }
.intro-copy > p { max-width: 620px; color: var(--muted); font-size: 1.12rem; margin-bottom: 30px; }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 22px; color: #59665f; font-size: .84rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; }
.intro-feature { position: relative; min-height: 520px; border-radius: 34px; overflow: hidden; background: var(--mint); box-shadow: var(--shadow); }
.intro-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,30,20,.36)); }
.intro-feature > img { width: 100%; height: 520px; object-fit: cover; }
.feature-float { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; padding: 20px; border-radius: 18px; background: rgba(255,253,248,.92); backdrop-filter: blur(16px); display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.feature-float span, .feature-float small { color: var(--muted); font-size: .8rem; }
.feature-float strong { font: 700 1.15rem "Manrope", sans-serif; }
.feature-float small { grid-column: 2; grid-row: 1 / 3; align-self: center; font-weight: 800; color: var(--forest); }
.mobile-fast-shop { display: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 0; }
.section-heading > a, .panel-head > a { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 700; white-space: nowrap; }
.section-heading.compact h2 { font-size: 1.6rem; }
.section-heading.compact { margin-bottom: 20px; }
.promo-section, .category-section, .product-section { padding-block: 70px; }
.promo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.promo-card { min-height: 230px; padding: 28px; border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; align-content: space-between; position: relative; overflow: hidden; }
.promo-card h3 { font-size: 1.5rem; margin: 0 0 10px; }
.promo-card p { color: rgba(24,34,29,.72); margin: 0; max-width: 390px; }
.promo-card > svg { width: 28px; height: 28px; }
.promo-number { font: 800 3.5rem "Manrope", sans-serif; opacity: .12; position: absolute; right: 22px; top: 10px; }
.promo-1 { background: var(--mint); }
.promo-2 { background: #f2dfb6; }
.promo-3 { background: #e5e2d9; }
.category-section { background: var(--cream); width: 100%; max-width: none; padding-inline: max(18px, calc((100% - var(--max))/2)); }
.category-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.category-card { min-height: 165px; background: var(--paper); padding: 22px; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; font: 700 1.05rem "Manrope",sans-serif; box-shadow: 0 4px 16px rgba(25,45,35,.04); transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.category-card > svg { align-self: end; color: var(--forest-2); }
.category-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--forest); }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.product-card { min-width: 0; border-radius: 22px; background: white; box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
.product-image { aspect-ratio: 1/1; background: var(--cream); display: block; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.image-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--forest-2); background: linear-gradient(145deg,var(--mint),var(--cream)); }
.image-fallback svg { width: 56px; height: 56px; opacity: .4; }
.product-badge, .sold-badge { position: absolute; top: 14px; left: 14px; padding: 7px 11px; border-radius: 99px; font-size: .7rem; font-weight: 800; background: rgba(255,253,248,.92); color: var(--forest); }
.sold-badge { background: var(--ink); color: white; }
.product-copy { padding: 18px 18px 12px; }
.product-brand { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; }
.product-copy h3 { font-size: 1.08rem; margin: 6px 0 16px; }
.product-meta { display: flex; justify-content: space-between; align-items: end; gap: 8px; color: var(--muted); font-size: .78rem; }
.product-meta strong { color: var(--forest); white-space: nowrap; }
.card-action { margin-top: auto; min-height: 44px; padding: 0 18px; background: var(--cream); display: flex; align-items: center; justify-content: space-between; color: var(--forest); font-weight: 700; font-size: .82rem; }
.card-action svg { width: 17px; }
.how-section { margin-top: 70px; background: var(--forest); color: white; padding: 90px 0; }
.section-heading.light .eyebrow { color: var(--sage); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps article { min-height: 260px; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.075); position: relative; }
.steps article > span { position: absolute; right: 24px; top: 16px; opacity: .15; font: 800 3rem "Manrope",sans-serif; }
.steps article > svg { width: 34px; height: 34px; color: var(--sage); margin-bottom: 58px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: rgba(255,255,255,.7); margin: 0; }

.page-intro { padding: 70px 0 32px; }
.page-intro h1 { font-size: clamp(2.5rem,5vw,4.6rem); margin: 12px 0; }
.page-intro > p { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.menu-tools { padding-bottom: 12px; }
.menu-search { max-width: 760px; display: flex; align-items: center; gap: 10px; background: var(--cream); padding: 8px 8px 8px 18px; border-radius: 18px; }
.menu-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 8px; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.chip { padding: 9px 15px; border-radius: 99px; background: var(--cream); color: var(--muted); font-size: .83rem; font-weight: 700; white-space: nowrap; }
.chip.active { background: var(--forest); color: white; }
.results-heading { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 24px; }
.menu-products { padding-top: 32px; }
.empty-state { text-align: center; padding: 90px 20px; grid-column: 1/-1; }
.empty-state svg { width: 50px; height: 50px; color: var(--sage); }
.empty-state h2, .empty-state h3 { margin: 16px 0 8px; }
.empty-state p { color: var(--muted); }
.empty-state.small { padding: 50px 20px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-weight: 700; font-size: .86rem; }
.product-detail { padding: 48px 0 100px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: start; }
.detail-image { aspect-ratio: 1/1; border-radius: 30px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding-top: 24px; }
.detail-copy h1 { font-size: clamp(2.4rem,5vw,4.6rem); margin: 12px 0 18px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.detail-tags span { background: var(--cream); padding: 8px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.detail-description { color: var(--muted); font-size: 1.02rem; }
.field-label, label { font-weight: 700; font-size: .88rem; }
.variant-list { margin: 30px 0 20px; display: grid; gap: 10px; }
.variant-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--cream); cursor: pointer; }
.variant-option:has(input:checked) { background: var(--mint); box-shadow: inset 0 0 0 2px var(--forest); }
.variant-option input { accent-color: var(--forest); }
.variant-option span { display: grid; }
.variant-option small { color: var(--muted); font-weight: 400; margin-top: 3px; }
.variant-option.is-sold-out { opacity: .58; cursor: not-allowed; }
.variant-option.is-sold-out:has(input:checked) { background: var(--cream); box-shadow: none; }
.variant-option .stock-note { color: #8b651d; font-weight: 800; }
.variant-option .sold-out-note { color: #8b3d36; }
.variant-price { text-align: right; }
.variant-price del { color: var(--muted); font-size: .75rem; }
.detail-assurance { display: grid; gap: 8px; margin-top: 20px; color: var(--muted); font-size: .8rem; }
.detail-assurance span { display: flex; align-items: center; gap: 8px; }
.detail-actions { display: flex; align-items: stretch; gap: 10px; }
.detail-actions form { display: flex; }

.auth-shell { min-height: 680px; display: grid; place-items: center; padding: 70px 0; }
.auth-card { width: min(100%, 500px); padding: 42px; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.6rem; margin: 10px 0; }
.auth-card > p { color: var(--muted); }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #34423a; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 0; outline: 0; background: var(--cream); color: var(--ink); padding: 13px 14px; border-radius: 13px; }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--forest-2); }
textarea { resize: vertical; }
.form-foot { margin: 20px 0 0; text-align: center; font-size: .9rem; }
.form-foot a { color: var(--forest-2); font-weight: 700; }
.setup-card { background: var(--forest); color: white; }
.setup-card .eyebrow { color: var(--sage); }
.setup-card label { color: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1/-1; }
.form-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.check-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; font-weight: 500; }
.check-row input { width: 18px; height: 18px; accent-color: var(--forest); }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; align-items: start; gap: 28px; padding-bottom: 100px; }
.checkout-form { display: grid; gap: 18px; }
.checkout-card, .account-panel, .admin-panel { padding: 28px; border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.checkout-card h2 { font-size: 1.55rem; margin: 8px 0 22px; }
.step-label { color: var(--forest-2); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.choice-card { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--cream); cursor: pointer; }
.choice-card:has(input:checked) { background: var(--mint); box-shadow: inset 0 0 0 2px var(--forest); }
.choice-card input { width: 17px; height: 17px; accent-color: var(--forest); }
.choice-card > svg { color: var(--forest); }
.choice-card span { display: grid; }
.choice-card small { color: var(--muted); font-weight: 400; }
.checkout-summary { position: relative; }
.summary-sticky { position: sticky; top: 18px; padding: 28px; border-radius: var(--radius); background: var(--forest); color: white; }
.summary-sticky .eyebrow { color: var(--sage); }
.summary-sticky > p { color: rgba(255,255,255,.65); font-size: .8rem; }
.summary-sticky > a { color: var(--sage); font-weight: 700; font-size: .85rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 15px 0; box-shadow: inset 0 -1px rgba(255,255,255,.12); }
.cart-line > div:first-child { display: grid; }
.cart-line small { color: inherit; opacity: .6; }
.cart-line b { text-align: right; }
.quantity-control { display: inline-flex; align-items: center; gap: 7px; grid-column: 1; }
.quantity-control button { width: 27px; height: 27px; border: 0; border-radius: 9px; background: rgba(255,255,255,.14); color: inherit; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.cart-total strong { font: 800 1.35rem "Manrope",sans-serif; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-cart svg { width: 42px; height: 42px; }
.success-shell { min-height: 680px; display: grid; place-items: center; padding: 70px 0; }
.success-card { width: min(100%,690px); text-align: center; background: white; box-shadow: var(--shadow); border-radius: 30px; padding: 48px; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--mint); color: var(--forest); display: grid; place-items: center; margin: 0 auto 24px; }
.success-icon svg { width: 32px; height: 32px; }
.success-card h1 { font-size: 3rem; margin: 10px 0; }
.success-card > p { color: var(--muted); }
.success-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.success-details div { background: var(--cream); border-radius: 16px; padding: 18px; display: grid; }
.success-details span { color: var(--muted); font-size: .78rem; }

.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-bottom: 100px; align-items: start; }
.account-column { display: grid; gap: 22px; }
.favorite-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.saved-addresses { display: grid; gap: 10px; margin-top: 18px; }
.saved-addresses article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 13px; border-radius: 14px; background: var(--cream); }
.saved-addresses article > div { display: grid; }
.saved-addresses small { color: var(--muted); }
.order-list { display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px; border-radius: 15px; background: var(--cream); }
.order-row > span:nth-child(2) { display: grid; }
.order-row small { color: var(--muted); }
.order-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--mint); color: var(--forest); }
.profile-panel dl, .detail-list { display: grid; gap: 15px; margin: 24px 0; }
dl div { display: grid; gap: 2px; }
dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
dd { margin: 0; }
.order-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-bottom: 100px; align-items: start; }
.receipt-items { display: grid; }
.receipt-items > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; box-shadow: inset 0 -1px #eee9df; }
.receipt-items span { display: grid; }
.receipt-items small { color: var(--muted); }
.receipt-total { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; font-size: 1.15rem; }

.site-footer { background: #10251b; color: rgba(255,255,255,.72); padding: 70px max(18px,calc((100% - var(--max))/2)); display: grid; grid-template-columns: 1.5fr .65fr 1fr; gap: 50px; }
.site-footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer strong { color: white; }
.site-footer .brand { margin-bottom: 8px; }
.compliance-note { grid-column: 1/-1; padding-top: 25px; margin: 0; font-size: .75rem; color: rgba(255,255,255,.48); }
.cart-drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.cart-drawer.open { pointer-events: auto; visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; border: 0; background: rgba(8,18,13,.48); opacity: 0; transition: opacity .25s; }
.cart-drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%,460px); background: var(--paper); padding: 24px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.cart-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { margin: 4px 0 0; }
.cart-items { flex: 1; overflow: auto; margin: 20px 0; }
.drawer-panel .cart-line { color: var(--ink); box-shadow: inset 0 -1px #eee9df; }
.drawer-panel .quantity-control button { background: var(--cream); }
.cart-footer > p { color: var(--muted); font-size: .78rem; }
.age-gate { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(10,24,16,.86); backdrop-filter: blur(16px); }
.age-gate[hidden] { display: none; }
.age-card { width: min(100%,500px); border-radius: 30px; padding: 42px; text-align: center; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.age-card h2 { font-size: 2.4rem; margin: 10px 0; }
.age-card p { color: var(--muted); }

/* Owner dashboard */
.admin-body { background: #edf0eb; }
.admin-header { position: fixed; inset: 0 auto 0 0; width: 245px; padding: 24px 18px; background: var(--forest); display: flex; flex-direction: column; z-index: 50; }
.admin-header .brand { padding: 0 10px 25px; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; }
.admin-nav a, .admin-nav button { width: 100%; min-height: 45px; border: 0; border-radius: 13px; padding: 0 13px; display: flex; align-items: center; gap: 12px; background: transparent; color: rgba(255,255,255,.72); cursor: pointer; font-weight: 600; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255,255,255,.1); color: white; }
.admin-nav form { margin-top: auto; }
.admin-menu-button { display: none; }
.admin-main { min-height: 100vh; margin-left: 245px; padding: 42px; }
.admin-page-head { max-width: 1400px; margin: 0 auto 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.admin-page-head h1 { font-size: clamp(2.2rem,4vw,3.8rem); margin: 8px 0; }
.admin-page-head p { color: var(--muted); margin: 0; }
.stat-grid { max-width: 1400px; margin: 0 auto 22px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-grid article { min-height: 150px; border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); padding: 22px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.stat-grid article span { color: var(--muted); font-size: .82rem; }
.stat-grid article strong { font: 800 2.6rem "Manrope",sans-serif; }
.stat-grid article svg { position: absolute; right: 20px; bottom: 22px; color: var(--sage); width: 28px; height: 28px; }
.admin-panel { max-width: 1400px; margin-inline: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.panel-head h2 { font-size: 1.55rem; margin: 5px 0 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; text-align: left; padding: 12px; }
.admin-table td { padding: 14px 12px; box-shadow: inset 0 1px #eee9df; vertical-align: middle; }
.admin-table td:first-child { display: table-cell; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table small { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 99px; background: var(--cream); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.status-awaiting_confirmation, .status-low_stock { background: #f4e6be; color: #775618; }
.status-confirmed, .status-active, .status-completed { background: var(--mint); color: var(--forest); }
.status-cancelled, .status-sold_out { background: #f4d9d5; color: #7c302b; }
.admin-grid-two { max-width: 1400px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.setting-summary { display: grid; gap: 10px; }
.setting-summary span { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 13px; background: var(--cream); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; color: var(--muted); }
.checklist li.done { color: var(--forest); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 15px; color: var(--muted); }
.admin-filter-form { flex: 1; display: flex; align-items: end; gap: 10px; min-width: 0; }
.admin-search { width: min(100%,450px); display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: var(--cream); }
.admin-search input { padding-inline: 0; }
.admin-search > a { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: #e9e4da; }
.admin-search > a svg { width: 16px; }
.admin-filter-field { min-width: 155px; gap: 5px; }
.admin-filter-field > span { padding-left: 4px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-filter-field select { min-height: 45px; padding-block: 10px; }
.admin-page-size { min-width: 85px; }
.admin-filter-submit { min-height: 45px; }
.admin-result-count { flex: 0 0 auto; padding-bottom: 13px; font-size: .78rem; }
.admin-search-empty td { padding: 48px 20px !important; }
.admin-search-empty div { display: grid; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.admin-search-empty svg { width: 28px; height: 28px; color: var(--sage); }
.admin-search-empty strong { color: var(--ink); }
.admin-search-empty .button { margin-top: 8px; }
.admin-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; padding: 20px 12px 4px; box-shadow: inset 0 1px #eee9df; color: var(--muted); font-size: .82rem; }
.admin-pagination > :last-child { justify-self: end; }
.admin-pagination > span:nth-child(2) { text-align: center; }
.product-cell { display: flex; align-items: center; gap: 12px; }
.product-cell img, .product-cell > span { width: 52px; height: 52px; object-fit: cover; border-radius: 13px; background: var(--cream); display: grid; place-items: center; flex: 0 0 auto; }
.product-cell div { display: grid; }
.inventory-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 120px; }
.inventory-summary strong { width: 100%; }
.inventory-summary small { padding: 3px 7px; border-radius: 99px; background: var(--cream); font-size: .68rem; }
.inventory-restored { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 11px; border-radius: 12px; color: var(--forest); background: var(--mint); font-size: .8rem; font-weight: 700; }
.inventory-restored svg { width: 17px; height: 17px; }
.admin-form-layout, .settings-layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; align-items: start; }
.form-panel { padding: 0; overflow: hidden; }
.form-section { padding: 28px; box-shadow: inset 0 -1px #eee9df; }
.form-section .form-grid { margin-top: 20px; }
.variant-section-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.variant-section-head p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.variant-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 99px; color: var(--forest); background: var(--mint); font-size: .74rem; font-weight: 800; }
.variant-editors { display: grid; gap: 14px; margin-top: 20px; }
.variant-editor { padding: 18px; border-radius: 17px; background: var(--cream); box-shadow: inset 0 0 0 1px #e7e0d3; }
.variant-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.variant-editor-head strong { font: 800 .82rem "Manrope",sans-serif; color: var(--forest); }
.variant-remove { border: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 10px; color: #8b3d36; background: #f4ded9; cursor: pointer; font-size: .74rem; font-weight: 800; }
.variant-remove svg { width: 15px; height: 15px; }
.variant-remove:disabled { opacity: .35; cursor: not-allowed; }
.variant-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.variant-editor-grid .full { grid-column: 1/-1; }
.variant-editor input, .variant-editor select { background: var(--paper); }
.variant-editor select:disabled { opacity: .72; cursor: not-allowed; }
.add-variant-button { margin-top: 16px; }
.form-actions, .settings-save { position: sticky; top: 22px; }
.form-actions h2, .settings-save h2 { font-size: 1.4rem; }
.form-actions p, .settings-save p { color: var(--muted); font-size: .85rem; }
.form-actions .button, .settings-save .button { margin-top: 10px; }
.form-preview { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; margin: 20px 0; }
.file-label { padding: 18px; border-radius: 15px; background: var(--cream); }
.file-label input { padding: 0; }
.admin-order-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr .8fr .8fr; gap: 22px; align-items: start; }
.order-update { display: grid; gap: 15px; }
.settings-main { display: grid; gap: 22px; }
.settings-section > div:first-child > p { color: var(--muted); }
.settings-section .form-grid, .settings-section .toggle-grid { margin-top: 20px; }
.promotion-admin-list, .staff-list { display: grid; gap: 10px; }
.promotion-admin-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 16px; border-radius: 15px; background: var(--cream); }
.promotion-admin-list article.inactive { opacity: .55; }
.promotion-admin-list p { color: var(--muted); margin: 5px 0; }
.promotion-admin-list small { color: var(--muted); }
.promotion-actions { display: flex; align-items: center; gap: 7px; }
.promotion-actions form { margin: 0; }
.promotions-layout { grid-template-columns: minmax(0,1fr); }
.promotions-layout > .admin-panel { width: 100%; }
.promotion-create-panel { display: grid; gap: 22px; }
.promotion-create-head h2 { margin: 5px 0; }
.promotion-create-head p { margin: 0; color: var(--muted); }
.promotion-create-fields { display: grid; grid-template-columns: minmax(240px,1.25fr) minmax(180px,.65fr) minmax(180px,.65fr); gap: 14px; }
.promotion-description { grid-column: 1/-1; }
.promotion-create-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; box-shadow: inset 0 1px #eee9df; }
.promotion-create-footer .form-hint { margin: 0; }
.promotion-create-footer .button { flex: 0 0 auto; }
.staff-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px; border-radius: 14px; background: var(--cream); }
.staff-list article > div { display: grid; }
.staff-list small { color: var(--muted); }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 15px; border-radius: 15px; background: var(--cream); cursor: pointer; }
.toggle-row span { display: grid; }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-row i { width: 46px; height: 26px; border-radius: 99px; background: #cfd4cf; position: relative; transition: background .2s; }
.toggle-row i::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.toggle-row input:checked + i { background: var(--forest); }
.toggle-row input:checked + i::after { transform: translateX(20px); }
.provider-locked { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 15px; border-radius: 15px; background: #ece9e1; color: var(--muted); }
.provider-locked span { display: grid; }
.provider-locked strong { color: var(--ink); }
.provider-locked small { font-size: .76rem; }

/* Point of sale */
.pos-page-head { max-width: 1680px; padding-bottom: 18px; }
.pos-page-head h1 { margin-bottom: 4px; }
.pos-live-status { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 99px; color: var(--forest); background: var(--mint); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pos-live-status svg { width: 18px; }
.pos-disabled { max-width: 1680px; margin-bottom: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: #f4e6be; }
.pos-disabled > svg { color: #8a661f; }
.pos-disabled p { margin: 2px 0 0; color: #6e5b35; }
.pos-workspace { max-width: 1680px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,410px); gap: 20px; align-items: start; }
.pos-catalog-panel { min-width: 0; }
.pos-catalog-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pos-search { flex: 1; min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 0 18px; border-radius: 18px; background: white; box-shadow: var(--shadow-soft); }
.pos-search svg { flex: 0 0 auto; width: 22px; color: var(--forest); }
.pos-search input { padding: 0; background: transparent; font-size: .98rem; }
.pos-product-count { min-width: 76px; min-height: 58px; display: grid; place-content: center; text-align: center; border-radius: 18px; color: var(--forest); background: white; box-shadow: var(--shadow-soft); }
.pos-product-count b { font-size: 1.12rem; line-height: 1; }
.pos-product-count small { margin-top: 3px; color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.pos-category-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 17px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pos-category-rail::-webkit-scrollbar { display: none; }
.pos-category-rail button { flex: 0 0 112px; min-height: 96px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 5px 8px; padding: 13px; border: 2px solid transparent; border-radius: 20px; color: var(--forest); background: white; box-shadow: var(--shadow-soft); cursor: pointer; text-align: left; scroll-snap-align: start; }
.pos-category-rail button > span { grid-column: 1/-1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--forest); background: var(--mint); }
.pos-category-rail button > span svg { width: 21px; }
.pos-category-rail button strong { min-width: 0; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.pos-category-rail button small { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--cream); font-size: .64rem; font-weight: 800; }
.pos-category-rail button.active { border-color: var(--forest); color: white; background: var(--forest); }
.pos-category-rail button.active > span { color: var(--forest); background: white; }
.pos-category-rail button.active small { color: var(--forest); background: white; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.pos-product-card { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 0; overflow: hidden; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: var(--shadow-soft); cursor: pointer; text-align: left; transition: transform .15s ease,box-shadow .15s ease; }
.pos-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pos-product-card:active { transform: scale(.985); }
.pos-product-card:focus-visible { outline: 3px solid #7db392; outline-offset: 3px; }
.pos-product-card[hidden] { display: none; }
.pos-product-visual { position: relative; display: block; aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.pos-product-visual > img, .pos-product-visual > .pos-image-fallback { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pos-image-fallback { display: grid; place-items: center; color: var(--forest); background: var(--cream); }
.pos-image-fallback svg { width: 30px; height: 30px; }
.pos-option-count { position: absolute; left: 10px; bottom: 10px; padding: 6px 9px; border-radius: 99px; color: white; background: rgba(14,50,35,.86); backdrop-filter: blur(8px); font-size: .65rem; font-weight: 800; }
.pos-product-copy { min-width: 0; display: grid; padding: 14px 14px 10px; }
.pos-product-copy > small { color: var(--forest-2); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pos-product-copy > strong { margin: 4px 0; overflow: hidden; font: 800 1rem "Manrope",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.pos-product-copy > span { color: var(--muted); font-size: .72rem; }
.pos-card-meta { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; box-shadow: inset 0 1px #eee9df; }
.pos-card-meta > b { color: var(--forest); font-size: .78rem; white-space: nowrap; }
.pos-stock-badge { display: inline-flex; align-items: center; gap: 4px; color: #477458; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.pos-stock-badge.low { color: #9b6320; }
.pos-stock-badge svg { width: 14px; }
.pos-no-results { margin-top: 30px; }
.pos-cart-panel { position: sticky; top: 22px; padding: 20px; }
.pos-cart-panel form { display: grid; gap: 15px; }
.pos-cart-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pos-cart-head h2 { margin: 3px 0 0; font-size: 1.45rem; }
.pos-cart-head h2 small { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 99px; color: var(--forest); background: var(--mint); font-size: .72rem; vertical-align: middle; }
.pos-cart-actions { display: flex; align-items: center; gap: 6px; }
.pos-cart-close { display: none; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 14px; color: var(--forest); background: var(--cream); cursor: pointer; }
.pos-cart-close svg { width: 22px; }
.pos-cart-items { max-height: 300px; overflow-y: auto; display: grid; gap: 8px; padding-right: 3px; }
.pos-cart-items .empty-cart { padding: 30px 12px; }
.pos-cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 10px; padding: 12px; border-radius: 15px; background: var(--cream); }
.pos-cart-line > div:first-child { display: grid; min-width: 0; }
.pos-cart-line small { color: var(--muted); }
.pos-cart-line > b { color: var(--forest); }
.pos-cart-quantity { grid-column: 1/-1; display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.pos-cart-quantity button { width: 44px; height: 44px; border: 0; border-radius: 13px; color: var(--forest); background: white; cursor: pointer; font-size: 1rem; font-weight: 800; }
.pos-cart-quantity span { min-width: 24px; text-align: center; font-weight: 800; }
.pos-totals { display: grid; gap: 6px; padding: 13px 0; box-shadow: inset 0 1px #eee9df,inset 0 -1px #eee9df; }
.pos-totals > div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.pos-totals > div[hidden] { display: none; }
.pos-totals .pos-total { padding-top: 5px; color: var(--ink); font-size: 1.12rem; }
.pos-totals .pos-total strong { color: var(--forest); font: 800 1.35rem "Manrope",sans-serif; }
.pos-customer-details { border-radius: 14px; background: var(--cream); }
.pos-customer-details summary { min-height: 48px; padding: 13px; cursor: pointer; font-weight: 800; }
.pos-customer-details summary small { color: var(--muted); font-weight: 500; }
.pos-customer-details .form-grid { padding: 0 13px 13px; grid-template-columns: 1fr 1fr; gap: 9px; }
.pos-payment-options, .permission-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pos-payment-options legend, .permission-fieldset legend { margin-bottom: 8px; font-weight: 800; }
.pos-payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-payment-options legend { grid-column: 1/-1; }
.pos-payment-options label { cursor: pointer; }
.pos-payment-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pos-payment-options label > span { min-height: 68px; padding: 10px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; border-radius: 13px; background: var(--cream); }
.pos-payment-options label > span small { grid-column: 1/-1; color: var(--muted); font-size: .68rem; }
.pos-payment-options input:checked + span { color: white; background: var(--forest); }
.pos-age-check { cursor: pointer; }
.pos-age-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pos-age-check > span { min-height: 66px; display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-items: center; padding: 12px; border-radius: 13px; background: #f4e6be; }
.pos-age-check > span svg { grid-row: 1/3; }
.pos-age-check > span small { color: #755d2c; }
.pos-age-check input:checked + span { color: var(--forest); background: var(--mint); }
.pos-cart-dock, .pos-cart-scrim { display: none; }

/* POS product selector */
.pos-modal-open, .pos-cart-open { overflow: hidden; }
.pos-product-modal[hidden] { display: none; }
.pos-product-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(10,27,19,.58); backdrop-filter: blur(5px); opacity: 0; transition: opacity .18s ease; }
.pos-product-modal.open { opacity: 1; }
.pos-product-modal-card { position: relative; width: min(760px,100%); max-height: min(88vh,820px); display: grid; gap: 17px; overflow-y: auto; padding: 24px; border-radius: 28px; background: var(--paper); box-shadow: 0 28px 80px rgba(5,22,14,.32); transform: translateY(16px) scale(.98); transition: transform .18s ease; }
.pos-product-modal.open .pos-product-modal-card { transform: none; }
.pos-modal-close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 16px; color: var(--forest); background: white; box-shadow: var(--shadow-soft); cursor: pointer; }
.pos-modal-close svg { width: 24px; }
.pos-modal-product { display: grid; grid-template-columns: 116px minmax(0,1fr); align-items: center; gap: 18px; padding-right: 58px; }
.pos-modal-image { width: 116px; height: 116px; overflow: hidden; border-radius: 22px; background: var(--cream); }
.pos-modal-image img, .pos-modal-image .pos-image-fallback { width: 100%; height: 100%; object-fit: cover; }
.pos-modal-product small { color: var(--forest-2); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pos-modal-product h2 { margin: 5px 0; font-size: 1.75rem; line-height: 1.05; }
.pos-modal-product p { margin: 0; color: var(--muted); }
.pos-modal-potency { margin-top: 7px !important; font-size: .75rem; }
.pos-modal-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-top: 4px; }
.pos-modal-section-head > div { display: grid; gap: 3px; }
.pos-modal-section-head > small { color: var(--muted); }
.pos-modal-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-modal-variants > button { min-width: 0; min-height: 92px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 2px solid transparent; border-radius: 18px; color: var(--ink); background: white; cursor: pointer; text-align: left; }
.pos-modal-variants > button.selected { border-color: var(--forest); background: #edf5ee; }
.pos-modal-variant-check { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--forest); background: var(--cream); }
.pos-modal-variants > button.selected .pos-modal-variant-check { color: white; background: var(--forest); }
.pos-modal-variant-check svg { width: 18px; }
.pos-modal-variant-copy { min-width: 0; display: grid; gap: 2px; }
.pos-modal-variant-copy strong { font-size: .9rem; }
.pos-modal-variant-copy small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.pos-modal-stock { color: #477458 !important; font-weight: 800; }
.pos-modal-stock.low { color: #9b6320 !important; }
.pos-modal-price { display: grid; justify-items: end; gap: 2px; color: var(--forest); white-space: nowrap; }
.pos-modal-price del { color: var(--muted); font-size: .68rem; }
.pos-modal-footer { position: sticky; bottom: -24px; display: grid; grid-template-columns: auto minmax(240px,1fr); align-items: end; gap: 12px; margin: 0 -24px -24px; padding: 14px 24px 20px; background: rgba(250,249,245,.96); box-shadow: 0 -12px 26px rgba(20,40,30,.07); backdrop-filter: blur(12px); }
.pos-modal-quantity { display: grid; gap: 6px; }
.pos-modal-quantity > span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pos-modal-quantity > div { display: grid; grid-template-columns: 52px 52px 52px; align-items: center; }
.pos-modal-quantity button { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 15px; color: var(--forest); background: white; cursor: pointer; }
.pos-modal-quantity button:disabled { opacity: .35; }
.pos-modal-quantity strong { text-align: center; font-size: 1.08rem; }
.pos-modal-footer > .button { min-height: 58px; display: flex; justify-content: space-between; padding-inline: 20px; }
.pos-modal-footer > .button strong { color: inherit; }

/* Staff permissions */
.staff-access-layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,440px); gap: 22px; align-items: start; }
.staff-access-list { min-width: 0; display: grid; gap: 14px; }
.staff-access-card { display: grid; gap: 17px; }
.staff-access-card.owner-card { background: var(--forest); color: white; }
.staff-access-card.owner-card p { margin: 0; color: rgba(255,255,255,.7); }
.staff-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; }
.staff-card-head > div { min-width: 0; display: grid; }
.staff-card-head small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-card .staff-card-head small { color: rgba(255,255,255,.65); }
.staff-meta-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.permission-check { cursor: pointer; }
.permission-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.permission-check span { min-height: 45px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; color: var(--muted); background: var(--cream); font-size: .76rem; font-weight: 700; }
.permission-check span svg { width: 16px; opacity: .2; }
.permission-check input:checked + span { color: var(--forest); background: var(--mint); }
.permission-check input:checked + span svg { opacity: 1; }
.staff-create-card { position: sticky; top: 22px; display: grid; gap: 15px; }
.staff-create-card h2 { margin-bottom: 0; }
.staff-create-card > p { color: var(--muted); }

/* POS receipt */
.pos-receipt-shell { max-width: 760px; margin: 0 auto; }
.pos-receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pos-receipt { max-width: 560px; padding: 34px; }
.receipt-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; box-shadow: inset 0 -1px #eee9df; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.receipt-brand img { width: 142px; }
.receipt-number { display: grid; gap: 4px; padding: 20px 0; }
.receipt-number span { font: 800 1.2rem "Manrope",sans-serif; }
.receipt-number small { color: var(--muted); }
.receipt-breakdown { display: grid; gap: 8px; padding: 18px 0; box-shadow: inset 0 1px #eee9df; }
.receipt-breakdown > div { display: flex; justify-content: space-between; gap: 20px; }
.receipt-breakdown .receipt-total { margin-top: 5px; padding-top: 13px; box-shadow: inset 0 1px #eee9df; font-size: 1.15rem; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.receipt-meta div { padding: 11px; border-radius: 12px; background: var(--cream); }
.receipt-meta dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.receipt-meta dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.receipt-warning { margin: 24px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.flash { position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%); max-width: min(92vw,620px); padding: 13px 18px; border-radius: 13px; color: white; background: var(--forest); box-shadow: var(--shadow); }
.flash-error { background: var(--red); }
.flash-warning { background: #936b21; }
.empty-page { min-height: 650px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .mobile-nav { position: absolute; z-index: 40; top: 112px; left: 18px; right: 18px; padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px; font-weight: 700; }
  .home-intro { min-height: auto; grid-template-columns: 1fr 1fr; gap: 34px; }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .checkout-layout { grid-template-columns: 1fr 330px; }
  .admin-header { position: sticky; top: 0; width: 100%; height: 70px; padding: 12px 18px; flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-header .brand { padding: 0; }
  .admin-menu-button { display: inline-flex; }
  .admin-nav { display: none; position: absolute; left: 18px; right: 18px; top: 62px; padding: 12px; background: var(--forest); border-radius: 16px; box-shadow: var(--shadow); }
  .admin-nav.open { display: flex; }
  .admin-main { margin-left: 0; padding: 28px 22px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-order-grid { grid-template-columns: 1fr 1fr; }
  .admin-order-grid .order-update { grid-column: 1/-1; }
  .promotion-create-fields { grid-template-columns: 1fr 1fr; }
  .promotion-title, .promotion-description { grid-column: 1/-1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px),var(--max)); }
  .site-header { width: calc(100% - 32px); height: 68px; gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .icon-button, .header-actions .cart-button { min-width: 40px; height: 40px; border-radius: 13px; }
  .header-actions .cart-button { padding-inline: 8px; gap: 5px; }
  .mobile-nav { left: 16px; right: 16px; }
  .cart-button span { display: none; }
  .home-intro { display: block; min-height: 0; padding: 28px 0 14px; }
  .intro-copy h1 { max-width: 340px; margin: 12px 0 14px; font-size: 2.55rem; }
  .intro-copy > p { max-width: 360px; margin-bottom: 20px; font-size: .96rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .intro-copy .button-secondary { display: none; }
  .intro-copy .button-primary { min-height: 44px; }
  .intro-feature { display: none; }
  .trust-row { display: none; }
  .mobile-fast-shop { display: block; width: 100%; padding: 24px 16px 32px; background: var(--cream); overflow: hidden; }
  .mobile-fast-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .mobile-fast-heading h2 { margin: 4px 0 0; font-size: 1.5rem; }
  .mobile-fast-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: .8rem; font-weight: 800; white-space: nowrap; }
  .mobile-fast-heading > a svg { width: 16px; }
  .mobile-category-rail { display: flex; gap: 9px; overflow-x: auto; margin-inline: 0; padding: 0 0 18px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .mobile-category-rail::-webkit-scrollbar, .mobile-product-rail::-webkit-scrollbar { display: none; }
  .mobile-category-rail a { flex: 0 0 auto; min-width: 88px; padding: 12px 11px; border-radius: 16px; background: var(--paper); display: grid; justify-items: start; gap: 9px; font: 700 .78rem "Manrope",sans-serif; scroll-snap-align: start; box-shadow: 0 4px 14px rgba(25,45,35,.04); }
  .mobile-category-rail a span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--mint); }
  .mobile-category-rail svg { width: 18px; }
  .mobile-product-rail { display: flex; gap: 12px; overflow-x: auto; margin-inline: 0; padding: 0 0 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .mobile-product-rail .product-card { flex: 0 0 min(72vw, 275px); scroll-snap-align: start; }
  .mobile-product-rail .product-image { aspect-ratio: 4/3; }
  .promo-section { padding-block: 42px; }
  .category-section, .home-product-section { display: none; }
  .promo-grid, .steps { grid-template-columns: 1fr; }
  .promo-card { min-height: 178px; padding: 22px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 140px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 13px; }
  .product-copy { padding: 14px 14px 10px; }
  .product-copy h3 { font-size: .96rem; }
  .product-meta { align-items: start; flex-direction: column; }
  .card-action { padding: 0 14px; }
  .section-heading { align-items: start; }
  .section-heading > a { font-size: .82rem; }
  .how-section { padding: 54px 0; margin-top: 30px; }
  .steps article { min-height: 200px; padding: 22px; }
  .steps article > svg { margin-bottom: 38px; }
  .page-intro { padding-top: 48px; }
  .menu-search { padding-left: 14px; }
  .menu-search .button { width: 44px; padding: 0; font-size: 0; }
  .menu-search .button::after { content: "→"; font-size: 1rem; }
  .product-detail { padding-top: 28px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 25px; }
  .detail-copy { padding-top: 0; }
  .auth-card { padding: 30px 22px; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .checkout-layout, .account-grid, .order-detail-layout { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
  .summary-sticky { position: static; }
  .site-footer { grid-template-columns: 1fr; padding: 52px 16px; gap: 28px; }
  .site-footer .compliance-note { grid-column: auto; }
  .success-card { padding: 36px 22px; }
  .success-card h1 { font-size: 2.3rem; }
  .admin-main { padding: 24px 14px; }
  .admin-page-head { align-items: start; flex-direction: column; }
  .admin-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .admin-filter-form { display: grid; grid-template-columns: minmax(0,1fr) 92px; width: 100%; }
  .admin-search { width: 100%; }
  .admin-search, .admin-filter-submit { grid-column: 1/-1; }
  .admin-filter-field { min-width: 0; }
  .admin-result-count { padding: 0 4px; }
  .promotion-admin-list article { grid-template-columns: 1fr; }
  .promotion-actions { justify-content: flex-end; }
  .promotion-create-panel { gap: 18px; }
  .promotion-create-fields { grid-template-columns: 1fr; }
  .promotion-title, .promotion-description { grid-column: auto; }
  .promotion-create-footer { align-items: stretch; flex-direction: column; }
  .promotion-create-footer .button { width: 100%; }
  .variant-section-head { align-items: start; }
  .variant-editor-grid { grid-template-columns: 1fr; }
  .variant-editor-grid .full { grid-column: auto; }
  .stat-grid { gap: 10px; }
  .stat-grid article { min-height: 125px; padding: 17px; }
  .stat-grid article strong { font-size: 2rem; }
  .admin-grid-two, .admin-form-layout, .settings-layout, .admin-order-grid { grid-template-columns: 1fr; }
  .form-actions, .settings-save { position: static; }
  .toggle-grid { grid-template-columns: 1fr; }
  .admin-table { min-width: 760px; }
  .admin-table-wrap { margin-inline: -15px; padding-inline: 15px; }
  .checkout-card, .account-panel, .admin-panel { padding: 21px; }
}

@media (max-width: 420px) {
  .site-header .brand { flex: 0 0 auto; }
  .brand-wordmark { width: 104px; }
  .admin-header .brand > span:last-child { display: none; }
  .intro-copy h1 { font-size: 2.65rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { border-radius: 17px; }
  .product-brand { font-size: .58rem; }
  .product-copy h3 { min-height: 2.1em; }
  .feature-float { left: 14px; right: 14px; bottom: 14px; }
  .drawer-panel { padding: 18px; }
  .age-card { padding: 32px 22px; }
}

@media (max-width: 900px) {
  .pos-workspace { grid-template-columns: minmax(0,1fr) 330px; gap: 14px; }
  .pos-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .pos-product-copy { padding-inline: 12px; }
  .pos-card-meta { padding-inline: 12px; }
  .staff-access-layout { grid-template-columns: 1fr; }
  .staff-create-card { position: static; }
}

@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  .pos-workspace { grid-template-columns: 1fr; }
  .pos-catalog-panel { padding-bottom: 88px; }
  .pos-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pos-cart-panel { position: fixed; z-index: 130; left: 50%; right: auto; bottom: 0; top: auto; width: min(640px,100%); max-height: 92dvh; overflow-y: auto; border-radius: 28px 28px 0 0; transform: translate(-50%,105%); transition: transform .22s ease; }
  .pos-cart-panel.open { transform: translate(-50%,0); }
  .pos-cart-close { display: grid; }
  .pos-cart-items { max-height: 260px; }
  .pos-cart-dock { position: fixed; z-index: 108; left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); width: min(calc(100% - 28px),680px); min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; border: 0; border-radius: 20px; color: white; background: var(--forest); box-shadow: 0 14px 34px rgba(12,45,31,.3); cursor: pointer; transform: translateX(-50%); }
  .pos-cart-dock > span { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--forest); background: white; }
  .pos-cart-dock > span svg { width: 20px; }
  .pos-cart-dock > span b { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 4px; border-radius: 99px; color: white; background: #b56135; font-size: .64rem; }
  .pos-cart-dock > strong { justify-self: start; font-size: .92rem; }
  .pos-cart-dock > b { font-size: 1rem; }
  .pos-cart-dock:not(.has-items) > span b { background: var(--muted); }
  .pos-cart-scrim { position: fixed; z-index: 125; inset: 0; display: block; border: 0; background: rgba(10,27,19,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .pos-cart-open .pos-cart-scrim { opacity: 1; pointer-events: auto; }
  .permission-grid { grid-template-columns: 1fr; }
  .pos-disabled { grid-template-columns: auto 1fr; }
  .pos-disabled .button { grid-column: 1/-1; }
  .receipt-meta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .pos-page-head { padding-bottom: 10px; }
  .pos-page-head p { display: none; }
  .pos-catalog-tools { gap: 8px; }
  .pos-search { min-height: 54px; padding-inline: 14px; }
  .pos-product-count { min-width: 66px; min-height: 54px; }
  .pos-category-rail { margin-inline: -2px; gap: 8px; }
  .pos-category-rail button { flex-basis: 104px; min-height: 92px; padding: 11px; }
  .pos-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .pos-product-card { border-radius: 18px; }
  .pos-product-visual { aspect-ratio: 4/3; }
  .pos-product-copy { padding: 11px 11px 8px; }
  .pos-product-copy > strong { font-size: .88rem; }
  .pos-product-copy > span { font-size: .65rem; }
  .pos-card-meta { min-height: 50px; align-items: start; flex-direction: column; padding: 9px 11px; }
  .pos-stock-badge { font-size: .62rem; }
  .pos-product-modal { place-items: end center; padding: 0; }
  .pos-product-modal-card { width: 100%; max-height: 94dvh; gap: 14px; padding: 20px 16px; border-radius: 26px 26px 0 0; transform: translateY(30px); }
  .pos-modal-close { top: 12px; right: 12px; width: 48px; height: 48px; }
  .pos-modal-product { grid-template-columns: 88px minmax(0,1fr); gap: 13px; padding-right: 46px; }
  .pos-modal-image { width: 88px; height: 88px; border-radius: 18px; }
  .pos-modal-product h2 { font-size: 1.35rem; }
  .pos-modal-variants { grid-template-columns: 1fr; gap: 8px; }
  .pos-modal-variants > button { min-height: 82px; padding: 11px; }
  .pos-modal-footer { bottom: -20px; grid-template-columns: 1fr; margin: 0 -16px -20px; padding: 12px 16px max(16px,env(safe-area-inset-bottom)); }
  .pos-modal-quantity { grid-template-columns: 1fr auto; align-items: center; }
  .pos-modal-quantity > div { grid-template-columns: 50px 46px 50px; }
  .pos-modal-quantity button { width: 50px; height: 50px; }
  .pos-modal-footer > .button { min-height: 58px; }
}

@media print {
  .admin-header, .pos-receipt-actions, .flash { display: none !important; }
  .admin-main { margin: 0 !important; padding: 0 !important; }
  .admin-body { background: white; }
  .pos-receipt { box-shadow: none; padding: 12px; }
}
