:root {
  --ink: #171916;
  --charcoal: #222620;
  --green: #86af41;
  --green-dark: #5f8429;
  --green-pale: #eff5e6;
  --concrete: #f3f3f0;
  --line: #dedfd8;
  --muted: #71766c;
  --white: #ffffff;
  --danger: #a24535;
  --yellow: #d5bf42;
}

* { box-sizing: border-box; }
html { background: var(--charcoal); }
body { margin: 0; background: var(--concrete); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(134, 175, 65, .45); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); background: var(--concrete); }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; color: white; background: #171a17; border-right: 1px solid #343a32; }
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1; background-image: linear-gradient(115deg, transparent 0 46%, #86af41 46% 46.5%, transparent 46.5%), linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 100% 100%, 100% 42px; }
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 99px; padding: 18px 20px; border-bottom: 1px solid #353935; }
.brand-lockup img { width: 105px; height: auto; display: block; }
.brand-lockup div { display: flex; flex-direction: column; gap: 3px; }
.brand-lockup strong { color: var(--green); font-size: 15px; letter-spacing: .12em; }
.brand-lockup span { color: #aeb4aa; font-size: 11px; }
.sidebar nav { position: relative; z-index: 1; display: grid; gap: 6px; padding: 24px 14px; }
.sidebar button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; border: 0; border-radius: 7px; background: transparent; color: #c8ccc5; text-align: left; font-weight: 700; }
.sidebar button:hover { color: white; background: #242824; }
.sidebar button.active { color: #f9fff0; background: #313a2b; box-shadow: inset 3px 0 0 var(--green); }
.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--green); font-size: 20px; font-weight: 400; }
.sidebar-bottom { position: relative; z-index: 1; margin-top: auto; padding: 14px; border-top: 1px solid #353935; }
.pickup-note { display: flex; align-items: flex-start; gap: 11px; margin: 14px 8px 4px; color: #d8dcd5; }
.pickup-note div { display: flex; flex-direction: column; gap: 3px; }
.pickup-note strong { font-size: 12px; }
.pickup-note span:last-child { color: #8f968b; font-size: 11px; }
.status-dot { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(134,175,65,.12); }

.main-panel { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 78px; padding: 0 32px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.page-heading { min-width: 190px; }
.page-heading > span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-heading h1 { margin: 4px 0 0; font-size: 20px; line-height: 1; letter-spacing: -.02em; }
.preview-switch { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f4f5f1; }
.preview-switch > span { margin: 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-switch button { padding: 7px 10px; border: 0; border-radius: 5px; color: #5b6057; background: transparent; font-size: 12px; font-weight: 700; }
.preview-switch button.selected { color: white; background: var(--ink); }
.avatar { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; color: #1d2417; background: var(--green); font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 4px rgba(255,255,255,.32); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 23px; }
.content-wrap { width: min(1420px, 100%); margin: 0 auto; padding: 28px 32px 56px; }
.notice { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 13px 44px 13px 15px; border: 1px solid #bad18f; border-radius: 8px; color: #38531c; background: #f1f7e8; font-size: 14px; font-weight: 700; }
.notice > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--green-dark); }
.notice button { position: absolute; right: 10px; border: 0; background: transparent; color: #567334; font-size: 22px; }

.eyebrow { display: block; color: var(--green-dark); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.dashboard-hero { position: relative; overflow: hidden; min-height: 390px; padding: 58px 5.5%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); align-items: center; gap: 7%; color: white; background: #222620; border-radius: 14px; box-shadow: 0 16px 35px rgba(26,31,24,.15); }
.dashboard-hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(125deg, transparent 0 58%, var(--green) 58% 58.7%, transparent 58.7%), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 100%, 44px 44px, 44px 44px; }
.dashboard-hero::after { content: ""; position: absolute; right: -5%; bottom: -38%; width: 48%; aspect-ratio: 1; transform: rotate(15deg); border: 80px solid rgba(134,175,65,.12); }
.hero-copy, .balance-card { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #a9d65e; }
.hero-copy h2 { max-width: 660px; margin: 12px 0 18px; font-size: clamp(42px, 5vw, 70px); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
.hero-copy p { max-width: 590px; margin: 0 0 28px; color: #cbd0c8; font-size: 16px; line-height: 1.65; }
.primary-button { min-height: 47px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; border-radius: 6px; color: #182010; background: var(--green); font-size: 14px; font-weight: 900; box-shadow: 0 7px 18px rgba(85,121,31,.22); }
.primary-button:hover { background: #97c34e; transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.primary-button.wide { width: 100%; }
.secondary-button { min-height: 44px; padding: 0 16px; border: 1px solid #bbbeb7; border-radius: 6px; background: white; font-size: 13px; font-weight: 800; }
.balance-card { min-height: 230px; padding: 26px 28px 23px; border: 1px solid rgba(170,215,94,.7); border-radius: 14px; color: white; background: linear-gradient(145deg, #333a2f, #1c201b); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.balance-card::after { content: ""; position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 55px 55px; border-color: transparent transparent var(--green) transparent; opacity: .55; }
.balance-top { display: flex; align-items: center; justify-content: space-between; color: #bec5b9; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.gb-mark { display: grid; place-items: center; width: 39px; height: 29px; border: 1px solid var(--green); border-radius: 5px; color: var(--green); font-size: 12px; letter-spacing: .08em; }
.balance-card > strong { display: block; margin-top: 12px; font-size: clamp(54px, 6vw, 80px); line-height: .95; letter-spacing: -.07em; }
.balance-label { color: #a5cf5b; font-size: 15px; font-weight: 800; }
.balance-rule { height: 1px; margin: 20px 0 15px; background: #4d5548; }
.balance-meta { display: flex; align-items: center; justify-content: space-between; color: #aeb5a9; font-size: 11px; }
.balance-meta strong { color: white; letter-spacing: .08em; }

.mini-stats { margin: 18px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.mini-stats > div { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px 20px; background: white; }
.stat-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 7px; color: #4c6825; background: var(--green-pale); font-size: 19px; font-weight: 900; }
.mini-stats p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.mini-stats strong { font-size: 13px; }
.mini-stats p span { color: var(--muted); font-size: 11px; }
.section-block { margin-top: 32px; }
.section-heading, .admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h3 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.04em; }
.text-button { border: 0; color: #3e5620; background: transparent; font-size: 13px; font-weight: 800; }
.product-grid { display: grid; gap: 16px; }
.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,36,28,.1); }
.product-visual { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1.08; min-height: 190px; border-bottom: 1px solid rgba(0,0,0,.08); }
.product-photo-wrap { background: #f3f1e9; }
.product-photo { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-photo { transform: scale(1.025); }
.photo-count { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; color: #35402d; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.product-visual.tone-gray, .stock-swatch.tone-gray { background: linear-gradient(145deg, #d9dad7, #9da19a); }
.product-visual.tone-yellow, .stock-swatch.tone-yellow { background: linear-gradient(145deg, #efe39a, #c7a91e); }
.product-visual.tone-green, .stock-swatch.tone-green { background: linear-gradient(145deg, #a8ce67, #5e8427); }
.product-visual.tone-dark, .stock-swatch.tone-dark { background: linear-gradient(145deg, #4c514b, #20231f); }
.visual-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 30px 30px; }
.product-shape { position: relative; z-index: 1; display: grid; place-items: center; width: 62%; height: 55%; filter: drop-shadow(0 12px 10px rgba(0,0,0,.16)); }
.product-shape::before { content: ""; position: absolute; inset: 0; background: rgba(27,30,26,.86); clip-path: polygon(28% 0, 42% 10%, 58% 10%, 72% 0, 100% 22%, 84% 43%, 74% 35%, 78% 100%, 22% 100%, 26% 35%, 16% 43%, 0 22%); }
.shape-headwear::before { clip-path: ellipse(45% 32% at 46% 55%); }
.shape-headwear::after { content: ""; position: absolute; width: 45%; height: 13%; right: 4%; bottom: 24%; border-radius: 50%; background: rgba(27,30,26,.86); transform: rotate(7deg); }
.shape-footwear::before { clip-path: polygon(37% 0, 76% 0, 77% 67%, 96% 79%, 100% 100%, 20% 100%, 6% 89%, 19% 73%, 35% 63%); }
.product-shape span { position: relative; z-index: 2; color: white; font-size: clamp(12px, 1.3vw, 18px); font-weight: 900; letter-spacing: .09em; }
.visual-placeholder { position: absolute; z-index: 2; right: 10px; bottom: 8px; color: rgba(255,255,255,.73); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-info { padding: 15px; }
.product-info > div:first-child > span { color: var(--green-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-info h4 { min-height: 40px; margin: 5px 0 10px; font-size: 14px; line-height: 1.35; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-bottom > strong { font-size: 21px; letter-spacing: -.04em; }
.product-bottom > strong span { color: var(--green-dark); font-size: 11px; letter-spacing: .05em; }
.in-stock, .low-stock { font-size: 10px; font-weight: 800; }
.in-stock { color: #55792b; }
.low-stock { color: var(--danger); }
.product-info > button { width: 100%; margin-top: 13px; padding: 10px 0 0; display: flex; justify-content: space-between; border: 0; border-top: 1px solid #ecece8; color: #30342e; background: transparent; font-size: 11px; font-weight: 800; }
.activity-strip { margin-top: 26px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; background: white; }
.activity-strip > div { display: flex; align-items: center; gap: 12px; }
.activity-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: #31431a; background: var(--green); font-size: 11px; font-weight: 900; }
.activity-strip p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.activity-strip p strong { font-size: 13px; }
.activity-strip p span { color: var(--muted); font-size: 11px; }
.positive { color: #4e7422 !important; }
.negative { color: var(--danger) !important; }

.shop-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.shop-intro h2, .admin-heading h2, .login-form h2, .login-brand h2 { margin: 7px 0 8px; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.055em; }
.shop-intro p, .admin-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.balance-pill { min-width: 185px; padding: 15px 17px; border-left: 4px solid var(--green); border-radius: 5px; background: var(--ink); color: white; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.balance-pill span { display: block; color: #aeb7a9; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.balance-pill strong { display: block; margin-top: 5px; font-size: 24px; }
.filter-row { display: flex; gap: 6px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-row button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #656a62; font-size: 12px; font-weight: 800; }
.filter-row button.selected { border-color: var(--ink); color: white; background: var(--ink); }

.ledger-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.ledger-head { padding: 12px 20px; display: grid; grid-template-columns: 1fr auto; color: var(--muted); background: #ebede8; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ledger-row { min-height: 80px; padding: 15px 20px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px; border-top: 1px solid #ededeb; }
.ledger-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; font-weight: 900; }
.ledger-icon.credit { color: #4c6f27; background: var(--green-pale); }
.ledger-icon.debit { color: #914337; background: #faece9; }
.ledger-row > div:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.ledger-row > div:nth-child(2) strong { font-size: 14px; }
.ledger-row > div:nth-child(2) span { color: var(--muted); font-size: 11px; }
.ledger-row > strong { font-size: 14px; }
.policy-card { margin-top: 18px; padding: 18px 20px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; border-left: 4px solid var(--green); border-radius: 5px; background: #e9ece5; }
.policy-card p { margin: 0; color: #5f655b; font-size: 12px; line-height: 1.55; }

.admin-heading h2 { font-size: 44px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stats > div { min-height: 132px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 8px; background: white; }
.admin-stats span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.admin-stats strong { display: block; margin: 8px 0 5px; font-size: 35px; letter-spacing: -.05em; }
.admin-stats small { color: var(--muted); font-size: 10px; }
.admin-layout { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr); gap: 18px; }
.issue-card, .stock-card { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.step-number { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 5px; color: #31461a; background: var(--green); font-size: 11px; font-weight: 900; }
.card-heading h3 { margin: 0 0 4px; font-size: 20px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.issue-card > label, .login-form > label { display: grid; gap: 7px; margin-top: 15px; color: #555b52; font-size: 11px; font-weight: 800; }
.issue-card select, .login-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #cfd2cb; border-radius: 5px; color: var(--ink); background: #fafbf8; }
.field-note { margin-top: 7px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.field-note strong { color: #4e7027; }
.issue-summary { margin: 18px 0; padding: 12px 14px; border-radius: 6px; background: #f1f3ee; }
.issue-summary > div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 11px; }
.issue-summary strong { color: var(--ink); }
.admin-success { margin-bottom: 12px; padding: 11px; border-radius: 5px; color: #446523; background: var(--green-pale); font-size: 11px; font-weight: 700; line-height: 1.45; }
.stock-list { max-height: 610px; overflow: auto; }
.stock-list > div { padding: 11px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid #eceee9; }
.stock-swatch { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: white; font-size: 10px; font-weight: 900; }
.stock-list p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stock-list p strong { font-size: 12px; }
.stock-list p span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stock-total { min-width: 56px; text-align: right; }
.stock-total strong { display: block; font-size: 17px; }
.stock-total span { color: var(--danger); font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }

.login-preview { min-height: calc(100vh - 162px); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 14px; background: white; box-shadow: 0 18px 45px rgba(28,33,27,.15); }
.login-scene { position: relative; display: flex; align-items: flex-end; padding: 9%; color: white; background: #20251f; }
.login-scene::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(133deg, transparent 0 53%, rgba(134,175,65,.82) 53% 67%, transparent 67%), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 100%, 44px 44px, 44px 44px; }
.login-brand { position: relative; z-index: 1; }
.login-brand img { width: 190px; margin-bottom: 50px; }
.login-brand > span { color: #a8d75a; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.login-brand h2 { margin-top: 10px; font-size: clamp(42px, 5vw, 67px); text-transform: uppercase; }
.login-brand p { max-width: 450px; color: #c9cec5; line-height: 1.6; }
.login-panel { display: grid; place-items: center; padding: 8%; }
.login-form { width: min(440px, 100%); }
.login-form h2 { margin-top: 10px; }
.login-form > p { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.login-options { margin: 15px 0 22px; display: flex; justify-content: space-between; font-size: 11px; }
.login-options button { border: 0; color: #4e7027; background: transparent; font-weight: 800; }
.check-label { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.login-form small { display: block; margin-top: 16px; color: var(--muted); text-align: center; }

.modal-backdrop, .cart-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(12,14,12,.67); backdrop-filter: blur(5px); }
.product-modal { position: relative; width: min(870px, 100%); max-height: calc(100vh - 44px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-gallery { min-width: 0; padding: 16px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; background: #eeece4; }
.modal-gallery > .product-visual { min-height: 430px; aspect-ratio: 1; border: 0; border-radius: 9px; }
.gallery-thumbs { display: flex; gap: 9px; }
.gallery-thumbs button { position: relative; overflow: hidden; width: 82px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 7px; background: white; }
.gallery-thumbs button.selected { border-color: var(--green-dark); }
.gallery-thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-thumbs span { position: absolute; right: 4px; bottom: 4px; padding: 3px 5px; border-radius: 4px; color: white; background: rgba(21,25,20,.78); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.modal-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 22px; }
.modal-content { padding: 48px 38px 34px; }
.modal-content h2 { margin: 8px 0 12px; font-size: 31px; line-height: 1.08; letter-spacing: -.04em; }
.modal-price { display: block; margin-bottom: 18px; font-size: 32px; letter-spacing: -.05em; }
.modal-price span { color: var(--green-dark); font-size: 13px; }
.modal-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.size-label { margin: 23px 0 10px; display: flex; justify-content: space-between; font-size: 11px; }
.size-label span { color: var(--muted); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 7px; margin-bottom: 21px; }
.size-grid button { min-height: 57px; padding: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #cfd2ca; border-radius: 5px; background: white; }
.size-grid button strong { font-size: 12px; }
.size-grid button span { color: var(--muted); font-size: 9px; }
.size-grid button.selected { border-color: var(--green-dark); background: var(--green-pale); box-shadow: inset 0 0 0 1px var(--green-dark); }
.size-grid button:disabled { cursor: not-allowed; color: #aaa; background: #f0f0ee; text-decoration: line-through; }

.cart-backdrop { justify-items: end; padding: 0; }
.cart-drawer { width: min(450px, 100%); height: 100vh; overflow: auto; padding: 26px; background: white; box-shadow: -20px 0 60px rgba(0,0,0,.25); animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.drawer-head h2 { margin: 6px 0 0; font-size: 31px; letter-spacing: -.04em; }
.drawer-head button { border: 0; background: transparent; font-size: 25px; }
.cart-drawer > .product-visual { aspect-ratio: 1.8; border: 0; border-radius: 8px; }
.cart-product { padding: 16px 0; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-product > div { display: flex; flex-direction: column; gap: 5px; }
.cart-product span { color: var(--muted); font-size: 11px; }
.pickup-box { margin: 18px 0; padding: 14px; display: flex; gap: 12px; border-left: 3px solid var(--green); background: var(--green-pale); }
.pickup-box p { margin: 4px 0 0; color: #65705c; font-size: 11px; line-height: 1.45; }
.cart-totals { margin: 18px 0; }
.cart-totals > div { padding: 8px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.cart-totals strong { color: var(--ink); }
.cart-totals .new-balance { margin-top: 7px; padding-top: 15px; border-top: 2px solid var(--ink); color: var(--ink); font-weight: 800; }
.cart-totals .new-balance strong { font-size: 18px; }
.drawer-cancel { width: 100%; margin-top: 10px; padding: 10px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.menu-scrim { display: none; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .brand-lockup { padding-inline: 15px; }
  .brand-lockup img { width: 85px; }
  .dashboard-hero { grid-template-columns: 1.05fr .95fr; }
  .compact-grid, .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 270px; transition: transform .2s ease; }
  .sidebar-open { transform: translateX(0); }
  .menu-scrim { position: fixed; inset: 0; z-index: 29; display: block; border: 0; background: rgba(0,0,0,.45); }
  .mobile-menu { display: block; }
  .topbar { padding: 0 18px; gap: 12px; }
  .preview-switch > span { display: none; }
  .content-wrap { padding: 20px 18px 40px; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 44px 7%; }
  .balance-card { width: min(390px, 100%); }
  .mini-stats { grid-template-columns: 1fr; }
  .compact-grid, .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-preview { grid-template-columns: 1fr; }
  .login-scene { min-height: 440px; }
  .login-panel { padding-block: 60px; }
}

@media (max-width: 620px) {
  .topbar { height: 68px; }
  .page-heading > span { display: none; }
  .page-heading { min-width: 0; margin-right: auto; }
  .page-heading h1 { font-size: 16px; }
  .preview-switch button { padding-inline: 7px; font-size: 10px; }
  .avatar { display: none; }
  .hero-copy h2 { font-size: 42px; }
  .dashboard-hero { min-height: 0; }
  .compact-grid, .shop-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 42% 58%; }
  .product-card .product-visual { height: 100%; min-height: 190px; aspect-ratio: auto; border: 0; border-right: 1px solid rgba(0,0,0,.08); }
  .product-info h4 { min-height: 0; }
  .shop-intro, .admin-heading { align-items: flex-start; flex-direction: column; }
  .balance-pill { width: 100%; }
  .filter-row { overflow-x: auto; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats > div { min-height: 118px; padding: 14px; }
  .admin-heading .secondary-button { width: 100%; }
  .policy-card { grid-template-columns: 1fr; gap: 7px; }
  .ledger-row { grid-template-columns: 34px 1fr; }
  .ledger-row > strong { grid-column: 2; }
  .activity-strip { align-items: flex-start; gap: 12px; }
  .product-modal { grid-template-columns: 1fr; }
  .modal-gallery > .product-visual { min-height: 300px; }
  .modal-content { padding: 30px 22px 24px; }
  .login-brand img { margin-bottom: 30px; }
  .login-brand h2 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* WordPress and Elementor integration */
[hidden] { display: none !important; }
body { min-width: 320px; }
.ctgb-app { width: 100%; min-height: 100vh; }
.ctgb-content { width: min(1120px, calc(100% - 40px)); margin: 48px auto; }
.ctgb-site-header, .ctgb-site-footer { padding: 20px max(24px, calc((100vw - 1120px) / 2)); background: #171a17; color: #fff; }
.ctgb-site-header a, .ctgb-site-footer a { color: inherit; }
.ctgb-site-header { display: flex; align-items: center; justify-content: space-between; }
.ctgb-site-title { color: #fff; font-weight: 800; text-decoration: none; }
.ctgb-site-footer { color: #cbd0c7; font-size: 14px; }
.elementor-widget-shortcode .ctgb-app { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.product-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs button { overflow: hidden; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-scrim[hidden] { display: none !important; }
@media (max-width: 700px) { .ctgb-content { width: min(100% - 24px, 1120px); margin: 28px auto; } }