/*
 * Shop front – clean, flat supermarket style (white pages, thin grey dividers, one sans-serif typeface,
 * bold black prices, green actions). Loaded last. Page content rules are scoped to .shop-body so the
 * admin area keeps its own look; the header/footer classes (sf-*) are shared.
 */

.shop-body {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f6f6f4;
    --surface-strong: #f6f6f4;
    --text: #1b1b1b;
    --muted: #5f6361;
    --line: #e4e4e1;
    --line-strong: #cfd1ce;
    --brand: #1f5d3f;
    --brand-dark: #154530;
    --brand-soft: #e8f1eb;
    --offer: #c8102e;
    --offer-soft: #fdecee;
    --shadow: none;
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius-xl: 12px;
    --radius-lg: 10px;
    --radius-md: 8px;
    --font-display: 'DM Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    background: var(--bg);
    background-image: none;
    color: var(--text);
    font-family: var(--font-body);
}

.shop-body h1,
.shop-body h2,
.shop-body h3,
.shop-body h4 {
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

.shop-body .glow-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: none;
}

.shop-body .eyebrow {
    color: var(--muted);
    letter-spacing: 0.06em;
}

.shop-body .btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: none;
    transform: none;
}

.shop-body .btn-brand:hover,
.shop-body .btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: none;
}

.shop-body .btn-outline-brand,
.shop-body .sf-btn-ghost {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--text);
    box-shadow: none;
    border-radius: 999px;
    font-weight: 700;
}

.shop-body .btn-outline-brand:hover,
.shop-body .sf-btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: none;
}

.shop-body .page-shell {
    padding-bottom: 48px;
}

/* ------------------------------------------------------------ Header */

.sf-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #e4e4e1;
}

.sf-topstrip {
    background: #f6f6f4;
    border-bottom: 1px solid #ecece9;
    font-size: 0.8rem;
    color: #5f6361;
}

.sf-topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
}

.sf-topstrip i {
    color: #1f5d3f;
    margin-right: 4px;
}

.sf-dot {
    margin: 0 6px;
    color: #a3a6a4;
}

.sf-topstrip nav {
    display: flex;
    gap: 18px;
}

.sf-topstrip a {
    color: #5f6361;
    text-decoration: none;
}

.sf-topstrip a:hover {
    color: #1f5d3f;
    text-decoration: underline;
}

.sf-mainbar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.sf-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1b1b1b;
    font-size: 1.5rem;
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: #1f5d3f;
    text-decoration: none;
}

.sf-brand img {
    height: 34px;
    width: auto;
}

.sf-brand span {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.sf-search {
    flex: 1;
    display: flex;
    max-width: 720px;
    margin: 0 auto;
    height: 46px;
    border: 1px solid #cfd1ce;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sf-search:focus-within {
    border-color: #1f5d3f;
    box-shadow: 0 0 0 3px rgba(31, 93, 63, 0.15);
}

.sf-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 20px;
    font-size: 0.98rem;
    background: transparent;
    color: #1b1b1b;
}

.sf-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.sf-search button {
    flex: none;
    width: 56px;
    border: 0;
    background: #1f5d3f;
    color: #fff;
    font-size: 1.05rem;
    transition: background 0.15s ease;
}

.sf-search button:hover {
    background: #154530;
}

.sf-basket {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    height: 46px;
    padding: 0 18px 0 12px;
    border-radius: 999px;
    background: #1f5d3f;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.15s ease;
}

.sf-basket:hover {
    background: #154530;
    color: #fff;
}

.sf-basket-icon {
    position: relative;
    font-size: 1.3rem;
    line-height: 1;
}

.sf-basket-icon strong {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f2b33d;
    color: #1b1b1b;
    font-size: 0.7rem;
    line-height: 19px;
    text-align: center;
}

.sf-basket-total {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.sf-catnav {
    border-top: 1px solid #ecece9;
    background: #fff;
}

.sf-catnav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    min-height: 44px;
}

.sf-catnav-inner::-webkit-scrollbar {
    display: none;
}

.sf-catnav-head,
.sf-catnav-extra {
    display: none;
}

.sf-catnav a {
    flex: none;
    padding: 12px 12px;
    color: #1b1b1b;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.sf-catnav a:hover {
    color: #1f5d3f;
    border-bottom-color: #cfd1ce;
}

.sf-catnav a.is-active {
    color: #1f5d3f;
    border-bottom-color: #1f5d3f;
}

.sf-catnav .sf-catnav-all {
    font-weight: 800;
    padding-left: 0;
}

.sf-catnav .sf-catnav-all i {
    margin-right: 4px;
    color: #1f5d3f;
}

/* ------------------------------------------------------------ Footer */

.sf-footer {
    margin-top: 32px;
    background: #f6f6f4;
    border-top: 1px solid #e4e4e1;
    color: #5f6361;
    font-size: 0.9rem;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
}

.sf-footer h6 {
    margin: 0 0 12px;
    color: #1b1b1b;
    font-weight: 800;
    font-size: 0.92rem;
}

.sf-footer a {
    display: block;
    color: #5f6361;
    text-decoration: none;
    padding: 3px 0;
}

.sf-footer a:hover {
    color: #1f5d3f;
    text-decoration: underline;
}

.sf-footer p {
    margin: 0 0 8px;
}

.sf-footer-about .sf-brand {
    display: inline-flex;
    margin-bottom: 10px;
}

.sf-footer-about .sf-brand:hover {
    text-decoration: none;
}

.sf-footer-about p {
    max-width: 340px;
}

.sf-footer-base {
    border-top: 1px solid #e4e4e1;
    font-size: 0.8rem;
}

.sf-footer-base-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    min-height: 48px;
}

.sf-footer-base-inner a {
    display: inline;
    padding: 0;
}

/* ------------------------------------------------------------ Breadcrumb + listing header */

.sf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    font-size: 0.82rem;
    color: var(--muted);
}

.sf-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    text-transform: capitalize;
}

.sf-breadcrumb a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.sf-breadcrumb i {
    font-size: 0.65rem;
    color: #a3a6a4;
}

.sf-breadcrumb span {
    color: var(--text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50ch;
}

.shop-body .cat-infobar {
    padding-top: 10px;
    padding-bottom: 10px;
}

.shop-body .cat-infobar-title h1 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.shop-body .cat-infobar-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--tone-bg, var(--brand-soft));
}

.shop-body .cat-infobar-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.shop-body .cat-infobar-stats li {
    background: var(--surface-soft);
    border-color: transparent;
}

