/* StorePanda — one stylesheet, mobile first.
   Written for a phone and widened at breakpoints, not the other way round. */

:root {
	--green: #40b848;
	--green-dark: #2e8a35;
	--green-light: #eaf8ec;
	--amber: #f9a825;
	--danger: #e03131;
	--ink: #1a1f2b;
	--ink-soft: #3c4457;
	--muted: #7a8398;
	--line: #e8ebf0;
	--bg: #ffffff;
	--surface: #f6f8fa;
	/* Footer green: the logo's green taken down in lightness. The logo colour
	   itself (#40b848) only reaches ~2.5:1 against white text, which is
	   unreadable; this keeps the same hue and clears 7:1. */
	--night: #1a5c22;
	--night-soft: #247a2e;

	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 20px;

	--pad: 14px;
	--gap: 10px;
	--maxw: 1560px;
	--header-h: 70px;

	--shadow-sm: 0 1px 2px rgba(19, 25, 40, .05);
	--shadow: 0 4px 14px rgba(19, 25, 40, .07);
	--shadow-lg: 0 10px 30px rgba(19, 25, 40, .12);

	--ease: cubic-bezier(.4, 0, .2, 1);
	--font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--ink);
	background: var(--bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Everything shares one measure, so rows and grids line up down the page. */
.sp-bound { max-width: var(--maxw); margin-inline: auto; }

.sp-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--green); color: #fff; padding: 10px 16px; z-index: 200;
	border-radius: 0 0 var(--radius-sm) 0;
}
.sp-skip:focus { left: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */

.sp-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
}

/* Tier one: contact strip. Hidden on phones — it is the least useful row and
   the first thing that should go when height is scarce. */
.sp-topstrip { display: none; background: var(--surface); border-bottom: 1px solid var(--line); }

.sp-topstrip__inner {
	display: flex; align-items: center; gap: 22px;
	max-width: var(--maxw); margin-inline: auto;
	padding: 7px var(--pad);
	font-size: 12.5px; color: var(--ink-soft);
}
.sp-topstrip__item { display: inline-flex; align-items: center; gap: 7px; }
.sp-topstrip__item svg { width: 15px; height: 15px; color: var(--green-dark); }
.sp-topstrip__phone { font-weight: 600; transition: color .18s var(--ease); }
.sp-topstrip__phone:hover { color: var(--green-dark); }
.sp-topstrip__deal { color: var(--green-dark); font-weight: 500; }

