/* Sipwell - a warm direct-to-customer store for coffee, tea and brewing gear: white pages with cream bands, roast-brown ink and
   buttons, a caramel highlight for the big pill buttons, Sora headings (tight, bold) and Nunito Sans text, Hugeicons line icons.
   A roast announcement strip; a white bar with a cup mark, the menu, a caramel "Shop now" pill and the cart; a cream hero with
   a big rounded photo, a small photo over its corner and one real fact on a floating card; a strip of four promises; white cards
   with icon tiles; rounded category photos; a roast band of the store's real numbers; tall photo idea cards; three "plan" cards
   with the middle one raised; a dashed promise box with a round seal; a photo call-out band; a near-black footer. */
:root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --cream: #FBF3EA;
    --cream-2: #F5E6D5;
    --soft: #F8ECDF;
    --line: #ECDFD0;
    --ink: #21160F;
    --muted: #62554B;
    --primary: #5B2C14;
    --primary-deep: #3E1D0C;
    --secondary: #4A2414;
    --accent: #E08A2E;
    --accent-deep: #C9731B;
    --on-accent: #24160D;
    --footer: #13131A;
    --night-text: #C8C3BE;
    --radius: 20px;
    --radius-s: 12px;
    --shadow: 0 1px 2px rgba(33, 22, 15, .05), 0 14px 36px rgba(74, 36, 20, .09);
    --shadow-up: 0 2px 4px rgba(33, 22, 15, .06), 0 26px 50px rgba(74, 36, 20, .16);
    --head: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --gutter: clamp(16px, 3.2vw, 32px);
    --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.spw { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(15.5px, .2vw + 14.8px, 17px)/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.spw-ic { width: 1.15em; height: 1.15em; flex: none; }
.spw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spw-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.spw-skip:focus { top: 12px; }
.spw-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.spw-announce { background: var(--secondary); color: #F7EBDD; text-align: center; font: 600 .82rem/1.4 var(--body); padding: 9px var(--gutter); }
.spw-announce a { color: inherit; }

/* ---------- buttons, links, kickers ---------- */
.spw-btn, .spw-b1, .spw-b2, .spw-b3, .spw-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px;
    font: 700 .96rem/1 var(--head); letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.spw-b1, .spw-cta { background: var(--accent); color: var(--on-accent) !important; box-shadow: 0 10px 22px rgba(224, 138, 46, .3); }
.spw-b1:hover, .spw-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.spw-btn, .spw-b3 { background: var(--primary); color: #fff !important; }
.spw-btn:hover, .spw-b3:hover { background: var(--primary-deep); }
.spw-b2 { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.spw-b2:hover { border-color: var(--ink); }
.spw-btn-s { min-height: 38px; padding: 0 16px; font-size: .82rem; white-space: nowrap; }
.spw-btn-light, .spw-btn-amber { background: #fff; color: var(--ink) !important; }
.spw-btn-light:hover, .spw-btn-amber:hover { background: var(--cream-2); }
.spw-btn-ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.spw-btn-ghost:hover { border-color: var(--ink); }
.spw-link { display: inline-flex; align-items: center; gap: 6px; font: 700 .92rem/1.3 var(--head); color: var(--primary); text-decoration: none; }
.spw-link .spw-ic { width: 16px; height: 16px; transition: transform .2s; }
.spw-link:hover { color: var(--accent-deep); }
.spw-link:hover .spw-ic { transform: translateX(3px); }
.spw-kicker, .spw-kicker p { margin: 0 0 10px; font: 800 .74rem/1.3 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #8A4A1F; }
.spw-chip p { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
    font: 800 .74rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.spw-chip p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- header: a white bar - the cup mark and name, the menu, a caramel pill, the icons ---------- */
.spw-top { position: relative; z-index: 60; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.spw-top.is-sticky { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(8px); }
.spw-top.is-stuck { box-shadow: 0 8px 26px rgba(74, 36, 20, .08); }
.spw-top.is-dark { background: var(--secondary); border-bottom-color: transparent; }
.spw-top.is-dark :is(.spw-logo, .spw-nav a, .spw-act, .spw-burger) { color: #fff; }
.spw-top.is-dark .spw-logo small { color: #E7D6C4; }
.spw-bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.spw-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.spw-logo img { max-height: 46px; width: auto; max-width: min(220px, 44vw); object-fit: contain; }
.spw-logo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(150deg, #7A3E1C, var(--secondary)); color: #F9D9AE;
    box-shadow: 0 6px 14px rgba(74, 36, 20, .28); }
.spw-logo-mark .spw-ic { width: 24px; height: 24px; }
.spw-logo-text { display: flex; flex-direction: column; line-height: 1; }
.spw-logo-word { font: 800 1.38rem/1 var(--head); letter-spacing: -.04em; }
.spw-logo-text small { margin-top: 5px; font: 700 .62rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.spw-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.spw-nav a { padding: 9px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font: 600 .95rem/1 var(--body); white-space: nowrap; }
.spw-nav a:hover, .spw-nav a.on { background: var(--cream); color: var(--secondary); }
.spw-actions { display: flex; align-items: center; gap: 4px; }
.spw-cta { min-height: 46px; padding: 0 24px; margin-right: 8px; font-size: .92rem; }
.spw-act { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.spw-act .spw-ic { width: 22px; height: 22px; }
.spw-act:hover { background: var(--cream); }
.spw-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 800 .66rem/18px var(--head); text-align: center; }
.spw-search { display: flex; align-items: center; gap: 10px; padding-block: 0 16px; position: relative; }
.spw-search[hidden] { display: none !important; }
.spw-search-ic { position: absolute; left: calc(var(--gutter) + 18px); color: var(--muted); display: grid; }
.spw-search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px 0 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font: inherit; color: var(--ink); }
.spw-search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(224, 138, 46, .18); }
.spw-search button { min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: 700 .9rem/1 var(--head); cursor: pointer; }
.spw-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; place-items: center; }
.spw-burger .spw-ic { width: 22px; height: 22px; }
.spw-burger .spw-i-close, .spw-top.is-open .spw-burger .spw-i-open { display: none; }
.spw-top.is-open .spw-burger .spw-i-close { display: block; }

/* ---------- main, sections ---------- */
.spw-main { min-height: 50vh; }
.spw-flash { max-width: var(--wrap); margin: 14px auto 0; padding-inline: var(--gutter); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spw-flash .ec-alert { margin: 0; flex: 1 1 260px; }
.spw-flash > a { font-weight: 700; color: var(--primary); }
.spw-content { width: 100%; }
.spw-home .pb-section, .spw-page .pb-section { max-width: var(--wrap); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.spw-bsec > .pb-column { min-width: 0; position: relative; }
.spw-page { padding-bottom: 32px; }
.spw-page > :not(.pb-root):not(.ec-shop):not(.ec-cart):not(.ec-checkout) { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.spw-title { margin-bottom: 14px; text-align: center; }
.spw-bsec .spw-kicker { text-align: center; }
.spw-sec-lede p, .spw-bsec > .pb-column > .spw-sec-lede p { max-width: 62ch; margin: 0 auto 34px; text-align: center; color: var(--muted); }
.spw-bsec .spw-title + .spw-part { margin-top: 34px; }
.spw-more { margin: 0; text-align: center; }
.spw-bsec .spw-title + .spw-part .spw-more:first-child { margin: -18px 0 30px; }
.spw-more-c { margin: 30px 0 0; }
.spw-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 34px; text-align: center; }
.spw-head h2 { margin: 0; }
.spw-head .spw-more { margin-top: 10px; }
.spw-sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.spw-bsec .spw-sec { padding: 0; max-width: none; }
.spw-lede, .spw-lede p { font-size: clamp(1.02rem, .4vw + .95rem, 1.16rem); color: var(--muted); max-width: 58ch; margin: 0; }
.spw-intro { max-width: none !important; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important; }
/* full-width bands: the background runs edge to edge, the content keeps the page width */
.spw-home :is(.spw-hero, .spw-s-trust, .spw-s-guides, .spw-s-stats, .spw-s-featured, .spw-s-blog, .spw-end) { max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.spw-home :is(.spw-s-guides, .spw-s-featured, .spw-s-blog) { background: var(--cream); }

/* ---------- hero: cream, the words on the left, a big rounded photo with a smaller one over its corner ---------- */
.spw-home .spw-hero { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important; gap: clamp(30px, 5vw, 70px); align-items: center;
    padding-block: clamp(48px, 7vw, 96px) !important; background: linear-gradient(180deg, var(--cream) 0%, #F7E9DA 100%); }
.spw-hero > .pb-column { grid-column: auto !important; }
.spw-hero-text h1 { margin-bottom: 20px; }
.spw-hero-text .spw-lede p { margin-bottom: 30px; }
.spw-hero-text .pb-button { display: inline-flex; margin: 0 10px 12px 0; }
.spw-hero-text .spw-b2 { background: #fff; }
.spw-ticks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.spw-ticks li { display: flex; align-items: center; gap: 9px; font: 600 .92rem/1.3 var(--body); color: var(--muted); }
.spw-ticks .spw-ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--secondary); color: #fff; }
.spw-hero-art { position: relative; padding: 0 0 46px 54px; }
.spw-hero-photo { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-up); aspect-ratio: 10 / 11; background: var(--cream-2); }
.spw-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.spw-hero-card { position: absolute; left: 0; bottom: 0; width: 40%; padding: 10px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-up); }
.spw-hero-card img { width: 100%; aspect-ratio: 13 / 15; object-fit: cover; border-radius: 14px; }
.spw-hero-badge { position: absolute; right: -14px; top: 30px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-up); }
.spw-hero-badge b { display: block; font: 800 .98rem/1.2 var(--head); letter-spacing: -.01em; }
.spw-hero-badge span span, .spw-hero-badge > span:last-child { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.spw-badge-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--cream); color: var(--secondary); }
.spw-badge-ic .spw-ic { width: 21px; height: 21px; }

/* ---------- a strip of four promises ---------- */
.spw-home .spw-s-trust { padding-block: 26px !important; border-bottom: 1px solid var(--line); }
.spw-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.spw-trust li { display: flex; align-items: center; gap: 13px; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.spw-trust b { display: block; font: 700 .94rem/1.25 var(--head); color: var(--ink); }
.spw-tile-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--cream); color: var(--secondary); }
.spw-tile-ic .spw-ic { width: 23px; height: 23px; }

/* ---------- why order here: six white cards ---------- */
.spw-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.spw-perks li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.spw-perks li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.spw-perks .spw-tile-ic { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; }
.spw-perks h3 { margin: 0 0 8px; font-size: 1.12rem; }
.spw-perks p { margin: 0; color: var(--muted); }

/* ---------- shop by category: rounded photos with the name on a white bar ---------- */
.spw-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spw-cat { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--cream); color: var(--ink); text-decoration: none; transition: box-shadow .25s, transform .25s; }
.spw-cat:hover { box-shadow: var(--shadow-up); transform: translateY(-3px); }
.spw-cat-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.spw-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.spw-cat:hover .spw-cat-img img { transform: scale(1.05); }
.spw-cat-text { display: flex; flex-direction: column; gap: 3px; padding: 16px 64px 18px 18px; }
.spw-cat-text b { font: 700 1.04rem/1.25 var(--head); }
.spw-cat-text small { font-size: .82rem; color: var(--muted); }
.spw-cat-go { position: absolute; right: 16px; bottom: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.spw-cat-go .spw-ic { width: 18px; height: 18px; }

/* ---------- learn more: four white cards on cream ---------- */
.spw-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spw-guides li { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spw-guides h3 { margin: 0 0 8px; font-size: 1.12rem; }
.spw-guides p { margin: 0 0 18px; color: var(--muted); }
.spw-guides .spw-link { margin-top: auto; }

/* ---------- the store's numbers: a warm roast band ---------- */
.spw-home .spw-s-stats { padding-block: clamp(38px, 5vw, 56px) !important; background: linear-gradient(110deg, #5B2C14 0%, #7A3C18 55%, #4A2414 100%); color: #fff; }
.spw-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; text-align: center; }
.spw-stats b { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--head); letter-spacing: -.04em; color: #fff; }
.spw-stats span { display: block; margin-top: 8px; font-size: .92rem; color: #F2DFCB; }

/* ---------- every day: tall photo cards with a dark fade ---------- */
.spw-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.spw-uses a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); aspect-ratio: 35 / 41; }
.spw-uses img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.spw-uses a:hover img { transform: scale(1.05); }
.spw-uses a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 4, 0) 38%, rgba(20, 10, 4, .86) 100%); }
.spw-uses span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; font-size: .94rem; line-height: 1.45; color: #F4E9DF; }
.spw-uses b { display: block; margin-bottom: 6px; font: 800 1.22rem/1.2 var(--head); letter-spacing: -.02em; color: #fff; }

/* ---------- our picks: three plan cards, the middle one raised ---------- */
.spw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.spw-plan { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.spw-plan.is-pick { border: 2px solid var(--secondary); box-shadow: var(--shadow-up); transform: translateY(-10px); }
.spw-plan-flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 7px 16px; border-radius: 999px; background: var(--secondary); color: #fff; font: 800 .72rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.spw-plan-img { display: block; width: 74%; aspect-ratio: 1 / 1; margin-bottom: 18px; border-radius: 50%; overflow: hidden; background: var(--cream); }
.spw-plan-img img { width: 100%; height: 100%; object-fit: cover; }
.spw-plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.spw-plan h3 a { color: var(--ink); text-decoration: none; }
.spw-plan h3 a:hover { color: var(--primary); }
.spw-plan-cat { margin: 0 0 14px; font-size: .86rem; color: var(--muted); }
.spw-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 8px; }
.spw-plan-price b { font: 800 2.1rem/1 var(--head); letter-spacing: -.04em; color: var(--ink); }
.spw-plan-price s { color: var(--muted); }
.spw-save { margin: 0 0 12px; padding: 5px 13px; border-radius: 999px; background: var(--cream-2); color: var(--secondary); font: 700 .8rem/1.3 var(--head); }
.spw-plan-text { margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.spw-plan-buy { width: 100%; margin-top: auto; }
.spw-plan-buy form { margin: 0; }
.spw-plan-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
    font: 800 1rem/1 var(--head); cursor: pointer; box-shadow: 0 10px 22px rgba(224, 138, 46, .28); transition: background-color .2s; }
.spw-plan-add:hover { background: var(--accent-deep); }
.spw-plan-add .spw-ic { width: 19px; height: 19px; }

/* ---------- the promise: a dashed box with a round roast seal ---------- */
.spw-promise { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: center; max-width: 860px; margin: 0 auto; padding: clamp(26px, 4vw, 44px);
    border: 2px dashed #9A5A31; border-radius: 28px; background: linear-gradient(120deg, #fff 0%, var(--cream) 100%); }
.spw-seal { display: grid; place-items: center; align-content: center; width: 150px; height: 150px; margin: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7A3C18, var(--secondary) 70%);
    color: #fff; text-align: center; box-shadow: 0 0 0 6px #fff, 0 0 0 8px #9A5A31, var(--shadow-up); }
.spw-seal b { font: 800 2.1rem/1 var(--head); letter-spacing: -.04em; }
.spw-seal span { margin-top: 4px; font: 800 .72rem/1.1 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.spw-promise-title { margin: 0 0 12px; font: 800 clamp(1.5rem, 2.8vw, 2.2rem)/1.12 var(--head); letter-spacing: -.03em; }
.spw-promise p:not(.spw-promise-title):not(.spw-seal) { color: var(--muted); }

/* ---------- product cards ---------- */
.spw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.spw-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.spw-card:hover { box-shadow: var(--shadow-up); transform: translateY(-3px); }
.spw-card-img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; margin: 10px 10px 0; border-radius: 14px; background: var(--cream); overflow: hidden; }
.spw-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.spw-card:hover .spw-card-img img { transform: scale(1.04); }
.spw-noimg { display: grid; place-items: center; color: var(--muted); }
.spw-noimg .spw-ic { width: 40px; height: 40px; }
.spw-flag { position: absolute; left: 10px; top: 10px; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 800 .72rem/1 var(--head); }
.spw-flag-new { background: var(--secondary); color: #fff; }
.spw-card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 16px 16px; }
.spw-card-cat { margin: 0; font: 800 .68rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #8A4A1F; }
.spw-card-title { margin: 0; font: 700 1rem/1.3 var(--head); letter-spacing: -.01em; }
.spw-card-title a { color: var(--ink); text-decoration: none; }
.spw-card-text { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.spw-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.spw-price { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font: 800 1.08rem/1.1 var(--head); color: var(--ink); }
.spw-price s { font: 600 .82rem/1 var(--body); color: var(--muted); }
.spw-add-form { margin: 0; }
.spw-add { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; transition: background-color .2s, transform .2s; }
.spw-add:hover { background: var(--accent-deep); transform: scale(1.06); }
.spw-add .spw-ic { width: 20px; height: 20px; }
.spw-sold { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--cream); padding: 6px 11px; border-radius: 999px; }

/* ---------- guides and articles ---------- */
.spw-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.spw-posts li { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; overflow: hidden; border: 1px solid var(--line); }
.spw-post-img { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--cream-2); overflow: hidden; }
.spw-post-img img { width: 100%; height: 100%; object-fit: cover; }
.spw-posts li > div { padding: 20px 22px 24px; }
.spw-post-meta { margin: 0 0 6px; font-size: .8rem; color: var(--muted); }
.spw-posts h3 { margin: 0 0 8px; font-size: 1.1rem; }
.spw-posts h3 a { color: var(--ink); text-decoration: none; }
.spw-posts h3 a:hover { color: var(--primary); }
.spw-posts p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- reviews ---------- */
.spw-reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.spw-review { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--cream); }
.spw-review-stars { display: flex; gap: 2px; margin: 0; color: var(--accent); }
.spw-review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.spw-review-by { margin: auto 0 0; font-size: .84rem; }
.spw-review-by b { display: block; font-family: var(--head); }
.spw-review-by a { color: var(--muted); }
.spw-home-intro { border-top: 1px solid var(--line); }
.spw-home-intro h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

/* ---------- homepage About: photo beside the words; the closing call-out: a photo band ---------- */
.spw-about-home { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: clamp(28px, 5vw, 72px); align-items: center; }
.spw-about-home > .pb-column { grid-column: auto !important; }
.spw-about-img img, .spw-about-photo img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.spw-about-text .spw-kicker { text-align: left; }
.spw-about-text .spw-title { text-align: left; }
.spw-about .spw-title { text-align: left; }
.spw-about-text p { color: var(--muted); }
.spw-about-text .pb-button { display: inline-flex; margin: 6px 10px 0 0; }
.spw-home .spw-end, .spw-page .spw-end { padding-block: 0 !important; }
.spw-home .spw-end { padding-inline: 0 !important; }
.spw-callout { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: clamp(60px, 9vw, 120px) var(--gutter); color: #fff;
    background: linear-gradient(rgba(36, 18, 8, .72), rgba(36, 18, 8, .72)), url(../images/demo/cta.jpg) center / cover no-repeat; }
.spw-page .spw-callout { border-radius: 28px; }
.spw-callout > .spw-title { margin: 0; color: #fff; max-width: 22ch; }
.spw-callout > .spw-call-text p { margin: 0; color: #F2E4D6; }
.spw-callout .spw-b1 { background: #fff; color: var(--ink) !important; box-shadow: none; }
.spw-callout .spw-b1:hover { background: var(--cream-2); }

/* ---------- homepage "About our online store" block, inner pages ---------- */
.spw-home-intro { border-top: 1px solid var(--line); }
.spw-home-intro h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.spw-home-intro p { color: var(--muted); max-width: 80ch; }
.spw-intro { padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 70px) !important; background: var(--cream); }
.spw-intro h1 { max-width: 20ch; margin-bottom: 14px; }
.spw-intro h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; background: var(--primary); border-radius: 2px; }
.spw-intro .spw-lede, .spw-intro .spw-lede p { color: var(--ink); }
.spw-about { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: clamp(24px, 4vw, 56px); }
.spw-about > .pb-column { grid-column: auto !important; min-width: 0; }
.spw-about h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.spw-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 26px; align-items: start; }
.spw-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spw-ways a, .spw-ways div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.spw-ways a:hover { border-color: var(--primary); }
.spw-ways .spw-ic { width: 42px; height: 42px; padding: 10px; border-radius: var(--radius-s); background: rgba(91, 44, 20, .1); color: var(--primary); }
.spw-ways b { display: block; font-family: var(--head); }
.spw-ways span { color: var(--muted); }
.spw-ways span b { color: var(--ink); }
.spw-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.spw-form-alt h3 { margin: 0 0 8px; }
.spw-form-alt p { color: var(--muted); margin: 0 0 18px; }
.spw-page h1:first-child { margin-top: 28px; }

.spw-legal-body { max-width: 820px; }
.spw-legal-body .spw-title { margin: 34px 0 10px; padding-right: 0; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.spw-legal-body .spw-title:first-child { margin-top: 0; }
.spw-legal-body p { color: var(--muted); }
.spw-legal-note p { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }
/* ---------- category pages, store-page help ---------- */
.spw-catpage { padding-block: clamp(20px, 3vw, 36px) 8px; }
.spw-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.spw-crumbs a { color: var(--primary-deep); text-decoration: none; }
.spw-crumbs a:hover { text-decoration: underline; }
.spw-cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 30px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.spw-cat-head h1 { margin: 0 0 10px; }
.spw-cat-head h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; background: var(--primary); border-radius: 2px; }
.spw-cat-head .spw-lede { margin: 0; }
.spw-cat-note { margin: 24px 0 0; max-width: 80ch; color: var(--muted); }
.spw-cat-more { margin-top: clamp(32px, 5vw, 56px); }
.spw-cat-more h2 { font-size: 1.4rem; }
.spw-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spw-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-s); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.spw-chips a:hover { border-color: var(--primary); color: var(--primary-deep); }
.spw-chips small { color: var(--muted); font-weight: 500; }
.spw-catpage + .spw-sec { padding-top: clamp(28px, 4vw, 40px); }
.spw-lead { font-size: clamp(1.02rem, .4vw + .95rem, 1.15rem); color: var(--muted); max-width: 70ch; margin: -4px 0 20px; }
.spw-help { margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(22px, 4vw, 40px); background: var(--soft); border-radius: var(--radius); }
.spw-help h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 0; }
.spw-help p { color: var(--muted); max-width: 75ch; }
.spw-help a { color: var(--primary-deep); font-weight: 600; }
.spw-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-bottom: 8px; }
.spw-help-grid h3 { color: var(--primary-deep); }
.spw-status { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.spw-status li { margin-bottom: 6px; }
.spw-status b { color: var(--ink); }

/* ---------- the E-commerce Store plugin's pages in this theme's look ---------- */
.spw .ec-shop, .spw .ec-cart, .spw .ec-checkout, .spw .ec-track { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* low specificity on purpose (:where), so a page design (Sipwell Store Studio colours) can win */
.spw .ec-btn:where(:not(.ec-btn-ghost)), .spw :where(.ec-shop) button[type="submit"]:where(:not(.ec-btn-ghost, .ec-link, .ec-x)) { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: var(--radius-s); font-family: var(--head); font-weight: 700; }
.spw .ec-btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.spw .ec-btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-s); }
.spw .ec-btn-ghost:hover { background: var(--ink); color: #fff; }
.spw .ec-card { border-radius: var(--radius); border-color: var(--line); background: #fff; }
.spw .ec-card-img { background: var(--soft); }
.spw .ec-price { color: var(--ink); }
.spw .ec-tag-sale { background: var(--primary); color: #fff; }
.spw .ec-page-title, .spw .ec-product h1, .spw .ec-product h2 { font-family: var(--head); }
.spw .ec-link, .spw .ec-crumb { color: var(--primary-deep); }
.spw .ec-shop input, .spw .ec-shop select, .spw .ec-cart input, .spw .ec-checkout input, .spw .ec-checkout select, .spw .ec-checkout textarea { border-radius: var(--radius-s); border-color: var(--line); font-family: var(--body); }
.spw .ec-box { border-radius: var(--radius); border-color: var(--line); background: #fff; }
/* the thank-you page and Sipwell Store Studio's notes */
.spw .ec-done-icon { background: var(--primary); color: #fff; }
.spw .ec-done h2 { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 6px 0 10px; }
.spw .ec-ui-next { background: var(--soft); border-left: 4px solid var(--primary); }
.spw .ec-ui-next h3 { font-family: var(--head); font-size: 1.15rem; }
.spw .ec-ui-note { color: var(--muted); }
.spw .ec-done .ec-btn + .ec-link, .spw .ec-done .ec-btn { margin: 4px 8px; }

/* ---------- the shop page's product list (the plugin's .ec-card) in this theme's card look ---------- */
.spw .ec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spw .ec-chip { border-radius: var(--radius-s); border-color: var(--line); padding: 8px 14px; font-weight: 600; color: var(--ink); background: #fff; }
.spw .ec-chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.spw .ec-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.spw .ec-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s; }
.spw .ec-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.spw .ec-card-img { aspect-ratio: 4 / 3; background: var(--soft); }
.spw .ec-card-img::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.spw .ec-card:hover .ec-card-img::after { transform: scaleX(1); }
.spw .ec-tags { top: 12px; left: 12px; }
.spw .ec-tag { border-radius: var(--radius-s); background: var(--secondary); font: 700 .76rem/1 var(--head); padding: 6px 9px; letter-spacing: .04em; }
.spw .ec-tag-sale { background: var(--primary); }
.spw .ec-card-body { padding: 18px 18px 16px; gap: 8px; }
.spw .ec-card-title { font: 700 1.1rem/1.3 var(--head); }
.spw .ec-card-title a { color: var(--ink); }
.spw .ec-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card opens the product */
.spw .ec-card-title a:hover { color: var(--primary-deep); }
.spw .ec-card-text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.spw .ec-card-foot { padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.spw .ec-card .ec-price { font: 800 1.15rem/1.1 var(--head); color: var(--ink); }
.spw .ec-card .ec-price s { display: block; margin-top: 3px; font: 500 .82rem/1 var(--body); color: var(--muted); }
.spw .ec-card-buy { position: relative; z-index: 2; }
.spw .ec-card .ec-btn-small { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 2px solid var(--primary) !important; border-radius: var(--radius-s); background: transparent !important; color: var(--primary-deep) !important; font: 700 .9rem/1 var(--head); white-space: nowrap; }
.spw .ec-card .ec-btn-small::before { content: "+"; font-size: 1.1rem; line-height: .8; }
.spw .ec-card .ec-btn-small:hover { background: var(--primary) !important; color: #fff !important; }

@media (max-width: 1180px) { .spw .ec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .spw .ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .spw .ec-card-body { padding: 12px; }
    .spw .ec-card-text { display: none; }
    .spw .ec-card-foot { flex-wrap: wrap; }
    .spw .ec-card .ec-btn-small { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    html:has(#aiwb-adminbar) .spw-top, html:has(#aiwb-adminbar) .spw-front .spw-top { top: 46px; }
}

/* ---------- the shop page (owner 2026-11-12): a photo banner, a category sidebar, a toolbar, the grid, numbered help cards ----------
   CSS only, on the plugin's own markup (.ec-shop with .ec-cats = the product list; the product page has no .ec-cats). */
.spw .page-plugin-block:has(.ec-shop > .ec-cats) { padding-top: 24px !important; }
.spw .ec-shop:has(> .ec-cats) { display: grid; grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "title title" "lead lead" "side tools" "side grid" "side pages"; column-gap: 28px; align-items: start; }
.spw .ec-shop:has(> .ec-cats)::before { content: ""; grid-row: 1 / 3; grid-column: 1 / -1; align-self: stretch; z-index: 0; border-radius: 14px;
    background: var(--cream); }
.spw .ec-shop:has(> .ec-cats) > .ec-page-title { grid-area: title; position: relative; z-index: 1; margin: 0; padding: clamp(34px, 5vw, 60px) clamp(22px, 4vw, 48px) 10px; color: var(--ink); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.spw .ec-shop:has(> .ec-cats) > .ec-page-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--accent); }
.spw .ec-shop:has(> .ec-cats) > .spw-lead { grid-area: lead; position: relative; z-index: 1; margin: 0; padding: 0 clamp(22px, 4vw, 48px) clamp(30px, 4vw, 48px); max-width: 70ch; color: var(--ink); }
/* categories: a sticky card on the left */
.spw .ec-shop > .ec-cats { grid-area: side; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; margin: 30px 0 0; padding: 18px; border-radius: 12px; background: #fff;
    box-shadow: 0 1px 2px rgba(33, 22, 15, .06), 0 10px 26px rgba(33, 22, 15, .07); }
.spw .ec-shop > .ec-cats::before { content: "Categories"; margin: 0 0 10px; padding: 0 10px 12px; border-bottom: 1px solid var(--line); font: 800 .82rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.spw .ec-shop > .ec-cats .ec-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 .98rem/1.3 var(--body); box-shadow: inset 3px 0 0 transparent; }
.spw .ec-shop > .ec-cats .ec-chip span { min-width: 28px; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .8rem; text-align: center; }
.spw .ec-shop > .ec-cats .ec-chip:hover { background: var(--soft); color: var(--primary-deep); }
.spw .ec-shop > .ec-cats .ec-chip.is-active { background: rgba(91, 44, 20, .1); color: var(--primary-deep) !important; box-shadow: inset 3px 0 0 var(--primary); }
.spw .ec-shop > .ec-cats .ec-chip.is-active span { background: var(--primary); color: #fff; opacity: 1; }
/* toolbar: one bar with the search, the sort and the button */
.spw .ec-shop:has(> .ec-cats) > .ec-toolbar { grid-area: tools; display: flex; gap: 10px; margin: 30px 0 22px; padding: 10px; border-radius: 12px; background: #fff;
    box-shadow: 0 1px 2px rgba(33, 22, 15, .06), 0 10px 26px rgba(33, 22, 15, .07); }
.spw .ec-shop:has(> .ec-cats) > .ec-toolbar input[type="search"] { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='%2362554B'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10'/%3E%3C/svg%3E") 14px center no-repeat; }
.spw .ec-shop:has(> .ec-cats) > .ec-toolbar select { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff; font-weight: 600; }
.spw .ec-shop:has(> .ec-cats) > .ec-toolbar .ec-btn { min-height: 46px; padding: 0 22px; border-radius: 8px; }
.spw .ec-shop:has(> .ec-cats) > .ec-grid { grid-area: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.spw .ec-shop:has(> .ec-cats) > .ec-pages { grid-area: pages; display: flex; justify-content: center; gap: 8px; margin: 34px 0 0; }
.spw .ec-pages a, .spw .ec-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 .95rem/1 var(--head); text-decoration: none; }
.spw .ec-pages a:hover { border-color: var(--primary); color: var(--primary-deep); }
.spw .ec-pages .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
/* "How to shop here" under the list: three numbered cards */
.spw-page .spw-help { margin-top: clamp(40px, 6vw, 70px); padding: clamp(26px, 4vw, 44px); border-radius: 14px; background: var(--soft); }
.spw-page .spw-help > h2 { text-align: center; margin-bottom: 26px; }
.spw-page .spw-help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.spw-page .spw-help-grid > div { position: relative; padding: 26px 22px 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(33, 22, 15, .06), 0 10px 26px rgba(33, 22, 15, .06); }
.spw-page .spw-help-grid h3 { margin-bottom: 8px; color: var(--ink); }
.spw-page .spw-help-grid > div::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 4px; border-radius: 0 0 3px 3px; background: var(--primary); }
.spw-page .spw-help > p:last-child { text-align: center; margin: 0; }
@media (max-width: 1080px) {
    .spw .ec-shop:has(> .ec-cats) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead" "side" "tools" "grid" "pages"; }
    .spw .ec-shop > .ec-cats { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px; margin: 20px 0 0; scrollbar-width: thin; }
    .spw .ec-shop > .ec-cats::before { display: none; }
    .spw .ec-shop > .ec-cats .ec-chip { flex: none; white-space: nowrap; }
    .spw .ec-shop:has(> .ec-cats) > .ec-toolbar { margin-top: 12px; }
    .spw-page .spw-help-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .spw .ec-shop:has(> .ec-cats) > .ec-toolbar { flex-wrap: wrap; }
    .spw .ec-shop:has(> .ec-cats) > .ec-toolbar input[type="search"] { flex: 1 1 100%; }
    .spw .ec-shop:has(> .ec-cats) > .ec-toolbar select { flex: 1; }
    .spw .ec-shop:has(> .ec-cats) > .ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Cart, Checkout, Track order, My account (owner 2026-11-12) - CSS only, on the plugin's own markup ---------- */
.spw .page-plugin-block:has(:is(.ec-cart, .ec-checkout, .ec-account, .ec-track)) { padding-top: 24px !important; }
/* the page title as a green photo banner */
.spw :is(.ec-cart, .ec-checkout, .ec-account, .ec-track) > .ec-page-title { position: relative; margin: 0 0 26px; padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 44px); border-radius: var(--radius);
    font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); background: var(--cream); }
.spw :is(.ec-cart, .ec-checkout, .ec-account, .ec-track) > .ec-page-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--accent); }
/* order steps: pills on a line */
.spw .ec-ui-steps { justify-content: flex-start; gap: 10px; margin: 0 0 22px; padding: 0; }
.spw .ec-ui-steps li { gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font: 700 .95rem/1 var(--head); }
.spw .ec-ui-steps li::after, .spw .ec-ui-steps li::before { display: none !important; }
.spw .ec-ui-steps li span { width: 28px; height: 28px; border: 0; background: var(--soft); color: var(--muted); }
.spw .ec-ui-steps li.is-now { border-color: var(--primary); color: var(--primary-deep); box-shadow: 0 6px 16px rgba(91, 44, 20, .15); }
.spw .ec-ui-steps li.is-now span, .spw .ec-ui-steps li.is-done span { background: var(--primary) !important; color: #fff !important; }
/* empty cart */
.spw .ec-cart .ec-empty { display: grid; justify-items: center; gap: 6px; padding: clamp(40px, 6vw, 70px) 20px; border: 0; border-radius: 14px; background: var(--soft); }
.spw .ec-cart .ec-empty::before { content: ""; width: 88px; height: 88px; margin-bottom: 10px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235B2C14'%3E%3Cpath d='M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / 40px no-repeat;
    box-shadow: 0 10px 26px rgba(33, 22, 15, .1), inset 0 0 0 2px var(--accent); }
.spw .ec-cart .ec-empty p { max-width: 42ch; margin: 0 0 14px; font: 600 1.15rem/1.5 var(--head); color: var(--ink); }
.spw .ec-cart .ec-empty .ec-btn { padding: 14px 28px; border-radius: 8px; }
/* cart lines: one card each */
.spw .ec-lines { display: grid; gap: 12px; border: 0; }
.spw .ec-line { padding: 14px; border: 0 !important; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(33, 22, 15, .06), 0 10px 26px rgba(33, 22, 15, .07); }
.spw .ec-line-img { border-radius: 10px; overflow: hidden; }
.spw .ec-line-name a { color: var(--ink); font: 700 1.05rem/1.3 var(--head); text-decoration: none; }
.spw .ec-line-name a:hover { color: var(--primary-deep); }
.spw .ec-qty input { width: 76px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); text-align: center; font-weight: 700; }
.spw .ec-line-total { font: 800 1.1rem/1 var(--head); color: var(--ink); }
.spw .ec-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.spw .ec-x:hover { border-color: #C0392B; background: #FCEBEA; color: #8A1F18; }
.spw .ec-cart-form > .ec-btn-ghost { margin-top: 14px; border-radius: 8px; }
/* the order summary */
.spw :is(.ec-cart-side, .ec-checkout-side) > .ec-box { padding: 22px; border: 0; border-top: 4px solid var(--primary); border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgba(33, 22, 15, .06), 0 18px 40px rgba(33, 22, 15, .1); }
.spw :is(.ec-cart-side, .ec-checkout-side) > .ec-box h2 { font-size: 1.3rem; }
.spw .ec-coupon input { min-height: 44px; border-radius: 8px; }
.spw .ec-totals td { padding-block: 9px; border-color: var(--line); }
.spw .ec-totals .ec-total td { font: 800 1.3rem/1.2 var(--head); color: var(--ink); }
.spw .ec-cart-side .ec-btn-block, .spw .ec-checkout .ec-btn-block { min-height: 52px; border-radius: 8px; font: 700 1.05rem/1 var(--head); }
.spw .ec-ui-ship { padding: 14px; border-radius: 10px; background: var(--soft); }
.spw .ec-ui-bar span { background: var(--primary) !important; }
.spw .ec-ui-trust { padding: 16px; border-radius: 12px; background: var(--secondary); color: #F5E6D5; }
.spw .ec-ui-trust li { padding-left: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E08A2E'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0'/%3E%3C/svg%3E") 0 .25em / 16px no-repeat; }
.spw .ec-ui-trust li svg { display: none; }
.spw .ec-ui-suggest h2 { margin-top: 10px; }
.spw .ec-ui-suggest .ec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* checkout and track: the form boxes as cards */
.spw :is(.ec-checkout, .ec-track) .ec-box { border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(33, 22, 15, .06), 0 10px 26px rgba(33, 22, 15, .07); }
.spw :is(.ec-checkout, .ec-track, .ec-account) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .spw :is(.ec-checkout, .ec-account) select, .spw .ec-checkout textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--ink); font: inherit; box-sizing: border-box; }
.spw :is(.ec-checkout, .ec-track, .ec-account) :is(input, select, textarea):focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(91, 44, 20, .15); }
/* My account: the log-in card beside a dark panel */
.spw .ec-account .ec-acc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: stretch; }
.spw .ec-acc-form { position: relative; gap: 2px; padding: clamp(24px, 4vw, 40px); border: 0; border-top: 4px solid var(--primary); border-radius: 12px; background: #fff;
    box-shadow: 0 2px 4px rgba(33, 22, 15, .06), 0 18px 40px rgba(33, 22, 15, .1); }
.spw .ec-acc-form h2 { font-size: 1.6rem; margin-bottom: 12px; }
.spw .ec-acc-form label { margin-top: 12px; font-size: .95rem; }
.spw .ec-acc-form .ec-btn { min-height: 52px; margin-top: 20px; border-radius: 8px; font: 700 1.05rem/1 var(--head); }
.spw .ec-acc-form > p.ec-center { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.spw .ec-acc-why { padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 12px; color: #F5E6D5;
    background: linear-gradient(160deg, rgba(33, 22, 15, .94), rgba(74, 36, 20, .9)); }
.spw .ec-acc-why h2 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.spw .ec-acc-why ul { list-style: none; padding: 0; color: #F5E6D5; }
.spw .ec-acc-why li { margin: 0 0 14px; padding: 12px 14px 12px 44px; border-radius: 10px; background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E08A2E'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0'/%3E%3C/svg%3E") 14px center / 18px no-repeat; }
@media (max-width: 1080px) {
    .spw .ec-ui-suggest .ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spw .ec-account .ec-acc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .spw .ec-ui-steps { gap: 6px; }
    .spw .ec-ui-steps li { padding: 6px 10px 6px 6px; font-size: .85rem; }
    .spw .ec-ui-steps li span { width: 24px; height: 24px; }
}

/* ---------- log in, forgot / reset password, 2-step check (the core's .auth-form pages) ---------- */
.spw-main > .auth-form { width: min(460px, calc(100% - 2 * var(--gutter))); margin: clamp(36px, 7vw, 80px) auto; padding: clamp(26px, 5vw, 40px);
    background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.auth-form h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 8px; }
.auth-form h1 + form, .auth-form .notice + form { margin-top: 18px; }
.auth-form > p:not(.notice) { color: var(--muted); }
.auth-form form { display: grid; gap: 6px; }
.auth-form label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="number"], .auth-form input:not([type]) {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--soft); color: var(--ink); font: inherit; }
.auth-form input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(91, 44, 20, .16); }
.auth-form .btn, .auth-form button[type="submit"] { margin-top: 18px; width: 100%; min-height: 50px; border: 0; border-radius: var(--radius-s); background: var(--primary); color: #fff; font: 700 1rem/1 var(--head); cursor: pointer; }
.auth-form .btn:hover, .auth-form button[type="submit"]:hover { background: var(--primary-deep); }
.auth-form .notice { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-s); font-size: .95rem; border: 1px solid transparent; }
.auth-form .notice-error { background: #FCEBEA; border-color: #F2C5C2; color: #8A1F18; }
.auth-form .notice-success { background: #E6F4EC; border-color: #BFE2CC; color: #14532D; }
.spw-auth-links { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.spw-auth-links a, .auth-form > p:last-child:not(.notice) a { color: var(--primary-deep); font-weight: 600; text-decoration: none; }
.spw-auth-links a:hover, .auth-form > p:last-child:not(.notice) a:hover { text-decoration: underline; }
.auth-form > p:last-child:not(.notice):not(.spw-auth-links) { margin: 20px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }


/* ---------- footer: near-black, the brand column first, link columns, the base row ---------- */
.spw-footer { padding-top: clamp(52px, 7vw, 80px); background: var(--footer); color: var(--night-text); }
.spw-foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 34px 28px; }
.spw-foot-brand p { margin: 16px 0 18px; max-width: 34ch; font-size: .92rem; line-height: 1.6; }
.spw-logo-foot { color: #fff; }
.spw-logo-foot .spw-logo-mark { box-shadow: none; }
.spw-foot-pay { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: 700 .8rem/1.2 var(--head); }
.spw-foot-pay .spw-ic { width: 17px; height: 17px; color: var(--accent); }
.spw-foot-h { margin: 0 0 16px; font: 800 1rem/1.2 var(--head); color: #fff; letter-spacing: -.01em; }
.spw-foot-col { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.spw-foot-col a, .spw-foot-line { color: var(--night-text); text-decoration: none; }
.spw-foot-col a:hover, a.spw-foot-line:hover { color: #fff; }
.spw-foot-help { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.spw-foot-help .spw-btn { align-self: flex-start; margin-top: 6px; background: var(--accent); color: var(--on-accent) !important; min-height: 44px; padding: 0 22px; font-size: .88rem; }
.spw-foot-help .spw-btn:hover { background: var(--accent-deep); }
.spw-foot-line { display: flex; gap: 9px; align-items: flex-start; margin: 0; word-break: break-word; }
.spw-foot-line .spw-ic { margin-top: 3px; color: var(--accent); }
.spw-social { display: flex; gap: 8px; flex-wrap: wrap; }
.spw-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.spw-social a:hover { background: var(--accent); color: var(--on-accent); }
.spw-base { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 48px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.spw-base-links { display: flex; gap: 18px; flex-wrap: wrap; }
.spw-base a { color: var(--night-text); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
    .spw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .spw-guides, .spw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spw-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .spw-foot-brand { grid-column: 1 / -1; }
    .spw-nav-track { display: none; }
}
@media (max-width: 980px) {
    .spw-bar { min-height: 66px; gap: 10px; }
    .spw-burger { display: grid; }
    .spw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(74, 36, 20, .12); }
    .spw-top.is-open .spw-nav { display: flex; }
    .spw-nav a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
    .spw-nav a:hover, .spw-nav a.on { background: none; }
    .spw-nav-track { display: block; }
    .spw-top.is-dark .spw-nav a { color: var(--ink); }
    .spw-actions { margin-left: auto; }
    .spw-cta { display: none; }
    .spw-home .spw-hero { grid-template-columns: minmax(0, 1fr) !important; }
    .spw-hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
    .spw-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spw-perks, .spw-plans, .spw-posts, .spw-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spw-plan.is-pick { transform: none; }
    .spw-uses { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .spw-uses li { scroll-snap-align: start; }
    .spw-about-home, .spw-about, .spw-contact { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
    .spw-logo-text small { display: none; }
    .spw-act-account { display: none; }
    .spw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .spw-card-img { margin: 6px 6px 0; }
    .spw-card-body { padding: 10px 10px 12px; }
    .spw-card-text { display: none; }
    .spw-add { width: 38px; height: 38px; }
    .spw-perks, .spw-plans, .spw-posts, .spw-reviews, .spw-guides { grid-template-columns: minmax(0, 1fr); }
    .spw-cats { gap: 12px; }
    .spw-cat-text { padding: 12px 50px 14px 14px; }
    .spw-cat-go { right: 10px; bottom: 14px; width: 32px; height: 32px; }
    .spw-trust { gap: 16px 12px; }
    .spw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .spw-perks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 18px; }
    .spw-perks .spw-tile-ic { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
    .spw-perks h3 { margin: 2px 0 2px; font-size: 1.02rem; }
    .spw-perks p { font-size: .92rem; }
    .spw-trust li { flex-direction: column; align-items: flex-start; gap: 8px; }
    .spw-uses { grid-template-columns: repeat(3, 78%); }
    .spw-hero-art { padding: 0 0 34px 30px; }
    .spw-hero-badge { right: 0; top: 14px; padding: 9px 12px 9px 9px; }
    .spw-promise { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .spw-seal { width: 120px; height: 120px; }
    .spw-search { flex-wrap: wrap; }
    .spw-search button { flex: 1 0 100%; }
    .spw-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spw-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- options from Sipwell Store Studio that need fixed rules ---------- */
.spw-hero-visual:has(.spw-hero-none) { display: none; }
.spw-home .spw-hero:has(.spw-hero-none) { grid-template-columns: minmax(0, 1fr) !important; }
.spw .ec-cart:has(> .ec-ui-zone-bottom) > .ec-cart-side { position: static !important; }
html:has(#aiwb-adminbar) .spw-top.is-sticky { top: 32px; }
@media (max-width: 600px) { html:has(#aiwb-adminbar) .spw-top.is-sticky { top: 46px; } }
.spw .ec-shop > .ec-cats .ec-chip.is-active { background: var(--primary); color: #fff !important; box-shadow: none; }

/* A product card opens its own page as a whole (a stretched link under the add button). */
.spw-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.spw-card-row .spw-add-form, .spw-card-row .spw-sold { position: relative; z-index: 2; }
.spw-card-title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.spw .ec-card > *, .spw-card > *, .spw .ec-card-body > *, .spw-card-body > * { grid-column: 1; }

/* ---------- the plugin's pages: rounded cards, Sora titles, pill buttons ---------- */
.spw .ec-card { border-radius: var(--radius) !important; border-color: var(--line); }
.spw .ec-card-img { border-radius: 14px; background: var(--cream); }
.spw .ec-card-title { font: 700 1rem/1.3 var(--head); letter-spacing: -.01em; }
.spw .ec-tag-sale { background: var(--accent); color: var(--on-accent); border-radius: 999px; }
.spw :is(.ec-page-title, .ec-product h1) { font-family: var(--head); font-weight: 800; letter-spacing: -.03em; }
.spw :where(.ec-btn, .ec-btn-small, .ec-btn-ghost) { border-radius: 999px !important; }
.spw .ec-card .ec-btn-small { background: var(--accent) !important; color: var(--on-accent) !important; }
.spw .ec-card .ec-btn-small:hover { background: var(--accent-deep) !important; color: var(--on-accent) !important; }

/* Track order page as an AIWBAgent Builder layout (spw_track_builder_setup): the order finder and the help box sit close together */
.spw-bsec.spw-track-top { padding-bottom: 0 !important; }
.spw-bsec.spw-track-help { padding-top: 0 !important; }
.spw-track-help > .pb-column.spw-help { margin-top: clamp(32px, 5vw, 56px) !important; }