.shop-body .cat-infobar-stats .cat-infobar-vat {
    background: transparent;
}

.shop-body .cat-pill {
    background: #fff;
    border-color: var(--line);
}

.shop-body .cat-pill:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--brand);
}

.shop-body .cat-pill.is-active {
    box-shadow: none;
}

.shop-body .cat-pills-wrap {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.sf-listing-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 16px;
}

.sf-listing-bar p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.sf-listing-bar strong {
    color: var(--text);
}

.sf-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.sf-sort label {
    color: var(--muted);
    white-space: nowrap;
}

.sf-sort select {
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%231b1b1b' d='M1.6 4.8 8 11.2l6.4-6.4-1.1-1.1L8 9 2.7 3.7z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.sf-sort select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 93, 63, 0.15);
}

.sf-empty {
    padding: 56px 24px;
    border: 1px dashed var(--line-strong) !important;
    box-shadow: none !important;
}

.sf-empty h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 12px 0 4px;
}

.sf-empty p {
    color: var(--muted);
}

.sf-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.sf-pager a,
.sf-pager-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.sf-pager a:hover {
    background: var(--surface-soft);
}

.sf-pager-pages {
    display: flex;
    gap: 4px;
}

.sf-pager-pages a.is-active {
    background: var(--brand);
    color: #fff;
}

.sf-pager-step {
    border: 1px solid var(--line-strong);
}

.sf-pager-step.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.sf-pager-gap {
    color: var(--muted);
    min-width: 20px;
    padding: 0;
}

/* ------------------------------------------------------------ Product grid + tiles */

.shop-body .sf-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.shop-body .product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: box-shadow 0.15s ease;
}

.shop-body .sf-grid > .product-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.shop-body .product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: none;
    position: relative;
    z-index: 1;
}

.shop-body .product-card-media {
    position: relative;
    display: block;
    margin: 0;
    padding: 18px 18px 6px;
    background: #fff;
    border-radius: 0;
    aspect-ratio: 1 / 1;
}

.shop-body .product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    transition: none;
}

.shop-body .product-card:hover .product-card-media img {
    transform: none;
}

.shop-body .product-flag {
    left: 12px;
    top: 12px;
    bottom: auto;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--offer);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.shop-body .product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    padding: 6px 14px 14px;
}

.shop-body .product-meta {
    display: none;
}

.shop-body .product-card h3 {
    margin: 0;
}

.shop-body .product-card h3,
.shop-body .product-card h3 a {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-body .product-card h3 a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.shop-body .product-size {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.shop-body .card-unit-toggle {
    margin-top: 6px;
    background: var(--surface-soft);
    padding: 2px;
}

.shop-body .card-unit-toggle button {
    padding: 4px 6px;
    font-size: 0.76rem;
    color: var(--muted);
}

.shop-body .card-unit-toggle button.is-active {
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.shop-body .card-buy-row {
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}

.shop-body .card-buy-row .price-row strong {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.shop-body .card-buy-row .price-row span {
    color: var(--muted);
}

.shop-body .product-card .card-add,
.shop-body .card-stepper {
    height: 38px;
    border-radius: 999px;
}

.shop-body .product-card .card-add {
    padding: 0 16px 0 13px;
    background: var(--brand);
    box-shadow: none;
    font-size: 0.88rem;
}

.shop-body .product-card .card-add:hover {
    background: var(--brand-dark);
    box-shadow: none;
    transform: none;
}

.card-add[hidden],
.card-stepper[hidden] {
    display: none !important;
}

.card-stepper {
    flex: none;
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    color: #fff;
    overflow: hidden;
}

.card-stepper button {
    width: 36px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.card-stepper button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.card-stepper span {
    min-width: 22px;
    text-align: center;
    font-weight: 800;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ Home */

.shop-body .promo-carousel-wrap {
    margin-top: 20px;
    margin-bottom: 0;
}

.shop-body .promo-carousel,
.shop-body .promo-slide {
    border-radius: 12px;
    box-shadow: none;
}

.sf-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding: 36px 40px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    overflow: hidden;
}

.sf-welcome h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.sf-welcome p {
    margin: 0 0 20px;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.86);
}

.sf-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-welcome .btn-brand {
    background: #fff;
    border-color: #fff;
    color: var(--brand);
}

.sf-welcome .btn-brand:hover {
    background: #f2b33d;
    border-color: #f2b33d;
    color: var(--text);
}

.sf-welcome .sf-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.sf-welcome .sf-btn-ghost:hover {
    border-color: #fff;
    color: #fff;
}

.sf-welcome-art {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sf-welcome-art img {
    width: 100%;
    aspect-ratio: 1;
    padding: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    object-fit: contain;
}

.sf-usps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sf-usps > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--muted);
}

.sf-usps > div + div {
    border-left: 1px solid var(--line);
}

.sf-usps i {
    font-size: 1.3rem;
    color: var(--brand);
}

.sf-usps strong {
    color: var(--text);
    display: block;
    font-size: 0.92rem;
}

.sf-section {
    margin-top: 40px;
}

.sf-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sf-section-head h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.sf-section-head a {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.sf-section-head a:hover {
    text-decoration: underline;
}

.sf-section-head a i {
    font-size: 0.75rem;
}

.sf-aisles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 12px;
}

.sf-aisle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
}

.sf-aisle-art {
    width: 100%;
    max-width: 128px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 999px;
    background: var(--tone-bg, var(--brand-soft));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sf-aisle-art img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.sf-aisle:hover .sf-aisle-art {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px var(--tone-ink, var(--brand));
}

.sf-aisle strong {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.25;
}

.sf-aisle:hover strong {
    color: var(--brand);
    text-decoration: underline;
}

.sf-aisle small {
    font-size: 0.76rem;
    color: var(--muted);
}

.sf-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sf-duo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.sf-duo-card:hover {
    border-color: var(--brand);
    color: var(--text);
}

.sf-duo-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--brand);
    font-size: 1.4rem;
}

.sf-duo-card h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 800;
}

.sf-duo-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.sf-duo-go {
    margin-left: auto;
    color: var(--brand);
}

/* ------------------------------------------------------------ Product page */

.shop-body .detail-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    margin-top: 16px;
    align-items: start;
}

.shop-body .detail-media {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    box-shadow: none;
}