.sp-topstrip__social { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.sp-topstrip__social a {
	display: flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	color: var(--ink-soft); transition: background .18s var(--ease), color .18s var(--ease);
}
.sp-topstrip__social svg { width: 13px; height: 13px; }
.sp-topstrip__social a:hover { background: var(--green); color: #fff; }

/* Tier two: the main bar. */
.sp-header__bar {
	display: flex; align-items: center; gap: 10px;
	min-height: var(--header-h);
	padding: 8px var(--pad);
	max-width: var(--maxw); margin-inline: auto;
}

/* Desktop search. The border lives on the wrapper, not on each control, so
   there are no internal seams and focusing the select can't draw a second box
   inside the pill. */
.sp-hsearch {
	display: none; flex: 1; max-width: 640px; align-items: stretch;
	border: 1.5px solid var(--line); border-radius: 999px;
	background: var(--bg); overflow: hidden;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.sp-hsearch:focus-within {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(64, 184, 72, .12);
}

.sp-hsearch__cat,
.sp-hsearch__field,
.sp-hsearch__go { border: 0; outline: none !important; background: transparent; }

.sp-hsearch__cat {
	flex: 0 0 auto; width: 168px; height: 48px;
	padding: 0 32px 0 18px; font-family: inherit; font-size: 13.5px;
	color: var(--ink-soft); cursor: pointer;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8398' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 15px;
	border-right: 1px solid var(--line);
}

.sp-hsearch__field {
	flex: 1; min-width: 0; height: 48px; padding: 0 18px;
	font-family: inherit; font-size: 14px;
}

.sp-hsearch__go {
	flex: 0 0 auto; width: 60px; margin: 4px 4px 4px 0;
	border-radius: 999px; background: var(--green);
	color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background .18s var(--ease);
}
.sp-hsearch__go:hover { background: var(--green-dark); }
.sp-hsearch__go svg { width: 19px; height: 19px; }

/* Account links live in the top strip now — the main bar keeps only the cart. */
.sp-topstrip__account { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.sp-topstrip__account svg { width: 15px; height: 15px; color: var(--green-dark); }
.sp-topstrip__account a { font-weight: 600; transition: color .18s var(--ease); }
.sp-topstrip__account a:hover { color: var(--green-dark); }
.sp-topstrip__account .sp-sep { opacity: .35; font-weight: 400; }
.sp-topstrip__account + .sp-topstrip__social { margin-left: 18px; }

.sp-cartbtn {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 16px; border-radius: 999px;
	background: var(--green-light); color: var(--green-dark); font-weight: 600; font-size: 14px;
	transition: background .18s var(--ease), transform .12s var(--ease);
}
.sp-cartbtn:hover { background: #d9f2dd; }
.sp-cartbtn:active { transform: scale(.97); }
.sp-cartbtn svg { width: 21px; height: 21px; }
.sp-cartbtn__text { display: none; }

/* Tier three: the green navigation band. */
.sp-nav { display: none; background: var(--green-dark); }
.sp-nav__inner {
	display: flex; align-items: center; gap: 20px;
	max-width: var(--maxw); margin-inline: auto;
	padding: 0 var(--pad);
}
.sp-nav__menu {
	display: flex; align-items: center; gap: 4px;
	list-style: none; margin: 0; padding: 0; flex: 1;
}
.sp-nav__menu > li { position: relative; }
.sp-nav__menu > li > a {
	display: block; padding: 14px 14px; color: #fff;
	font-size: 14px; font-weight: 500;
	transition: background .18s var(--ease);
}
.sp-nav__menu > li > a:hover, .sp-nav__menu > li.current-menu-item > a { background: rgba(255, 255, 255, .14); }

.sp-nav__menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 210px; list-style: none; margin: 0; padding: 6px 0;
	background: var(--bg); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sp-nav__menu > li:hover > .sub-menu,
.sp-nav__menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sp-nav__menu .sub-menu a {
	display: block; padding: 9px 16px; font-size: 13.5px; color: var(--ink);
	transition: background .16s var(--ease), color .16s var(--ease);
}
.sp-nav__menu .sub-menu a:hover { background: var(--green-light); color: var(--green-dark); }

.sp-nav__hours {
	display: inline-flex; align-items: center; gap: 8px;
	color: rgba(255, 255, 255, .92); font-size: 13px; white-space: nowrap;
}
.sp-nav__dot {
	width: 8px; height: 8px; border-radius: 50%; background: #8fe39a;
	box-shadow: 0 0 0 3px rgba(143, 227, 154, .28);
}

/* Drawer extras */
.sp-drawer__account, .sp-drawer__call {
	display: flex; align-items: center; gap: 10px;
	padding: 12px; border-radius: var(--radius-sm);
	background: var(--green-light); color: var(--green-dark);
	font-weight: 600; font-size: 14px; margin-top: 44px;
}
.sp-drawer__call { margin-top: 16px; }
.sp-drawer__account svg, .sp-drawer__call svg { width: 18px; height: 18px; }
.sp-drawer__account + .sp-drawer__menu { margin-top: 14px; }

.sp-brand { flex: 1; min-width: 0; display: flex; align-items: center; }
/* A wide wordmark needs height to stay legible; capped by width too so it can't
   crowd out the search and cart buttons on a narrow phone. */
.sp-brand img { max-height: 52px; max-width: min(220px, 50vw); width: auto; object-fit: contain; }
.sp-brand__text { font-weight: 600; font-size: 18px; }

.sp-header__actions { display: flex; align-items: center; gap: 2px; }

.sp-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 0; background: none; color: var(--ink);
	cursor: pointer; position: relative; padding: 0;
	border-radius: var(--radius-sm);
	transition: background .18s var(--ease), color .18s var(--ease);
}
.sp-iconbtn:hover { background: var(--surface); color: var(--green-dark); }

.sp-cart__count {
	position: absolute; top: 4px; right: 4px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--danger); color: #fff;
	font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.sp-cart__count:empty, .sp-cart__count[data-cart-count="0"] { display: none; }

.sp-searchbar { padding: 0 var(--pad) 12px; max-width: var(--maxw); margin-inline: auto; }
.sp-searchbar[hidden] { display: none; }
.sp-searchbar form { display: flex; gap: 8px; }

.sp-searchbar input[type="search"], .sp-searchbar .search-field {
	flex: 1; min-width: 0; height: 44px; padding: 0 16px;
	border: 1px solid var(--line); border-radius: 999px;
	font-size: 15px; font-family: inherit; background: var(--surface);
	transition: border-color .18s var(--ease), background .18s var(--ease);
}
.sp-searchbar input[type="search"]:focus { background: var(--bg); border-color: var(--green); outline: none; }

.sp-searchbar button, .sp-searchbar .search-submit {
	height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
	background: var(--green); color: #fff; font-weight: 600; font-family: inherit;
	cursor: pointer; transition: background .18s var(--ease);
}
.sp-searchbar button:hover { background: var(--green-dark); }

/* ---------- drawer ---------- */

.sp-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 35, .5); }
.sp-drawer[hidden] { display: none; }

.sp-drawer__panel {
	position: absolute; inset: 0 auto 0 0;
	width: min(84vw, 340px);
	background: var(--bg); padding: 18px; overflow-y: auto;
	animation: sp-slide-in .22s var(--ease);
	box-shadow: var(--shadow-lg);
}
@keyframes sp-slide-in { from { transform: translateX(-100%); } to { transform: none; } }

.sp-drawer__close {
	position: absolute; top: 10px; right: 10px;
	width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
	border-radius: var(--radius-sm);
}
.sp-drawer__close:hover { background: var(--surface); }

.sp-drawer__menu { list-style: none; margin: 14px 0 0; padding: 0; }
.sp-drawer__menu li { border-bottom: 1px solid var(--line); }
.sp-drawer__menu a {
	display: block; padding: 13px 6px; font-size: 15px;
	transition: color .16s var(--ease), padding-left .16s var(--ease);
}
.sp-drawer__menu a:hover { color: var(--green-dark); padding-left: 12px; }
.sp-drawer__menu .sub-menu { list-style: none; padding-left: 12px; margin: 0; }

/* ---------- sections ---------- */

.sp-main { display: block; padding-bottom: 8px; }

.sp-section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
	padding: 26px var(--pad) 12px;
	max-width: var(--maxw); margin-inline: auto;
}
.sp-section__head--center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sp-section__title { margin: 0; font-size: 19px; font-weight: 600; }
.sp-section__sub { margin: 0; color: var(--muted); font-size: 14px; }

.sp-section__more {
	font-size: 13px; color: var(--green-dark); font-weight: 600;
	white-space: nowrap; transition: gap .16s var(--ease);
	display: inline-flex; align-items: center; gap: 3px;
}
.sp-section__more:hover { gap: 7px; }
.sp-section__more::after { content: "›"; font-size: 16px; line-height: 1; }

/* ---------- banners ---------- */

.sp-banners { padding-top: 14px; overflow: hidden; }

.sp-banners__viewport {
	max-width: var(--maxw); margin-inline: auto;
	padding: 0 var(--pad); overflow: hidden;
}

/* Driven by transform rather than scroll: a translated track can't fight
   scroll-snap or get yanked back mid-animation, which is what made the old
   version stutter. */
.sp-banners__track {
	display: flex;
	gap: 12px;
	will-change: transform;
	cursor: grab;
}
.sp-banners__track.is-dragging { cursor: grabbing; }
.sp-banners__track.is-dragging a { pointer-events: none; }
.sp-banners__track.is-animating { transition: transform .55s var(--ease); }

.sp-banner {
	position: relative; flex: 0 0 86%;
	border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
	transform: scale(.95); opacity: .6;
	transition: transform .5s var(--ease), opacity .5s var(--ease);
	box-shadow: var(--shadow);
}
.sp-banner.is-active { transform: none; opacity: 1; }
/* Matches the 3:1 artwork. Anything narrower crops the sides, which on these
   banners means losing either the Urdu headline or the products. */
.sp-banner__img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }

.sp-banner__caption {
	position: absolute; left: 14px; bottom: 14px;
	background: rgba(16, 20, 32, .62); backdrop-filter: blur(4px);
	color: #fff; font-size: 13px; font-weight: 500;
	padding: 6px 14px; border-radius: 999px;
}

.sp-dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0 0; }
.sp-dot {
	width: 7px; height: 7px; border-radius: 999px; background: var(--line);
	transition: width .3s var(--ease), background .3s var(--ease);
	border: 0; padding: 0; cursor: pointer;
}
.sp-dot.is-active { width: 24px; background: var(--green); }

/* ---------- departments strip ---------- */

.sp-depts { overflow: hidden; }

.sp-depts__track {
	display: flex; gap: 14px; list-style: none; margin: 0;
	padding: 6px var(--pad) 10px;
	overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; cursor: grab;
	max-width: var(--maxw); margin-inline: auto;
}
.sp-depts__track::-webkit-scrollbar { display: none; }
.sp-depts__track.is-dragging { cursor: grabbing; }
.sp-depts__track.is-dragging a, .sp-row__track.is-dragging a { pointer-events: none; }
.sp-depts__track.is-dragging, .sp-row__track.is-dragging { user-select: none; }

.sp-dept { flex: 0 0 auto; width: 88px; text-align: center; }
.sp-dept a { display: block; }

.sp-dept__art {
	display: flex; align-items: center; justify-content: center;
	width: 88px; height: 88px; margin: 0 auto 8px;
	border-radius: var(--radius); background: var(--green-light);
	border: 1px solid var(--line); overflow: hidden;
	transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.sp-dept__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }

.sp-dept a:hover .sp-dept__art, .sp-dept a:focus-visible .sp-dept__art {
	transform: translateY(-4px);
	border-color: var(--green);
	box-shadow: 0 8px 20px rgba(64, 184, 72, .22);
}
.sp-dept a:hover .sp-dept__art img { transform: scale(1.09); }
.sp-dept a:hover .sp-dept__name { color: var(--green-dark); }

.sp-dept__initial { font-size: 26px; font-weight: 600; color: var(--green-dark); }

.sp-dept__name {
	display: -webkit-box; font-size: 11.5px; line-height: 1.3; color: var(--ink-soft);
	overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	transition: color .2s var(--ease);
}

/* ---------- product cards ---------- */

.sp-grid, ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
	list-style: none; margin: 0;
	padding: 0 var(--pad);
	max-width: var(--maxw); margin-inline: auto;
}

.sp-card {
	position: relative; display: flex; flex-direction: column;
	border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; background: var(--bg);
	box-shadow: var(--shadow-sm);
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.sp-card:hover {
	border-color: rgba(64, 184, 72, .5);
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}
.sp-card:hover .sp-card__img { transform: scale(1.07); }

.sp-card__link { display: block; flex: 1; }
.sp-card__media { position: relative; display: block; background: var(--surface); overflow: hidden; }
.sp-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s var(--ease); }

.sp-badge {
	position: absolute; top: 8px; left: 8px;
	font-size: 10px; font-weight: 600; padding: 4px 9px;
	border-radius: 999px; color: #fff; letter-spacing: .02em;
	box-shadow: var(--shadow-sm);
}
.sp-badge--off { background: var(--danger); }
.sp-badge--out { background: #6b7280; }

/* Mirrors the sale badge on the opposite corner — a quick "you already have
   this" signal while scanning a grid, without having to read every button. */
/* Sits outside .sp-card__link now (a link can't validly nest inside another),
   so it's positioned against the card itself — same top-right spot the count
   badge used to occupy relative to the media block. */
.sp-badge--cart {
	left: auto; right: 8px; z-index: 2;
	display: inline-flex; align-items: center; gap: 4px;
	background: var(--green-dark); cursor: pointer;
	transition: background .18s var(--ease);
}
.sp-badge--cart:hover { background: var(--green); }
.sp-badge--cart svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 2.2; }

