/* ===== The BetterLife Farm shop: shop, product, basket, details, confirmation ===== */
.sh { --sh-honey: #f2b632; --sh-honey-soft: #fdf3d8; --sh-paper: #f7f4ec; }
.sh [hidden] { display: none !important; }
.sh a:focus-visible, .sh button:focus-visible, .sh input:focus-visible, .sh textarea:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.sh-head { margin-bottom: clamp(24px, 3vw, 36px); }
.sh-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.sh-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: var(--ab-soft); }
.sh-crumb a { color: var(--ab-deep); font-weight: 600; }
.ab .sh-kicker { margin: 0 0 14px; font: 700 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ab-green); }

/* Buttons */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--ab-green); background: var(--ab-green); color: #fff; font: inherit; font-weight: 800; font-size: 15px; line-height: 1.2; cursor: pointer; box-shadow: 0 10px 22px rgba(8, 114, 45, .22); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.sh-btn:hover { transform: translateY(-2px); background: #066326; color: #fff; }
.sh-btn.is-quiet { background: transparent; border-color: var(--ab-deep); color: var(--ab-deep); box-shadow: none; }
.sh-btn.is-quiet:hover { background: var(--ab-deep); color: #fff; }
.sh-btn.is-wide { width: 100%; }

/* Opening */
.ab .sh-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 84px); background: radial-gradient(circle at 85% 30%, var(--sh-honey-soft) 0, transparent 46%), linear-gradient(180deg, #fbf8f1 0%, var(--sh-paper) 100%); }
.sh-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.sh-hero h1 { font-family: var(--ab-serif); font-weight: 500; font-size: var(--fs-display); line-height: 1.03; letter-spacing: -.02em; color: var(--ab-deep); max-width: 12ch; margin: 0 0 22px; }
.sh-hero .ab-mark path { fill: var(--sh-honey); opacity: .95; }
.ab .sh-lead { max-width: 52ch; margin: 0 0 24px; font-size: clamp(16.5px, 1.35vw, 18.5px); line-height: 1.65; color: var(--ab-ink); }
.sh-promises { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.sh-promises li { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ab-line); font-weight: 700; font-size: 13.5px; color: var(--ab-deep); }
.sh-promises svg { color: var(--ab-green); flex-shrink: 0; }
.sh-promises.is-light li { background: var(--sh-paper); }

/* The shelf: the products standing together on a plank, in front of a sun */
.sh-shelf { position: relative; height: clamp(340px, 34vw, 470px); }
.sh-sun { position: absolute; width: 62%; aspect-ratio: 1; left: 20%; top: 2%; border-radius: 50%; background: radial-gradient(circle, #fde7a6 0%, var(--sh-honey) 70%); opacity: .55; }
.sh-plank { position: absolute; left: 0; right: 0; bottom: 6%; height: 16px; border-radius: 8px; background: linear-gradient(180deg, #b98545, #8f6331); box-shadow: 0 14px 24px rgba(91, 60, 25, .25); }
.sh-jar { position: absolute; bottom: calc(6% + 14px); display: block; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 18px 34px rgba(11, 61, 46, .16); transform-origin: bottom center; }
.sh-jar img { width: 100%; height: 100% !important; object-fit: cover; }
.sh-jar-1 { left: 2%; width: 30%; aspect-ratio: 3 / 4; transform: rotate(-4deg); }
.sh-jar-2 { left: 26%; width: 34%; aspect-ratio: 3 / 4.3; z-index: 2; }
.sh-jar-3 { left: 54%; width: 27%; aspect-ratio: 3 / 4.4; transform: rotate(3deg); z-index: 1; }
.sh-jar-4 { right: 0; width: 26%; aspect-ratio: 4 / 5; transform: rotate(5deg); z-index: 3; }

/* How a purchase helps */
.ab .sh-why { background: #fff; }
.ab .sh-why.is-compact { padding-top: clamp(40px, 5vw, 64px); background: var(--sh-paper); }
.sh-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sh-steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 29px; border-top: 2px dashed rgba(8, 114, 45, .35); }
.sh-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
.sh-step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 10px; border-radius: 18px; background: var(--ab-green); color: #fff; box-shadow: 0 10px 22px rgba(8, 114, 45, .22); }
.sh-steps li:nth-child(even) .sh-step-icon { background: var(--sh-honey); color: var(--ab-ink); box-shadow: 0 10px 22px rgba(242, 182, 50, .3); }
.sh-step-n { position: absolute; left: 50px; top: -6px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ab-deep); font: 800 11px/1 var(--font-body); color: var(--ab-deep); }
.sh-steps strong { font-family: var(--ab-serif); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ab-deep); }
.sh-steps li > span:last-child { font-size: 14.5px; line-height: 1.55; color: var(--ab-soft); }
.ab .sh-why-link { margin: 26px 0 0; }

/* Products */
.ab .sh-products { background: var(--sh-paper); }
.ab .sh-products.is-more { background: #fff; }
.sh-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ab-line); color: var(--ab-deep); font-weight: 700; font-size: 14px; transition: border-color .2s ease; }
.sh-cats a:hover { border-color: var(--ab-blue); }
.sh-cats a[aria-current] { background: var(--ab-deep); border-color: var(--ab-deep); color: #fff; }
.sh-cats small { font-size: 12px; opacity: .7; }
.sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.sh-card { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--ab-line); transition: transform .3s ease, box-shadow .3s ease; }
.sh-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(11, 61, 46, .12); }
.sh-card-media { display: block; overflow: hidden; aspect-ratio: 5 / 4; padding: 18px; background: radial-gradient(circle at 50% 60%, #fff 0, #f3efe5 75%); }
.sh-card-media img { width: 100%; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s ease; }   /* the studio background melts into the card */
.sh-card:hover .sh-card-media img { transform: scale(1.04); }
.sh-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.sh-card-cat { display: inline-block; margin-bottom: 8px; font: 700 11.5px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ab-green); }
.ab .sh-card h3 { font-family: var(--ab-serif); font-weight: 600; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.2; margin: 0 0 8px; }
.sh-card h3 a { color: var(--ab-deep); }
.ab .sh-card-desc { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab .sh-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: auto 0 14px; font-size: 14px; color: var(--ab-soft); }
.sh-price strong { font-family: var(--ab-serif); font-weight: 600; font-size: 24px; color: var(--ab-deep); }
.sh-price small { flex-basis: 100%; font-size: 12.5px; }
.ab .sh-price.is-large { margin: 0 0 22px; }
.sh-price.is-large strong { font-size: clamp(30px, 3vw, 38px); }
/* Balanced rows: a last pair shares the width (counted over the products on show) */
@media (min-width: 1101px) {
  .sh-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sh-card { grid-column: span 2; }
  .sh-card:nth-last-child(1 of .sh-card:not([hidden])):nth-child(3n+2 of .sh-card:not([hidden])),
  .sh-card:nth-last-child(2 of .sh-card:not([hidden])):nth-child(3n+1 of .sh-card:not([hidden])) { grid-column: span 3; }
}

/* Adding to the basket */
.sh-add { display: flex; gap: 10px; align-items: stretch; }
.sh-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ab-line); border-radius: 999px; background: #fff; overflow: hidden; }
.sh-qty input { width: 52px; padding: 10px 4px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 800; font-size: 15px; color: var(--ab-deep); -moz-appearance: textfield; }
.sh-qty input::-webkit-outer-spin-button, .sh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sh-qty button { width: 36px; height: 100%; min-height: 42px; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--ab-deep); cursor: pointer; }
.sh-qty button:hover { background: var(--sh-paper); }
.sh-add-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--ab-green); color: #fff; font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.sh-add-btn:hover { background: #066326; transform: translateY(-1px); }
.sh-add-btn.is-added { background: var(--ab-deep); }
.sh-add.is-large .sh-add-btn { padding: 15px 26px; font-size: 16px; }
.sh-add.is-large .sh-qty input { width: 60px; font-size: 17px; }
.sh-add.is-large .sh-qty button { min-height: 52px; width: 44px; }