.shop-body .detail-media img {
    mix-blend-mode: normal;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.shop-body .detail-content {
    padding: 0;
}

.shop-body .detail-category {
    background: transparent;
    padding: 0;
    color: var(--brand);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.shop-body .detail-category img {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 999px;
    background: var(--tone-bg);
}

.shop-body .detail-content h1 {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 6px;
}

.shop-body .detail-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.shop-body .detail-price-card {
    margin-top: 20px;
    padding: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.shop-body .detail-price-row strong {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.shop-body .detail-price-row span,
.shop-body .detail-vat {
    color: var(--muted);
}

.shop-body .unit-switcher {
    gap: 10px;
}

.shop-body .unit-option {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.shop-body .unit-option.active {
    border: 2px solid var(--brand);
    background: var(--brand-soft);
}

.shop-body .detail-order-row {
    gap: 12px;
}

.shop-body .qty-stepper {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    height: 46px;
}

.shop-body .detail-add {
    flex: 1;
    height: 46px;
    font-size: 1rem;
}

.shop-body .detail-perks {
    margin-top: 18px;
}

.shop-body .detail-perks li {
    background: transparent;
    border: 0;
    padding: 4px 0;
    color: var(--muted);
}

.shop-body .detail-perks i {
    color: var(--brand);
}

.shop-body .section-spacing {
    margin-top: 48px;
}

.shop-body .section-heading h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

/* ------------------------------------------------------------ Basket, checkout, info pages */

.shop-body .basket-shell,
.shop-body .checkout-shell {
    margin-top: 24px;
}

.shop-body .basket-header-block h1,
.shop-body .checkout-shell h1,
.shop-body .info-hero h1 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.shop-body .basket-items {
    gap: 0;
    border-top: 1px solid var(--line);
}

.shop-body .basket-item-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.shop-body .basket-item-row img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.shop-body .basket-item-row h3 {
    font-size: 0.98rem;
    font-weight: 700;
}

.shop-body .basket-row-actions strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.shop-body .basket-summary {
    position: sticky;
    top: 170px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
}

.shop-body .summary-row-total strong {
    font-family: var(--font-body);
    font-weight: 800;
    color: var(--text);
}

.shop-body .empty-state {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.shop-body .checkout-card,
.shop-body .checkout-summary,
.shop-body .info-card {
    box-shadow: none;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1200px) {
    .shop-body .sf-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sf-aisles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .sf-topstrip nav {
        display: none;
    }

    .sf-mainbar {
        flex-wrap: wrap;
        gap: 10px 12px;
        min-height: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sf-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: -8px;
    }

    .sf-brand img {
        height: 28px;
    }

    .sf-brand span {
        font-size: 1rem;
    }

    .sf-basket {
        margin-left: auto;
        height: 40px;
        padding: 0 14px 0 10px;
    }

    .sf-search {
        order: 5;
        flex: 1 0 100%;
        max-width: none;
        height: 42px;
    }

    /* Category bar becomes the slide-in menu. */
    .sf-catnav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        width: min(320px, 86vw);
        border: 0;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s ease;
        overflow-y: auto;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    }

    .sf-catnav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .sf-catnav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    .sf-catnav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        border-bottom: 1px solid #e4e4e1;
        font-size: 1.05rem;
    }

    .sf-catnav-head button {
        border: 0;
        background: transparent;
        font-size: 1.1rem;
    }

    .sf-catnav a,
    .sf-catnav .sf-catnav-all {
        padding: 13px 18px;
        border-bottom: 1px solid #f0f0ee;
        border-left: 3px solid transparent;
    }

    .sf-catnav a.is-active {
        border-bottom-color: #f0f0ee;
        border-left-color: #1f5d3f;
        background: #e8f1eb;
    }

    .sf-catnav-extra {
        display: block;
        background: #f6f6f4;
        padding: 8px 0;
    }

    .sf-catnav-extra a {
        border-bottom: 0;
        font-weight: 500;
        color: #5f6361;
    }

    .sf-catnav-extra i {
        width: 22px;
        color: #1f5d3f;
    }

    .shop-body .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
    }

    .shop-body .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .shop-body .sf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sf-welcome {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 24px;
    }

    .sf-welcome-art {
        display: none;
    }

    .sf-usps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-usps > div:nth-child(3) {
        border-left: 0;
    }

    .sf-usps > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .shop-body .detail-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .shop-body .detail-media {
        padding: 20px;
        max-width: 460px;
        width: 100%;
        margin: 0 auto;
    }

    .shop-body .basket-summary {
        position: static;
    }

    .sf-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sf-topstrip-inner {
        justify-content: center;
        font-size: 0.72rem;
        min-height: 28px;
    }

    .sf-brand span {
        display: none;
    }

    .sf-basket-total {
        font-size: 0.92rem;
    }

    .shop-body .sf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-body .product-card-media {
        padding: 12px 12px 4px;
    }

    .shop-body .product-card-body {
        padding: 4px 10px 12px;
    }

    .shop-body .card-buy-row {
        flex-wrap: wrap;
    }

    .shop-body .card-buy-row .price-row strong {
        font-size: 1.08rem;
    }

    .shop-body .product-card .card-add,
    .shop-body .card-stepper {
        height: 36px;
    }

    .sf-aisles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .sf-section {
        margin-top: 28px;
    }

    .sf-section-head h2 {
        font-size: 1.2rem;
    }

    .sf-duo {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-listing-bar {
        flex-wrap: wrap;
    }

    .sf-pager-step span,
    .sf-pager-step {
        font-size: 0;
        gap: 0;
    }

    .sf-pager-step i {
        font-size: 0.9rem;
    }

    .sf-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-top: 28px;
    }

    .shop-body .basket-item-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .shop-body .basket-item-row img {
        width: 64px;
        height: 64px;
    }

    .shop-body .basket-row-actions {
        grid-column: 1 / -1;
    }
}

/* ------------------------------------------------------------ Alignment + small fixes */

/* One content edge for every section: header, footer and page content line up. */
.shop-body .container,
.sf-header .container,
.sf-footer .container {
    padding-left: 0;
    padding-right: 0;
}

.shop-body .cat-infobar-title h1.is-category {
    text-transform: capitalize;
}

.shop-body .basket-shell {
    padding-top: 24px;
}

.shop-body .basket-summary h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.shop-body .basket-header-block {
    margin-bottom: 16px;
}

.sf-welcome-actions .btn {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 22px;
    line-height: 1;
}

@media (max-width: 640px) {
    .sf-topstrip-more {
        display: none;
    }
}

.shop-body .sf-welcome.container {
    padding: 36px 40px;
}

.sf-catnav-extra a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
}

@media (max-width: 992px) {
    .shop-body .sf-welcome.container {
        padding: 28px 24px;
    }
}

/* ------------------------------------------------------------ Collection-only products */

.collect-only-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e7eefb;
    color: #1f4f9c;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.collect-only-tag-lg {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 0.82rem;
}

.detail-perk-warn,
.detail-perk-warn i {
    color: #1f4f9c !important;
    font-weight: 700;
}

.fulfilment-option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fulfilment-option.is-disabled .fulfilment-card {
    pointer-events: none;
}

.collect-only-note {
    margin-top: 12px;
}

/* ------------------------------------------------------------ Admin-written product information */

.product-extra-wrap {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line, #e4e4e1);
}

.product-extra-wrap > h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 16px;
}