.sp-card__title {
	margin: 10px 12px 0; font-size: 13px; font-weight: 500; line-height: 1.35;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	min-height: 2.7em;
}

.sp-card__size { display: block; margin: 4px 12px 0; font-size: 11px; color: var(--muted); }

.sp-card__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 7px 12px 0; }
.sp-card__now { font-size: 15px; font-weight: 600; color: var(--ink); }
.sp-card__now .woocommerce-Price-amount { color: inherit; }
.sp-card__now del { display: none; }
.sp-card__now ins { text-decoration: none; }
.sp-card__was { font-size: 12px; color: var(--muted); text-decoration: line-through; }

/* Quantity picked here rides along in the Add button's data-quantity attribute
   (see main.js) — the stepper never submits anything on its own. */
.sp-qty {
	display: flex; align-items: center; justify-content: center; gap: 0;
	margin: 12px 12px 0; height: 32px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	overflow: hidden;
}
.sp-qty__btn {
	flex: 0 0 30%; height: 100%; border: 0; background: var(--surface);
	color: var(--ink-soft); font-size: 15px; font-weight: 600; line-height: 1;
	cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.sp-qty__btn:hover { background: var(--green-light); color: var(--green-dark); }
.sp-qty__btn:active { transform: scale(.94); }
.sp-qty__input {
	flex: 1; min-width: 0; height: 100%; border: 0; border-inline: 1px solid var(--line);
	text-align: center; font-family: inherit; font-size: 13px; font-weight: 600;
	color: var(--ink); background: var(--bg);
	/* Hide the native up/down spinners — the +/- buttons already do that job,
	   and the browser's own arrows look like a second, competing control. */
	-moz-appearance: textfield;
}
.sp-qty__input::-webkit-outer-spin-button,
.sp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-qty__input:focus { outline: none; background: var(--green-light); }

.sp-addbtn {
	position: relative; display: block; margin: 8px 12px 12px; padding: 10px 8px;
	border-radius: var(--radius-sm); background: var(--green); color: #fff;
	font-size: 12px; font-weight: 600; text-align: center;
	text-transform: uppercase; letter-spacing: .04em;
	transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.sp-addbtn:hover { background: var(--green-dark); box-shadow: 0 6px 16px rgba(64, 184, 72, .3); }
.sp-addbtn:active { transform: scale(.97); }
.sp-addbtn.loading { opacity: .6; }
.sp-addbtn.added { background: var(--green-dark); }
.sp-addbtn.added .sp-addbtn__label { visibility: hidden; }
.sp-addbtn.added::after { content: "✓ Added"; position: absolute; left: 0; right: 0; text-align: center; }
/* The persistent state — stays until the page reloads or the item leaves the
   cart, unlike .added above which was only ever a 1.4s pulse. */
.sp-addbtn.is-in-cart { background: var(--green-dark); }
.sp-addbtn.is-in-cart:hover { background: var(--green); }
.sp-addbtn--view { background: var(--surface); color: var(--ink); }
.sp-addbtn--disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }

/* ---------- horizontal product rows ---------- */

.sp-row { margin-bottom: 4px; }

.sp-flag {
	display: inline-block; margin-left: 10px; padding: 3px 10px;
	border-radius: 999px; background: var(--danger); color: #fff;
	font-size: 10px; font-weight: 600; text-transform: uppercase;
	letter-spacing: .06em; vertical-align: middle;
}

.sp-row__wrap { position: relative; max-width: var(--maxw); margin-inline: auto; }

.sp-row__track {
	--per-view: 2.35;
	display: flex; gap: var(--gap); list-style: none; margin: 0;
	padding: 6px var(--pad) 14px;
	overflow-x: auto; scroll-snap-type: x proximity;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.sp-row__track::-webkit-scrollbar { display: none; }
.sp-row__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* The fractional per-view is what leaves the next card peeking. */
.sp-row__track .sp-card {
	flex: 0 0 calc(100% / var(--per-view) - var(--gap));
	scroll-snap-align: start;
}

.sp-rownav {
	display: none; position: absolute; top: 40%; z-index: 2;
	width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%;
	background: var(--bg); color: var(--ink); cursor: pointer;
	align-items: center; justify-content: center;
	box-shadow: var(--shadow);
	transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.sp-rownav:hover { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.08); }
.sp-rownav--prev { left: 2px; }
.sp-rownav--next { right: 2px; }
.sp-rownav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px); }
.sp-rownav[hidden] { display: none !important; }

/* ---------- department tiles ---------- */

.sp-tiles { padding-bottom: 10px; }

.sp-tiles__grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px; list-style: none; margin: 0;
	padding: 4px var(--pad) 10px;
	max-width: var(--maxw); margin-inline: auto;
}

.sp-tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sp-tile a { display: block; position: relative; aspect-ratio: 16 / 10; }

.sp-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }

.sp-tile__veil {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(12, 16, 28, .82) 0%, rgba(12, 16, 28, .28) 45%, rgba(12, 16, 28, .04) 100%);
	transition: opacity .3s var(--ease);
}

.sp-tile__label {
	position: absolute; left: 14px; right: 14px; bottom: 12px;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	color: #fff;
}
.sp-tile__name { font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.sp-tile__count {
	flex: 0 0 auto; min-width: 24px; padding: 2px 8px;
	border-radius: 999px; background: rgba(255, 255, 255, .22);
	font-size: 11px; font-weight: 600; text-align: center;
}
.sp-tile__chev { width: 18px; height: 18px; transition: transform .25s var(--ease); }

.sp-tile:hover .sp-tile__img { transform: scale(1.07); }
.sp-tile:hover .sp-tile__chev { transform: translateX(4px); }
.sp-tile:hover { box-shadow: var(--shadow-lg); }

/* ---------- promises strip ---------- */

.sp-promises { padding: 22px var(--pad) 6px; }

.sp-promises__list {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
	list-style: none; margin: 0; padding: 0;
	max-width: var(--maxw); margin-inline: auto;
}

.sp-promise {
	display: flex; align-items: center; gap: 10px;
	padding: 13px; border-radius: var(--radius-sm);
	background: var(--green-light); font-size: 12px; line-height: 1.3;
	color: var(--green-dark); font-weight: 500;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sp-promise:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sp-promise svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ---------- shop / archive ---------- */

/* Archive banner — contained, tinted, so the title never floats loose at the
   far left of a wide screen. */
.sp-shophead {
	background: linear-gradient(135deg, var(--green-light) 0%, #f4fbf5 100%);
	border-bottom: 1px solid var(--line);
	margin-bottom: 18px;
}
.sp-shophead__inner {
	max-width: var(--maxw); margin-inline: auto;
	padding: 26px var(--pad);
}
.sp-shophead__title { margin: 0; font-size: 24px; font-weight: 600; color: var(--ink); }
.sp-shophead__sub { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; max-width: 60ch; }
.sp-shophead__count {
	display: inline-block; margin: 10px 0 0; padding: 3px 12px;
	border-radius: 999px; background: rgba(46, 138, 53, .12);
	color: var(--green-dark); font-size: 12px; font-weight: 600;
}

.sp-page__head { padding: 20px var(--pad) 8px; max-width: var(--maxw); margin-inline: auto; }
.woocommerce-products-header { display: none; }
.term-description { color: var(--muted); font-size: 14px; }
.woocommerce-result-count { display: none; }

.woocommerce-ordering { padding: 0 var(--pad) 12px; max-width: var(--maxw); margin-inline: auto; }
.woocommerce-ordering select {
	width: 100%; height: 44px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--bg); font-size: 14px; font-family: inherit;
}

.woocommerce-pagination { padding: 22px var(--pad); }
.woocommerce-pagination ul {
	display: flex; flex-wrap: wrap; gap: 7px; list-style: none;
	margin: 0; padding: 0; justify-content: center;
}
.woocommerce-pagination a, .woocommerce-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	transition: all .18s var(--ease);
}
.woocommerce-pagination a:hover { border-color: var(--green); color: var(--green-dark); }
.woocommerce-pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- single product ---------- */

/* 1240px rather than the full 1560 — a product page reads badly when the image
   and its details are flung to opposite ends of a wide monitor. */
.single-product div.product { max-width: 1240px; margin-inline: auto; padding: 0 var(--pad); }

.single-product .woocommerce-product-gallery {
	margin: 14px 0; width: 100% !important; float: none !important;
	border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; background: var(--surface);
}
.single-product .woocommerce-product-gallery img { border-radius: 0; }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.single-product .flex-control-thumbs {
	display: flex; gap: 8px; list-style: none; margin: 10px; padding: 0; flex-wrap: wrap;
}
.single-product .flex-control-thumbs li { width: 64px; }
.single-product .flex-control-thumbs img { border-radius: var(--radius-sm); cursor: pointer; }

/* Woo floats the summary at 48% by default, which collapses inside a grid. */
.single-product .entry-summary, .single-product .summary {
	width: 100% !important; float: none !important; margin: 0 !important;
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px; background: var(--bg); box-shadow: var(--shadow-sm);
}

/* The floating "Sale!" flash is taken out of flow so it can't claim a cell. */
.single-product div.product > .onsale {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	background: var(--danger); color: #fff;
	font-size: 11px; font-weight: 600; text-transform: uppercase;
	letter-spacing: .05em; padding: 5px 12px; border-radius: 999px;
}
.single-product div.product { position: relative; }

/* Spec list — what a grocery product has instead of a description. */
.sp-spec { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sp-spec li {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.sp-spec__label { color: var(--muted); }
.sp-spec__value { font-weight: 500; text-align: right; }

.sp-assure { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sp-assure li {
	display: flex; align-items: center; gap: 10px;
	font-size: 13px; color: var(--ink-soft);
}
.sp-assure svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--green-dark); }
.single-product .product_title { font-size: 22px; margin: 8px 0 6px; }

.single-product .price { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.single-product .price del { color: var(--muted); font-weight: 400; font-size: 16px; }
.single-product .price ins { text-decoration: none; }

.single-product form.cart { display: flex; gap: 10px; align-items: center; margin: 16px 0; flex-wrap: wrap; }

.quantity input.qty {
	width: 72px; height: 48px; text-align: center;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	font-size: 15px; font-family: inherit;
}

.single-product .single_add_to_cart_button, .woocommerce .button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px; border: 0;
	border-radius: var(--radius-sm); background: var(--green); color: #fff;
	font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
	transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.woocommerce .button:hover { background: var(--green-dark); box-shadow: 0 6px 18px rgba(64, 184, 72, .28); }
.single-product .single_add_to_cart_button { flex: 1; }

.woocommerce-tabs { margin-top: 22px; }
.woocommerce-tabs .tabs { display: flex; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; overflow-x: auto; }
.woocommerce-tabs .tabs li a {
	display: block; padding: 9px 16px; border: 1px solid var(--line);
	border-radius: 999px; font-size: 13px; white-space: nowrap;
	transition: all .18s var(--ease);
}
.woocommerce-tabs .tabs li.active a { background: var(--green); border-color: var(--green); color: #fff; }

/* Related products were inheriting Woo's own column widths and collapsing to
   slivers; force them onto the same grid as everywhere else. */
.related.products, .up-sells {
	margin-top: 34px; padding-top: 26px;
	border-top: 1px solid var(--line);
}
.related.products > h2, .up-sells > h2 {
	font-size: 20px; margin: 0 0 14px;
	padding: 0 var(--pad); max-width: var(--maxw); margin-inline: auto;
}
.related.products ul.products, .up-sells ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) {
	.related.products ul.products, .up-sells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.related.products ul.products, .up-sells ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
	.related.products ul.products, .up-sells ul.products { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* Woo adds inline widths and floats on li.product for its own column system. */
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* WooCommerce clears its old float layout with ::before/::after on the list.
   In a grid those pseudo-elements are real grid items and silently swallow the
   first two cells, which is what left a blank gap before the first product. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.sp-grid::before,
.sp-grid::after,
.sp-row__track::before,
.sp-row__track::after { display: none !important; content: none !important; }

/* ---------- cart / checkout / account ---------- */

.woocommerce-cart .sp-main, .woocommerce-checkout .sp-main, .woocommerce-account .sp-main {
	max-width: 1240px; margin-inline: auto; padding: 16px var(--pad) 40px;
}

.woocommerce-cart .sp-shop, .woocommerce-checkout .sp-shop { padding-top: 8px; }

/* Cart: items on the left, totals parked alongside on a wide screen instead of
   stranded underneath a half-empty table. */
@media (min-width: 900px) {
	.woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
		gap: 28px;
		align-items: start;
	}
	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; }
	.woocommerce-cart .cart-collaterals { grid-column: 2; margin-top: 0; position: sticky; top: 84px; }
	.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }
}

.woocommerce-cart table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg);
}
.woocommerce-cart table.shop_table th {
	background: var(--surface); font-size: 12px; text-transform: uppercase;
	letter-spacing: .04em; color: var(--ink-soft);
}
.woocommerce-cart td.product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.woocommerce-cart td.product-name a { font-weight: 500; }
.woocommerce-cart .product-remove a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--surface); color: var(--muted); font-size: 16px; text-decoration: none;
	transition: background .18s var(--ease), color .18s var(--ease);
}
.woocommerce-cart .product-remove a:hover { background: #fdecec; color: var(--danger); }

/* WooCommerce's own core stylesheet (still loaded, not one of ours) floats
   this at 48% width by default — harmless once the 900px grid below takes
   over and places it in its own column, but on a phone that default was
   never overridden, so it sat half-width with dead space beside it. */
.cart_totals {
	width: 100% !important; float: none !important;
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; background: var(--surface);
	box-sizing: border-box;
}
.cart_totals h2 { font-size: 17px; margin-bottom: 12px; }
.cart_totals table.shop_table { border: 0; background: none; }
.cart_totals .wc-proceed-to-checkout { padding: 14px 0 0; }
.cart_totals .checkout-button { width: 100%; }

.woocommerce-cart .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 14px; }
.woocommerce-cart .coupon { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.woocommerce-cart .coupon input { flex: 1; }

/* Checkout: form and order summary side by side. Woo emits the heading as a
   sibling of the review box, so both are placed explicitly. */
@media (min-width: 900px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(330px, 1fr);
		grid-template-areas:
			"details heading"
			"details review"
			"details spacer";
		grid-template-rows: auto auto 1fr;
		gap: 0 30px;
		align-items: start;
	}
	.woocommerce-checkout #customer_details { grid-area: details; }
	.woocommerce-checkout #order_review_heading { grid-area: heading; margin: 0 0 12px; }
	.woocommerce-checkout #order_review { grid-area: review; position: sticky; top: 84px; }
	.woocommerce-checkout .woocommerce-NoticeGroup { grid-column: 1 / -1; }
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }

.woocommerce-checkout h3 { font-size: 17px; margin-bottom: 12px; }

.sp-order-review, #order_review {
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; background: var(--surface);
}
#order_review table.shop_table { border: 0; background: none; font-size: 14px; }
#order_review .order-total .amount { font-size: 18px; color: var(--green-dark); }
#order_review .place-order { padding-top: 14px; }
#order_review #place_order { width: 100%; }

.woocommerce-checkout .woocommerce-checkout-payment { background: none; border-radius: 0; padding: 0; }
.woocommerce-checkout ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; }
.woocommerce-checkout ul.payment_methods li {
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 12px 14px; margin-bottom: 8px; background: var(--bg);
}

/* Location picker */
.sp-map {
	margin: 0 0 20px; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.sp-map__head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap; padding: 14px;
	background: var(--green-light);
}
.sp-map__title { display: block; font-size: 14px; color: var(--ink); }
.sp-map__hint { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.sp-map__canvas {
	height: 260px; width: 100%;
	background: var(--surface);
	z-index: 0; /* keeps Leaflet panes under the sticky header */
}
.sp-map .sp-locate__status { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
.sp-map .leaflet-container { font-family: inherit; }

@media (min-width: 600px) { .sp-map__canvas { height: 320px; } }

/* Location helper */
.sp-locate { margin: 0 0 16px; }
.sp-locate__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px; border: 1px dashed var(--green);
	border-radius: var(--radius-sm); background: var(--green-light);
	color: var(--green-dark); font-family: inherit; font-size: 14px; font-weight: 600;
	cursor: pointer; transition: background .18s var(--ease), transform .12s var(--ease);
}
.sp-locate__btn:hover { background: #ddf3e0; }
.sp-locate__btn:active { transform: scale(.98); }
.sp-locate__btn[disabled] { opacity: .6; cursor: default; }
.sp-locate__btn svg { width: 18px; height: 18px; }
.sp-locate__status { margin: 8px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.sp-locate__status.is-error { color: var(--danger); }
.sp-locate__status.is-done { color: var(--green-dark); }

.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
	padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left;
}

@media (max-width: 640px) {
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
	.woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; }
	.woocommerce table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--muted); }
}