/* Good to know, and larger orders */
.ab .sh-know { background: #fff; }
.sh-know-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sh-facts { display: grid; gap: 12px; margin: 22px 0 0; }
.sh-facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--sh-paper); }
.sh-facts dt { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ab-deep); }
.sh-facts dt svg { color: var(--ab-green); }
.sh-facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ab-ink); }
.sh-facts a { font-weight: 700; color: var(--ab-blue); }
.sh-bulk { padding: clamp(26px, 3.2vw, 40px); border-radius: 28px; background: linear-gradient(145deg, #07392a, #0b3d2e 60%, #03384d); color: #fff; }
.ab .sh-bulk h3 { font-family: var(--ab-serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); color: #fff; margin: 0 0 12px; }
.ab .sh-bulk p { color: rgba(255,255,255,.85); margin: 0 0 22px; }
.sh-bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-bulk .sh-btn { background: var(--sh-honey); border-color: var(--sh-honey); color: var(--ab-ink); box-shadow: none; }
.sh-bulk .sh-btn.is-quiet { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.sh-bulk .sh-btn.is-quiet:hover { background: rgba(255,255,255,.12); }
.sh-bulk a:focus-visible { outline-color: #fff; }

/* Messages */
.ab .sh-flash { margin: 0 0 20px; padding: 12px 16px; border-radius: 14px; background: #e8f4ec; border: 1px solid #bfdcc9; font-weight: 600; color: var(--ab-deep); }
.ab .sh-flash.is-error { background: #fdecea; border-color: #f3c2bc; color: #8f2318; }
.ab .sh-empty { padding: 28px; border-radius: 20px; border: 2px dashed var(--ab-line); text-align: center; }

/* The basket bar */
.sh-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 16px 14px; pointer-events: none; animation: sh-rise .35s ease; }
@keyframes sh-rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-bar-inner { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ab-deep); color: #fff; box-shadow: 0 20px 44px rgba(0, 0, 0, .28); pointer-events: auto; }
.sh-bar-icon { display: grid; place-items: center; flex-shrink: 0; color: var(--sh-honey); }
.ab .sh-bar-text { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; color: rgba(255,255,255,.88); }
.sh-bar-text strong { color: #fff; }
.sh-bar-link { font-weight: 700; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sh-bar-go { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; background: var(--sh-honey); color: var(--ab-ink); font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.sh-bar a:focus-visible { outline-color: #fff; }
.sh-bar.is-bump .sh-bar-inner { animation: sh-bump .45s ease; }
@keyframes sh-bump { 40% { transform: scale(1.03); } }
body:has(.sh-bar:not([hidden])) { padding-bottom: 86px; }   /* room for the basket bar at the foot of the page */

/* A product */
.ab .sh-item { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 84px); background: linear-gradient(180deg, #fbf8f1 0%, var(--sh-paper) 100%); }
.sh-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sh-item-media { position: relative; margin: 0; padding: clamp(24px, 4vw, 48px); border-radius: 36px; background: #fff; box-shadow: 0 24px 50px rgba(11, 61, 46, .1); overflow: hidden; }
.sh-item-media .sh-sun { width: 80%; left: 10%; top: 8%; opacity: .35; }
.sh-item-media img { position: relative; width: 100%; aspect-ratio: 1; height: auto !important; object-fit: contain; mix-blend-mode: multiply; }
.sh-item-copy h1 { font-family: var(--ab-serif); font-weight: 500; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; color: var(--ab-deep); margin: 0 0 16px; }
.sh-item-text { margin: 26px 0 22px; }
.ab .sh-item-text p { margin: 0 0 1em; font-size: 16.5px; line-height: 1.7; color: var(--ab-ink); }

/* Basket, details and confirmation */
.ab .sh-flow { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); background: var(--sh-paper); }
.sh-flow h1 { font-family: var(--ab-serif); font-weight: 500; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; color: var(--ab-deep); margin: 0 0 26px; }
.sh-progress { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 18px; padding: 0; font-weight: 700; font-size: 14px; color: var(--ab-soft); }
.sh-progress li { display: inline-flex; align-items: center; gap: 8px; }
.sh-progress li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ab-line); background: #fff; font-size: 12.5px; }
.sh-progress li[aria-current] { color: var(--ab-deep); }
.sh-progress li[aria-current] span { border-color: var(--ab-green); background: var(--ab-green); color: #fff; }
.sh-progress li.is-done span { border-color: var(--ab-green); color: var(--ab-green); }
.sh-flow-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.sh-lines { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sh-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 22px; background: #fff; border: 1px solid var(--ab-line); }
.sh-line-media { display: block; width: 84px; height: 84px; padding: 6px; border-radius: 16px; background: #f3efe5; }
.sh-line-media img { width: 100%; height: 100% !important; object-fit: contain; }
.sh-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-line-info strong { font-family: var(--ab-serif); font-weight: 600; font-size: 18px; color: var(--ab-deep); }
.sh-line-info span { font-size: 13.5px; color: var(--ab-soft); }
.sh-line-qty { display: flex; align-items: center; gap: 8px; }
.sh-line-update { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--ab-line); background: #fff; font: inherit; font-weight: 700; font-size: 13px; color: var(--ab-deep); cursor: pointer; }
.sh-line-total { font-family: var(--ab-serif); font-weight: 600; font-size: 18px; color: var(--ab-deep); white-space: nowrap; }
.sh-line-remove { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ab-soft); cursor: pointer; }
.sh-line-remove:hover { background: #fdecea; color: #8f2318; }
.sh-summary { position: sticky; top: 100px; padding: clamp(22px, 2.6vw, 30px); border-radius: 26px; background: #fff; border: 1px solid var(--ab-line); box-shadow: 0 18px 40px rgba(11, 61, 46, .08); }
.ab .sh-summary h2 { font-family: var(--ab-serif); font-weight: 500; font-size: 24px; color: var(--ab-deep); margin: 0 0 16px; }
.ab .sh-summary-row { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: 15px; color: var(--ab-ink); }
.sh-summary-row strong { font-family: var(--ab-serif); font-weight: 600; font-size: 24px; color: var(--ab-deep); }
.ab .sh-summary-row.is-total { padding-top: 14px; border-top: 1px solid var(--ab-line); }
.ab .sh-summary-note { margin: 0 0 8px; font-size: 13.5px; color: var(--ab-soft); }
.sh-summary .sh-btn { margin-top: 12px; }
.sh-summary-back { display: block; margin-top: 14px; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--ab-blue); }
.ab .sh-summary-why { display: flex; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--ab-line); font-size: 13.5px; color: var(--ab-soft); }
.sh-summary-why svg { flex-shrink: 0; margin-top: 2px; color: var(--ab-green); }
.sh-mini { display: grid; gap: 12px; list-style: none; margin: 0 0 16px; padding: 0; }
.sh-mini li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14.5px; color: var(--ab-ink); }
.sh-mini-media { display: block; width: 52px; height: 52px; padding: 4px; border-radius: 12px; background: #f3efe5; }
.sh-mini-media img { width: 100%; height: 100% !important; object-fit: contain; }
.sh-mini small { color: var(--ab-soft); }
.sh-empty-basket { max-width: 520px; margin: 10px auto; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: #fff; border: 1px solid var(--ab-line); text-align: center; }
.sh-empty-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 14px; border-radius: 50%; background: var(--sh-honey-soft); color: var(--ab-deep); }
.ab .sh-empty-basket h2 { font-family: var(--ab-serif); font-weight: 500; font-size: 28px; color: var(--ab-deep); margin: 0 0 8px; }
.ab .sh-empty-basket p { margin: 0 0 22px; }
.sh-form { padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: #fff; border: 1px solid var(--ab-line); }
.sh-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.sh-field { display: flex; flex-direction: column; gap: 7px; }
.sh-field.is-full { grid-column: 1 / -1; }
.sh-field label { font-weight: 700; font-size: 14.5px; color: var(--ab-deep); }
.sh-field label span { color: var(--ab-green); }
.sh-field label small, .sh-field > small { font-weight: 500; font-size: 13px; color: var(--ab-soft); }
.sh-field input, .sh-field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--ab-line); background: #fbfaf6; font: inherit; font-size: 16px; color: var(--ab-ink); }
.sh-field input:focus, .sh-field textarea:focus { outline: none; border-color: var(--ab-blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 124, 173, .14); }
.ab .sh-form-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--ab-soft); }
.sh-form-note svg { color: var(--ab-green); }
.sh-done { display: flex; align-items: flex-start; gap: 20px; margin: 10px 0 30px; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: #fff; border: 2px solid var(--ab-green); box-shadow: 0 20px 44px rgba(8, 114, 45, .12); }
.sh-done.is-failed { border-color: #c0392b; }
.sh-done-icon { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--ab-green); color: #fff; box-shadow: 0 0 0 8px rgba(8, 114, 45, .14); }
.sh-done.is-failed .sh-done-icon { background: #c0392b; box-shadow: 0 0 0 8px rgba(192, 57, 43, .14); }
.ab .sh-done h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 8px; }
.ab .sh-done p { margin: 0; font-size: 16.5px; color: var(--ab-ink); }
.sh-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* A short note after adding */
.sh-toast { position: fixed; left: 50%; bottom: 96px; z-index: 61; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--ab-deep); font-weight: 700; font-size: 14.5px; box-shadow: 0 16px 36px rgba(0, 0, 0, .2); transform: translateX(-50%); animation: sh-toast 2.6s ease forwards; }
.sh-toast svg { color: var(--ab-green); }
@keyframes sh-toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  .sh-btn, .sh-card, .sh-card-media img, .sh-add-btn, .sh-cats a { transition: none; }
  .sh-bar, .sh-bar.is-bump .sh-bar-inner, .sh-toast { animation: none; }
}
@media (max-width: 1100px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .sh-steps::before { display: none; }
}
@media (max-width: 900px) {
  .sh-hero-grid, .sh-item-grid, .sh-know-grid, .sh-flow-grid { grid-template-columns: 1fr; }
  .sh-shelf { max-width: 520px; width: 100%; height: clamp(280px, 70vw, 400px); }
  .sh-summary { position: static; }
}
@media (max-width: 720px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-steps { grid-template-columns: 1fr; }
  .sh-facts div { grid-template-columns: 1fr; gap: 6px; }
  .sh-fields { grid-template-columns: 1fr; }
  .sh-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img qty total"; gap: 10px 12px; }
  .sh-line-media { grid-area: img; width: 64px; height: 64px; }
  .sh-line-info { grid-area: info; }
  .sh-line-qty { grid-area: qty; }
  .sh-line-total { grid-area: total; justify-self: end; }
  .sh-line > form:last-child { grid-area: remove; justify-self: end; }
  .sh-qty input { width: 40px; }
  .sh-qty button { width: 32px; }
  .sh-add-btn span { white-space: nowrap; }
  .sh-bar { padding: 0 10px 10px; }
  .sh-bar-inner { gap: 10px; padding: 8px 8px 8px 14px; }
  .sh-bar-link, .sh-bar-icon { display: none; }
  .ab .sh-bar-text { font-size: 13.5px; }
  .sh-done { flex-direction: column; }
}
body:has(.sh-bar:not([hidden])) .back-to-top { bottom: 96px; }   /* clear of the basket bar */