.product-extra {
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.product-extra img,
.product-extra video {
    max-width: 100%;
    height: auto;
}

.product-extra table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.product-extra td,
.product-extra th {
    padding: 6px 10px;
}

.product-extra > :first-child {
    margin-top: 0;
}

/* ------------------------------------------------------------ Category bar: "⋮" all groups */

/* Desktop only: on phones the bar is the fixed slide-in menu and must stay out of the page flow. */
@media (min-width: 993px) {
    .sf-catnav {
        position: relative;
    }
}

.sf-catnav-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-catnav-row .sf-catnav-inner {
    flex: 1;
    min-width: 0;
}

.sf-more-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 36px;
    height: 36px;
    border: 1px solid #e4e4e1;
    border-radius: 999px;
    background: #fff;
    color: #1b1b1b;
    font-size: 1.05rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sf-more-btn span {
    display: none;
}

.sf-more-btn:hover,
.sf-more-btn.is-open {
    border-color: #1f5d3f;
    background: #e8f1eb;
    color: #1f5d3f;
}

.sf-allgroups {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 18px 0 22px;
    background: #fff;
    border-top: 1px solid #e4e4e1;
    border-bottom: 1px solid #e4e4e1;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.sf-allgroups[hidden] {
    display: none;
}

.sf-allgroups-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sf-allgroups-head strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.sf-allgroups-head a {
    color: #1f5d3f;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.sf-allgroups-head a:hover {
    text-decoration: underline;
}

.sf-allgroups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 4px 12px;
}

.sf-catnav .sf-allgroups-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    color: #1b1b1b;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
}

.sf-catnav .sf-allgroups-link:hover,
.sf-catnav .sf-allgroups-link.is-active {
    background: #f6f6f4;
    color: #1f5d3f;
    border: 0;
}

.sf-allgroups-icon {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tone-bg, #e8f1eb);
}

.sf-allgroups-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sf-allgroups-name {
    flex: 1;
    min-width: 0;
    text-transform: capitalize;
}

.sf-allgroups-link small {
    flex: none;
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f0f0ee;
    color: #5f6361;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 992px) {
    .sf-catnav-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .sf-more-btn {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        padding: 13px 18px;
        border: 0;
        border-bottom: 1px solid #f0f0ee;
        border-radius: 0;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .sf-more-btn span {
        display: inline;
    }

    .sf-more-btn:hover,
    .sf-more-btn.is-open {
        background: #e8f1eb;
    }

    .sf-allgroups {
        position: static;
        max-height: none;
        padding: 8px 0;
        border-top: 0;
        box-shadow: none;
        background: #fbfbfa;
    }

    .sf-allgroups .container {
        width: 100%;
    }

    .sf-allgroups-head {
        padding: 4px 18px;
    }

    .sf-allgroups-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 10px;
    }
}

/* Selected category pill on the products page: solid green with white text (the white pill background must not win). */
.shop-body .cat-pill.is-active,
.shop-body .cat-pill.is-active:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.shop-body .cat-pill.is-active .cat-pill-icon {
    background: #fff;
}

.shop-body .cat-pill.is-active .cat-pill-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Links in the "All groups" panel header keep normal case and no tab styling. */
.sf-catnav .sf-allgroups-head a {
    padding: 0;
    border: 0;
    text-transform: none;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .sf-catnav .sf-allgroups-head a {
        padding: 0;
        border: 0;
    }
}

/* Collection-only tag: solid red so it can't be missed. */
.collect-only-tag {
    background: #c8102e;
    color: #fff;
    box-shadow: 0 1px 2px rgba(200, 16, 46, 0.25);
}

.detail-perk-warn,
.detail-perk-warn i {
    color: #c8102e !important;
}

/* ------------------------------------------------------------ Listing: left-hand filters */

.sf-listing-filtered {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.sf-listing-main {
    min-width: 0;
}

.sf-filters {
    position: sticky;
    top: 170px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 12px 4px 16px 0;
    scrollbar-width: thin;
}

.sf-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.sf-filters-head strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.sf-filters-head strong i {
    color: var(--brand);
    margin-right: 4px;
}

.sf-filters-head a {
    margin-left: auto;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
}

.sf-filters-close,
.sf-filters-foot,
.sf-filter-toggle,
.sf-filter-overlay {
    display: none;
}

.sf-facet {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sf-facet summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 0.92rem;
}

.sf-facet summary::-webkit-details-marker {
    display: none;
}

.sf-facet summary::after {
    content: "\f282";
    font-family: "bootstrap-icons";
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.sf-facet[open] summary::after {
    transform: rotate(180deg);
}

.sf-facet-options {
    display: grid;
    gap: 2px;
    margin-top: 8px;
}

.sf-facet-options.is-long:not(.is-expanded) > .sf-check:nth-child(n + 9) {
    display: none;
}

.sf-facet-more {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
}

.sf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px;
    margin: 0 -6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.sf-check:hover {
    background: var(--surface-soft);
}

.sf-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.sf-check-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-check-label i {
    color: var(--offer);
}

.sf-check small {
    flex: none;
    color: var(--muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.sf-check.is-empty {
    opacity: 0.45;
}

.sf-price-range {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.sf-price-range label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 0.85rem;
}

.sf-price-range label:focus-within {
    border-color: var(--brand);
}

.sf-price-range input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--text);
}

.sf-price-dash {
    color: var(--muted);
}

.sf-price-go {
    flex: none;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.85rem;
}

.sf-price-go:hover {
    background: var(--brand);
    color: #fff;
}

.sf-of-total {
    color: var(--muted);
    margin-left: 4px;
}

.sf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
}

.sf-check-label.is-name,
.sf-chip.is-name {
    text-transform: capitalize;
}

.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.sf-chip:hover {
    background: var(--brand);
    color: #fff;
}

.sf-chip-clear {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.sf-listing-filtered .sf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .sf-listing-filtered .sf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .sf-listing-filtered {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .sf-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 38px;
        padding: 0 14px;
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        background: #fff;
        color: var(--text);
        font-weight: 800;
        font-size: 0.88rem;
    }

    .sf-filters {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1060;
        width: min(340px, 88vw);
        max-height: none;
        padding: 0;
        background: #fff;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .sf-filters.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .sf-filters form {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .sf-filters-head {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 14px 16px;
        background: #fff;
    }

    .sf-filters-close {
        display: inline-flex;
        border: 0;
        background: transparent;
        font-size: 1.1rem;
    }

    .sf-facet {
        padding: 12px 16px;
    }

    .sf-filters-foot {
        display: block;
        position: sticky;
        bottom: 0;
        margin-top: auto;
        padding: 12px 16px;
        background: #fff;
        border-top: 1px solid var(--line);
    }

    .sf-filters-foot .btn {
        width: 100%;
    }

    .sf-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1055;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
    }

    body.filters-open .sf-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.filters-open {
        overflow: hidden;
    }

    .sf-listing-bar {
        flex-wrap: wrap;
    }

    .sf-listing-bar p {
        order: 3;
        flex-basis: 100%;
    }

    .sf-listing-filtered .sf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sf-listing-filtered .sf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-sort label {
        display: none;
    }
}