.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-size: 13px; margin-bottom: 5px; color: var(--ink-soft); font-weight: 500; }

.woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="tel"],
.woocommerce input[type="password"], .woocommerce input[type="number"], .woocommerce textarea, .woocommerce select {
	width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	font-size: 16px; background: var(--bg); font-family: inherit;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.woocommerce input:focus, .woocommerce textarea:focus, .woocommerce select:focus {
	border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(64, 184, 72, .13);
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 var(--pad) 14px; padding: 14px 16px;
	border-radius: var(--radius-sm); font-size: 14px;
	background: var(--green-light); border-left: 4px solid var(--green);
	max-width: var(--maxw); margin-inline: auto;
}
.woocommerce-error { background: #fdecec; border-left-color: var(--danger); }

/* ---------- pages ---------- */

.sp-page { max-width: 820px; margin-inline: auto; padding: 20px var(--pad) 34px; }

/* ---------- contact page ---------- */

.sp-contact-page { display: grid; gap: 30px; }
.sp-contact-page__form .form-row { margin-bottom: 16px; }
.sp-contact-page__form textarea { resize: vertical; }
.sp-contact-page__submit { display: inline-block; width: auto; min-width: 180px; margin: 4px 0 0; }
.sp-contact-page__info .sp-contact li { margin-bottom: 22px; }
.sp-contact-page__info .sp-contact svg { color: var(--green-dark); }
.sp-contact-page__info .sp-contact span { color: var(--ink); }
.sp-contact-page__info .sp-contact em { color: var(--muted); font-style: normal; }

@media (min-width: 700px) {
	.sp-contact-page { grid-template-columns: 1.3fr 1fr; align-items: start; }
}

/* Cart, checkout and account are ordinary pages holding a shortcode, so they
   come through page.php and inherit the 820px reading measure. They are
   shopping interfaces, not prose — give them the full width back. */
.woocommerce-cart .sp-page,
.woocommerce-checkout .sp-page,
.woocommerce-account .sp-page { max-width: 1240px; padding-inline: 0; }
.woocommerce-cart .sp-page__head,
.woocommerce-checkout .sp-page__head,
.woocommerce-account .sp-page__head { padding-inline: 0; }
.sp-page__title { font-size: 24px; }
.sp-page__content > * + * { margin-top: 1em; }
.sp-page__thumb { border-radius: var(--radius); margin-bottom: 16px; }
.sp-empty { padding: 50px var(--pad); text-align: center; color: var(--muted); }

/* ---------- footer ---------- */

/* Tints of the footer green rather than greys, so nothing reads as muddy. */
.sp-footer {
	--foot-dim: #bfe3c4;
	--foot-line: rgba(255, 255, 255, .14);
	background: var(--night);
	color: #e4f4e6;
	margin-top: 34px;
}

.sp-footer__inner {
	display: grid; grid-template-columns: 1fr; gap: 30px;
	max-width: var(--maxw); margin-inline: auto;
	padding: 40px var(--pad) 30px;
}

.sp-footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.sp-footer__logo img { max-height: 34px; width: auto; }
.sp-footer__logo--text { color: var(--ink); font-weight: 600; font-size: 17px; }

.sp-footer__blurb { font-size: 13.5px; line-height: 1.75; color: var(--foot-dim); margin: 0 0 18px; max-width: 340px; }

.sp-footer__heading {
	position: relative; font-size: 15px; font-weight: 600; color: #fff;
	margin: 0 0 20px; padding-bottom: 10px;
}
.sp-footer__heading::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 42px; height: 3px; border-radius: 3px; background: #8fe39a;
}

.sp-footer__links { list-style: none; margin: 0; padding: 0; }
.sp-footer__links li { margin-bottom: 11px; }
.sp-footer__links a {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 13.5px; color: var(--foot-dim);
	transition: color .18s var(--ease), gap .18s var(--ease);
}
.sp-footer__links a::before { content: "›"; color: #8fe39a; font-size: 15px; }
.sp-footer__links a:hover { color: #fff; gap: 11px; }

.sp-contact { list-style: none; margin: 0; padding: 0; }
.sp-contact li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.sp-contact svg { width: 19px; height: 19px; color: #8fe39a; flex: 0 0 19px; margin-top: 2px; }
.sp-contact span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #fff; }
.sp-contact em { font-style: normal; font-size: 12.5px; color: var(--foot-dim); }
.sp-contact a { transition: color .18s var(--ease); }
.sp-contact a:hover { color: #ffffff; }

.sp-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sp-social a {
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--night-soft); color: #cfd5e4;
	transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.sp-social svg { width: 17px; height: 17px; }
.sp-social a:hover { background: var(--green); color: #fff; transform: translateY(-3px); }

.sp-footer__bar {
	border-top: 1px solid var(--foot-line);
	max-width: var(--maxw); margin-inline: auto;
	padding: 18px var(--pad);
	display: flex; flex-direction: column; gap: 10px;
	align-items: center; text-align: center;
}
.sp-footer__copy, .sp-footer__legal { margin: 0; font-size: 12.5px; color: var(--foot-dim); }
.sp-footer__legal a { transition: color .18s var(--ease); }
.sp-footer__legal a:hover { color: #fff; }
.sp-footer__legal span { margin: 0 8px; opacity: .5; }

/* ---------- inside the app ---------- */

.in-app .sp-footer { margin-top: 16px; }
.in-app .sp-footer__bar { padding: 14px var(--pad); background: var(--surface); }
.in-app .sp-main { padding-bottom: 4px; }
.in-app .sp-announce { font-size: 11px; padding: 6px 10px; }

/* The last thing on the page before the app's own native tab bar — full app
   green rather than the desktop site's darker footer, and tap targets sized
   like the rest of the app rather than small website-style text links, so it
   reads as one more screen of the app instead of a stray bit of website. */
.sp-footer__app { background: var(--green); }
.sp-footer__app-links {
	display: flex; flex-wrap: wrap; justify-content: center;
	list-style: none; margin: 0; padding: 6px var(--pad);
	max-width: var(--maxw); margin-inline: auto;
}
.sp-footer__app-links li { flex: 1 1 auto; }
.sp-footer__app-links a {
	display: block; padding: 16px 12px;
	color: #fff; font-size: 15px; font-weight: 600; text-align: center;
	border-bottom: 3px solid transparent;
	transition: background .18s var(--ease), border-color .18s var(--ease);
}
.sp-footer__app-links a:active,
.sp-footer__app-links a:hover {
	background: rgba(255, 255, 255, .12);
	border-bottom-color: #fff;
}

/* ---------- wider screens ---------- */

@media (min-width: 600px) {
	:root { --pad: 18px; --gap: 12px; }
	.sp-grid, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sp-row__track { --per-view: 3.4; }
	.sp-banner { flex-basis: 72%; }
	.sp-dept, .sp-dept__art { width: 96px; }
	.sp-dept__art { height: 96px; }
	.sp-card__title { font-size: 13.5px; }
	.sp-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sp-promises__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sp-footer__inner { grid-template-columns: repeat(2, 1fr); }
	.sp-footer__bar { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 760px) {
	/* Enough room for the inline search — the mobile toggle can retire. */
	.sp-hsearch { display: flex; }
	.sp-search-toggle { display: none; }
	.sp-cartbtn__text { display: inline; }
	.sp-searchbar { display: none !important; }
}

@media (min-width: 900px) {
	:root { --pad: 24px; --gap: 14px; }
	body { font-size: 15.5px; }

	.sp-topstrip { display: block; }
	.sp-nav { display: block; }
	.sp-menu-toggle { display: none; }
	.sp-header__bar { gap: 22px; }
	.sp-grid, ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.sp-row__track { --per-view: 5.4; }
	/* Arrows float over the end cards rather than reserving a blank gutter, so
	   the row starts flush with the grid above it. */
	.sp-rownav { display: flex; }
	.sp-banner { flex-basis: 58%; }
	/* Deliberately not overridden — the artwork is 3:1 at every width. */
	.sp-section__title { font-size: 22px; }
	.sp-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sp-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
	/* Named areas rather than auto-flow: WooCommerce prints a floating "Sale!"
	   badge as the first child, which was taking the top-left cell and pushing
	   the image and details into the wrong places. */
	.single-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
		grid-template-areas:
			"gallery summary"
			"tabs    tabs"
			"related related";
		gap: 34px;
		align-items: start;
	}
	.single-product .woocommerce-product-gallery { grid-area: gallery; }
	.single-product .entry-summary, .single-product .summary { grid-area: summary; }
	.single-product .woocommerce-tabs { grid-area: tabs; }
	.single-product .related.products, .single-product .up-sells { grid-area: related; }
}

@media (min-width: 1100px) {
}

@media (min-width: 1240px) {
	/* Seven across, with the eighth peeking so the row reads as scrollable. */
	.sp-grid, ul.products { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.sp-row__track { --per-view: 7.4; }
	.sp-banner { flex-basis: 46%; }
}

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