:root {
  color-scheme: light;
  --cream: #f4f2e9;
  --paper: #fffef9;
  --green: #384e3a;
  --green-dark: #25392a;
  --sage: #a5ad96;
  --sage-light: #e4e8d9;
  --ink: #263b2c;
  --muted: #798071;
  --line: #e2e4d8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #d9dccc;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-width: 320px; min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
body::before { content: ''; position: fixed; inset: -22px; z-index: -2; background: linear-gradient(90deg, #26392b8c, #f1eddfa8), url('assets/hero.jpg') center / cover; filter: blur(15px); transform: scale(1.05); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: #e5e7db36; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8eaa69; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
svg.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button svg { margin: auto; }
h1, h2, h3, p { margin: 0; }
button, a { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

#app { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 430px; max-width: 100%; height: min(900px, calc(100dvh - 36px)); min-height: 440px; overflow: hidden; background: var(--cream); border: 6px solid #fcfbf6; border-radius: 37px; box-shadow: 0 30px 90px #19291f36, 0 3px 14px #19291f18; }
.top { min-height: 74px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 10px; background: var(--cream); z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; mix-blend-mode: multiply; }
.brand span { font-size: 21px; letter-spacing: 3.2px; line-height: 1.05; font-weight: 500; }
.brand small { display: block; font-size: 8px; letter-spacing: 3px; font-weight: 500; margin-top: 5px; }
.top > button, .top .icon-button { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border: 1px solid #dce0d1; background: #fffef97a; border-radius: 50%; }
.top > .branch-button { display: flex; align-items: center; justify-content: center; gap: 5px; width: auto; max-width: 135px; min-height: 44px; padding: 8px 11px; border-radius: 30px; font-size: 11px; white-space: nowrap; }
.branch-button svg.icon { width: 13px; height: 13px; }
.top .dot, .notification-dot { position: absolute; top: 10px; right: 11px; width: 6px; height: 6px; border-radius: 50%; background: #c38051; border: 1px solid var(--cream); }
.demo-strip { text-align: center; padding: 5px 10px; background: #e9ebdf; color: #68715f; font-size: 9px; line-height: 1.2; letter-spacing: .35px; flex-shrink: 0; }
#view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 108px; scroll-behavior: smooth; }
#view::-webkit-scrollbar, .offer-track::-webkit-scrollbar, .category-tabs::-webkit-scrollbar { display: none; }
#app:has(#bagbar:not([hidden])) #view { padding-bottom: 168px; }
.page { padding: 23px 20px 10px; }
.page > :last-child { margin-bottom: 0; }
.greeting { position: relative; margin-bottom: 21px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.5; color: #718065; margin-bottom: 6px; }
.greeting h1, .page-title h1 { font-family: var(--serif); font-size: 32px; line-height: 1.06; font-weight: 400; letter-spacing: -.75px; }
.greeting h1 em { font-style: italic; color: #718266; }
.greeting .tiny { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tiny { font-size: 12px; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #52654b; font-size: 12px; font-weight: 650; gap: 5px; }
.link svg { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; border-radius: 30px; background: var(--sage-light); }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 21px; height: 21px; }

.offer-track { display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; }
#view > .offer-track { margin: 0; padding: 0 20px 4px; }
.offer { position: relative; flex: 0 0 93%; min-width: 0; padding: 19px 18px 14px; background: #e6eadb; border: 1px solid #dce2cf; border-radius: 24px; scroll-snap-align: center; overflow: hidden; }
.offer:nth-child(2) { background: #ece3d4; border-color: #e3d7c5; }
.offer-tag { display: inline-flex; gap: 5px; align-items: center; padding: 5px 9px; border: 1px solid #83957166; border-radius: 30px; font-size: 9px; line-height: 1.3; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; position: relative; z-index: 2; }
.offer-tag svg { width: 12px; height: 12px; }
.offer-copy { position: relative; z-index: 2; max-width: 65%; margin-top: 12px; }
.offer-copy h2 { font-family: var(--serif); font-size: 29px; line-height: 1.02; font-weight: 400; letter-spacing: -.6px; }
.offer-copy p { font-size: 12px; line-height: 1.45; color: #6c7961; margin-top: 7px; max-width: 155px; }
.offer-photo { position: absolute; width: 145px; height: 145px; right: -22px; top: 45px; border-radius: 50%; z-index: 1; box-shadow: -8px 13px 25px #65784515; border: 5px solid #f7f8f030; transform: rotate(-10deg); }
.offer-price { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 4px; margin-top: 16px; }
.offer-price > small { width: 100%; font-size: 8px; letter-spacing: 1px; color: #7c876e; }
.offer-price b { font-size: 25px; letter-spacing: -.9px; font-weight: 650; }
.offer-price del { font-size: 12px; color: #778170; }
.offer-saving { font-size: 12px; color: #657257; margin-top: 3px; }
.offer > .btn { position: relative; z-index: 2; width: 100%; margin-top: 16px; min-height: 43px; }
.offer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #748067; margin-top: 16px; line-height: 1.4; }
.offer-bottom .btn { flex: 1; }
.offer-details { width: 46px; height: 46px; border: 1px solid #b9c4a7; border-radius: 14px; color: var(--green); }
.offer-details svg { width: 18px; height: 18px; }
.slider-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 10px 0 20px; font-size: 10px; color: #929787; }
.slider-note span:first-child { font-size: 10px; color: #7f9070; letter-spacing: 3px; }
.slider-note span:last-child { font-size: 8px; letter-spacing: 1px; padding-left: 6px; }
.btn { min-height: 46px; padding: 12px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--green); color: white; border: 1px solid transparent; border-radius: 14px; font-size: 13px; line-height: 1.4; font-weight: 600; transition: background .18s, transform .18s; }
.btn:active, .plus:active { transform: scale(.97); }
.btn:hover { background: var(--green-dark); }
.btn svg { width: 18px; height: 18px; margin: 0; }
.btn.secondary { background: transparent; color: var(--green); border-color: #cbd2bf; }
.btn.secondary:hover { background: #e8ecdf; }
.btn.full { width: 100%; }
.repeat-card { display: flex; width: 100%; text-align: left; align-items: center; gap: 11px; padding: 13px; margin: 2px 0 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; }
.repeat-card > div:not(.mini-photos) { min-width: 0; flex: 1; }
.repeat-card h3 { font-size: 13px; font-weight: 600; }
.repeat-card p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.repeat-card > svg { width: 35px; height: 35px; padding: 9px; border-radius: 50%; background: #edf0e5; margin: 0; }
.repeat-card > button { width: 44px; height: 44px; background: #edf0e5; border-radius: 50%; flex-shrink: 0; }
.mini-photos { display: flex; width: 55px; flex-shrink: 0; padding-left: 5px; }
.mini-photos .sprite.small { width: 35px; height: 42px; border-radius: 8px; border: 2px solid var(--paper); margin-left: -5px; }
.mini-photos .sprite.small + .sprite.small { margin-left: -15px; margin-top: 6px; }
.section-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 23px 0 11px; }
.section-title h2 { font-family: var(--serif); font-size: 23px; letter-spacing: -.35px; line-height: 1.1; font-weight: 400; }
.section-title > button { min-height: 44px; padding: 0; font-size: 11px; font-weight: 600; color: #78856c; }
.club-preview { position: relative; width: 100%; text-align: left; padding: 20px; border-radius: 21px; background: #a5ad96; color: #2e442f; overflow: hidden; }
.club-preview > div { padding-right: 22px; }
.club-preview h2, .club-preview h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.1; }
.club-preview p { font-size: 12px; line-height: 1.5; margin: 7px 0 0; color: #44563d; }
.club-preview .eyebrow { color: #3e533a; font-size: 9px; }
.club-preview .link { justify-content: flex-start; color: #2d432d; }
.club-preview > svg { position: absolute; width: 20px; height: 20px; top: 23px; right: 16px; opacity: .65; }
.progress { height: 5px; background: #f5f6e85c; overflow: hidden; border-radius: 10px; margin: 15px 0 8px; }
.progress-bar { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; font-size: 10px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
.product-card { border-radius: 19px; border: 1px solid #e5e5da; overflow: hidden; background: var(--paper); min-width: 0; position: relative; }
.sprite { background-image: url('assets/products.jpg'); background-size: 300% 200%; background-position: var(--x, 0%) var(--y, 0%); background-repeat: no-repeat; background-color: #e8e5d8; }
.sprite.small { width: 56px; height: 56px; flex-shrink: 0; border-radius: 13px; }
.product-image { position: relative; display: block; padding: 0; width: 100%; height: 141px; cursor: pointer; }
.product-image > .sprite { width: 100%; height: 100%; }
.badge { position: absolute; top: 10px; left: 10px; display: inline-block; font-size: 9px; font-weight: 650; letter-spacing: .2px; padding: 5px 7px; border-radius: 6px; background: #fbfbeeeb; color: #49633d; }
.badge.green { background: var(--green); color: white; }
.product-info { padding: 12px 11px 11px; }
.product-info > button { padding: 0; text-align: left; }
.product-info h3 { font-size: 13px; line-height: 1.3; font-weight: 600; min-height: 17px; }
.product-info > p { font-size: 12px; color: #8a8f81; margin-top: 3px; line-height: 1.4; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 13px; }
.price { display: flex; flex-direction: column; gap: 1px; }
.price b { font-size: 16px; line-height: 1.2; letter-spacing: -.5px; font-weight: 650; }
.price del { color: #959889; font-size: 10px; }
.plus { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; background: #e9eddc; display: grid; place-items: center; color: var(--green); transition: transform .18s, background .18s; position: relative; }
.plus::after { content: ''; position: absolute; inset: -3px; }
.plus svg { width: 18px; height: 18px; }
.plus:hover { background: #dce4cd; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 19px 0 6px; }
.quick-card { text-align: left; background: #ebeede; border: 1px solid #e0e4d4; border-radius: 18px; padding: 17px 15px; min-height: 128px; }
.quick-card:nth-child(even) { background: #ece7dc; border-color: #e5dfd2; }
.quick-card > svg, .quick-card > .icon { margin-bottom: 12px; width: 24px; height: 24px; color: #657957; }
.quick-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.quick-card p { font-size: 12px; line-height: 1.45; color: #7f8576; }
.quick-card > span { display: block; font-size: 10px; font-weight: 600; margin-top: 12px; color: #677b54; }

#nav { position: absolute; z-index: 30; left: 11px; right: 11px; bottom: 12px; height: 73px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 4px 5px 6px; border-radius: 25px; border: 1px solid #fefefad9; background: #fffef6f5; backdrop-filter: blur(18px); box-shadow: 0 5px 25px #34482c1c, 0 0 1px #6e7d5c4d; }
#nav button { position: relative; min-width: 0; min-height: 55px; padding: 5px 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 9px; line-height: 1.2; font-weight: 500; color: #949a89; }
#nav button svg { width: 21px; height: 21px; }
#nav button small { font-size: 10px; }
#nav button.active { color: var(--green); font-weight: 700; }
#nav button.active::after { content: ''; position: absolute; bottom: -1px; width: 4px; height: 4px; border-radius: 50%; background: #758a60; }
#nav .nav-main { color: var(--green); gap: 5px; margin-top: -14px; font-weight: 600; }
#nav .nav-main > .icon, #nav .nav-main > span:first-child:not(:last-child), #nav .nav-main > svg { position: relative; display: grid; place-items: center; height: 46px; width: 46px; padding: 0; border: 3px solid var(--cream); border-radius: 50%; background: var(--green); color: #fffef6; box-shadow: 0 4px 10px #384e3a20; }
#nav .nav-main > .icon svg, #nav .nav-main > span:first-child svg { display: block; width: 20px; height: 20px; margin: 0; grid-area: 1 / 1; }
#nav .nav-main.active::after { display: none; }
.nav-count, #bag-count { position: absolute; z-index: 1; top: -5px; right: -6px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 3px; border: 2px solid var(--paper); border-radius: 30px; color: white; background: #ab7b50; font-size: 9px; line-height: 1; font-variant-numeric: tabular-nums; }
#bagbar { position: absolute; z-index: 25; left: 20px; right: 20px; bottom: 95px; min-height: 52px; padding: 12px 16px; background: var(--green); color: white; border-radius: 17px; box-shadow: 0 8px 25px #26382b24; display: flex; align-items: center; justify-content: space-between; gap: 9px; font-size: 12px; font-weight: 500; cursor: pointer; animation: rise .2s ease-out both; }
#bagbar > span { display: flex; align-items: center; gap: 7px; }
#bagbar svg { height: 17px; width: 17px; }
#bagbar b { font-size: 14px; font-weight: 600; }
#bagbar > b { display: flex; gap: 8px; align-items: center; font-size: 12px; }

.page-title { display: flex; align-items: center; gap: 11px; margin: 1px 0 21px; }
.page-title > button { width: 39px; height: 44px; flex-shrink: 0; padding: 0; background: #e8ecdf; border-radius: 12px; }
.page-title h1 { font-size: 30px; }
.page-title p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 7px; }
.search-wrap { position: relative; margin: 4px 0 14px; }
.search-wrap > svg { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; color: #89947d; }
.search-wrap input { display: block; width: 100%; height: 47px; padding: 12px 15px 12px 43px; background: #fffef8; color: var(--ink); border: 1px solid #e0e3d5; border-radius: 14px; font-size: 12px; outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #929787; opacity: 1; }
.category-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 20px; padding: 0 20px; }
.chip { flex-shrink: 0; min-height: 44px; padding: 9px 13px; border: 1px solid #dce1d0; border-radius: 30px; font-size: 12px; white-space: nowrap; }
.results-count { font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.chip.active { background: var(--green); border-color: var(--green); color: white; }
.empty-state { text-align: center; padding: 57px 18px; display: flex; flex-direction: column; align-items: center; }
.empty-state > svg, .empty-state > .icon { width: 66px; height: 66px; padding: 18px; background: #e5ead9; border-radius: 50%; color: #7f916d; margin-bottom: 20px; }
.empty-state h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.empty-state p { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 260px; margin: 11px auto 23px; }

.mix-hero { position: relative; border-radius: 22px; overflow: hidden; height: 190px; background: #dce1ce; margin-bottom: 20px; }
.mix-hero > img, .mix-hero > .sprite, .mix-hero .imagehero { width: 100%; height: 100%; object-fit: cover; }
.mix-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, #26392baa); pointer-events: none; }
.mix-hero > h2, .mix-hero > p, .mix-hero > div:not(.sprite) { position: absolute; bottom: 18px; left: 18px; z-index: 1; color: white; }
.mix-hero h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; }
.mix-hero > .pill { position: absolute; z-index: 1; bottom: 16px; left: 16px; background: #f8f8eedf; font-size: 9px; letter-spacing: 1px; }
.mix-hero p { font-size: 12px; line-height: 1.5; margin-top: 6px; }
.mix-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 17px; border: 1px solid #dce2ce; background: #e9eedf; border-radius: 17px; margin: 17px 0; }
.mix-summary span { font-size: 12px; }
.mix-summary b { font-size: 21px; font-weight: 600; }
.mix-summary small { display: block; font-size: 11px; color: #7b886b; margin-top: 4px; }
.mix-row { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.mix-row > .icon, .mix-row > svg { width: 39px; height: 39px; padding: 9px; border-radius: 11px; background: #e8ecdf; color: #78896a; }
.mix-row > span, .mix-row > div:not(.stepper):not(.icon) { flex: 1; min-width: 0; }
.mix-row b { display: block; font-size: 13px; font-weight: 600; }
.mix-row h3 { font-size: 14px; font-weight: 600; }
.mix-row p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.mix-row small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.stepper { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 1px; border: 1px solid #dce1d2; background: #f9faf3; border-radius: 12px; overflow: hidden; }
.stepper button { display: grid; place-items: center; width: 44px; min-height: 44px; font-size: 18px; padding: 0; }
.stepper button svg { width: 15px; height: 15px; }
.stepper span, .stepper b { min-width: 23px; padding: 0 2px; font-size: 12px; text-align: center; font-weight: 600; }
.cart-line { position: relative; display: flex; align-items: center; gap: 11px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-line .line-info { min-width: 0; flex: 1; }
.line-info h3 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.line-info p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.line-info b { display: block; font-size: 14px; margin-top: 7px; font-weight: 600; }
.cart-line .stepper { gap: 0; }
.cart-line .stepper button { width: 37px; min-height: 44px; }
.cart-line .stepper span { min-width: 18px; }
.cart-line .line-info .stepper { margin-top: 10px; }
.cart-line .line-info .stepper b { margin: 0; font-size: 12px; }
.cart-line > div:last-child { text-align: right; }
.cart-line > div:last-child > b { font-size: 14px; font-weight: 600; }
.cart-line .remove { display: block; margin-left: auto; min-width: 44px; min-height: 44px; color: #929a83; padding: 4px; font-size: 11px; }
.cart-line .remove svg { width: 15px; height: 15px; }
.totals { padding: 19px 0 15px; }
.totals dl { margin: 0; display: grid; gap: 12px; font-size: 13px; color: var(--muted); }
.totals dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; color: var(--ink); }
.totals .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--green); }
.totals .total b { font-size: 25px; letter-spacing: -.8px; }
.totals .total dd { font-size: 25px; letter-spacing: -.8px; }
.totals .saving, .totals .saving dd { color: #71875b; }
.totals > p { font-size: 12px; color: #71875b; text-align: right; margin-top: 9px; }
.checkout-form { border-top: 1px solid var(--line); padding-top: 19px; }
.checkout-form label, .wholesale-item label { display: block; font-size: 12px; line-height: 1.5; font-weight: 500; margin-bottom: 15px; }
.checkout-form input, .checkout-form select, .checkout-form textarea, .wholesale-item select, .wholesale-item input { display: block; width: 100%; padding: 12px 13px; margin-top: 7px; min-height: 46px; border: 1px solid #dbe0cf; border-radius: 12px; color: var(--green); background: #fffef9; font-size: 13px; }
.checkout-form textarea { resize: vertical; min-height: 83px; }
.checkout-form .btn { width: 100%; }
.notice { display: block; padding: 13px 14px; border-radius: 13px; background: #e9eddf; color: #6e7b63; font-size: 12px; line-height: 1.55; margin: 15px 0; }
.notice svg { width: 16px; height: 16px; margin-top: 1px; }
.footnote { color: #939988; font-size: 10px; line-height: 1.6; text-align: center; margin-top: 13px; }

.ticket { background: var(--paper); border: 1px solid #e0e4d6; border-radius: 24px; padding: 24px 20px; text-align: center; }
.ticket-success { display: grid; place-items: center; width: 67px; height: 67px; border-radius: 50%; background: #e5edd9; color: #5f774e; margin: 0 auto 15px; }
.ticket-success svg { width: 29px; height: 29px; }
.ticket h2 { font-family: var(--serif); font-size: 29px; line-height: 1.12; font-weight: 400; }
.ticket h1 { font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 400; letter-spacing: -.5px; margin-top: 10px; }
.ticket > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 9px; }
.ticket-meta { border-top: 1px dashed #ccd5bd; border-bottom: 1px dashed #ccd5bd; padding: 16px 0; margin: 20px 0; text-align: left; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px 10px; font-size: 12px; line-height: 1.4; }
.ticket-meta > div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-meta b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ticket-meta > span { color: var(--muted); }
.ticket-line, .ticket-total { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; text-align: left; font-size: 12px; line-height: 1.5; padding: 7px 0; }
.ticket-line b { flex-shrink: 0; font-weight: 600; }
.ticket-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 15px; font-size: 17px; }
.ticket > .btn { margin-top: 10px; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 26px 0; gap: 6px; font-size: 10px; color: var(--muted); text-align: center; }
.timeline > div { flex: 1; position: relative; padding-top: 25px; }
.timeline > div::before { content: ''; position: absolute; top: 0; left: calc(50% - 7px); width: 14px; height: 14px; border: 3px solid #dbe2cf; border-radius: 50%; background: var(--paper); z-index: 1; }
.timeline > div + div::after { content: ''; position: absolute; height: 2px; background: #dbe2cf; top: 6px; right: 50%; width: calc(100% + 7px); }
.timeline > div.active::before, .timeline > div.done::before { border-color: var(--sage); background: var(--green); }
.timeline > div.active { color: var(--green); font-weight: 600; }
.timeline:has(> h3) { display: block; padding: 15px; background: #edf1e5; border-radius: 15px; margin: 18px 0; }
.timeline > span { font-size: 9px; letter-spacing: 1px; }
.timeline > h3 { color: #51683e; margin-top: 7px; font-size: 16px; font-weight: 500; text-transform: capitalize; }

.member-card { display: block; width: 100%; text-align: left; background: var(--green); color: #f9f8ed; padding: 21px; border-radius: 24px; position: relative; overflow: hidden; margin: 7px 0 24px; box-shadow: 0 9px 20px #384e3a1a; }
.member-head > span { font-size: 20px; letter-spacing: 3px; }
.member-head > svg { width: 32px; height: 32px; margin: 0; color: #b1bf9e; }
.member-card::after { content: ''; width: 175px; height: 175px; border: 1px solid #b0bd9742; border-radius: 50%; position: absolute; right: -62px; top: -72px; pointer-events: none; }
.member-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.member-head h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.1; }
.member-head small, .member-head p { font-size: 10px; letter-spacing: .8px; color: #b7c2a4; margin-top: 5px; display: block; }
.member-head .pill { background: #52664a; color: #e2ead4; font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.member-points { margin: 24px 0 21px; display: flex; align-items: baseline; gap: 8px; }
.member-points b { font-size: 45px; line-height: 1; letter-spacing: -1.5px; font-weight: 450; }
.member-points span { font-size: 12px; color: #b7c2a4; }
.member-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e6ecd425; padding-top: 14px; }
.member-bottom p { font-size: 12px; }
.member-bottom > span { font-size: 10px; letter-spacing: 1px; }
.member-bottom > svg { width: 36px; height: 36px; padding: 5px; background: #f5f6e8; color: var(--green); border-radius: 6px; margin: 0; }
.member-bottom small { font-size: 9px; color: #abb99c; display: block; margin-top: 4px; letter-spacing: 1px; }
.qr-preview { display: grid; place-items: center; width: 46px; height: 46px; padding: 7px; border-radius: 10px; background: #f7f7eb; color: var(--green); }
.qr-preview svg { width: 30px; height: 30px; }
.stamps { display: flex; gap: 8px; justify-content: space-between; margin: 19px 0 13px; }
.stamp { width: 45px; max-width: calc((100% - 40px) / 6); aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed #b8c3a8; border-radius: 50%; color: #adb79e; background: #eff2e7; font-size: 12px; }
.stamp.filled { background: var(--green); color: #c9d5b4; border-style: solid; border-color: var(--green); }
.stamp svg { width: 21px; height: 21px; }
.reward-card, .benefit-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fffef8; padding: 15px; border-radius: 16px; margin: 10px 0; }
.benefit-card { display: block; }
.benefit-card > svg { margin: 0 0 12px; }
.benefit-card > .section-title { margin: 0; }
.benefit-card > .section-title h3 { font-size: 13px; }
.reward-icon { flex-shrink: 0; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #edf0e2; color: #8b9d74; }
.reward-icon svg { width: 19px; height: 19px; }
.reward-card > .icon, .benefit-card > .icon, .benefit-card > svg, .reward-card > svg { width: 42px; height: 42px; border-radius: 12px; padding: 10px; color: #819368; background: #edf0e2; flex-shrink: 0; }
.reward-card > div:not(.icon), .benefit-card > div:not(.icon) { flex: 1; min-width: 0; }
.reward-card h3, .benefit-card h3 { font-size: 13px; line-height: 1.4; font-weight: 600; }
.reward-card p, .benefit-card p { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.reward-card button { min-height: 44px; padding: 9px 11px; font-size: 11px; font-weight: 600; background: #e9eedf; border-radius: 10px; flex-shrink: 0; }
.reward-card button.locked { background: #f0f1e9; color: #989e8b; }
.reward-card .btn { background: var(--green); color: white; font-size: 11px; }
.reward-card .btn:disabled { background: #edf0e5; color: #859277; opacity: 1; }
.favorites-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.fav-choice { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px; text-align: left; border-radius: 13px; border: 1px solid #dce2cf; background: #fffef8; font-size: 12px; }
.fav-choice svg { width: 19px; height: 19px; margin: 0; }
.fav-choice.active { color: var(--green); border-color: #94a682; background: #e7ecdc; }
.account-menu { margin: 18px 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fffef9; }
.account-row { display: flex; align-items: center; width: 100%; gap: 12px; padding: 17px 15px; min-height: 61px; text-align: left; font-size: 13px; border-bottom: 1px solid #e6e8dc; }
.account-row:last-child { border-bottom: 0; }
.account-row svg { width: 20px; height: 20px; color: #839473; margin: 0; }
.account-row > span { flex: 1; }
.account-row > svg:last-child { width: 15px; height: 15px; color: #a0a791; }
.account-row small { display: block; font-size: 10px; margin-top: 5px; color: var(--muted); }

.store-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); margin-bottom: 17px; }
.store-card > img { width: 100%; height: 154px; object-fit: cover; }
.store-info { padding: 17px; }
.store-info h2, .store-info h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; margin-bottom: 7px; }
.store-info p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.store-info > div { display: flex; gap: 8px; margin-top: 13px; }
.store-info .btn { min-height: 42px; font-size: 11px; padding: 9px 13px; flex: 1; }
.store-info > .btn { margin-top: 14px; min-height: 44px; font-size: 12px; }
.store-info > .link { width: 100%; }
.orders-list { display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: 19px; background: var(--paper); padding: 18px; }
.order-card > div { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.order-card h3 { font-size: 14px; font-weight: 600; }
.order-card h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin-top: 8px; }
.order-card p { font-size: 12px; color: var(--muted); margin: 11px 0; line-height: 1.6; }
.order-card .btn { width: 100%; margin-top: 13px; }
.order-card small { font-size: 11px; color: var(--muted); }

#toast { position: fixed; z-index: 100; left: 50%; bottom: 123px; transform: translate(-50%, 15px); width: max-content; max-width: min(355px, calc(100vw - 40px)); padding: 12px 18px; border-radius: 15px; color: #fffef4; background: #2f4533f7; box-shadow: 0 7px 20px #263b2c28; font-size: 12px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show, #toast.visible { opacity: 1; transform: translate(-50%, 0); }
#sheet { position: fixed; inset: auto 0 max(18px, calc((100dvh - 900px) / 2)) 0; margin: 0 auto; width: 418px; max-width: calc(100vw - 24px); max-height: min(780px, 88dvh); overflow-y: auto; scrollbar-width: none; border: 0; border-radius: 26px 26px 30px 30px; background: var(--cream); color: var(--ink); padding: 0; box-shadow: 0 -12px 60px #152b2840; }
#sheet::backdrop { background: #1529205c; backdrop-filter: blur(3px); }
#sheet[open] { animation: rise .24s ease-out both; }
.sheet-body { padding: 30px 23px 27px; position: relative; }
.sheet-body::before { content: ''; display: block; position: absolute; top: 10px; left: calc(50% - 19px); width: 38px; height: 4px; border-radius: 5px; background: #cdd4bf; }
.sheet-body > .close, .sheet-close, #sheet > .close, .sheet-body > button[aria-label='Cerrar'] { position: absolute; top: 16px; right: 15px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; padding: 10px; border-radius: 50%; background: #fffef0e8; }
.sheet-body h2 { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.12; letter-spacing: -.5px; margin: 10px 0 8px; }
.sheet-body > p, .sheet-product > p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 8px 0 18px; }
.sheet-product > .sprite { height: 235px; border-radius: 18px; margin-bottom: 22px; }
.sheet-product .tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 19px; }
.tags span { padding: 6px 10px; border-radius: 30px; font-size: 10px; background: #e5ebd8; color: #6b7e57; }
.quantity-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0; border-top: 1px solid var(--line); }
.quantity-row > span { font-size: 13px; font-weight: 500; }
.quantity-row .price b { font-size: 24px; }
#product-price { font-size: 25px; font-weight: 600; letter-spacing: -.5px; }
.sheet-product > .btn { width: 100%; margin-top: 7px; }
.qr-box { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 23px; margin: 19px 0; text-align: center; }
.qr-code { width: 185px; height: 185px; max-width: 100%; margin: 20px auto; padding: 6px; background: white; }
.qr-code img { width: 100%; height: 100%; object-fit: contain; }
.qr-code svg { width: 100%; height: 100%; }
.qr-box p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 13px; }
.wholesale-list { margin: 19px 0; display: grid; gap: 12px; }
.wholesale-item { display: grid; align-items: center; grid-template-columns: 48px minmax(0, 1fr) 77px; gap: 10px; border: 1px solid var(--line); border-radius: 15px; padding: 12px; background: var(--paper); }
.wholesale-item > .sprite.small { width: 48px; height: 54px; border-radius: 10px; }
.wholesale-item h3 { font-size: 12px; font-weight: 600; line-height: 1.4; }
.wholesale-item p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.wholesale-item label { margin: 0; font-size: 10px; color: var(--muted); }
.wholesale-item input, .wholesale-item select { font-size: 12px; padding: 9px 7px; margin-top: 0; }
.wholesale-summary { border: 1px solid #d6dfc7; background: #e5ecda; border-radius: 18px; padding: 17px; margin: 17px 0; }
.wholesale-summary p { font-size: 12px; line-height: 1.6; }
.wholesale-summary strong { font-size: 21px; display: block; margin: 6px 0; font-weight: 600; }
.wholesale-summary > b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.copy-label { display: block; font-size: 12px; margin: 18px 0; }
.copy-label textarea { display: block; width: 100%; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page > p.muted { font-size: 12px; line-height: 1.7; }

#intro { position: absolute; z-index: 90; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cream); color: var(--green); transition: opacity .35s ease, visibility .35s; }
#intro img { width: 92px; height: 92px; border-radius: 50%; mix-blend-mode: multiply; margin-bottom: 20px; animation: intro-mark .8s cubic-bezier(.2,.7,.3,1) both; }
#intro h1, #intro strong, #intro b { font-family: var(--sans); font-size: 29px; font-weight: 450; letter-spacing: 7px; margin-left: 7px; }
#intro p, #intro small, #intro > span { font-size: 10px; letter-spacing: 4px; margin-top: 9px; margin-left: 4px; }
#intro.done { opacity: 0; pointer-events: none; visibility: hidden; }
@keyframes intro-mark { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes enter-page { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* A little tactility: one response to each touch, with room for the content. */
.btn, .plus, .offer-details, .chip, .fav-choice, .stepper button, .sheet-close, .branch-button {
  transition: transform .28s cubic-bezier(.2,.8,.25,1.35), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 30%, #faffed26 47%, transparent 64%); transform: translateX(-115%); transition: transform .65s ease; }
.btn > .icon, .offer-details > .icon, .plus > .icon, .quick-card > .icon, .repeat-card > .icon, .club-preview > .icon, .account-row > .icon:last-child { transition: transform .3s cubic-bezier(.2,.8,.25,1.3); }
.product-card, .quick-card, .repeat-card, .club-preview, .member-card, .store-card, .reward-card, .offer, .order-card {
  transition: transform .32s cubic-bezier(.2,.75,.3,1), box-shadow .32s, border-color .32s;
}
.product-image { overflow: hidden; }
.product-image > .sprite, .store-card > img { transition: transform .65s cubic-bezier(.2,.75,.3,1); }
.offer-photo { transition: transform .7s cubic-bezier(.2,.75,.3,1), box-shadow .5s; }
.account-row { transition: background-color .25s; }
.progress-bar { transform-origin: left center; transition: width .7s cubic-bezier(.18,.8,.24,1); }
.stamp { transition: background-color .3s, color .3s, transform .3s; }
.stepper b, .price b, #product-price, .mix-summary b { font-variant-numeric: tabular-nums; }
#nav button > span { transition: transform .3s cubic-bezier(.2,.8,.25,1.4), background-color .25s, box-shadow .25s; }
#nav button small { transition: color .2s; }
#nav button.active::after { animation: nav-dot-in .35s ease-out both; }
#bagbar { transition: transform .25s cubic-bezier(.2,.8,.25,1.4), box-shadow .25s; }
.plus.added { color: #fffef4; background: #71895b; box-shadow: 0 0 0 5px #a8b99535; }
.plus.added > .icon { transform: rotate(90deg); }
.btn.added { background: #658151; box-shadow: 0 0 0 4px #a8b99526; }
.btn:active, .plus:active, .offer-details:active, .chip:active, .fav-choice:active, .sheet-close:active, .branch-button:active { transform: scale(.94); }
.stepper button:active { transform: scale(.82); background: #dce6cf; }
.quick-card:active, .repeat-card:active, .club-preview:active, .member-card:active { transform: scale(.975); }
.product-image:active > .sprite { transform: scale(1.045); }
.account-row:active { background: #e9eddf; }
#nav button:active > span { transform: translateY(1px) scale(.88); }
#bagbar:active { transform: scale(.975); }
.granel-motion-layer { position: fixed; z-index: 110; pointer-events: none !important; overflow: hidden; contain: layout paint; }
.granel-motion-leaf { position: absolute; display: block; width: 14px; height: 21px; border-radius: 3px 90% 3px 90%; background: #819566; box-shadow: 0 2px 5px #314b2420; pointer-events: none !important; transform-origin: center; }
.granel-motion-leaf::after { content: ''; position: absolute; left: 6px; top: 3px; width: 1px; height: 15px; background: #f6f9df7a; transform: rotate(-28deg); }
.granel-motion-leaf.flight { width: 19px; height: 26px; background: #879c6b; border: 1px solid #f4f6e4; box-shadow: 0 5px 14px #354f322b; }
.granel-motion-leaf.flight::after { height: 18px; left: 8px; }
@keyframes nav-dot-in { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px 12px #384e3a1f; }
  .btn:not(:disabled):hover::after { transform: translateX(115%); }
  .btn:not(:disabled):hover > .icon, .offer-details:hover > .icon { transform: translateX(2px); }
  .plus:hover { transform: translateY(-2px) rotate(-5deg); box-shadow: 0 4px 10px #73885b26; }
  .product-card:hover, .quick-card:hover, .repeat-card:hover, .store-card:hover, .reward-card:hover, .order-card:hover { transform: translateY(-3px); box-shadow: 0 9px 20px #384e3a12; border-color: #cbd6bc; }
  .club-preview:hover, .member-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px #384e3a24; }
  .product-card:hover .product-image > .sprite, .store-card:hover > img { transform: scale(1.05); }
  .offer:hover .offer-photo { transform: rotate(-4deg) scale(1.045); box-shadow: -10px 14px 25px #65784524; }
  .quick-card:hover > .icon { transform: translateY(-3px) rotate(-7deg); }
  .repeat-card:hover > .icon { transform: rotate(90deg); }
  .club-preview:hover > .icon, .account-row:hover > .icon:last-child { transform: translateX(3px); }
  .account-row:hover { background: #eef1e5; }
  .chip:not(.active):hover, .fav-choice:not(.active):hover, .stepper button:not(:disabled):hover { background: #e4ead9; }
  #nav button:hover > span { transform: translateY(-3px); }
  #nav button:hover small { color: var(--green); }
  .btn:active, .plus:active, .offer-details:active { transform: scale(.94); }
  .quick-card:active, .repeat-card:active, .club-preview:active, .member-card:active { transform: scale(.975); }
  #nav button:active > span { transform: translateY(1px) scale(.88); }
}

@media (max-width: 480px) {
  body { display: block; padding: 0; min-height: 100dvh; }
  body::before, body::after { display: none; }
  #app { width: 100%; max-width: none; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .top { padding-top: max(14px, env(safe-area-inset-top)); }
  #nav { bottom: max(12px, env(safe-area-inset-bottom)); left: 13px; right: 13px; }
  #bagbar { bottom: calc(95px + max(0px, env(safe-area-inset-bottom) - 12px)); }
  #view { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  #app:has(#bagbar:not([hidden])) #view { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }
  #sheet { width: 100%; max-width: 430px; bottom: 0; border-radius: 26px 26px 0 0; }
  .sheet-body { padding-bottom: max(27px, env(safe-area-inset-bottom)); }
  #toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (min-width: 481px) and (max-height: 650px) {
  #app { min-height: 0; }
  .top { min-height: 65px; padding-top: 9px; padding-bottom: 8px; }
}
@media (max-width: 360px) {
  .page { padding: 19px 16px 10px; }
  .top { padding-left: 16px; padding-right: 16px; }
  .offer-track { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .offer { padding: 17px 15px 13px; flex-basis: 94%; }
  .offer-copy h2 { font-size: 26px; }
  .offer-photo { width: 128px; height: 128px; right: -26px; top: 48px; }
  .offer-copy p { font-size: 11px; }
  .offer-price b { font-size: 23px; }
  .product-grid { gap: 11px 9px; }
  .product-image { height: 122px; }
  .product-info { padding: 11px 9px 10px; }
  .product-info h3 { font-size: 12px; }
  .product-info .price b { font-size: 14px; }
  .cart-line { gap: 7px; }
  .cart-line .sprite.small { width: 44px; height: 50px; }
  .line-info h3 { font-size: 12px; }
  .cart-line .remove { min-width: 24px; padding: 2px; }
  .reward-card { gap: 9px; padding: 13px; }
  .reward-card > .icon { width: 35px; height: 35px; padding: 8px; }
  .reward-card button { padding: 9px; font-size: 10px; }
  .category-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .greeting h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn, .plus, .offer-details, .chip, .fav-choice, .stepper button, .sheet-close, .branch-button, .product-card, .quick-card, .repeat-card, .club-preview, .member-card, .store-card, .reward-card, .order-card, #nav button > span, #bagbar { transform: none !important; }
  .product-image > .sprite, .store-card > img, .btn > .icon, .plus > .icon, .quick-card > .icon, .repeat-card > .icon, .club-preview > .icon, .account-row > .icon { transform: none !important; }
  .offer-photo { transform: rotate(-10deg) !important; }
  .btn::after, .granel-motion-layer { display: none !important; }
}