/* ------------------------------------------------------------ Home: "Why shop with us" (three cards, click for more) */

.sf-why {
    margin-top: 28px;
}

.sf-why > h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
    font-weight: 800;
}

.sf-why-value { --why-bg: #e8f1eb; --why-ink: #1f5d3f; }
.sf-why-choice { --why-bg: #fff1d2; --why-ink: #8a5a00; }
.sf-why-easy { --why-bg: #e7eefb; --why-ink: #1f4f9c; }

.sf-why-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sf-why-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 6px 14px;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--why-bg);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-why-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sf-why-card:focus-visible {
    outline: 3px solid var(--why-ink);
    outline-offset: 2px;
}

.sf-why-card[aria-expanded="true"] {
    border-color: var(--why-ink);
    transform: none;
    box-shadow: none;
}

/* Small notch pointing at the open panel. */
.sf-why-card[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 18px;
    height: 18px;
    background: var(--why-bg);
    border-right: 2px solid var(--why-ink);
    border-bottom: 2px solid var(--why-ink);
    transform: translateX(-50%) rotate(45deg);
}

.sf-why-icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--why-ink);
    font-size: 1.4rem;
}

.sf-why-copy strong {
    display: block;
    margin-bottom: 2px;
    font-size: 1.1rem;
    font-weight: 800;
}

.sf-why-copy span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.sf-why-more {
    color: var(--why-ink);
    font-size: 0.86rem;
    font-weight: 800;
}

.sf-why-more i {
    display: inline-block;
    margin-left: 2px;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.sf-why-card[aria-expanded="true"] .sf-why-more i {
    transform: rotate(180deg);
}

/* Panels live in the card grid: full width under the row on desktop, directly under their card on phones. */
.sf-why-panel {
    grid-column: 1 / -1;
    order: 10;
    border: 2px solid var(--why-ink);
    border-radius: 14px;
    background: #fff;
    animation: sf-why-open 0.2s ease;
}

.sf-why-panel[hidden] {
    display: none;
}

@keyframes sf-why-open {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sf-why-panel { animation: none; }
    .sf-why-card, .sf-why-more i { transition: none; }
}

.sf-why-panel-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title title" "list cta";
    gap: 14px 32px;
    align-items: end;
    padding: 22px 24px;
}

.sf-why-panel-body h3 {
    grid-area: title;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--why-ink);
}

.sf-why-panel-body ul {
    grid-area: list;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-why-panel-body li {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

.sf-why-panel-body li i {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--why-bg);
    color: var(--why-ink);
}

.sf-why-panel-body li strong {
    color: var(--text);
}

.sf-why-panel-body .btn {
    grid-area: cta;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .sf-why-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .sf-why-card {
        padding: 16px;
    }

    .sf-why-card[aria-expanded="true"]::after {
        display: none;
    }

    .sf-why-cards > .sf-why-card.sf-why-value { order: 1; }
    .sf-why-cards > .sf-why-panel.sf-why-value { order: 2; }
    .sf-why-cards > .sf-why-card.sf-why-choice { order: 3; }
    .sf-why-cards > .sf-why-panel.sf-why-choice { order: 4; }
    .sf-why-cards > .sf-why-card.sf-why-easy { order: 5; }
    .sf-why-cards > .sf-why-panel.sf-why-easy { order: 6; }

    .sf-why-panel-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "list" "cta";
        padding: 18px;
    }

    .sf-why-panel-body ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .sf-why-panel-body .btn {
        justify-self: start;
    }
}

/* ==========================================================================
   Admin edit mode: outlined wording that can be clicked and changed
   ========================================================================== */

.staff-bar nav button.is-on {
    background: var(--mustard);
    color: #1d2a22;
}

.emf-editing [data-emf-key] {
    outline: 2px dashed rgba(242, 179, 61, 0.9);
    outline-offset: 2px;
    border-radius: 3px;
    cursor: text;
}

.emf-editing [data-emf-key]:hover {
    outline-style: solid;
    background-color: rgba(242, 179, 61, 0.16);
}

.emf-editing {
    padding-bottom: 64px;
}

.emf-edit-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: #0e141d;
    color: #f4f1ea;
    font-size: 0.9rem;
    box-shadow: var(--shadow-hover);
}

.emf-edit-banner i {
    color: var(--mustard);
}

.emf-edit-banner span {
    flex: 1;
}

.emf-edit-banner a {
    color: var(--mustard);
    font-weight: 700;
    white-space: nowrap;
}

.emf-edit-dialog {
    width: min(520px, calc(100vw - 32px));
    border: 0;
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-hover);
}

.emf-edit-dialog::backdrop {
    background: rgba(14, 20, 29, 0.45);
}

.emf-edit-form {
    display: grid;
    gap: 12px;
}

.emf-edit-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.emf-edit-head strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.emf-edit-head code {
    color: var(--muted);
    font-size: 0.78rem;
}

