/* Seven Origins Home (app style) - values copied from the app's theme files (home-spec/design-tokens.md).
   Font: Outfit (free, OFL), hosted here. The app's Gilroy needs a web licence first. */

@font-face {
	font-family: "Outfit";
	src: url("fonts/outfit-latin-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.so-home {
	--text-muted: #4A5550;
	--text-title: #16241C;
	--text-subtle: #5C6660;
	--text-inactive: #3D4842;
	--heading: #14201A;
	--shelf-heading: #56625B;
	--ghost: #CBD4CE;
	--tile-bg: #EFF5F1;
	--brand: #009E52;
	--brand-2: #00874A;
	--brand-dark: #00743C;
	--card-ink: #16241C;
	--card-muted: #6B7A70;
	--card-strike: #98A49D;
	--fav-red: #E0433D;
	--warn: #CC3A2E;
	--img-ph: #F2F4F1;
	--line: #E9EFEB;
	--tint: #D0F1E2;
	--deep: #00874A;
	font-family: "Outfit", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text-title);
	-webkit-font-smoothing: antialiased;
	background: #fff;
	min-height: 100vh;
	position: relative;
	max-width: 480px;
	margin: 0 auto;
	padding-bottom: 84px;
}
.so-home *, .so-home *::before, .so-home *::after { box-sizing: border-box; }
.so-home a { color: inherit; text-decoration: none; }
.so-home button { font-family: inherit; cursor: pointer; }
.so-home p, .so-home h2, .so-home h3, .so-home ul { margin: 0; padding: 0; }
.so-home ul { list-style: none; }
.so-home [hidden] { display: none !important; }
.so-home .so-ic { display: block; flex: 0 0 auto; }
body.so-home-page { margin: 0; background: #fff; }

/* the 30 Min tab swaps the colour pair */
.so-home[data-tab="shop"] { --tint: var(--sh-tint, #D0F1E2); --deep: var(--sh-deep, #00874A); }
.so-home[data-tab="express"] { --tint: var(--ex-tint, #F1D0D5); --deep: var(--ex-deep, #9E2B3F); }

/* ---------- desktop top bar (hidden on phones) ---------- */
.so-topbar { display: none; }
.so-tabstrip .so-topnav { display: none; }

/* ---------- tab strip ---------- */
.so-tabstrip { background: var(--deep); height: 56px; padding: 8px 10px 0; display: flex; align-items: flex-end; gap: 8px; box-sizing: border-box; }
.so-tab {
	flex: 1; position: relative; border: 0; text-align: center; box-sizing: border-box; height: 40px; margin: 0 0 8px; padding: 0;
	border-radius: 16px; background: #fff; /* inactive: plain white pill, floating 8px above the bottom edge */
	font-weight: 900; font-size: 18px; color: var(--deep);
	display: flex; align-items: center; justify-content: center; gap: 6px;
}
/* active: tint tab, 20px top corners, base flares 14px outward on both sides (a concave fillet, which border-radius cannot draw) */
.so-tab.is-active { height: 48px; margin: 0; background: var(--tint); border-radius: 20px 20px 0 0; color: var(--deep); }
.so-tab.is-active::before, .so-tab.is-active::after { content: ""; position: absolute; bottom: 0; width: 14px; height: 14px; pointer-events: none; }
.so-tab.is-active::before { left: -14px; background: radial-gradient(circle at 0 0, transparent 13.5px, var(--tint) 14px); }
.so-tab.is-active::after { right: -14px; background: radial-gradient(circle at 100% 0, transparent 13.5px, var(--tint) 14px); }
.so-tab-ex { font-style: italic; }
.so-tab-ex svg { transform: translateY(1px); }

/* ---------- location ---------- */
.so-locband { background: var(--tint); padding: 13px 16px 8px; }
.so-locrow { display: flex; align-items: flex-start; gap: 8px; }
.so-loctext { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; display: block; color: inherit; }
.so-delivery-to { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.so-area { display: block; font-size: 26px; font-weight: 700; color: var(--text-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.so-addr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-addr { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--text-subtle); }
.so-circle {
	width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; color: #fff;
	background: color-mix(in srgb, var(--tint) 50%, var(--deep) 50%);
	display: flex; align-items: center; justify-content: center;
}
.so-wallet { position: relative; width: 32px; height: 46px; flex: 0 0 32px; align-self: flex-start; }
.so-wpill {
	position: absolute; left: 50%; transform: translateX(-50%); top: 26px; min-width: 32px; width: max-content; box-sizing: border-box;
	background: #fff; border-radius: 20px; padding: 1px 4px; text-align: center; line-height: 1.3;
	font-size: 7px; font-weight: 800; color: color-mix(in srgb, var(--tint) 50%, var(--deep) 50%); box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ---------- search + category strip ---------- */
.so-searchsec { background: var(--tint); padding: 8px 16px 0; position: sticky; top: 0; z-index: 20; }
.so-search {
	background: #fff; border-radius: 24px; padding: 0 15px; height: 44px;
	display: flex; align-items: center; gap: 10px; color: var(--text-subtle);
}
.so-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px;
	color: var(--text-title); padding: 0; height: 100%; -webkit-appearance: none; appearance: none;
}
.so-search input::placeholder { color: var(--text-subtle); opacity: 1; }
.so-catstrip { display: flex; gap: 6px; overflow-x: auto; padding: 15px 0 10px; scrollbar-width: none; }
.so-catstrip::-webkit-scrollbar { display: none; }
.so-home[data-tab="express"] .so-catstrip { display: none; }
.so-home[data-tab="express"] .so-searchsec { padding-bottom: 5px; }
.so-chip { flex: 0 0 68px; width: 68px; text-align: center; color: var(--text-inactive); }
.so-chipic { display: block; margin: 0 auto 5px; width: 24px; height: 24px; }
.so-chip .so-chipic svg { margin: 0; }
.so-chip span { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-chip i { display: block; height: 4px; border-radius: 2px; margin-top: 8px; background: color-mix(in srgb, var(--tint) 70%, #fff 30%); transition: background .2s; }
.so-chip.is-selected { color: var(--text-title); }
.so-chip.is-selected span { font-weight: 600; }
.so-chip.is-selected i { background: var(--deep); }

/* ---------- Shop All grid ---------- */
.so-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
.so-card { background: #fff; border-radius: 5px; overflow: hidden; min-width: 0; }
.so-imgwrap { position: relative; aspect-ratio: 3 / 4; background: var(--img-ph); }
.so-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-imglink { position: absolute; inset: 0; }
.so-badge {
	position: absolute; top: 10px; left: 0; padding: 3px 8px 3px 6px; border-radius: 0 5px 5px 0; color: #fff;
	font-size: 8.5px; font-weight: 800; letter-spacing: .3px;
}
.so-badge-best { background: #C98A00; }
.so-badge-ex { background: var(--brand-2); }
.so-wish {
	position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: #16231C;
}
.so-rating {
	position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.88); border-radius: 5px;
	padding: 4px 7px; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; gap: 3px;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.so-rating svg { color: var(--brand-2); }
.so-add {
	position: absolute; right: 8px; bottom: 8px; width: 56px; height: 28px; border-radius: 10px;
	border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-weight: 800; font-size: 12px;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 0 var(--brand-dark);
}
.so-add:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--brand-dark); }
.so-info { padding: 8px 9px 10px; }
.so-brand { font-size: 9.5px; font-weight: 800; letter-spacing: .4px; color: var(--card-muted); text-transform: uppercase; margin-bottom: 2px; }
.so-name { display: block; font-size: 12px; line-height: 1.3; color: var(--card-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-pack { font-size: 10.5px; color: var(--card-muted); margin-top: 2px; }
.so-prices { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.so-now { font-size: 13.5px; font-weight: 800; color: var(--card-ink); }
.so-was { font-size: 10.5px; color: var(--card-strike); }
.so-off { font-size: 10.5px; font-weight: 800; color: #006B34; }
.so-empty { padding: 60px 24px; text-align: center; color: var(--text-subtle); font-size: 14px; }

/* ---------- 30 Min tab ---------- */
.so-hero {
	background: var(--ex-tint, #F1D0D5); height: 92px; position: relative; overflow: hidden;
	display: flex; align-items: center; padding: 0 16px;
}
.so-hero-small { font-size: 16px; font-weight: 800; letter-spacing: .2px; line-height: 1.4; color: var(--ex-deep, #9E2B3F); }
.so-hero-big { font-size: 33px; font-weight: 900; font-style: italic; line-height: 1.05; color: var(--ex-deep, #9E2B3F); }
.so-hero-rider { position: absolute; right: 16px; bottom: 10px; color: var(--ex-deep, #9E2B3F); animation: so-ride 10s ease-in-out infinite; }
@keyframes so-ride { 0% { transform: translateX(-30px); opacity: 0; } 20% { opacity: 1; } 50%, 90% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .so-hero-rider { animation: none; } }
.so-hours { background: #FFF6E0; color: #7A5A00; font-size: 13px; font-weight: 600; padding: 9px 16px; }
.so-sechead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px; margin: 22px 0 14px; }
.so-sechead h2 { font-size: 16px; font-weight: 800; color: var(--heading); }
.so-sechead a { font-size: 13px; font-weight: 700; color: var(--brand); }
.so-shelf { margin-bottom: 18px; }
.so-shelf h3 { font-size: 13px; font-weight: 700; color: var(--shelf-heading); padding: 0 16px; margin-bottom: 10px; }
.so-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; padding: 0 16px; }
.so-tile { text-align: center; min-width: 0; }
.so-tileimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 16px; background: var(--tile-bg); overflow: hidden; margin-bottom: 8px; color: var(--card-muted); }
.so-tileimg img { width: 100%; height: 100%; object-fit: cover; }
.so-tilelabel { display: block; font-size: 12px; font-weight: 600; color: var(--heading); line-height: 1.2; }
.so-rail { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.so-rail::-webkit-scrollbar { display: none; }
.so-c30 { flex: 0 0 140px; width: 140px; }
.so-c30-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.so-c30-img { position: relative; aspect-ratio: 1; background: var(--img-ph); display: block; }
.so-c30-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-c30-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 7px 7px 12px; }
.so-c30-pack { font-size: 10.5px; font-weight: 700; color: #5B6B62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-c30-row .so-add { position: static; flex: 0 0 56px; }
.so-c30-out { padding-top: 7px; }
.so-c30-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.3; color: var(--card-ink); margin-top: 3px; }
.so-c30-stock { font-size: 9.5px; font-weight: 700; color: var(--warn); min-height: 15px; margin-top: 2px; }
.so-ghost { text-align: center; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ghost); padding: 0 28px 24px; margin-top: 40px; }
.so-ghost span { color: var(--ex-deep, #9E2B3F); }

/* states */
.so-stateblock { padding: 32px 24px 24px; text-align: center; }
.so-state-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: var(--ex-tint, #F1D0D5); color: var(--ex-deep, #9E2B3F); }
.so-state-head { font-size: 19px; font-weight: 800; color: var(--ex-deep, #9E2B3F); margin-bottom: 8px; }
.so-state-body { font-size: 14px; color: var(--text-subtle); margin-bottom: 28px; }
.so-state-note { text-align: center; color: var(--text-subtle); font-size: 13px; padding: 12px; }
.so-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; margin-bottom: 10px; border: 1px solid transparent; }
.so-btn-fill { background: var(--ex-deep, #9E2B3F); color: #fff !important; }
.so-btn-line { background: #fff; color: var(--ex-deep, #9E2B3F) !important; border-color: var(--ex-deep, #9E2B3F); }
.so-errorbox { padding: 40px 16px 16px; text-align: center; }
.so-errorbox p { font-weight: 600; color: var(--card-ink); margin-bottom: 10px; }
.so-retry { border: 1px solid var(--brand); color: var(--brand); background: #fff; padding: 8px 20px; border-radius: 8px; font-weight: 700; }
.so-skel { background: #EEF1EF; border-radius: 8px; animation: so-shimmer 1.4s ease-in-out infinite; }
.so-skel-hero { height: 92px; border-radius: 0; }
.so-skel-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.so-skel-row .so-skel { aspect-ratio: 1; }
@keyframes so-shimmer { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* ---------- cart pill + bottom nav ---------- */
.so-cartpill {
	position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 40;
	background: #009E52; color: #fff !important; border-radius: 30px; padding: 6px 8px 6px 6px; min-width: 176px;
	display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.so-cp-stack { display: flex; align-items: center; flex: 0 0 auto; }
.so-cp-stack .so-cp-img + .so-cp-img { margin-left: -18px; }
.so-cp-img { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #fff; border: 2px solid #fff; overflow: hidden; display: block; }
.so-cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-cp-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; padding: 0 4px 0 2px; }
.so-cp-text b { font-size: 16px; font-weight: 500; color: #fff; }
.so-cp-text small { font-size: 12.5px; font-weight: 400; color: rgba(255,255,255,.9); }
.so-cp-go { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; color: #fff; }
.so-cartpill, .so-cartpill:hover, .so-cartpill:focus { color: #fff !important; text-decoration: none; }
.so-bottomnav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 480px; margin: 0 auto;
	background: #fff; border-top: 1px solid #EDEDED; display: flex; justify-content: space-around; padding: 8px 0 12px;
}
.so-bottomnav a { text-align: center; font-size: 11px; color: #7A7B7F; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; min-height: 44px; justify-content: center; }
.so-bottomnav a.is-active { color: #009E52; font-weight: 700; }
.is-soon { opacity: .5; pointer-events: none; }

/* ---------- location sheet ---------- */
.so-sheet { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.so-sheet-box { position: relative; background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 26px 20px 30px; }
.so-sheet-box h2 { font-size: 19px; font-weight: 800; margin-bottom: 16px; padding-right: 30px; }
.so-sheet-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; padding: 6px; color: var(--text-subtle); }
.so-or { text-align: center; color: var(--text-subtle); font-size: 13px; margin: 4px 0 12px; }
.so-pinform { display: flex; gap: 8px; }
.so-pinform input { flex: 1; min-width: 0; border: 1px solid #CBD4CE; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; }
.so-pinform .so-btn { width: auto; margin: 0; padding: 12px 20px; }
.so-sheet-msg { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--warn); }
.so-sheet-msg.ok { color: var(--brand-dark); }

/* ---------- tablet ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
	.so-home { max-width: 768px; }
	.so-grid { grid-template-columns: repeat(3, 1fr); }
	.so-tiles { grid-template-columns: repeat(6, 1fr); }
	.so-bottomnav { max-width: 768px; }
}

/* ---------- desktop (the app has no desktop layout; this is the website's own reflow) ---------- */
@media (min-width: 1024px) {
	.so-home { max-width: 1280px; padding-bottom: 40px; }
	.so-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: #fff; border-bottom: 1px solid #EDEDED; }
	.so-logo { font-size: 22px; font-weight: 800; color: var(--text-title) !important; }
	.so-topnav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
	.so-topnav a:hover { color: var(--brand); }
	.so-tabstrip { padding: 8px 32px 0; max-width: none; align-items: flex-end; }
	.so-tabstrip .so-topnav { display: flex; align-items: center; gap: 26px; margin-left: auto; align-self: center; padding-bottom: 8px; font-size: 15px; font-weight: 500; }
	.so-tabstrip .so-topnav a { color: #fff !important; opacity: .92; }
	.so-tabstrip .so-topnav a:hover { opacity: 1; text-decoration: underline; }
	.so-tabstrip .so-topnav a.is-soon { opacity: .55; }
	.so-chrome { background: var(--deep); }
	.so-locband { padding-left: 32px; padding-right: 32px; }
	.so-searchsec { padding: 8px 32px 16px; }
	.so-search { max-width: 520px; }
	.so-wish:hover, .so-add:hover { filter: brightness(.97); }
	.so-bottomnav { display: none; }
	.so-cartpill { left: auto; right: 32px; transform: none; bottom: 32px; }
	.so-body { display: block; }
	.so-home[data-tab="shop"] .so-panel#so-panel-shop { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 0 32px; align-items: start; }
	.so-home[data-tab="shop"] .so-catstrip { display: none; }
	.so-grid { grid-template-columns: repeat(4, 1fr); padding: 24px 0 40px; }
	.so-tiles { grid-template-columns: repeat(8, 1fr); padding: 0 32px; }
	.so-sechead, .so-shelf h3 { padding-left: 32px; padding-right: 32px; }
	.so-rail { padding-left: 32px; padding-right: 32px; }
	.so-hero { height: 160px; padding: 0 32px; }
	.so-hero-big { font-size: 48px; }
	.so-hero-rider svg { width: 96px; height: 96px; }
	.so-ghost { font-size: 36px; max-width: 700px; margin: 40px auto 24px; }
	.so-sheet { align-items: center; }
	.so-sheet-box { border-radius: 20px; max-width: 440px; }
}

/* desktop sidebar (categories) - hidden on phones, where the chip strip is used */
.so-sidebar { display: none; }
@media (min-width: 1024px) {
	.so-sidebar { display: block; padding-top: 24px; }
	.so-side { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-inactive); margin-bottom: 4px; }
	.so-side:hover { background: color-mix(in srgb, var(--tint) 50%, #fff 50%); }
	.so-side.is-selected { background: var(--tint); color: var(--text-title); }
}


/* ---------- fixes after first review ---------- */
body.admin-bar .so-searchsec { top: 32px; }
@media (max-width: 782px) { body.admin-bar .so-searchsec { top: 46px; } }
.so-hero-rider svg { display: block; width: 76px; height: auto; }
.so-shelves { display: block; }
@media (min-width: 1024px) {
	.so-hero { height: 130px; }
	.so-hero-big { font-size: 44px; }
	.so-hero-rider svg { width: 110px; }
	.so-shelves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; padding: 0 32px; }
	.so-shelves .so-shelf h3 { padding: 0; }
	.so-shelves .so-tiles { grid-template-columns: repeat(4, 1fr); padding: 0; }
}

/* FluxBuilder blocks (Shop All): banner swiper, headline, category grid */
.so-fx-banner { position: relative; margin: 10px 0 0; }
.so-fx-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 12px; }
.so-fx-track::-webkit-scrollbar { display: none; }
.so-fx-slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: 20px; overflow: hidden; aspect-ratio: 2.1 / 1; background: var(--img-ph); }
.so-fx-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-fx-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.so-fx-dots i { width: 18px; height: 3px; border-radius: 2px; background: var(--line); }
.so-fx-dots i:first-child { background: var(--brand); }
.so-fx-title { font-size: 25px; line-height: 1.25; font-weight: 400; color: #5B6B78; margin: 22px 12px 14px; }
.so-fx-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; padding: 6px 12px 14px; }
.so-fx-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--card-ink); font-size: 13px; text-align: center; }
.so-fx-catimg { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E3F0FF; }
.so-fx-catimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 900px) {
	.so-fx-track { padding: 0; }
	.so-fx-title { margin-left: 0; }
	.so-fx-cats { grid-template-columns: repeat(9, 1fr); padding: 6px 0 14px; }
}

/* review fixes: circles level with the area name, white icons, thinner outlines */
.so-locrow .so-circle { margin-top: 16px; }
.so-locrow .so-wallet { margin-top: 16px; }
.so-locrow .so-wallet .so-circle { margin-top: 0; }
.so-home a.so-circle, .so-home .so-circle, .so-home .so-circle .so-ic { color: #fff !important; }
.so-circle .so-ic { stroke-width: 1.8; }
.so-chipic .so-ic { stroke-width: 1.5; }

/* bottom bar icons: the app's own CupertinoIcons (gift, flame, heart, person) and its brand mark for Home */
@font-face { font-family: "Cupertino Icons"; src: url("fonts/CupertinoIcons.ttf") format("truetype"); font-display: block; }
.so-cup { font: normal 400 24px/1 "Cupertino Icons"; font-feature-settings: "liga"; font-variant-ligatures: common-ligatures; text-transform: none; letter-spacing: normal; display: block; height: 24px; width: 24px; -webkit-font-smoothing: antialiased; }
.so-navlogo { display: block; width: 26px; height: 24px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }

.so-fx-brands { display: flex; gap: 12px; overflow-x: auto; padding: 4px 12px 14px; scrollbar-width: none; }
.so-fx-brands::-webkit-scrollbar { display: none; }
.so-fx-brand { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; color: var(--card-ink); text-decoration: none; }
.so-fx-brandimg { width: 64px; height: 64px; border-radius: 50%; background: var(--tile-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 22px; color: var(--deep); }
.so-fx-brandimg img { width: 100%; height: 100%; object-fit: contain; }
.so-fx-head, .so-fx-blog h2 { font-size: 16px; font-weight: 800; color: var(--heading); margin: 18px 12px 10px; }
.so-fx-blog { padding-bottom: 8px; }
.so-fx-post { display: flex; gap: 10px; align-items: center; margin: 0 12px 10px; text-decoration: none; color: var(--card-ink); font-weight: 600; font-size: 14px; }
.so-fx-post img { width: 88px; height: 64px; object-fit: cover; border-radius: 10px; }

.so-fx-prods { list-style: none; margin: 0; padding: 0 12px 6px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.so-fx-prods::-webkit-scrollbar { display: none; }
.so-fx-prods > .so-card { flex: 0 0 148px; scroll-snap-align: start; }
.so-fx-rowsec .so-sechead { padding: 0 12px; }
@media (min-width: 900px) { .so-fx-prods { padding-left: 0; } .so-fx-rowsec .so-sechead { padding-left: 0; } .so-fx-prods > .so-card { flex-basis: 200px; } }

/* spacing pass: every FluxBuilder block uses the same 16px side margin and the same vertical rhythm */
.so-home .so-fx-banner { margin: 12px 0 0; }
.so-home .so-fx-track { padding: 0 16px !important; }
.so-home .so-fx-title { margin: 20px 16px 12px; }
.so-home .so-fx-cats { padding: 4px 16px 8px !important; }
.so-home .so-fx-brands { padding: 4px 16px 8px !important; margin: 0 !important; }
.so-home .so-fx-head, .so-home .so-fx-blog h2 { margin: 16px 16px 10px; }
.so-home .so-fx-blog .so-fx-post { margin: 0 16px 10px; }
.so-home .so-fx-rowsec { margin: 0 0 4px; }
.so-home .so-fx-rowsec .so-sechead { padding: 0 16px !important; margin: 16px 0 10px !important; }
.so-home .so-fx-prods { list-style: none !important; margin: 0 !important; padding: 0 16px 4px !important; gap: 12px !important; align-items: flex-start; }
.so-home .so-fx-prods > .so-card { flex: 0 0 148px; margin: 0 !important; }
@media (min-width: 900px) {
	.so-home .so-fx-track, .so-home .so-fx-cats, .so-home .so-fx-brands, .so-home .so-fx-prods { padding-left: 0 !important; padding-right: 0 !important; }
	.so-home .so-fx-title, .so-home .so-fx-head, .so-home .so-fx-rowsec .so-sechead { margin-left: 0; padding-left: 0 !important; }
}

/* snapping used to pull the first card flush to the edge; keep the 16px margin, and stop the theme zeroing list padding */
.so-home .so-fx-prods, .so-home .so-fx-brands, .so-home .so-fx-track { scroll-padding-left: 16px; scroll-padding-right: 16px; }
.so-home ul.so-grid { padding: 16px !important; margin: 0 !important; list-style: none !important; gap: 12px !important; }
.so-home .so-grid > .so-card { margin: 0 !important; }
@media (min-width: 1024px) { .so-home ul.so-grid { padding: 24px 0 40px !important; } }
@media (min-width: 900px) { .so-home .so-fx-prods, .so-home .so-fx-brands, .so-home .so-fx-track { scroll-padding-left: 0; scroll-padding-right: 0; } }
.so-home .so-extra { padding: 0; }
.so-home .so-more { text-align: center; padding: 4px 16px 24px; }
.so-home .so-more a { color: var(--brand); font-weight: 700; }

/* desktop: the content column may not grow with its sliders (they blew the page wider than the container) */
.so-home .so-main, .so-home .so-panel { min-width: 0; max-width: 100%; }
.so-home .so-fx-banner, .so-home .so-fx-brands, .so-home .so-fx-prods, .so-home .so-fx-cats { max-width: 100%; min-width: 0; }
.so-home .so-fx-slide { min-width: 0; }
@media (min-width: 900px) {
	.so-home .so-fx-slide { aspect-ratio: 3 / 1; max-height: 360px; }
	.so-home .so-fx-cats { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
}

/* ---------- ADD bottom sheet ---------- */
.so-vsheet { z-index: 100001; }
.so-vbox { max-height: 88vh; overflow-y: auto; padding: 22px 18px 20px; }
.so-vtop { display: flex; gap: 14px; margin-bottom: 14px; padding-right: 30px; }
.so-vimg { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; background: var(--img-ph); flex: 0 0 84px; }
.so-vinfo { min-width: 0; }
.so-vname { display: block; font-size: 16px; font-weight: 700; color: var(--card-ink); line-height: 1.3; }
.so-vprice { margin-top: 6px; font-size: 18px; font-weight: 800; color: var(--card-ink); }
.so-vprice s { font-size: 13px; font-weight: 500; color: var(--card-strike); margin-left: 4px; }
.so-vstock { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--warn); }
.so-vgroup { margin-bottom: 12px; }
.so-vlabel { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.so-vopts { display: flex; flex-wrap: wrap; gap: 8px; }
.so-vopt { min-width: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid #D5DDD8; background: #fff; color: var(--card-ink); font: inherit; font-size: 14px; font-weight: 600; }
.so-vopt.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand-dark); }
.so-vopt.is-off { opacity: .4; text-decoration: line-through; }
.so-vbar { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.so-vqty { display: flex; align-items: center; border: 1px solid #D5DDD8; border-radius: 12px; }
.so-vqty button { width: 38px; height: 44px; background: none; border: 0; font-size: 20px; color: var(--card-ink); }
.so-vq { min-width: 26px; text-align: center; font-weight: 700; }
.so-vadd { flex: 1; height: 46px; border-radius: 12px; border: 0; background: var(--brand); color: #fff !important; font: inherit; font-size: 15px; font-weight: 800; }
.so-vadd:disabled { background: #B9C4BD; }
.so-vmsg { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--warn); }
.so-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 100002; background: #16241C; color: #fff; padding: 10px 18px; border-radius: 22px; font-size: 14px; font-weight: 600; }
button.so-add, a.so-add { cursor: pointer; }

.so-navvid { display: block; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.so-bottomnav a.is-soon { opacity: 1; }

/* closed-store notice on 30 Min: keep the 16px side margin the rest of the page uses (the theme zeroed it) */
.so-home .so-hours { padding: 10px 16px !important; margin: 0 !important; box-sizing: border-box; text-align: left; line-height: 1.4; }
.so-home .so-hours[hidden] { display: none !important; }

.so-fly { position: fixed; z-index: 100003; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.28); pointer-events: none; }
.so-fly img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1024px) { .so-cartpill { transform: none; } }

/* cart bar: size to its content (a left:50% box was only allowed half the screen, which wrapped "View cart") */
.so-cartpill { width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; }
.so-cp-text b, .so-cp-text small { white-space: nowrap; }
.so-cp-text { flex: 0 1 auto; padding: 0 6px 0 4px; }

/* cart bar: smaller photos, tighter stack */
.so-cp-img { width: 32px; height: 32px; flex: 0 0 32px; }
.so-cp-stack .so-cp-img + .so-cp-img { margin-left: -14px; }
.so-cartpill { padding: 5px 7px 5px 5px; gap: 8px; }

/* cart bar: photos back to full size, stacked tightly (each new photo sits on the previous, ~12px showing) */
.so-cp-img { width: 40px; height: 40px; flex: 0 0 40px; }
.so-cp-stack .so-cp-img + .so-cp-img { margin-left: -28px; }
.so-cartpill { padding: 6px 8px 6px 6px; gap: 10px; }

/* no hover / focus / pressed colour change on the home page (the theme turned buttons black); each button keeps its own colours */
.so-home .so-loctext:hover, .so-home .so-loctext:focus, .so-home .so-loctext:active { background: none !important; color: inherit !important; border: 0 !important; box-shadow: none !important; outline: 0; }
.so-home .so-tab:not(.is-active):hover, .so-home .so-tab:not(.is-active):focus, .so-home .so-tab:not(.is-active):active { background: #fff !important; color: var(--deep) !important; border: 0 !important; box-shadow: none; }
.so-home .so-tab.is-active:hover, .so-home .so-tab.is-active:focus, .so-home .so-tab.is-active:active { background: var(--tint) !important; color: var(--deep) !important; border: 0 !important; box-shadow: none; }
.so-home .so-sheet-close:hover, .so-home .so-sheet-close:focus, .so-home .so-sheet-close:active { background: none !important; color: var(--text-subtle) !important; border: 0 !important; box-shadow: none; }
.so-home .so-btn-fill:hover, .so-home .so-btn-fill:focus, .so-home .so-btn-fill:active { background: var(--ex-deep, #9E2B3F) !important; color: #fff !important; border-color: transparent !important; }
.so-home .so-btn-line:hover, .so-home .so-btn-line:focus, .so-home .so-btn-line:active { background: #fff !important; color: var(--ex-deep, #9E2B3F) !important; border-color: var(--ex-deep, #9E2B3F) !important; }
.so-home .so-retry:hover, .so-home .so-retry:focus, .so-home .so-retry:active { background: #fff !important; color: var(--brand) !important; border-color: var(--brand) !important; }
.so-home .so-vopt:hover, .so-home .so-vopt:focus, .so-home .so-vopt:active { background: #fff !important; color: var(--card-ink) !important; border-color: #D5DDD8 !important; box-shadow: none; }
.so-home .so-vopt.is-on:hover, .so-home .so-vopt.is-on:focus, .so-home .so-vopt.is-on:active { background: color-mix(in srgb, var(--brand) 10%, #fff) !important; color: var(--brand-dark) !important; border-color: var(--brand) !important; }
.so-home .so-vqty button:hover, .so-home .so-vqty button:focus, .so-home .so-vqty button:active { background: none !important; color: var(--card-ink) !important; border: 0 !important; box-shadow: none; }
.so-home .so-vadd:hover, .so-home .so-vadd:focus, .so-home .so-vadd:active { background: var(--brand) !important; color: #fff !important; border: 0 !important; }
.so-home .so-vadd:disabled:hover { background: #B9C4BD !important; }
.so-home button:hover:after, .so-home button:focus:after { animation: none !important; }

/* shared look outside the home page (shop, category, search): the card, the ADD sheet and the cart bar need the same colours and font */
.so-card, .so-vsheet, .so-cartpill, .so-fly, .so-toast {
	--text-muted: #4A5550; --text-title: #16241C; --text-subtle: #5C6660; --heading: #14201A;
	--brand: #009E52; --brand-2: #00874A; --brand-dark: #00743C; --card-ink: #16241C; --card-muted: #6B7A70;
	--card-strike: #98A49D; --fav-red: #E0433D; --warn: #CC3A2E; --img-ph: #F2F4F1; --line: #E9EFEB;
	font-family: "Outfit", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body:not(.so-home-page):not(.so-cats-page) .so-cartpill { bottom: 24px; }
li.product.so-li { list-style: none; }
li.product.so-li .so-card { height: 100%; }

/* wider screens: the screen sits in a bordered frame on a soft green page, like the login pages (home, Category, product list) */
@media (min-width: 600px) {
	body.so-home-page, body.so-cats-page, body.so-archive-page { background: #E3F0E8 !important; }
	.so-home, .so-cats, .so-ar { background: #fff; border-left: 1px solid #C9DDD0; border-right: 1px solid #C9DDD0; box-shadow: 0 0 44px rgba(0, 60, 30, .14); }
}

/* the location sheet and the ADD sheet must really close when hidden (their own display rule used to win outside the home page) */
.so-sheet[hidden], .so-vsheet[hidden] { display: none !important; }

/* top progress bar (starts on links and in-page loads) */
.so-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100010; display: none; pointer-events: none; }
.so-progress.is-on { display: block; }
.so-progress span { display: block; height: 100%; width: 0; background: #009E52; box-shadow: 0 0 8px rgba(0,158,82,.55); border-radius: 0 2px 2px 0; }

/* wishlist heart: filled red when the product is in the wishlist */
a.so-wish.is-wished svg, a.so-pc2-heart.is-wished svg, a.so-pd-wish.is-wished svg { fill: #E0433D; stroke: #E0433D; }

/* leftovers the theme prints at the end of the page (photo viewer, sticky add-to-cart): never shown on our screens */
.so-home-page .pswp, .so-cats-page .pswp, .so-archive-page .pswp, .so-product-page .pswp, .so-cart-page .pswp,
.so-home-page .glozin-sticky-add-to-cart, .so-cats-page .glozin-sticky-add-to-cart, .so-archive-page .glozin-sticky-add-to-cart, .so-product-page .glozin-sticky-add-to-cart, .so-cart-page .glozin-sticky-add-to-cart { display: none !important; }

/* offers on products: the purple ₹1 Deal chip and the "Extra ₹X off" coupon line */
.so-offers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 0 0; }
.so-deal1 { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #F3EFFD; color: #5B3FB8; font-size: 11px; font-weight: 600; line-height: 1.4; }
.so-offer { color: #007A3F; font-size: 11px; font-weight: 500; line-height: 1.3; }
.so-pd-title ~ .so-offers { margin-top: 8px; }
.so-pd-title ~ .so-offers .so-deal1 { font-size: 12.5px; padding: 3px 10px; }
.so-pd-title ~ .so-offers .so-offer { font-size: 13px; }

/* site footer on the app-style screens */
.so-ftr { margin: 28px 0 0; padding: 26px 16px calc(96px + env(safe-area-inset-bottom, 0px)); background: #F6F8F6; border-top: 1px solid #E3E7E4; font-family: "Outfit", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #3C4043; }
.so-ftr-in { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; max-width: 1100px; margin: 0 auto; }
.so-ftr-brand { grid-column: 1 / -1; }
.so-ftr-brand b { font-size: 17px; font-weight: 600; color: #111418; }
.so-ftr-brand p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #5F6368; }
.so-ftr-brand .so-ftr-hrs { color: #007A3F; font-weight: 500; }
.so-ftr-col h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #111418; letter-spacing: .02em; text-transform: uppercase; }
.so-ftr-col a { display: block; padding: 5px 0; font-size: 14px; color: #3C4043 !important; text-decoration: none; }
.so-ftr-col a:hover { color: #007A3F !important; }
.so-ftr-copy { max-width: 1100px; margin: 22px auto 0; padding-top: 14px; border-top: 1px solid #E3E7E4; font-size: 12px; color: #80868B; }
@media (min-width: 820px) { .so-ftr-in { grid-template-columns: 2fr 1fr 1fr; } .so-ftr-brand { grid-column: auto; } .so-ftr { padding-bottom: 36px; } }

/* the theme's own footer on the app screens: room under it for the bottom bar on phones */
.so-native-footer { margin-top: 28px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .so-native-footer { padding-bottom: 0; } }

/* the theme's own footer on the app screens: room under it for the bottom bar on phones */
.so-native-footer { margin-top: 28px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .so-native-footer { padding-bottom: 0; } }

/* desktop: the footer, the page and the buy bar share one centred column */
@media (min-width: 1024px) {
	.so-native-footer { max-width: 1280px; margin-left: auto; margin-right: auto; }
	.so-pd { padding-bottom: 0 !important; }
	.so-pd .so-pd-bar { position: sticky; left: auto; bottom: 0; transform: none; max-width: none; width: auto; margin: 24px 0 0; border-radius: 0; }
	.so-ar-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 24px 14px !important; }
	/* task screens are narrow on a wide screen: bag, order placed, profile, wallet */
	.so-ar.so-ct, .so-ar.so-pf, .so-ar.so-pfv { max-width: 720px; }
}

/* bottom bar: inactive icons and labels the same dark colour as the header icons (active stays green) */
.so-bottomnav a { color: #16241C; }
.so-bottomnav a.is-active { color: #009E52; }

/* icons: a softer charcoal instead of near-black (bottom bar, header icons) */
.so-bottomnav a { color: #36423B; }
.so-bottomnav a.is-active { color: #009E52; }
.so-hic { color: #36423B; }

/* bottom bar labels: 12.5px */
.so-bottomnav a { font-size: 12.5px; }

/* skeleton loading (grey shimmer) shared by every screen that fetches content after it opens */
.so-sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #EEF2EF 25%, #F7F9F8 37%, #EEF2EF 63%); background-size: 400% 100%; animation: so-skim 1.3s ease infinite; }
@keyframes so-skim { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.so-skrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.so-skrow .so-sk:first-child { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; }
.so-skrow > div { flex: 1 1 auto; min-width: 0; }
.so-skrow > div .so-sk { height: 12px; margin: 6px 0; }
.so-skgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
.so-skcard .so-sk.i { aspect-ratio: 3 / 4; border-radius: 6px; }
.so-skcard .so-sk.t { height: 11px; margin-top: 8px; width: 78%; }
.so-skcard .so-sk.p { height: 13px; margin-top: 6px; width: 40%; }
.so-skrail { display: flex; gap: 12px; overflow: hidden; padding: 4px 0; }
.so-skrail .so-skcard { flex: 0 0 140px; }
@media (prefers-reduced-motion: reduce) { .so-sk { animation: none; } }

/* ADD sheet: no empty space under the button (the message line only takes room when it has text) */
.so-vbox { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.so-vbox p { margin-bottom: 0; }
.so-vmsg { min-height: 0; margin-top: 0; }
.so-vmsg:not(:empty) { margin-top: 8px; min-height: 18px; }