.emf-edit-form label {
    display: grid;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.emf-edit-form textarea,
.emf-edit-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
    background: #fff;
}

.emf-edit-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.emf-edit-error {
    margin: 0;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.88rem;
}

.emf-edit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.emf-edit-actions span {
    flex: 1;
}

.site-text-table td {
    vertical-align: top;
}

.site-text-value {
    white-space: pre-line;
    max-width: 520px;
}

@media (max-width: 575.98px) {
    .emf-edit-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Product picture placeholder (shown when the catalogue has no photo)
   ========================================================================== */

.pimg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.pimg .pimg-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pimg-ph {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8%;
    overflow: hidden;
    border-radius: 12px;
    color: var(--tone-ink, var(--brand));
    background:
        radial-gradient(circle, rgba(29, 42, 34, 0.09) 1.2px, transparent 1.7px) 0 0 / 14px 14px,
        linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
        var(--tone-bg, #e0eee5);
    container-type: inline-size;
}

/* Two soft rings in the corners give the tile some depth. */
.pimg-ph::before,
.pimg-ph::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.09;
    pointer-events: none;
}

.pimg-ph::before {
    width: 70%;
    aspect-ratio: 1;
    top: -28%;
    right: -24%;
}

.pimg-ph::after {
    width: 46%;
    aspect-ratio: 1;
    bottom: -16%;
    left: -14%;
}

.pimg.is-missing .pimg-photo {
    display: none;
}

.pimg.is-missing .pimg-ph {
    display: flex;
}

.pimg .pimg-ph-art {
    position: relative;
    display: grid;
    place-items: center;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(64, 44, 14, 0.1), inset 0 0 0 6px rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease;
}

.pimg .pimg-ph-art img {
    width: 68%;
    height: 68%;
    aspect-ratio: auto;
    object-fit: contain;
    transform: rotate(-6deg);
    filter: drop-shadow(0 4px 4px rgba(29, 42, 34, 0.12));
}

.product-card:hover .pimg .pimg-ph-art {
    transform: scale(1.05) rotate(3deg);
}

.pimg-ph-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@container (max-width: 130px) {
    .pimg-ph-label {
        display: none;
    }
}

@container (min-width: 320px) {
    .pimg-ph-label {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

/* Small list pictures (basket, checkout, admin) swap to the category illustration. */
img.pimg-thumb-missing {
    object-fit: contain;
    padding: 12%;
    background: var(--tone-bg, #e0eee5);
    border-radius: 8px;
}

/* ------------------------------------------------------------ "Shop by category" on tablets and phones: smaller circles, more per row */

@media (max-width: 992px) {
    .sf-aisle-art {
        max-width: 92px;
    }
}

@media (max-width: 640px) {
    .sf-aisles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 8px;
    }

    .sf-aisle-art {
        max-width: 64px;
        margin-bottom: 4px;
    }

    .sf-aisle-art img {
        width: 60%;
        height: 60%;
    }

    .sf-aisle strong {
        font-size: 0.74rem;
        font-weight: 600;
        line-height: 1.2;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sf-aisle small {
        font-size: 0.66rem;
    }
}

@media (max-width: 360px) {
    .sf-aisle-art {
        max-width: 56px;
    }
}

/* ==========================================================================
   Home page shelves: featured brands and special offers
   ========================================================================== */

.sf-shelf {
    --shelf-a: #1f5d3f;
    --shelf-b: #2f8a5c;
    --shelf-glow: #f2b33d;
}

.sf-shelf.shelf-zer    { --shelf-a: #5b2a86; --shelf-b: #a23b72; --shelf-glow: #ffc857; }
.sf-shelf.shelf-abc    { --shelf-a: #1f5d3f; --shelf-b: #3f9a5f; --shelf-glow: #f2e36b; }
.sf-shelf.shelf-freez  { --shelf-a: #0b5f8a; --shelf-b: #20b3c9; --shelf-glow: #c8f4ff; }
.sf-shelf.shelf-offers { --shelf-a: #b8261a; --shelf-b: #ef6a2e; --shelf-glow: #ffd23f; }

.sf-shelf-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(120deg, var(--shelf-a), var(--shelf-b));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--shelf-a) 25%, transparent);
}

/* Soft light shapes behind the text. */
.sf-shelf-head::before,
.sf-shelf-head::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.sf-shelf-head::before {
    width: 240px;
    height: 240px;
    right: 90px;
    top: -150px;
    background: radial-gradient(circle, color-mix(in srgb, var(--shelf-glow) 45%, transparent), transparent 70%);
}

.sf-shelf-head::after {
    width: 160px;
    height: 160px;
    right: -40px;
    bottom: -90px;
    border: 18px solid rgba(255, 255, 255, 0.1);
}

.sf-shelf-icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    color: var(--shelf-glow);
    font-size: 1.6rem;
    transform: rotate(-6deg);
}

.sf-shelf-copy {
    position: relative;
    flex: 1;
    min-width: 0;
}

.sf-shelf-badge {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--shelf-glow);
    color: var(--shelf-a);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sf-shelf-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.sf-shelf-copy p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.sf-shelf-all {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--shelf-a);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.sf-shelf-all:hover {
    color: var(--shelf-a);
    transform: translateX(3px);
}

/* Two full rows of products: 10 on wide screens, 8 on laptops, 9 on tablets, 6 on phones. */
.shop-body .sf-shelf-grid {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .shop-body .sf-shelf-grid > .product-card:nth-child(n + 9) { display: none; }
}

@media (max-width: 992px) {
    .shop-body .sf-shelf-grid > .product-card:nth-child(n + 9) { display: flex; }
    .shop-body .sf-shelf-grid > .product-card:nth-child(n + 10) { display: none; }
}

@media (max-width: 640px) {
    .shop-body .sf-shelf-grid > .product-card:nth-child(n + 7) { display: none; }

    .sf-shelf-head {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .sf-shelf-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .sf-shelf-copy p {
        font-size: 0.85rem;
    }

    /* The button under the products does the job on phones. */
    .sf-shelf-head .sf-shelf-all {
        display: none;
    }
}

.sf-shelf-foot {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.sf-shelf-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border: 2px solid var(--shelf-a);
    border-radius: 999px;
    color: var(--shelf-a);
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sf-shelf-more small {
    padding: 2px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--shelf-a) 12%, transparent);
    font-size: 0.75rem;
    font-weight: 700;
}

.sf-shelf-more:hover {
    background: var(--shelf-a);
    color: #fff;
}

.sf-shelf-more:hover small {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    .sf-shelf-more {
        width: 100%;
        justify-content: center;
    }
}

/* Brand icon on the brand listing page header. */
.cat-infobar-icon.shelf-zer    { background: #f1e6fa; color: #5b2a86; }
.cat-infobar-icon.shelf-abc    { background: #e0eee5; color: #1f5d3f; }
.cat-infobar-icon.shelf-freez  { background: #dff4fa; color: #0b5f8a; }

/* "Also showing related products" under the search results heading. */
.search-related {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.search-related i {
    color: var(--mustard);
}

.search-related a {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    text-transform: capitalize;
}

.search-related a:hover {
    background: var(--brand);
    color: #fff;
}

/* ==========================================================================
   New-order alerts (staff only)
   ========================================================================== */

.staff-bar nav .staff-alert-toggle {
    padding: 6px 9px;
    font-size: 1rem;
    line-height: 1;
}

.staff-bar nav .staff-alert-toggle i {
    margin: 0;
}

.staff-bar nav .staff-alert-toggle.is-on {
    color: var(--mustard);
}

.staff-badge {
    display: inline-block;
    min-width: 20px;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e0532f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    animation: staff-badge-pop 0.3s ease;
}

.staff-badge[hidden] {
    display: none;
}

@keyframes staff-badge-pop {
    from { transform: scale(0.4); }
    to { transform: scale(1); }
}

.order-alerts {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1090;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.order-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    border-left: 5px solid #1f5d3f;
    border-radius: 12px;
    background: #fff;
    color: #1d2a22;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(14, 20, 29, 0.25);
    pointer-events: auto;
    animation: order-alert-in 0.35s ease;
}

.order-alert:hover {
    color: #1d2a22;
    background: #f6faf7;
}

@keyframes order-alert-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.order-alert-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e3efe6;
    color: #1f5d3f;
    font-size: 1.2rem;
}

.order-alert-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.order-alert-copy strong {
    font-size: 0.95rem;
}

.order-alert-copy span {
    color: #5d6a61;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-alert-close {
    flex: none;
    border: 0;
    background: transparent;
    color: #5d6a61;
    padding: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .order-alert,
    .staff-badge {
        animation: none;
    }
}

/* ==========================================================================
   Track my order
   ========================================================================== */

.track-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.track-card {
    padding: 24px;
}

.track-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.track-card h2 i {
    color: var(--brand);
}

.track-form {
    display: grid;
    gap: 14px;
}

.track-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.track-form input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(29, 42, 34, 0.2);
    border-radius: 10px;
    font: inherit;
    font-weight: 500;
    background: #fff;
}

.track-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.track-form .btn {
    justify-self: start;
    padding: 10px 22px;
}

.track-form .summary-note {
    margin: 0;
}

.track-error {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* "Your recent orders" replaces the help card when there are orders on this device. */
[data-recent-orders]:not([hidden]) ~ .track-help {
    display: none;
}

.track-recent {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.track-recent li {
    position: relative;
}

.track-recent a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 44px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.track-recent a:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(64, 44, 14, 0.08);
}

.track-recent-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}

.track-recent-copy {
    flex: 1;
    min-width: 0;
    display: grid;
}

.track-recent-copy small {
    color: var(--muted);
}

.track-recent-status {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f0f0ee;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.track-recent-status[data-state="Processing"] { background: var(--mustard-soft); color: #86560c; }
.track-recent-status[data-state="ReadyToCollect"],
.track-recent-status[data-state="OutForDelivery"] { background: var(--brand); color: #fff; }
.track-recent-status[data-state="Delivered"] { background: var(--brand-soft); color: var(--brand); }
.track-recent-status[data-state="Cancelled"] { background: var(--accent-soft); color: var(--accent-dark); }

.track-recent-forget {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    padding: 4px;
}

@media (max-width: 767.98px) {
    .track-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .track-card {
        padding: 18px;
    }

    .track-form .btn {
        justify-self: stretch;
    }

    .track-recent-status {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Customer order tracker: animated picture of the current stage + steps
   ========================================================================== */

.trk {
    margin: 20px 0 8px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #f4faf6, #fff 70%);
}

.trk-stage {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.trk-art-wrap {
    border-radius: 16px;
    background: linear-gradient(180deg, #e3f1f6, #f6fbf8);
    overflow: hidden;
}

.trk[data-scene="done"] .trk-art-wrap { background: linear-gradient(180deg, #e3efe6, #fbf6ec); }
.trk[data-scene="collect"] .trk-art-wrap { background: linear-gradient(180deg, #fff1d2, #fbf6ec); }

.trk-art {
    display: block;
    width: 100%;
    height: auto;
}

.trk-art g,
.trk-art path,
.trk-art rect,
.trk-art text {
    transform-box: fill-box;
}

.trk-copy h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    color: var(--brand-dark);
}

.trk-copy p {
    margin: 0;
    color: var(--muted);
}

/* Steps */
.trk-steps {
    --trk-progress: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.trk-steps::before,
.trk-steps::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 12.5%;
    height: 5px;
    border-radius: 999px;
}

.trk-steps::before {
    right: 12.5%;
    background: #e3e7e4;
}

.trk-steps::after {
    width: calc(75% * var(--trk-progress));
    background: linear-gradient(90deg, var(--brand), #3f9a5f);
    animation: trk-fill 1.2s ease-out both;
}

.trk-steps li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    text-align: center;
    color: var(--muted);
}

.trk-dot {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid #e3e7e4;
    background: #fff;
    font-size: 1.15rem;
}

.trk-steps li.is-done .trk-dot {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.trk-steps li.is-current .trk-dot {
    border-color: var(--brand);
    color: var(--brand);
    animation: trk-pulse 1.8s ease-out infinite;
}

.trk-steps strong {
    font-size: 0.9rem;
}

.trk-steps li.is-done strong,
.trk-steps li.is-current strong {
    color: var(--text);
}

.trk-steps small {
    font-size: 0.72rem;
}

@keyframes trk-fill {
    from { width: 0; }
}

@keyframes trk-pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 93, 63, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(31, 93, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 93, 63, 0); }
}

/* Placed: receipt lines print, then the tick pops */
.trk-receipt { animation: trk-float 3s ease-in-out infinite; }
.trk-line { transform-origin: left center; animation: trk-print 3.6s ease-out infinite; }
.trk-line-2 { animation-delay: 0.15s; }
.trk-line-3 { animation-delay: 0.3s; }
.trk-line-4 { animation-delay: 0.45s; }
.trk-line-5 { animation-delay: 0.6s; }
.trk-badge { transform-origin: center; animation: trk-pop 3.6s ease-out infinite; }

@keyframes trk-print {
    0% { transform: scaleX(0); }
    20%, 100% { transform: scaleX(1); }
}

@keyframes trk-pop {
    0%, 25% { transform: scale(0); }
    35% { transform: scale(1.15); }
    42%, 100% { transform: scale(1); }
}

@keyframes trk-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Preparing: products drop into the box, flaps wiggle */
.trk-drop { animation: trk-drop 3s cubic-bezier(0.5, 0, 0.75, 0) infinite; }
.trk-drop-2 { animation-delay: 0.9s; }
.trk-drop-3 { animation-delay: 1.8s; }
.trk-flap-l { transform-origin: right top; animation: trk-flap-l 1.5s ease-in-out infinite alternate; }
.trk-flap-r { transform-origin: left top; animation: trk-flap-r 1.5s ease-in-out infinite alternate; }
.trk-sparkle { transform-origin: center; animation: trk-twinkle 1.4s ease-in-out infinite; }

@keyframes trk-drop {
    0% { transform: translateY(-70px); opacity: 0; }
    15% { opacity: 1; }
    45% { transform: translateY(38px); opacity: 1; }
    55%, 100% { transform: translateY(38px); opacity: 0; }
}

@keyframes trk-flap-l { to { transform: rotate(-8deg); } }
@keyframes trk-flap-r { to { transform: rotate(8deg); } }

@keyframes trk-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Delivery: the van drives, road and clouds move */
.trk-road { animation: trk-road 0.6s linear infinite; }
.trk-clouds { animation: trk-clouds 9s linear infinite; }
.trk-vehicle { animation: trk-bob 0.35s ease-in-out infinite alternate; }
.trk-wheel { transform-origin: center; animation: trk-spin 0.6s linear infinite; }
.trk-speed { animation: trk-speed 0.6s ease-in-out infinite alternate; }

@keyframes trk-road { to { transform: translateX(-48px); } }
@keyframes trk-clouds { from { transform: translateX(40px); } to { transform: translateX(-60px); } }
@keyframes trk-bob { to { transform: translateY(-2px); } }
@keyframes trk-spin { to { transform: rotate(360deg); } }
@keyframes trk-speed { from { opacity: 0.25; transform: translateX(6px); } to { opacity: 1; transform: translateX(0); } }

/* Ready to collect: the bag bounces, the sign glows */
.trk-bag { transform-origin: center bottom; animation: trk-bounce 1.4s ease-in-out infinite; }
.trk-sign { animation: trk-glow 1.6s ease-in-out infinite; }

@keyframes trk-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    55% { transform: translateY(0) scaleY(0.94); }
}

@keyframes trk-glow { 50% { opacity: 0.55; } }

/* Done: the tick draws itself, confetti falls */
.trk[data-scene="done"] .trk-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: trk-draw 0.9s 0.3s ease-out forwards;
}

.trk-badge .trk-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: trk-draw-loop 3.6s ease-out infinite;
}

.trk-parcel { transform-origin: center bottom; animation: trk-float 2.4s ease-in-out infinite; }
.trk-confetti rect { transform-origin: center; animation: trk-confetti 2.6s ease-in infinite; }
.trk-confetti rect:nth-child(2) { animation-delay: 0.6s; }
.trk-confetti rect:nth-child(3) { animation-delay: 1.2s; }
.trk-confetti rect:nth-child(4) { animation-delay: 1.8s; }

@keyframes trk-draw { to { stroke-dashoffset: 0; } }

@keyframes trk-draw-loop {
    0%, 35% { stroke-dashoffset: 60; }
    55%, 100% { stroke-dashoffset: 0; }
}

@keyframes trk-confetti {
    0% { transform: translateY(-10px) rotate(0); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateY(90px) rotate(260deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .trk *,
    .trk-steps::after {
        animation: none !important;
    }

    .trk-check {
        stroke-dashoffset: 0 !important;
    }
}

@media (max-width: 640px) {
    .trk {
        padding: 16px;
    }

    .trk-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        text-align: center;
    }

    .trk-art-wrap {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }

    .trk-dot {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .trk-steps::before,
    .trk-steps::after {
        top: 17px;
    }

    .trk-steps strong {
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .trk-steps small {
        display: none;
    }
}

/* Out-of-stock apology on the customer's order page */
.oos-note {
    display: flex;
    gap: 14px;
    margin: 16px 0 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--mustard-soft);
    border: 1px solid rgba(242, 179, 61, 0.6);
    text-align: left;
}

.oos-note > i {
    font-size: 1.5rem;
    color: #b07a0e;
}

.oos-note h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.oos-note p {
    margin: 0 0 6px;
    color: var(--muted);
}

.oos-note ul {
    margin: 0 0 6px;
    padding-left: 18px;
}

/* Admin: out-of-stock removal and refunds */
.admin-print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.missing-input {
    width: 64px;
    padding: 4px 6px;
    border: 1px solid rgba(29, 42, 34, 0.25);
    border-radius: 6px;
    text-align: right;
    font: inherit;
}

tr.is-missing td {
    background: #fff4f0;
}

tr.is-missing .missing-input {
    border-color: #e0532f;
    color: #b63b1b;
    font-weight: 800;
}

.remove-items-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff4f0;
    border: 1px solid rgba(224, 83, 47, 0.35);
}

.remove-items-bar[hidden] {
    display: none;
}

.remove-items-copy {
    display: grid;
    gap: 4px;
}

.remove-items-copy strong {
    color: #b63b1b;
}

.removed-list,
.refund-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.removed-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.removed-list small {
    color: var(--muted);
}

.refund-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f6f4;
}

.refund-list li > div {
    display: grid;
    gap: 2px;
}

.refund-list small {
    color: var(--muted);
}

.refund-chip {
    justify-self: start;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #e3e7e4;
}

.refund-done .refund-chip { background: var(--brand-soft); color: var(--brand); }
.refund-failed .refund-chip { background: var(--accent-soft); color: var(--accent-dark); }
.refund-due .refund-chip { background: var(--mustard-soft); color: #86560c; }

.refund-list .refund-error {
    color: var(--accent-dark);
    font-weight: 600;
}
