/*
 * Hebe Yarn Studio storefront: palette, typography, notice bar, header, footer and
 * background texture, laid over the default Bagisto storefront build.
 * The approved design lives in public/mockup/hebe.css.
 */

/* ---------- Palette and typography ---------- */

:root {
    --hebe-paper: #f6e9e1;
    --hebe-paper-deep: #eedad0;
    --hebe-card: #fffaf5;
    --hebe-ink: #4a2f3a;
    --hebe-ink-soft: #7d6168;
    --hebe-teal: #5e8c87;
    --hebe-mustard: #d3a645;
    --hebe-rose: #d58e96;
    --hebe-moss: #8c9a5b;

    --hebe-display: "Fraunces", "Playfair Display", Georgia, serif;
    --hebe-body: "Nunito", "Be Vietnam Pro", system-ui, sans-serif;
    --hebe-hand: "Patrick Hand", "Nunito", cursive;

    --hebe-wrap: 1180px;
    --hebe-stitch: 2px dashed color-mix(in srgb, var(--hebe-ink) 38%, transparent);

    --hebe-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .18 0 0 0 0 .23 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    --hebe-knit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14'%3E%3Cpath d='M1.5 1.5l7.5 10 7.5-10' fill='none' stroke='%234a2f3a' stroke-opacity='.07' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --hebe-knit-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14'%3E%3Cpath d='M1.5 1.5l7.5 10 7.5-10' fill='none' stroke='%23f6e9e1' stroke-opacity='.1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --hebe-icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-1 11h-11z'/%3E%3Cpath d='M9 8.500V7a3 3 0 0 1 6 0v1.500'/%3E%3C/svg%3E");
}

body.hebe {
    background-color: var(--hebe-paper);
    background-image: var(--hebe-grain);
    color: var(--hebe-ink);
    font-family: var(--hebe-body);
    font-size: var(--hebe-font-size, 17px);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* The default build sets its own font on every element; let them inherit the Hebe ones instead */
:where(body.hebe) *,
:where(body.hebe) .font-poppins {
    font-family: inherit;
}

:where(body.hebe) :is(h1, h2, h3),
:where(body.hebe) .font-dmserif {
    font-family: var(--hebe-display);
    font-variation-settings: "SOFT" 100;
    letter-spacing: -0.01em;
}

/* Short pages still push the footer to the bottom of the window */
body.hebe #app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.hebe #main {
    flex: 1 0 auto;
    background-color: transparent;
}

body.hebe :focus-visible {
    outline: 3px solid var(--hebe-teal);
    outline-offset: 3px;
}

.hebe-sprite {
    position: absolute;
}

.hebe-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.hebe-wrap {
    width: 100%;
    max-width: var(--hebe-wrap);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- The default storefront's own colours, moved onto the Hebe palette ---------- */

body.hebe .text-navyBlue { color: var(--hebe-ink); }
body.hebe .bg-navyBlue { background-color: var(--hebe-ink); }
body.hebe .border-navyBlue { border-color: var(--hebe-ink); }
body.hebe .bg-lightOrange { background-color: var(--hebe-paper-deep); }

body.hebe .primary-button,
.hebe-button {
    border: 2px solid var(--hebe-ink);
    border-radius: 999px;
    background-color: var(--hebe-ink);
    color: var(--hebe-card);
    font-weight: 700;
    cursor: pointer;
}

body.hebe .primary-button:hover,
.hebe-button:hover {
    border-color: var(--hebe-teal);
    background-color: var(--hebe-teal);
    opacity: 1;
}

body.hebe .secondary-button {
    border: 2px solid var(--hebe-ink);
    border-radius: 999px;
    background-color: transparent;
    color: var(--hebe-ink);
    font-weight: 700;
}

body.hebe .secondary-button:hover {
    background-color: var(--hebe-card);
}

.hebe-button--quiet {
    background-color: transparent;
    color: var(--hebe-ink);
}

.hebe-button--quiet:hover {
    border-color: var(--hebe-ink);
    background-color: var(--hebe-card);
}

.hebe-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap;
}

/* ---------- Notice bar: the offer sewn on like a fabric label ---------- */

.hebe-notice {
    background-color: var(--hebe-ink);
    background-image: var(--hebe-knit-light);
    color: var(--hebe-paper);
    font-size: 0.9rem;
}

.hebe-notice .hebe-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hebe-notice__promo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 22px;
    min-width: 0;
}

.hebe-notice__deal {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-weight: 600;
}

.hebe-notice__also {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.hebe-notice__also svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--hebe-rose);
}

.hebe-notice__tag {
    position: relative;
    display: inline-block;
    padding: 7px 14px 7px 24px;
    border-radius: 5px 8px 8px 5px;
    outline: 1.5px dashed color-mix(in srgb, var(--hebe-ink) 55%, transparent);
    outline-offset: -4px;
    background-color: var(--hebe-mustard);
    color: var(--hebe-ink);
    font: 600 1.12rem/1 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
    white-space: nowrap;
    rotate: -3deg;
    transform-origin: 10px 50%;
    animation: hebe-tag-swing 5s ease-in-out infinite;
}

/* The eyelet the label's thread goes through */
.hebe-notice__tag::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background-color: var(--hebe-ink);
}

.hebe-notice__go {
    padding-bottom: 1px;
    border-bottom: 1.5px dashed currentColor;
}

.hebe-notice__tag--rose { background-color: var(--hebe-rose); }
.hebe-notice__tag--teal { background-color: var(--hebe-teal); color: var(--hebe-card); }
.hebe-notice__tag--moss { background-color: var(--hebe-moss); }
.hebe-notice__tag--still { animation: none; }

a.hebe-notice__deal:hover .hebe-notice__tag { filter: brightness(1.08); }

.hebe-notice__switchers {
    display: flex;
    flex: none;
    gap: 14px;
    margin-left: auto;
    white-space: nowrap;
}

.hebe-notice__switcher {
    display: flex;
    gap: 2px;
}

.hebe-notice__switcher a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2px 6px;
    opacity: 0.7;
}

.hebe-notice__switcher a:hover,
.hebe-notice__switcher a[aria-current] {
    opacity: 1;
}

.hebe-notice__switcher a[aria-current] {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hebe-notice__flag {
    flex: none;
    width: 21px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

@keyframes hebe-tag-swing {
    0%, 70%, 100% { rotate: -3deg; }
    78% { rotate: 4deg; }
    86% { rotate: -5deg; }
    93% { rotate: 1deg; }
}

/* ---------- Header: logo, categories, then search, account and cart ---------- */

.hebe-masthead {
    position: relative;
    z-index: 10;
}

.hebe-masthead__row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.hebe-logo {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    font: 600 1.75rem/1 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
    white-space: nowrap;
}

.hebe-logo svg {
    flex: none;
    width: 34px;
    height: 34px;
    color: var(--hebe-rose);
}

.hebe-logo small {
    display: block;
    margin-top: 3px;
    color: var(--hebe-ink-soft);
    font: 400 0.95rem var(--hebe-hand);
}

.hebe-logo__image {
    width: auto;
    max-width: 220px;
    height: 44px;
    object-fit: contain;
}

.hebe-nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 26px;
    min-width: 0;
    font-weight: 600;
}

.hebe-nav__item {
    position: relative;
}

.hebe-nav__item > a {
    display: block;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.hebe-nav__item > a:hover {
    border-bottom: var(--hebe-stitch);
}

.hebe-nav__item--narrow {
    display: none;
}

.hebe-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 20;
    min-width: 200px;
    padding: 8px 18px;
    border-radius: 14px;
    background-color: var(--hebe-card);
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--hebe-ink) 55%, transparent);
    font-weight: 400;
}

.hebe-nav__item:hover > .hebe-nav__sub,
.hebe-nav__item:focus-within > .hebe-nav__sub {
    display: block;
}

.hebe-nav__sub a {
    display: block;
    padding: 8px 0;
}

.hebe-nav__sub a:hover {
    color: var(--hebe-teal);
}

.hebe-tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.hebe-icon-btn,
.hebe-tools__cart .icon-cart {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--hebe-ink);
    cursor: pointer;
}

.hebe-icon-btn:hover,
.hebe-icon-btn[aria-expanded="true"],
.hebe-tools__cart .icon-cart:hover {
    background-color: var(--hebe-card);
}

.hebe-icon-btn svg {
    width: 23px;
    height: 23px;
}

.hebe-masthead__menu-toggle {
    display: none;
}

/* The mini cart keeps its default markup; its icon and counter are redrawn to match */
.hebe-tools__cart {
    position: relative;
}

.hebe-tools__cart .icon-cart::before {
    content: "";
    width: 23px;
    height: 23px;
    background-color: currentColor;
    -webkit-mask: var(--hebe-icon-bag) center / contain no-repeat;
    mask: var(--hebe-icon-bag) center / contain no-repeat;
}

.hebe-tools__cart .icon-cart + span {
    position: absolute;
    top: 2px;
    right: 0;
    left: auto;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: var(--hebe-mustard);
    color: var(--hebe-ink);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    pointer-events: none;
}

/* Search panel: opens below the magnifier */
.hebe-search {
    position: relative;
}

.hebe-search__panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: 380px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border-radius: 16px;
    background-color: var(--hebe-card);
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--hebe-ink) 55%, transparent);
}

.hebe-search.is-open .hebe-search__panel {
    display: block;
}

.hebe-search__field {
    position: relative;
    display: flex;
    align-items: center;
}

.hebe-search__field input {
    width: 100%;
    padding: 10px 44px 10px 18px;
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: var(--hebe-paper);
    color: var(--hebe-ink);
    font-size: 1rem;
}

.hebe-search__field input::placeholder {
    color: var(--hebe-ink-soft);
}

.hebe-search__field input:focus {
    border-color: var(--hebe-ink);
    outline: none;
}

.hebe-search__field input::-webkit-search-cancel-button {
    display: none;
}

.hebe-search__field button {
    position: absolute;
    right: 6px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--hebe-ink);
    cursor: pointer;
}

.hebe-search__field button svg {
    width: 19px;
    height: 19px;
}

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

.hebe-footer {
    margin-top: 56px;
    padding: 48px 0 32px;
    background-image: var(--hebe-knit);
}

.hebe-footer h3 {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Visit the shop: a small map, the address and directions, above the columns */
.hebe-visit {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
    padding: 12px 22px 12px 12px;
    border-radius: 16px;
    background-color: var(--hebe-card);
}

.hebe-visit__map {
    flex: none;
    width: 150px;
    height: 96px;
    overflow: hidden;
    border-radius: 10px;
}

.hebe-visit__map svg {
    width: 100%;
    height: 100%;
}

.hebe-visit__where {
    flex: 1;
    min-width: 0;
}

.hebe-visit__where h3 {
    margin-bottom: 2px;
    font-size: 1.15rem;
}

.hebe-visit__where p {
    color: var(--hebe-ink-soft);
    font-size: 0.95rem;
}

.hebe-visit__do {
    display: flex;
    flex: none;
    align-items: center;
    gap: 18px;
}

.hebe-visit .hebe-button {
    padding: 9px 20px;
    font-size: 0.95rem;
}

.hebe-footer__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.hebe-footer__brand {
    flex: 1.5 1 240px;
}

.hebe-footer__brand .hebe-logo {
    font-size: 1.45rem;
}

.hebe-footer__about {
    max-width: 34ch;
    margin-top: 14px;
    color: var(--hebe-ink-soft);
}

.hebe-footer__follow-title {
    margin: 22px 0 10px;
}

/* Round social buttons */
.hebe-follow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hebe-follow a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--hebe-ink);
    border-radius: 50%;
}

.hebe-follow a:hover {
    background-color: var(--hebe-ink);
    color: var(--hebe-card);
}

.hebe-follow svg {
    width: 22px;
    height: 22px;
}

.hebe-footer__links {
    display: grid;
    flex: 3 1 420px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-content: start;
    gap: 28px 32px;
}

.hebe-footer__links ul {
    display: grid;
    align-content: start;
    gap: 8px;
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.hebe-footer__links a:hover {
    color: var(--hebe-teal);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

.hebe-footer__fixed {
    flex: 1.3 1 220px;
}

.hebe-footer__fixed h3 {
    margin-bottom: 12px;
}

/* Buttons leading to the shop's Etsy and Ravelry stores */
.hebe-outlets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hebe-outlet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    border-radius: 999px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font-weight: 700;
}

.hebe-outlet i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--hebe-tone);
    color: #fff;
    font: 600 1.1rem/1 var(--hebe-display);
    font-style: normal;
}

.hebe-outlet:hover {
    outline: var(--hebe-stitch);
    outline-offset: 2px;
}

.hebe-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hebe-pay-icon {
    width: 51px;
    height: 32px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hebe-ink) 12%, transparent);
}

.hebe-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: var(--hebe-stitch);
    color: var(--hebe-ink-soft);
    font-size: 0.9rem;
}

/* ---------- Home page blocks ---------- */

.hebe-block {
    padding: 56px 0;
}

.hebe-block--flush {
    padding-top: 0;
}

.hebe-block h2,
.hebe-hero h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 500;
    line-height: 1.12;
}

.hebe-block h3 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.25;
}

.hebe-block__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.hebe-block__head p {
    max-width: 46ch;
    margin-top: 10px;
    color: var(--hebe-ink-soft);
}

.hebe-text-link {
    padding-bottom: 2px;
    border-bottom: var(--hebe-stitch);
    font-weight: 700;
    white-space: nowrap;
}

.hebe-text-link:hover {
    color: var(--hebe-teal);
}

.hebe-prose p {
    max-width: 62ch;
    margin: 12px 0 22px;
    color: var(--hebe-ink-soft);
}

/* Hero: the headline and the yarn shade card */
.hebe-hero {
    padding: 32px 0 56px;
}

.hebe-hero > .hebe-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
}

.hebe-hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.5rem);
    font-weight: 400;
    line-height: 1.12;
}

.hebe-hero__lead {
    max-width: 40ch;
    margin: 22px 0 30px;
    color: var(--hebe-ink-soft);
    font-size: 1.15rem;
}

.hebe-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hebe-hero__actions .hebe-button {
    padding: 14px 26px;
}

.hebe-shade-card {
    padding: 14px;
    border-radius: 10px;
    background-color: var(--hebe-card);
    box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px color-mix(in srgb, var(--hebe-ink) 55%, transparent);
    rotate: 1.2deg;
}

.hebe-shade-card__inner {
    padding: 26px 26px 22px;
    border: var(--hebe-stitch);
    border-radius: 6px;
}

.hebe-shade-card header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
}

.hebe-shade-card header h2 {
    font-size: 1.5rem;
}

.hebe-shade-card header span {
    color: var(--hebe-ink-soft);
    font: 1.05rem var(--hebe-hand);
}

.hebe-shade-card__chosen {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
}

.hebe-shade-card__chosen svg {
    width: 150px;
    height: 150px;
    color: var(--hebe-shade);
    transition: color 0.45s ease;
}

.hebe-shade-card__number {
    color: var(--hebe-ink-soft);
    font: 1.15rem var(--hebe-hand);
}

.hebe-shade-card__name {
    margin: 2px 0 6px;
    font: 500 2rem/1.1 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
}

.hebe-shade-card__facts {
    color: var(--hebe-ink-soft);
    font-size: 0.95rem;
}

.hebe-shade-card__price {
    margin: 10px 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

.hebe-shade-card .hebe-button {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.hebe-shades {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 10px;
    padding: 18px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
}

.hebe-shades button {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hebe-ink-soft);
    font: 0.95rem/1.2 var(--hebe-hand);
    cursor: pointer;
}

/* A sample of yarn wound round a card */
.hebe-shades__wound {
    display: block;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 12px;
    background:
        repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.28) 0 2px, rgba(0, 0, 0, 0.07) 2px 5px),
        var(--hebe-c);
    box-shadow: 0 3px 0 -1px rgba(74, 47, 58, 0.18);
    transition: translate 0.2s ease;
}

.hebe-shades button:hover .hebe-shades__wound {
    translate: 0 -3px;
}

.hebe-shades button[aria-pressed="true"] {
    color: var(--hebe-ink);
}

.hebe-shades button[aria-pressed="true"] .hebe-shades__wound {
    outline: 2px solid var(--hebe-ink);
    outline-offset: 3px;
}

/* Category tiles: a paper label wrapped round a ball of yarn */
.hebe-bands {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hebe-band {
    position: relative;
    padding: 26px 22px 24px;
    border-top: 10px solid var(--hebe-tone);
    border-radius: 4px 4px 14px 14px;
    background-color: var(--hebe-card);
}

.hebe-band::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: var(--hebe-stitch);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    pointer-events: none;
}

.hebe-band--rose, .hebe-product--rose { --hebe-tone: var(--hebe-rose); }
.hebe-band--teal, .hebe-product--teal { --hebe-tone: var(--hebe-teal); }
.hebe-band--mustard, .hebe-product--mustard { --hebe-tone: var(--hebe-mustard); }
.hebe-band--moss, .hebe-product--moss { --hebe-tone: var(--hebe-moss); }

.hebe-band p {
    margin-top: 8px;
    color: var(--hebe-ink-soft);
    font-size: 0.95rem;
}

.hebe-band__note {
    display: block;
    margin-top: 16px;
    color: var(--hebe-ink-soft);
    font: 1rem var(--hebe-hand);
}

a.hebe-band:hover h3 {
    color: var(--hebe-teal);
}

/* Product cards */
.hebe-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 22px;
}

.hebe-product__photo {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    background-color: color-mix(in srgb, var(--hebe-tone) 22%, var(--hebe-card));
}

.hebe-product__photo svg {
    width: 58%;
    aspect-ratio: 1;
    color: var(--hebe-tone);
}

.hebe-product__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hebe-product__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: var(--hebe-card);
    font: 0.95rem var(--hebe-hand);
}

.hebe-block .hebe-product h3 {
    margin-top: 14px;
    font-size: 1.15rem;
}

.hebe-product:hover h3 {
    color: var(--hebe-teal);
}

.hebe-product__meta {
    color: var(--hebe-ink-soft);
    font-size: 0.9rem;
}

.hebe-product__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.hebe-product__price {
    font-weight: 700;
}

/* Stock status on a product card */
.hebe-avail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--hebe-teal);
    font-size: 0.88rem;
    font-weight: 700;
}

.hebe-avail::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.hebe-avail--out {
    color: var(--hebe-ink-soft);
}

.hebe-product--sold-out .hebe-product__photo svg,
.hebe-product--sold-out .hebe-product__photo img {
    opacity: 0.3;
    filter: grayscale(1);
}

.hebe-product--sold-out h3,
.hebe-product--sold-out .hebe-product__price {
    color: var(--hebe-ink-soft);
}

/* Other marketplaces and social networks */
.hebe-elsewhere {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 26px;
}

.hebe-elsewhere__panel {
    padding: 34px;
    border-radius: 18px;
    background-color: var(--hebe-card);
}

.hebe-elsewhere__panel > p {
    max-width: 44ch;
    margin: 10px 0 22px;
    color: var(--hebe-ink-soft);
}

.hebe-elsewhere__shops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hebe-elsewhere__shop {
    display: block;
    padding: 18px;
    border: var(--hebe-stitch);
    border-radius: 14px;
}

.hebe-elsewhere__shop:hover {
    background-color: var(--hebe-paper);
}

.hebe-outlet--bare {
    padding: 0;
    background: none;
}

.hebe-elsewhere__shop i {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.hebe-elsewhere__shop strong {
    display: block;
    font: 500 1.25rem/1.2 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
}

.hebe-elsewhere__shop > span:last-child {
    display: block;
    margin-top: 4px;
    color: var(--hebe-ink-soft);
    font-size: 0.93rem;
}

.hebe-elsewhere__handles a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 16%, transparent);
}

.hebe-elsewhere__handles li:last-child a {
    border-bottom: 0;
}

.hebe-elsewhere__handles svg {
    flex: none;
    width: 26px;
    height: 26px;
}

.hebe-elsewhere__handles strong {
    flex: 1;
}

.hebe-elsewhere__handles span {
    color: var(--hebe-ink-soft);
    font: 1.05rem var(--hebe-hand);
}

.hebe-elsewhere__handles a:hover strong {
    color: var(--hebe-teal);
}

@media (max-width: 980px) {
    .hebe-hero > .hebe-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hebe-bands,
    .hebe-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .hebe-block {
        padding: 40px 0;
    }

    .hebe-block--flush {
        padding-top: 0;
    }

    .hebe-block__head {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .hebe-shade-card {
        padding: 8px;
        rotate: none;
    }

    .hebe-shade-card__inner {
        padding: 18px 14px;
    }

    .hebe-shade-card__chosen {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }

    .hebe-shade-card__chosen svg {
        width: 96px;
        height: 96px;
    }

    .hebe-shade-card__name {
        font-size: 1.5rem;
    }

    .hebe-shades {
        grid-template-columns: repeat(4, 1fr);
    }

    .hebe-elsewhere__panel {
        padding: 24px 20px;
    }

    .hebe-elsewhere__shops {
        grid-template-columns: 1fr;
    }

    .hebe-products {
        gap: 20px 14px;
    }
}

/* ---------- Category pages: breadcrumb, filters, sort, grid, pages ---------- */

.hebe-crumbs {
    display: flex;
    flex-wrap: wrap;
    padding-top: 6px;
    color: var(--hebe-ink-soft);
    font-size: 0.92rem;
}

.hebe-crumbs > * + *::before {
    content: "/";
    margin: 0 10px;
    opacity: 0.6;
}

.hebe-crumbs a:hover {
    color: var(--hebe-teal);
}

.hebe-crumbs [aria-current] {
    color: var(--hebe-ink);
}

.hebe-category__head {
    padding: 26px 0 34px;
}

.hebe-category__head h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 400;
    line-height: 1.12;
}

.hebe-category__lead {
    max-width: 58ch;
    margin-top: 12px;
    color: var(--hebe-ink-soft);
    font-size: 1.08rem;
}

.hebe-category__body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 44px;
    padding-bottom: 56px;
}

.hebe-filters__toggle {
    display: none;
}

.hebe-filters__form h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.hebe-filters fieldset {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
}

.hebe-filters legend {
    margin-bottom: 10px;
    padding: 0;
    font: 500 1.12rem var(--hebe-display);
    font-variation-settings: "SOFT" 100;
}

.hebe-filters fieldset > label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    cursor: pointer;
}

.hebe-filters input[type="checkbox"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--hebe-teal);
}

.hebe-filters__range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hebe-filters__range label {
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.hebe-filters__range input,
.hebe-category__sort select {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 12px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font-size: 1rem;
}

.hebe-filters__range input:focus,
.hebe-category__sort select:focus {
    border-color: var(--hebe-teal);
}

.hebe-filters__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding-top: 18px;
}

.hebe-category__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hebe-category__tabs a {
    padding: 8px 18px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 999px;
    font-weight: 700;
}

.hebe-category__tabs a:hover {
    background-color: var(--hebe-card);
}

.hebe-category__tabs a[aria-current] {
    border-color: var(--hebe-ink);
    background-color: var(--hebe-ink);
    color: var(--hebe-card);
}

.hebe-category__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 18px 0 26px;
    padding-bottom: 16px;
    border-bottom: var(--hebe-stitch);
}

.hebe-category__count {
    color: var(--hebe-ink-soft);
    font-size: 0.95rem;
}

.hebe-category__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hebe-category__sort label {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.hebe-category__sort select {
    width: auto;
    padding: 9px 14px;
}

.hebe-products--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hebe-category .hebe-product h3 {
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
}

.hebe-avail--low {
    color: #a8741a;
}

.hebe-empty {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 48px 20px;
    border: var(--hebe-stitch);
    border-radius: 18px;
    color: var(--hebe-ink-soft);
    text-align: center;
}

.hebe-empty svg {
    width: 72px;
    height: 72px;
    color: var(--hebe-rose);
}

.hebe-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 44px;
}

.hebe-pages a,
.hebe-pages span {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
}

.hebe-pages a:hover {
    background-color: var(--hebe-card);
}

.hebe-pages [aria-current] {
    border: var(--hebe-stitch);
    background-color: var(--hebe-card);
}

.hebe-pages span:not([aria-current]) {
    color: var(--hebe-ink-soft);
}

@media (max-width: 980px) {
    .hebe-category__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hebe-filters__toggle {
        display: inline-block;
    }

    .hebe-filters__form {
        display: none;
        margin-top: 12px;
        padding: 4px 18px 18px;
        border-radius: 16px;
        background-color: var(--hebe-card);
    }

    .hebe-category__body.is-open .hebe-filters__form {
        display: block;
    }

    .hebe-filters__form h2 {
        display: none;
    }

    .hebe-products--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hebe-category__sort {
        width: 100%;
    }

    .hebe-category__sort select {
        flex: 1;
    }

    .hebe-pages a,
    .hebe-pages span {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
    }
}

/* ---------- Product page: photo, buy panel, details, yarn calculator ---------- */

.hebe-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
    padding: 26px 0 56px;
}

.hebe-detail__photo {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 18px;
    background-color: color-mix(in srgb, var(--hebe-tone) 22%, var(--hebe-card));
    transition: background-color 0.45s ease;
}

.hebe-detail__photo > svg {
    width: 56%;
    aspect-ratio: 1;
    color: var(--hebe-tone);
    transition: color 0.45s ease;
}

.hebe-detail__photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hebe-detail__thumbs {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.hebe-detail__thumbs button {
    flex: none;
    width: 64px;
    height: 64px;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--hebe-card);
    border-radius: 10px;
    cursor: pointer;
}

.hebe-detail__thumbs button[aria-pressed="true"] {
    border-color: var(--hebe-ink);
}

.hebe-detail__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hebe-buy h1 {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 400;
    line-height: 1.12;
}

.hebe-buy__lead {
    max-width: 48ch;
    margin-top: 10px;
    color: var(--hebe-ink-soft);
}

.hebe-buy__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin-top: 16px;
}

.hebe-buy__price strong {
    font: 500 1.9rem/1.1 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
}

.hebe-buy__price span,
.hebe-buy__note {
    color: var(--hebe-ink-soft);
}

.hebe-buy__note {
    margin-top: 6px;
    font-size: 0.92rem;
}

.hebe-buy__part {
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
}

.hebe-buy__part + .hebe-buy__part,
.hebe-stitched + .hebe-buy__part {
    margin-top: 0;
}

.hebe-buy__label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hebe-hand {
    color: var(--hebe-ink-soft);
    font: 400 1.05rem var(--hebe-hand);
}

.hebe-shades--plain {
    padding-top: 4px;
    border-top: 0;
}

.hebe-shades button.is-sold-out .hebe-shades__wound {
    opacity: 0.35;
}

.hebe-shades button.is-sold-out {
    text-decoration: line-through;
}

.hebe-stitched {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: var(--hebe-stitch);
    border-radius: 12px;
}

.hebe-stitched p {
    margin-top: 4px;
    color: var(--hebe-ink-soft);
    font-size: 0.92rem;
}

.hebe-buy__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hebe-buy .hebe-button {
    padding: 14px 26px;
}

.hebe-button:disabled {
    border-color: var(--hebe-ink-soft);
    background-color: var(--hebe-ink-soft);
    cursor: not-allowed;
}

.hebe-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--hebe-ink);
    border-radius: 999px;
    background-color: var(--hebe-card);
}

.hebe-stepper button {
    width: 44px;
    height: 48px;
    border: 0;
    background: none;
    color: var(--hebe-ink);
    font-size: 1.3rem;
    cursor: pointer;
}

.hebe-stepper button:disabled {
    opacity: 0.35;
    cursor: default;
}

.hebe-stepper input {
    width: 52px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hebe-ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.hebe-stepper input::-webkit-outer-spin-button,
.hebe-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.hebe-stock {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.95rem;
}

.hebe-stock::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--hebe-moss);
    translate: 0 -1px;
}

.hebe-stock--out::before {
    background-color: var(--hebe-ink-soft);
}

.hebe-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    align-items: start;
    gap: 56px;
}

.hebe-block .hebe-section-title {
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.hebe-spec {
    width: 100%;
    border-collapse: collapse;
}

.hebe-spec th,
.hebe-spec td {
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
    text-align: left;
    vertical-align: top;
}

.hebe-spec th {
    width: 38%;
    padding-right: 16px;
    color: var(--hebe-ink-soft);
    font-weight: 600;
}

.hebe-shade-card--flat {
    rotate: none;
}

.hebe-calc h2 {
    font-size: 1.5rem;
}

.hebe-calc p {
    margin: 8px 0 18px;
    color: var(--hebe-ink-soft);
}

.hebe-calc label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.hebe-calc select {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 12px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font-size: 1rem;
}

.hebe-calc .hebe-calc__spare {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.hebe-calc__spare input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--hebe-teal);
}

.hebe-calc output {
    display: block;
    margin: 18px 0 16px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
}

.hebe-calc output strong {
    display: block;
    font: 500 1.7rem/1.2 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
}

.hebe-prose--rich > :not(h2) {
    max-width: 68ch;
    margin-top: 12px;
    color: var(--hebe-ink-soft);
}

.hebe-sticky-buy {
    display: none;
}

@media (max-width: 980px) {
    .hebe-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hebe-split {
        gap: 36px;
    }
}

@media (max-width: 560px) {
    .hebe-buy__actions > .hebe-button {
        flex: 1;
    }

    /* The buy button follows the shopper down the page once the main one scrolls away */
    .hebe-sticky-buy {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: var(--hebe-stitch);
        background-color: var(--hebe-card);
    }

    .hebe-sticky-buy strong {
        font: 500 1.3rem var(--hebe-display);
    }

    .hebe-sticky-buy .hebe-button {
        padding: 10px 20px;
    }
}

/* ---------- Search: suggestions under the header field, and the results page ---------- */

.hebe-suggest {
    margin-top: 8px;
    font-weight: 400;
}

.hebe-suggest p {
    padding: 4px 8px 6px;
    color: var(--hebe-ink-soft);
    font: 1rem var(--hebe-hand);
}

.hebe-suggest a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
}

.hebe-suggest a:hover,
.hebe-suggest a:focus-visible {
    background-color: var(--hebe-paper);
}

.hebe-suggest .hebe-avail {
    flex: none;
    margin: 0 0 0 auto;
}

.hebe-suggest .hebe-suggest__all {
    margin-top: 6px;
    padding-top: 12px;
    border-top: var(--hebe-stitch);
    border-radius: 0;
    font-weight: 700;
}

.hebe-search-page {
    padding-bottom: 56px;
}

.hebe-search-form {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 18px;
}

.hebe-search-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 22px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 999px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font-size: 1rem;
}

.hebe-search-form input:focus {
    border-color: var(--hebe-teal);
}

.hebe-search-form .hebe-button {
    flex: none;
}

.hebe-empty--left {
    justify-items: start;
    text-align: left;
}

.hebe-empty h2 {
    color: var(--hebe-ink);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 500;
}

.hebe-empty h3 {
    margin-top: 8px;
    color: var(--hebe-ink);
    font-size: 1.15rem;
    font-weight: 500;
}

.hebe-empty ul {
    display: grid;
    gap: 6px;
    padding-left: 20px;
    list-style: disc;
}

.hebe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hebe-chips a {
    padding: 8px 18px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 999px;
    color: var(--hebe-ink);
    font-weight: 700;
}

.hebe-chips a:hover {
    background-color: var(--hebe-card);
}

@media (max-width: 560px) {
    .hebe-suggest {
        display: none;
        padding: 8px;
        border-radius: 14px;
        background-color: var(--hebe-card);
    }

    .hebe-search:focus-within .hebe-suggest {
        display: block;
    }

    .hebe-search-form input {
        padding: 12px 18px;
    }

    .hebe-search-form .hebe-button {
        padding: 12px 20px;
    }
}

/* ---------- Tinted blocks: a scalloped edge like a crocheted border ---------- */

.hebe-tinted {
    position: relative;
    background-color: var(--hebe-paper-deep);
    background-image: var(--hebe-grain);
}

.hebe-tinted::before,
.hebe-tinted::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 11px;
    background-position: center top;
    background-repeat: repeat-x;
    background-size: 26px 11px;
    pointer-events: none;
}

.hebe-tinted::before {
    bottom: 100%;
    background-image: radial-gradient(circle at 50% 100%, var(--hebe-paper-deep) 10.5px, transparent 11px);
}

.hebe-tinted::after {
    top: 100%;
    background-image: radial-gradient(circle at 50% 0, var(--hebe-paper-deep) 10.5px, transparent 11px);
}

/* ---------- Background textures switched off in the admin settings ---------- */

body.hebe--no-grain,
.hebe--no-grain .hebe-tinted {
    background-image: none;
}

.hebe--no-knit .hebe-notice,
.hebe--no-knit .hebe-footer {
    background-image: none;
}

.hebe--no-scallop .hebe-tinted::before,
.hebe--no-scallop .hebe-tinted::after {
    display: none;
}

/* ---------- Narrower screens ---------- */

/* The line under the logo only shows where there is room for it */
@media (max-width: 1280px) {
    .hebe-masthead .hebe-logo small { display: none; }
    .hebe-nav { column-gap: 20px; }
}

/* The categories fold into the menu button before the rest of the page narrows */
@media (max-width: 1120px) {
    .hebe-masthead__row {
        flex-wrap: wrap;
        gap: 12px 14px;
    }

    .hebe-masthead__menu-toggle {
        display: grid;
        background-color: var(--hebe-card);
    }

    .hebe-masthead .hebe-logo { margin-right: auto; }

    .hebe-nav { display: none; }

    .hebe-masthead__row.is-open .hebe-nav {
        display: flex;
        flex: 1 0 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        order: 10;
        gap: 0;
        padding: 8px 18px;
        border-radius: 14px;
        background-color: var(--hebe-card);
    }

    .hebe-nav__item,
    .hebe-nav__item--narrow {
        display: block;
        border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 14%, transparent);
    }

    .hebe-nav__item:last-child { border-bottom: 0; }

    .hebe-nav__item > a {
        padding: 12px 0;
        border-bottom: 0;
        white-space: normal;
    }

    .hebe-nav__item > a:hover { border-bottom: 0; }

    .hebe-nav__sub {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 8px 16px;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
}

@media (max-width: 980px) {
    .hebe-visit { flex-wrap: wrap; }
    .hebe-visit__do { flex: 1 0 100%; }
}

@media (max-width: 900px) {
    .hebe-notice__also { display: none; }
    .hebe-notice__switcher a { padding: 2px 4px; }
}

@media (max-width: 560px) {
    body.hebe { font-size: calc(var(--hebe-font-size, 17px) - 1px); }

    .hebe-wrap { padding: 0 16px; }

    .hebe-notice .hebe-wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
    }

    .hebe-notice__promo { justify-content: center; }
    .hebe-notice__deal { justify-content: center; }
    .hebe-notice__go { display: none; }
    .hebe-notice--quiet-on-mobile .hebe-notice__promo { display: none; }
    .hebe-notice__tag { font-size: 1rem; }

    .hebe-masthead__row {
        gap: 12px 6px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .hebe-masthead .hebe-logo {
        gap: 6px;
        font-size: 1.05rem;
    }

    .hebe-masthead .hebe-logo svg {
        width: 26px;
        height: 26px;
    }

    .hebe-logo__image { height: 34px; max-width: 150px; }

    .hebe-icon-btn,
    .hebe-tools__cart .icon-cart {
        width: 40px;
        height: 40px;
    }

    .hebe-tools { display: contents; }

    .hebe-search__toggle,
    .hebe-tools__compare {
        display: none;
    }

    /* On phones the search field is always shown, on a row of its own */
    .hebe-search {
        flex: 1 0 100%;
        order: 5;
    }

    .hebe-search__panel {
        display: block;
        position: static;
        width: auto;
        max-width: none;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .hebe-search__field input { background-color: var(--hebe-card); }

    .hebe-footer { margin-top: 40px; padding-top: 36px; }

    .hebe-visit {
        gap: 14px;
        padding: 12px;
    }

    .hebe-visit__map {
        width: 96px;
        height: 80px;
    }
}

/* Very narrow phones (320px): shrink further so the logo and buttons stay on one row */
@media (max-width: 360px) {
    .hebe-masthead__row { gap: 12px 4px; }

    .hebe-masthead .hebe-logo {
        flex: 0 1 auto;
        gap: 5px;
        min-width: 0;
        font-size: 0.92rem;
    }

    .hebe-masthead .hebe-logo span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hebe-masthead .hebe-logo svg {
        width: 22px;
        height: 22px;
    }

    .hebe-icon-btn,
    .hebe-tools__cart .icon-cart {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hebe-notice__tag { animation: none; }

    body.hebe * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Cart page ---------- */

.hebe-cart {
    padding-bottom: 64px;
}

.hebe-cart__head {
    padding: 26px 0 34px;
}

.hebe-cart__head h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 400;
}

.hebe-cart__head p {
    margin-top: 12px;
    color: var(--hebe-ink-soft);
    font-size: 1.08rem;
}

.hebe-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 44px;
    align-items: start;
}

.hebe-cart__aside {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 16px;
}

.hebe-lines {
    margin: 0;
    padding: 0;
    border-top: var(--hebe-stitch);
    list-style: none;
}

.hebe-lines[aria-busy="true"] {
    opacity: 0.7;
}

.hebe-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 6px 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: var(--hebe-stitch);
}

.hebe-line__thumb,
.hebe-drawer-lines__thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--hebe-tone) 22%, var(--hebe-card));
    color: var(--hebe-tone);
}

.hebe-line__thumb {
    width: 96px;
}

.hebe-line__thumb svg,
.hebe-drawer-lines__thumb svg {
    width: 60%;
    height: 60%;
}

.hebe-line__thumb img,
.hebe-drawer-lines__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hebe-line h3 {
    font-size: 1.15rem;
}

.hebe-line h3 a:hover {
    color: var(--hebe-teal);
}

.hebe-line__meta {
    margin-top: 2px;
    color: var(--hebe-ink-soft);
    font-size: 0.92rem;
}

.hebe-line .hebe-hand {
    margin-top: 2px;
}

.hebe-line__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 12px;
}

.hebe-line__total {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.hebe-line__total small {
    display: block;
    color: var(--hebe-ink-soft);
    font-size: 0.88rem;
    font-weight: 400;
}

.hebe-stepper--small button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.hebe-stepper--small input {
    width: 36px;
    font-size: 1rem;
}

.hebe-remove {
    padding: 0 0 1px;
    border: 0;
    border-bottom: var(--hebe-stitch);
    background: none;
    color: var(--hebe-ink-soft);
    font: 600 0.95rem var(--hebe-body);
    cursor: pointer;
}

.hebe-remove:hover {
    color: var(--hebe-ink);
}

.hebe-cart__status:not(:empty) {
    margin-top: 14px;
    color: #a8741a;
    font-weight: 600;
}

.hebe-cart__notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.hebe-cart__notes .hebe-stitched {
    margin-bottom: 0;
    padding: 18px 22px;
}

.hebe-offer p {
    margin: 0 0 10px;
    color: var(--hebe-ink);
    font-size: 1rem;
}

.hebe-offer--applied {
    border-color: var(--hebe-teal);
}

.hebe-offer--applied p {
    margin-bottom: 0;
    color: var(--hebe-teal);
    font-weight: 700;
}

.hebe-cart__continue {
    margin-top: 28px;
}

.hebe-sheet {
    padding: 10px;
    border-radius: 14px;
    background-color: var(--hebe-card);
}

.hebe-sheet__inner {
    padding: 24px;
    border: var(--hebe-stitch);
    border-radius: 9px;
}

.hebe-summary h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.hebe-sum-rows {
    margin: 0;
}

.hebe-sum-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 7px 0;
}

.hebe-sum-rows dt {
    color: var(--hebe-ink-soft);
}

.hebe-sum-rows dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.hebe-sum-rows .hebe-sum-rows__grand {
    margin-top: 10px;
    padding-top: 16px;
    border-top: var(--hebe-stitch);
}

.hebe-sum-rows__grand dt {
    color: var(--hebe-ink);
    font-weight: 700;
}

.hebe-sum-rows__grand dd {
    font: 500 1.6rem/1.1 var(--hebe-display);
}

.hebe-summary__fine {
    margin-top: 12px;
    color: var(--hebe-ink-soft);
    font-size: 0.88rem;
}

.hebe-button--wide {
    display: block;
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

.hebe-summary .hebe-pay {
    margin-top: 14px;
}

.hebe-coupon {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
    padding: 18px 22px;
}

.hebe-coupon label {
    font-weight: 700;
}

.hebe-coupon__form {
    display: flex;
    gap: 8px;
}

.hebe-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 16px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 999px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font-size: 1rem;
    text-transform: uppercase;
}

.hebe-input:focus {
    border-color: var(--hebe-teal);
}

.hebe-coupon__form .hebe-button {
    flex: none;
    padding: 10px 18px;
}

.hebe-coupon__applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hebe-coupon__hint {
    color: var(--hebe-ink-soft);
    font-size: 0.9rem;
}

.hebe-coupon__hint--error {
    color: #a3473f;
    font-weight: 600;
}

.hebe-cart__empty {
    padding: 30px 0 10px;
    text-align: center;
}

.hebe-cart__empty-art {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin: 0 auto 22px;
    border: var(--hebe-stitch);
    border-radius: 50%;
    color: var(--hebe-rose);
}

.hebe-cart__empty-art svg {
    width: 62%;
    height: 62%;
    opacity: 0.55;
}

.hebe-cart__empty h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.hebe-cart__empty > div > p {
    max-width: 46ch;
    margin: 12px auto 0;
    color: var(--hebe-ink-soft);
    font-size: 1.08rem;
}

.hebe-cart__shelves {
    margin-top: 40px;
    text-align: left;
}

/* ---------- Sliding cart ---------- */

html.hebe-drawer-open {
    overflow: hidden;
}

.hebe-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: color-mix(in srgb, var(--hebe-ink) 45%, transparent);
}

.hebe-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 420px;
    max-width: 100vw;
    padding: 22px 24px 24px;
    background-color: var(--hebe-paper);
    color: var(--hebe-ink);
    translate: 100% 0;
    visibility: hidden;
    transition: translate 0.28s ease, visibility 0s 0.28s;
}

.hebe-cart-drawer.is-open {
    translate: 0 0;
    visibility: visible;
    transition: translate 0.28s ease;
}

.hebe-cart-drawer:focus {
    outline: none;
}

.hebe-cart-drawer > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: var(--hebe-stitch);
}

.hebe-cart-drawer h2 {
    font-size: 1.5rem;
}

.hebe-drawer-lines {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.hebe-drawer-lines li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 14%, transparent);
}

.hebe-drawer-lines__thumb {
    flex: none;
    width: 58px;
    border-radius: 10px;
}

.hebe-drawer-lines__what {
    flex: 1;
    min-width: 0;
}

.hebe-drawer-lines__what a {
    display: block;
    font-weight: 700;
}

.hebe-drawer-lines__what a:hover {
    color: var(--hebe-teal);
}

.hebe-drawer-lines__what small {
    color: var(--hebe-ink-soft);
    font-size: 0.9rem;
}

.hebe-drawer-lines .is-just-added small {
    color: var(--hebe-teal);
    font-weight: 700;
}

.hebe-drawer-lines__amount {
    font-weight: 700;
    white-space: nowrap;
}

.hebe-drawer-empty {
    flex: 1;
    padding: 24px 0;
    color: var(--hebe-ink-soft);
}

.hebe-drawer-note {
    padding: 12px 0 0;
    color: var(--hebe-ink-soft);
    font: 1.05rem var(--hebe-hand);
}

.hebe-drawer-total {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 12px 0;
    font-weight: 700;
}

.hebe-drawer-total dd {
    margin: 0;
}

.hebe-cart-drawer > footer {
    display: grid;
    gap: 10px;
}

.hebe-cart-drawer > footer .hebe-button {
    text-align: center;
}

.hebe-drawer-continue {
    padding: 8px;
    border: 0;
    background: none;
    color: var(--hebe-ink);
    font: 700 1rem var(--hebe-body);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .hebe-cart__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hebe-cart__aside {
        position: static;
    }
}

@media (max-width: 560px) {
    .hebe-cart__head {
        padding: 20px 0 26px;
    }

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

    .hebe-sheet__inner {
        padding: 18px 14px;
    }

    .hebe-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 6px 14px;
    }

    .hebe-line__thumb {
        width: 72px;
    }

    .hebe-line__total {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }

    .hebe-line__total small {
        display: inline;
        margin-left: 6px;
    }

    .hebe-coupon__form {
        flex-wrap: wrap;
    }

    .hebe-coupon__form .hebe-input,
    .hebe-coupon__form .hebe-button {
        flex: 1 1 100%;
    }

    .hebe-cart-drawer {
        padding: 18px 16px 20px;
    }
}

/* ---------- Checkout ---------- */

.hebe-form-part {
    padding: 30px 0;
    border-top: var(--hebe-stitch);
}

.hebe-form-part:first-child {
    padding-top: 0;
    border-top: 0;
}

.hebe-form-part h2 {
    font-size: 1.5rem;
}

.hebe-form-part > p {
    margin-top: 6px;
    color: var(--hebe-ink-soft);
}

.hebe-form-part__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 20px;
}

.hebe-form-part .hebe-fields,
.hebe-form-part .hebe-options {
    margin-top: 18px;
}

.hebe-form-part__note {
    margin-top: 14px;
    padding: 14px 18px;
    border: var(--hebe-stitch);
    border-radius: 12px;
    color: var(--hebe-ink-soft);
}

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

.hebe-field {
    display: grid;
    align-content: start;
    gap: 6px;
}

.hebe-field--full {
    grid-column: 1 / -1;
}

.hebe-field label {
    font-size: 0.95rem;
    font-weight: 700;
}

.hebe-field input,
.hebe-field select,
.hebe-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 12px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font: inherit;
}

.hebe-field input:focus,
.hebe-field select:focus,
.hebe-field textarea:focus {
    border-color: var(--hebe-teal);
}

.hebe-field [aria-invalid="true"] {
    border-color: #a3473f;
}

.hebe-field textarea {
    min-height: 96px;
    resize: vertical;
}

.hebe-field__hint {
    color: var(--hebe-ink-soft);
    font-size: 0.88rem;
}

.hebe-field__error {
    display: block;
    margin-top: 2px;
    color: #a3473f;
    font-size: 0.9rem;
    font-weight: 600;
}

.hebe-options {
    display: grid;
    gap: 12px;
}

.hebe-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: center;
    padding: 16px 18px;
    border: var(--hebe-stitch);
    border-radius: 14px;
    cursor: pointer;
}

.hebe-option:hover {
    background-color: color-mix(in srgb, var(--hebe-card) 60%, transparent);
}

.hebe-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--hebe-teal);
}

.hebe-option:has(input:checked) {
    border: 2px solid var(--hebe-ink);
    background-color: var(--hebe-card);
}

.hebe-option__title {
    display: block;
    font-weight: 700;
}

.hebe-option__desc {
    display: block;
    color: var(--hebe-ink-soft);
    font-size: 0.92rem;
}

.hebe-option__side {
    font-weight: 700;
    white-space: nowrap;
}

.hebe-option .hebe-pay-icon {
    width: 52px;
    height: 32px;
}

.hebe-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    cursor: pointer;
}

.hebe-switch input {
    position: relative;
    flex: none;
    width: 48px;
    height: 28px;
    margin: 0;
    border: 2px solid var(--hebe-ink);
    border-radius: 999px;
    background-color: var(--hebe-card);
    cursor: pointer;
    appearance: none;
}

.hebe-switch input::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--hebe-ink);
    transition: translate 0.2s ease;
}

.hebe-switch input:checked {
    background-color: var(--hebe-teal);
}

.hebe-switch input:checked::before {
    background-color: var(--hebe-card);
    translate: 20px 0;
}

.hebe-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.hebe-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--hebe-teal);
}

.hebe-form-part--place {
    display: grid;
    justify-items: start;
    gap: 16px;
}

.hebe-form-part--place .hebe-button {
    padding: 14px 32px;
}

.hebe-checkout__alert {
    padding: 12px 16px;
    border: 2px solid #a3473f;
    border-radius: 12px;
    color: #a3473f;
    font-weight: 600;
}

.hebe-checkout__total {
    color: var(--hebe-ink-soft);
    font-size: 0.95rem;
}

.hebe-checkout__total strong {
    color: var(--hebe-ink);
}

.hebe-mini-lines {
    margin: 0 0 12px;
    padding: 0 0 6px;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent);
    list-style: none;
}

.hebe-mini-lines li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.hebe-mini-lines li > :last-child {
    font-weight: 600;
    white-space: nowrap;
}

.hebe-mini-lines__meta {
    display: block;
    color: var(--hebe-ink-soft);
    font-size: 0.88rem;
}

/* ---------- Free shipping meter ---------- */

.hebe-meter {
    overflow: hidden;
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--hebe-ink) 12%, transparent);
}

.hebe-meter i {
    display: block;
    width: var(--hebe-meter);
    height: 100%;
    border-radius: inherit;
    background-color: var(--hebe-teal);
    transition: width 0.3s ease;
}

.hebe-free-ship .hebe-hand {
    display: block;
    margin-top: 8px;
}

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

    .hebe-option {
        gap: 4px 12px;
        padding: 14px;
    }

    .hebe-form-part--place .hebe-button {
        width: 100%;
    }
}

/* ---------- Order placed and transfer ---------- */

.hebe-order .hebe-cart__head p strong {
    color: var(--hebe-ink);
}

.hebe-transfer__inner {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.hebe-transfer__qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.hebe-transfer__qr svg {
    display: block;
    width: 220px;
    height: 220px;
    padding: 10px;
    border-radius: 12px;
    background-color: #fff;
}

.hebe-transfer h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.hebe-transfer__facts {
    margin: 0;
}

.hebe-transfer__facts > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 8px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 12%, transparent);
}

.hebe-transfer__facts dt {
    color: var(--hebe-ink-soft);
}

.hebe-transfer__facts dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.hebe-copy {
    padding: 2px 10px;
    border: 2px solid var(--hebe-ink);
    border-radius: 999px;
    background: none;
    color: var(--hebe-ink);
    font: 700 0.85rem var(--hebe-body);
    cursor: pointer;
}

.hebe-copy:hover {
    background-color: var(--hebe-card);
}

.hebe-transfer__hint {
    margin-top: 12px;
    color: var(--hebe-ink-soft);
    font-size: 0.92rem;
}

.hebe-transfer__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 16px;
    padding: 14px 18px;
    border: var(--hebe-stitch);
    border-radius: 12px;
}

.hebe-transfer__status.is-paid {
    border: 2px solid var(--hebe-teal);
    color: var(--hebe-teal);
}

.hebe-transfer__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--hebe-mustard);
    animation: hebe-pulse 1.4s ease-in-out infinite;
}

@keyframes hebe-pulse {
    50% {
        opacity: 0.35;
    }
}

.hebe-order__state {
    margin-bottom: 0;
}

.hebe-order__state p {
    margin: 0;
    color: var(--hebe-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.hebe-order__next {
    margin-top: 32px;
}

.hebe-order__next h2 {
    font-size: 1.5rem;
}

.hebe-order__next ol {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding-left: 22px;
}

.hebe-order__next li span {
    display: block;
    color: var(--hebe-ink-soft);
}

.hebe-order__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 24px;
}

.hebe-order__keep {
    margin-top: 16px;
    color: var(--hebe-ink-soft);
}

.hebe-order__ship-to {
    margin-top: 16px;
    padding-top: 12px;
    border-top: var(--hebe-stitch);
}

.hebe-order__ship-to p {
    margin-top: 4px;
}

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

    .hebe-transfer__facts > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hebe-transfer__dot {
        animation: none;
    }
}

/* ---------- Sign in and sign up ---------- */

.hebe-auth {
    padding-bottom: 64px;
}

.hebe-auth__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.hebe-auth h2 {
    font-size: 1.6rem;
}

.hebe-auth__lead {
    margin: 6px 0 18px;
    color: var(--hebe-ink-soft);
}

.hebe-auth label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.hebe-auth input[type="email"],
.hebe-auth input[type="password"],
.hebe-auth input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent);
    border-radius: 12px;
    background-color: var(--hebe-card);
    color: var(--hebe-ink);
    font: inherit;
}

.hebe-auth input:focus {
    border-color: var(--hebe-teal);
    outline: none;
}

.hebe-auth .hebe-fields {
    gap: 0 18px;
}

.hebe-auth__row {
    margin: 4px 0 18px;
}

.hebe-auth__note {
    margin-top: 14px;
    color: var(--hebe-ink-soft);
    font-size: 0.9rem;
}

/* ---------- Account ---------- */

.hebe-account {
    padding-bottom: 64px;
}

.hebe-account__body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}

.hebe-account__nav {
    position: sticky;
    top: 20px;
    padding: 20px;
    border: var(--hebe-stitch);
    border-radius: 14px;
}

.hebe-account__nav .hebe-hand {
    display: block;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.hebe-account__nav ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hebe-account__nav a,
.hebe-account__nav button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--hebe-ink);
    font: 600 1rem var(--hebe-body);
    text-align: left;
    cursor: pointer;
}

.hebe-account__nav a:hover,
.hebe-account__nav button:hover {
    background-color: var(--hebe-card);
}

.hebe-account__nav a[aria-current="page"] {
    background-color: var(--hebe-ink);
    color: var(--hebe-card);
}

.hebe-account__main {
    min-width: 0;
}

.hebe-account__head h1 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 400;
}

.hebe-account__head p {
    margin-top: 10px;
    color: var(--hebe-ink-soft);
    font-size: 1.05rem;
}

.hebe-account__section {
    margin-top: 32px;
}

.hebe-account__section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 20px;
    margin-bottom: 14px;
}

.hebe-account__section-head h2 {
    font-size: 1.5rem;
}

.hebe-account__muted {
    color: var(--hebe-ink-soft);
}

.hebe-orders {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hebe-account__section .hebe-orders {
    margin-top: 0;
}

.hebe-order-row details {
    border: var(--hebe-stitch);
    border-radius: 14px;
    background-color: color-mix(in srgb, var(--hebe-card) 50%, transparent);
}

.hebe-order-row details[open] {
    background-color: var(--hebe-card);
}

.hebe-order-row summary {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 6px 18px;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

.hebe-order-row summary::-webkit-details-marker {
    display: none;
}

.hebe-order-row__number {
    font-weight: 700;
}

.hebe-order-row__date {
    color: var(--hebe-ink-soft);
}

.hebe-order-row__total {
    font-weight: 700;
    text-align: right;
}

.hebe-order-badge {
    justify-self: start;
    padding: 2px 12px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--hebe-ink) 10%, transparent);
    font-size: 0.85rem;
    font-weight: 700;
}

.hebe-order-badge--awaiting {
    background-color: color-mix(in srgb, var(--hebe-mustard) 35%, transparent);
}

.hebe-order-badge--processing {
    background-color: color-mix(in srgb, var(--hebe-teal) 25%, transparent);
}

.hebe-order-badge--completed {
    background-color: color-mix(in srgb, var(--hebe-moss) 30%, transparent);
}

.hebe-order-badge--canceled {
    background-color: color-mix(in srgb, var(--hebe-rose) 30%, transparent);
}

.hebe-order-row__body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    padding: 4px 20px 8px;
}

.hebe-order-row__body h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.hebe-order-row__sum {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hebe-journey {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hebe-journey li {
    position: relative;
    padding-left: 22px;
    color: var(--hebe-ink-soft);
}

.hebe-journey li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.hebe-journey li.is-done {
    color: var(--hebe-ink);
    font-weight: 600;
}

.hebe-journey li.is-done::before {
    border-color: var(--hebe-teal);
    background-color: var(--hebe-teal);
}

.hebe-journey small {
    display: block;
    color: var(--hebe-ink-soft);
    font-weight: 400;
}

.hebe-order-row__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 8px 20px 18px;
}

/* ---------- Wishlist ---------- */

.hebe-wishlist__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin-top: 24px;
}

.hebe-wishlist__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hebe-wishlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 22px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.hebe-wishlist__item h3 {
    margin-top: 12px;
    font-size: 1.1rem;
}

.hebe-wishlist__item h3 a:hover {
    color: var(--hebe-teal);
}

.hebe-wishlist__item .hebe-avail,
.hebe-wishlist__item .hebe-product__price {
    margin-top: 6px;
}

.hebe-wishlist__item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 12px;
}

.hebe-wish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 2px solid var(--hebe-ink);
    border-radius: 999px;
    background: none;
    color: var(--hebe-ink);
    font: 700 1rem var(--hebe-body);
    cursor: pointer;
}

.hebe-wish svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hebe-wish[aria-pressed="true"] {
    border-color: var(--hebe-rose);
    color: #9c4a54;
}

.hebe-wish[aria-pressed="true"] svg {
    fill: currentColor;
}

@media (max-width: 980px) {
    .hebe-account__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hebe-account__nav {
        position: static;
    }

    .hebe-account__nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .hebe-account__nav a,
    .hebe-account__nav button {
        width: auto;
        border: 1px solid color-mix(in srgb, var(--hebe-ink) 20%, transparent);
    }
}

@media (max-width: 760px) {
    .hebe-auth__columns,
    .hebe-order-row__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .hebe-order-row summary {
        grid-template-columns: auto 1fr auto;
    }

    .hebe-order-row__date {
        display: none;
    }
}

.hebe-social {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hebe-social__or {
    color: var(--hebe-ink-soft);
    text-align: center;
}

/* ---------- Help and policy pages ---------- */

.hebe-doc { padding: 28px 0 96px; }

.doc-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

/* Side navigation */

.doc-nav { position: sticky; top: 24px; min-width: 0; }

.doc-nav-title {
    font: 500 1.2rem/1.25 var(--hebe-display);
    font-variation-settings: "SOFT" 100;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: var(--hebe-stitch);
}

.doc-nav ul { list-style: none; margin: 0; padding: 0; }

.doc-nav a {
    display: block;
    padding: 8px 14px;
    margin-left: -14px;
    border-radius: 999px;
    color: var(--hebe-ink-soft);
    font-weight: 600;
    line-height: 1.35;
}

.doc-nav a:hover { color: var(--hebe-teal); }

.doc-nav a[aria-current="page"] { background: var(--hebe-card); color: var(--hebe-ink); font-weight: 700; }

.doc-nav-help {
    font: 1.05rem/1.4 var(--hebe-hand);
    color: var(--hebe-ink-soft);
    margin-top: 22px;
    padding-top: 16px;
    border-top: var(--hebe-stitch);
}

.doc-nav-help a {
    display: inline;
    margin: 0;
    padding: 0 0 1px;
    border-radius: 0;
    font: inherit;
    color: var(--hebe-ink);
    border-bottom: var(--hebe-stitch);
}

/* Reading column */

.doc-body { max-width: 68ch; min-width: 0; line-height: 1.75; }

.doc-body h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 400; }

.doc-body h2 { font-size: 1.65rem; line-height: 1.2; }

.doc-body h3 { font-size: 1.2rem; margin-top: 1.7em; }

.doc-updated { font: 1.1rem var(--hebe-hand); color: var(--hebe-ink-soft); margin-top: 10px; }

.doc-intro { font-size: 1.12rem; color: var(--hebe-ink-soft); margin-top: 22px; }

.doc-body section {
    border-top: var(--hebe-stitch);
    margin-top: 2.6rem;
    padding-top: 2.2rem;
    scroll-margin-top: 20px;
}

.doc-body section p,
.doc-body section ul,
.doc-body section ol { margin-top: 0.9em; }

.doc-body section ul,
.doc-body section ol { padding-left: 1.3em; margin-bottom: 0; }

.doc-body li + li { margin-top: 0.4em; }

.doc-body li::marker { color: var(--hebe-ink-soft); }

.doc-body p a,
.doc-body li a,
.doc-body td a,
.doc-body figcaption a {
    font-weight: 600;
    border-bottom: var(--hebe-stitch);
    padding-bottom: 1px;
}

.doc-body p a:hover,
.doc-body li a:hover,
.doc-body td a:hover { color: var(--hebe-teal); }

/* A blank the shop still has to fill, such as [contact email] */
.doc-body mark {
    background: color-mix(in srgb, var(--hebe-mustard) 26%, transparent);
    color: inherit;
    padding: 0 4px;
    border-radius: 4px;
}

/* Handwritten note for whoever reviews a draft */
.draft-note {
    font: 1.15rem/1.45 var(--hebe-hand);
    background: color-mix(in srgb, var(--hebe-mustard) 20%, var(--hebe-card));
    border: var(--hebe-stitch);
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 24px;
    rotate: -0.4deg;
}

/* In-page contents */
.doc-toc {
    background: var(--hebe-card);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 28px;
}

.doc-toc-title { font: 1.1rem var(--hebe-hand); color: var(--hebe-ink-soft); }

.doc-toc ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    columns: 2;
    column-gap: 28px;
}

.doc-toc li { break-inside: avoid; padding: 3px 0; margin: 0; line-height: 1.4; }

.doc-body .doc-toc a { font-weight: 600; border-bottom: 0; padding-bottom: 0; }
.doc-body .doc-toc a:hover { color: var(--hebe-teal); }

/* Side note to a paragraph */
.doc-aside {
    border: var(--hebe-stitch);
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 1.2em;
}

.doc-body section .doc-aside p:first-child { margin-top: 0; }

/* Tables */

.doc-table {
    margin-top: 1.3em;
    overflow-x: auto;
    background: var(--hebe-card);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.doc-table table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.doc-table th,
.doc-table td {
    text-align: left;
    vertical-align: top;
    padding: 13px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 16%, transparent);
}

.doc-table thead th { font-weight: 700; border-bottom: var(--hebe-stitch); white-space: nowrap; }

.doc-table tbody th { font-weight: 700; }

.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td { border-bottom: 0; }

.doc-table-hint { display: none; font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); margin-top: 6px; }

/* Numbered steps */

.doc-body section .doc-steps { list-style: none; padding: 0; margin-top: 1.4em; counter-reset: doc-step; }

.doc-steps li {
    position: relative;
    counter-increment: doc-step;
    padding: 0 0 22px 62px;
    min-height: 44px;
}

.doc-steps li + li { margin-top: 0; }

.doc-steps li::before {
    content: counter(doc-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: var(--hebe-stitch);
    border-radius: 50%;
    background: var(--hebe-paper);
    font: 1.35rem var(--hebe-hand);
}

/* Stitched line joining the steps */
.doc-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 46px;
    bottom: 2px;
    border-left: var(--hebe-stitch);
}

.doc-steps strong { display: block; font: 500 1.15rem/1.3 var(--hebe-display); font-variation-settings: "SOFT" 100; padding-top: 7px; }

.doc-body section .doc-steps p { margin-top: 4px; color: var(--hebe-ink-soft); }

/* Frequently asked questions */

.faq-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.faq-search label { position: absolute; left: -9999px; }

.faq-search input {
    flex: 1 1 240px;
    min-width: 0;
    font: inherit;
    color: var(--hebe-ink);
    padding: 13px 22px;
    border-radius: 999px;
    border: 2px solid var(--hebe-ink);
    background: var(--hebe-card);
}

.faq-search input::placeholder { color: var(--hebe-ink-soft); }

.faq-search-hint { font: 1.05rem var(--hebe-hand); color: var(--hebe-ink-soft); margin-top: 10px; }

.faq-list { margin-top: 1.1em; }

.faq-list details { border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent); }

.faq-list summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 15px 44px 15px 0;
    font-weight: 700;
    line-height: 1.45;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 11px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: var(--hebe-stitch);
    border-radius: 50%;
    font: 1.3rem/1 var(--hebe-hand);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list summary:hover { color: var(--hebe-teal); }

.faq-answer { padding: 0 44px 18px 0; color: var(--hebe-ink-soft); }

.doc-body section .faq-answer p:first-child { margin-top: 0; }

.faq-contact {
    background: var(--hebe-card);
    border-radius: 14px;
    padding: 10px;
    margin-top: 3rem;
}

.faq-contact-inner { border: var(--hebe-stitch); border-radius: 9px; padding: 24px 24px 26px; }

.faq-contact p { color: var(--hebe-ink-soft); margin-top: 8px; }

.faq-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.faq-contact .hebe-button { padding: 11px 22px; font-size: 0.95rem; }

/* In-page examples: the cookie bar, an affiliate post */

.doc-demo {
    margin: 1.4em 0 0;
    background: var(--hebe-paper-deep);
    border-radius: 14px;
    padding: 22px;
}

.doc-demo figcaption { font: 1.05rem/1.4 var(--hebe-hand); color: var(--hebe-ink-soft); margin-top: 12px; }

.doc-demo .consent { background: var(--hebe-card); border-radius: 12px; padding: 8px; }

.doc-demo .consent-inner { border: var(--hebe-stitch); border-radius: 8px; padding: 20px 22px 22px; }

.doc-demo .consent h3 { margin-top: 0; }

.doc-body section .consent p { margin-top: 6px; font-size: 0.97rem; line-height: 1.6; color: var(--hebe-ink-soft); }

.doc-demo .consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Both buttons look the same, so saying no is as easy as saying yes */
.doc-demo .consent-actions .hebe-button {
    flex: 1 1 200px;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.97rem;
    background: transparent;
    color: var(--hebe-ink);
}

.doc-demo .consent-actions .hebe-button:hover { background: var(--hebe-ink); border-color: var(--hebe-ink); color: var(--hebe-card); }

.aff-post { background: var(--hebe-card); border-radius: 12px; padding: 20px 22px; line-height: 1.7; }

.doc-body section .aff-post p:first-child { margin-top: 0; }

.aff-top { font: 1.08rem/1.45 var(--hebe-hand); color: var(--hebe-ink-soft); border-bottom: var(--hebe-stitch); padding-bottom: 12px; }

.aff-mark {
    display: inline-block;
    font: 0.98rem/1.3 var(--hebe-hand);
    color: var(--hebe-ink);
    background: color-mix(in srgb, var(--hebe-rose) 28%, var(--hebe-card));
    padding: 1px 9px;
    border-radius: 999px;
    margin-left: 4px;
    white-space: nowrap;
}

/* Payment methods */

.pay-head { display: flex; align-items: center; gap: 14px; }

.pay-head .pay-icon { flex: none; }

/* Narrow screens */

@media (max-width: 980px) {
    .hebe-doc { padding-top: 8px; }
    .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }

    /* The navigation becomes one scrolling row */
    .doc-nav { position: static; }
    .doc-nav-title { font-size: 1.05rem; padding-bottom: 0; margin-bottom: 10px; border-bottom: 0; }
    .doc-nav ul {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 4px 12px;
        margin: 0 -4px;
        border-bottom: var(--hebe-stitch);
        -webkit-overflow-scrolling: touch;
    }
    .doc-nav li { flex: none; }
    /* The page being read goes first so it is never hidden */
    .doc-nav li:has([aria-current="page"]) { order: -1; }
    .doc-nav a {
        margin-left: 0;
        padding: 7px 16px;
        white-space: nowrap;
        border: 1px solid color-mix(in srgb, var(--hebe-ink) 22%, transparent);
    }
    .doc-nav a[aria-current="page"] { border-color: var(--hebe-ink); }
    .doc-nav-help { display: none; }
}

@media (max-width: 560px) {
    .hebe-doc { padding-bottom: 64px; }
    .draft-note { rotate: none; }
    .doc-toc ul { columns: 1; }
    .doc-table-hint { display: block; }
    .doc-demo { padding: 12px; }
    .doc-demo .consent-inner, .faq-contact-inner { padding: 18px 16px 20px; }
    .faq-answer { padding-right: 0; }
    .doc-steps li { padding-left: 56px; }
}

/* ---------- Cookie bar ---------- */

.consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 0 16px 16px;
    pointer-events: none;
}

.consent-box {
    pointer-events: auto;
    max-width: 880px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    margin: 0 auto;
    background: var(--hebe-card);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hebe-ink) 14%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--hebe-ink) 55%, transparent);
}

.consent-bar .consent-inner { border: var(--hebe-stitch); border-radius: 9px; padding: 18px 22px 20px; }

.consent-bar .consent-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; }
.consent-bar .consent-top h2 { font-size: 1.3rem; }
.consent-bar .consent-top p { color: var(--hebe-ink-soft); font-size: 0.97rem; margin-top: 4px; }
.consent-bar .consent-top p a { border-bottom: var(--hebe-stitch); font-weight: 700; color: var(--hebe-ink); }

.consent-bar .consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Both buttons look the same, so saying no is as easy as saying yes */
.consent-bar .consent-actions .hebe-button { text-align: center; padding: 11px 18px; font-size: 0.97rem; background: transparent; color: var(--hebe-ink); white-space: nowrap; }
.consent-bar .consent-actions .hebe-button:hover { background: var(--hebe-ink); border-color: var(--hebe-ink); color: var(--hebe-card); }

.consent-bar .consent-more { grid-column: 1 / -1; justify-self: center; background: none; border: 0; border-bottom: var(--hebe-stitch); padding: 0 0 1px; font: 700 0.95rem var(--hebe-body); color: var(--hebe-ink); cursor: pointer; }
.consent-bar .consent-more:hover { color: var(--hebe-teal); }

.consent-bar .consent-panel { margin-top: 16px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent); }

.consent-bar .consent-groups { list-style: none; margin: 0; padding: 0; }
.consent-bar .consent-groups li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 14%, transparent); }
.consent-bar .consent-groups strong { display: block; }
.consent-bar .consent-groups span.desc { display: block; color: var(--hebe-ink-soft); font-size: 0.9rem; }
.consent-bar .consent-groups .hebe-switch { gap: 0; }
.consent-bar .consent-groups .hebe-switch input:disabled { opacity: 0.55; cursor: not-allowed; }
.consent-bar .consent-groups .consent-always { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); display: flex; align-items: center; gap: 10px; }

.consent-bar .consent-save { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; margin-top: 16px; }
.consent-bar .consent-save p { color: var(--hebe-ink-soft); font-size: 0.9rem; }


.hebe-footer__cookie {
    padding: 0;
    border: 0;
    border-bottom: var(--hebe-stitch);
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.hebe-footer__cookie:hover { color: var(--hebe-teal); }

.doc-body .hebe-pay-icon { width: 64px; height: 40px; }

.faq-list details[hidden],
.doc-content section[hidden] { display: none; }

@media (max-width: 980px) {
    .consent-bar .consent-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .consent-bar { padding: 0 8px 8px; }
    .consent-bar .consent-inner { padding: 14px 14px 16px; }
    .consent-bar .consent-actions { grid-template-columns: minmax(0, 1fr); }
    .consent-bar .consent-actions .hebe-button { white-space: normal; }
    .consent-bar .consent-groups li { gap: 4px 12px; }
}

/* ---------- The shop cat, the roaming cat, the tour, doodles and the page loader ---------- */

.hebe-yarn-loader { display: inline-flex; align-items: center; color: var(--hebe-teal); }
.hebe-yarn-loader .roll { width: 36px; height: 36px; flex: none; animation: yarn-roll 1.6s linear infinite; }
.hebe-yarn-loader .thread { width: 84px; height: 20px; margin-left: -3px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; animation: yarn-thread 1.6s ease-in-out infinite; }
.hebe-yarn-loader .say { margin-left: 12px; font: 1.15rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-yarn-loader.big .roll { width: 56px; height: 56px; }
.hebe-yarn-loader.big .thread { width: 126px; height: 30px; }


@keyframes yarn-roll { to { rotate: 360deg; } }
@keyframes yarn-thread { from { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.hebe-page-wait {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    background: color-mix(in srgb, var(--hebe-paper) 90%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
}

.hebe-page-wait.on { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.hebe-page-wait .say { font: 1.3rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-doodles { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.hebe-doodles svg { display: block; max-width: none; }
:root { --cat-fur: #e3a468; --cat-shade: #c58245; --cat-light: #fbe9d2; }
html[data-cat="grey"] { --cat-fur: #aaa6b0; --cat-shade: #827d8a; --cat-light: #eeecf1; }
html[data-cat="black"] { --cat-fur: #51474f; --cat-shade: #2f282f; --cat-light: #857a84; }
html[data-cat="white"] { --cat-fur: #fffaf5; --cat-shade: #c9b3a6; --cat-light: #ffffff; }

.cat-art { display: block; overflow: visible; }
.cat-art * { transform-box: view-box; }
.cat-fur { fill: var(--cat-fur); stroke: var(--cat-shade); stroke-width: 1.6; stroke-linejoin: round; }
.cat-light { fill: var(--cat-light); }
.cat-inner { fill: var(--hebe-rose); opacity: 0.75; }
.cat-eyes { fill: var(--hebe-ink); transform-origin: 54px 40px; animation: cat-blink 5.2s infinite; }
html[data-cat="black"] .cat-eyes { fill: #f1d27a; }
.cat-nose { fill: var(--hebe-rose); }
.cat-line { fill: none; stroke: var(--hebe-ink); stroke-width: 1.4; stroke-linecap: round; }
.cat-whisker { fill: none; stroke: var(--hebe-ink-soft); stroke-width: 1; stroke-linecap: round; opacity: 0.7; }
.cat-tail path { fill: none; stroke: var(--cat-fur); stroke-width: 10; stroke-linecap: round; }
.cat-tail { transform-origin: 88px 98px; animation: cat-tail 2.6s ease-in-out infinite alternate; }
.cat-ear { transform-origin: 70px 30px; animation: cat-ear 6.5s infinite; }
.cat-head { transform-origin: 54px 62px; animation: cat-head 7s ease-in-out infinite; }

.hebe-cat { position: fixed; right: 30px; bottom: -4px; z-index: 25; width: 92px; padding: 0; border: 0; background: none; cursor: pointer; }
.hebe-cat:focus-visible { outline: 2px solid var(--hebe-teal); outline-offset: 2px; border-radius: 12px; }
.hebe-cat.hop { animation: cat-hop 0.5s ease; }
.hebe-cat.play .cat-paw, .wait-cat .cat-paw { animation: cat-paw 0.7s ease-in-out infinite; }
.hebe-cat.play .cat-head { animation: none; rotate: 8deg; }

.wait-cat { width: 74px; flex: none; margin-right: 6px; align-self: flex-end; }
.hebe-yarn-loader:has(.wait-cat) { align-items: flex-end; }
.hebe-yarn-loader:has(.wait-cat) .thread { margin-bottom: 14px; }

@keyframes cat-tail { from { rotate: -12deg; } to { rotate: 16deg; } }
@keyframes cat-blink { 0%, 94%, 100% { scale: 1 1; } 96.5% { scale: 1 0.1; } }
@keyframes cat-ear { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: 14deg; } 94% { rotate: -4deg; } }
@keyframes cat-head { 0%, 60%, 100% { rotate: 0deg; } 70%, 85% { rotate: -6deg; } }
@keyframes cat-paw { 0%, 100% { translate: 0 0; } 50% { translate: 15px -26px; } }
@keyframes cat-hop { 40% { translate: 0 -16px; } }

@media (max-width: 560px) {
    .hebe-cat { width: 62px; right: 16px; }
    .hebe-cat { transition: bottom 0.25s ease; }
    body:has(.hebe-sticky-buy) .hebe-cat { bottom: 62px; }
}

@media (prefers-reduced-motion: reduce) {
    .cat-eyes, .cat-tail, .cat-ear, .cat-head, .cat-paw, .hebe-cat.hop, .hebe-cat.play .cat-paw, .wait-cat .cat-paw { animation: none; }
}
.hebe-cat-chat { position: fixed; right: 30px; bottom: 96px; z-index: 36; width: 320px; max-width: calc(100vw - 24px); background: var(--hebe-card); border: var(--hebe-stitch); border-radius: 18px; padding: 16px 18px 18px; display: grid; gap: 12px; box-shadow: 0 10px 30px rgba(74, 47, 58, 0.18); }
.hebe-cat-chat[hidden] { display: none; }
.hebe-cat-chat > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hebe-cat-chat h2 { font-size: 1.3rem; }
.hebe-cat-chat__bubble { background: var(--hebe-paper); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.hebe-cat-chat__topics { display: flex; flex-wrap: wrap; gap: 6px; }
.hebe-cat-chat__topics button { font: 600 0.9rem var(--hebe-body); color: var(--hebe-ink); background: none; border: 1.5px solid color-mix(in srgb, var(--hebe-ink) 30%, transparent); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.hebe-cat-chat__topics button[aria-pressed="true"] { background: var(--hebe-ink); border-color: var(--hebe-ink); color: var(--hebe-card); }
.hebe-cat-chat .hebe-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.hebe-cat-chat .hebe-button svg { width: 20px; height: 20px; }
.hebe-cat-chat__hours { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-cat-chat button:focus-visible { outline: 2px solid var(--hebe-teal); outline-offset: 2px; }

@media (max-width: 560px) {
    .hebe-cat-chat { right: 12px; bottom: 74px; }
    body:has(.hebe-sticky-buy) .hebe-cat-chat { bottom: 136px; }
}
.hebe-runner { position: fixed; top: 0; left: 0; z-index: 24; width: 90px; height: 60px; pointer-events: none; will-change: transform; }
.hebe-runner svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hebe-runner svg * { transform-box: view-box; }
.hebe-runner .pose { display: none; }
.hebe-runner[data-pose="walk-a"] [data-is="walk-a"], .hebe-runner[data-pose="walk-b"] [data-is="walk-b"],
.hebe-runner[data-pose="run-a"] [data-is="run-a"], .hebe-runner[data-pose="run-b"] [data-is="run-b"],
.hebe-runner[data-pose="sit"] [data-is="sit"], .hebe-runner[data-pose="meow"] [data-is="meow"],
.hebe-runner[data-pose="groom"] [data-is="groom"], .hebe-runner[data-pose="play"] [data-is="play"],
.hebe-runner[data-pose="pounce"] [data-is="pounce"], .hebe-runner[data-pose="stretch"] [data-is="stretch"],
.hebe-runner[data-pose="sleep"] [data-is="sleep"], .hebe-runner[data-pose="jump"] [data-is="jump"] { display: inline; }
.hebe-runner .fur { fill: var(--cat-fur); stroke: var(--cat-shade); stroke-width: 1.3; stroke-linejoin: round; }
.hebe-runner .light { fill: var(--cat-light); }
.hebe-runner .pink { fill: var(--hebe-rose); }
.hebe-runner .mark { fill: none; stroke: var(--cat-shade); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.hebe-runner .limb { fill: none; stroke: var(--cat-fur); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.hebe-runner .limb.back { stroke: var(--cat-shade); }
.hebe-runner .eye { fill: var(--hebe-ink); }
.hebe-runner .glint { fill: #fff; }
.hebe-runner .ink { fill: none; stroke: var(--hebe-ink); stroke-width: 1.2; stroke-linecap: round; }
.hebe-runner .whisker { fill: none; stroke: var(--hebe-ink-soft); stroke-width: 0.8; stroke-linecap: round; opacity: 0.7; }
.hebe-runner .yarn { fill: var(--hebe-rose); }
.hebe-runner .yarn-line { fill: none; stroke: #fff; stroke-opacity: 0.55; stroke-width: 1.2; stroke-linecap: round; }
.hebe-runner .bubble { fill: var(--hebe-card); stroke: var(--hebe-ink-soft); stroke-width: 1; }
.hebe-runner text { font: 9px var(--hebe-hand); fill: var(--hebe-ink); }
html[data-cat="black"] .hebe-runner .eye { fill: #f1d27a; }
.hebe-runner.flip .r-say text, .hebe-runner.flip .r-zzz text { scale: -1 1; transform-origin: center; transform-box: fill-box; }
.hebe-runner .r-wag { transform-origin: 61px 55px; animation: cat-tail 1.3s ease-in-out infinite alternate; }
.hebe-runner .r-flick { transform-origin: 22px 44px; animation: cat-tail 0.3s ease-in-out infinite alternate; }
.hebe-runner .r-wiggle { transform-origin: 40px 58px; animation: runner-pounce 0.5s ease-in-out infinite; }
.hebe-runner .r-lick { transform-origin: 53px 56px; animation: runner-lick 0.7s ease-in-out infinite alternate; }
.hebe-runner .r-nod { transform-origin: 47px 30px; animation: runner-nod 0.7s ease-in-out infinite alternate; }
.hebe-runner .r-bat { transform-origin: 54px 54px; animation: runner-bat 0.45s ease-in-out infinite alternate; }
.hebe-runner .r-ball { transform-origin: 80px 54px; animation: runner-ball 0.9s ease-in-out infinite alternate; }
.hebe-runner .r-breathe { transform-origin: 44px 60px; animation: runner-breathe 2.4s ease-in-out infinite alternate; }
.hebe-runner .r-zzz text { animation: runner-zzz 2.4s ease-in-out infinite; }
.hebe-runner .r-zzz text + text { animation-delay: 1.2s; }
.hebe-runner .r-say { transform-origin: 62px 24px; animation: runner-say 0.35s ease both; }
@keyframes runner-pounce { 50% { translate: 0 -8px; rotate: -5deg; } }
@keyframes runner-lick { to { rotate: -10deg; } }
@keyframes runner-nod { to { rotate: 7deg; } }
@keyframes runner-bat { to { rotate: -24deg; } }
@keyframes runner-ball { from { translate: 0 0; rotate: -25deg; } to { translate: 5px 0; rotate: 40deg; } }
@keyframes runner-breathe { to { scale: 1 1.06; } }
@keyframes runner-zzz { from { opacity: 0; translate: -3px 6px; } 40% { opacity: 1; } to { opacity: 0; translate: 3px -6px; } }
@keyframes runner-say { from { scale: 0.4; opacity: 0; } }
@media (max-width: 560px) {
    .hebe-runner { width: 66px; height: 44px; }
}
html:not([data-runner="color"]) .hebe-runner .fur { fill: var(--hebe-paper); stroke-width: 1.9; }
html:not([data-runner="color"]) .hebe-runner .light,
html:not([data-runner="color"]) .hebe-runner .glint { display: none; }
html:not([data-runner="color"]) .hebe-runner .pink { fill: none; stroke: var(--cat-shade); stroke-width: 1.1; stroke-linejoin: round; }
html:not([data-runner="color"]) .hebe-runner .limb,
html:not([data-runner="color"]) .hebe-runner .limb.back { stroke: var(--cat-shade); stroke-width: 2.2; }
html:not([data-runner="color"]) .hebe-runner .mark { stroke-width: 1.3; opacity: 0.8; }
html:not([data-runner="color"]) .hebe-runner .eye { fill: var(--cat-shade); }
html:not([data-runner="color"]) .hebe-runner .ink { stroke: var(--cat-shade); }
html:not([data-runner="color"]) .hebe-runner .whisker { stroke: var(--cat-shade); stroke-width: 1; }
html:not([data-runner="color"]) .hebe-runner .yarn { fill: var(--hebe-paper); stroke: var(--hebe-rose); stroke-width: 1.8; }
html:not([data-runner="color"]) .hebe-runner .yarn-line { stroke: var(--hebe-rose); stroke-opacity: 1; }
html:not([data-runner="color"]) .hebe-runner .bubble { fill: var(--hebe-paper); stroke: var(--cat-shade); stroke-width: 1.4; }
html:not([data-runner="color"]) .hebe-runner text { fill: var(--cat-shade); }


/* Animations the shopper switched off: <html data-motion="off"> */

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .hebe-runner { display: none; }

.hebe-footer__motion { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; }
.hebe-footer__motion:focus-visible { outline: 2px solid var(--hebe-teal); outline-offset: 3px; }

/* The cat's first-visit tour */

.hebe-cat-tour { position: fixed; right: 30px; bottom: 96px; z-index: 37; width: 310px; max-width: calc(100vw - 24px); background: var(--hebe-card); border: var(--hebe-stitch); border-radius: 18px 18px 4px 18px; padding: 16px 18px; display: grid; gap: 12px; box-shadow: 0 10px 30px rgba(74, 47, 58, 0.18); }
.hebe-cat-tour[hidden] { display: none; }
.hebe-cat-tour__row { display: flex; align-items: center; gap: 12px; }
.hebe-cat-tour__count { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); margin-right: auto; }
.hebe-cat-tour__skip { font: 600 0.95rem var(--hebe-body); color: var(--hebe-ink-soft); background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.hebe-cat-tour .hebe-button { padding: 8px 20px; }
.hebe-cat-tour button:focus-visible { outline: 2px solid var(--hebe-teal); outline-offset: 2px; }
.hebe-tour-spot { outline: 3px dashed var(--hebe-mustard); outline-offset: 6px; border-radius: 12px; }

@media (max-width: 560px) {
    .hebe-cat-tour { right: 12px; bottom: 74px; }
}

.hebe-cat--still .cat-eyes, .hebe-cat--still .cat-tail, .hebe-cat--still .cat-ear, .hebe-cat--still .cat-head { animation: none; }

@media (max-width: 560px) {
    .hebe-cat--phone-hidden { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hebe-yarn-loader .roll, .hebe-yarn-loader .thread { animation: none; }
}

.hebe-scroll-thread { --p: 0; position: fixed; top: 0; right: 5px; width: 20px; height: 100vh; z-index: 20; pointer-events: none; color: var(--hebe-rose); }
.hebe-scroll-thread[hidden] { display: none; }
.hebe-scroll-thread i { position: absolute; top: 0; left: 9px; height: calc(var(--p) * (100vh - 30px) + 4px); border-left: 2px dashed currentColor; }
.hebe-scroll-thread svg { position: absolute; left: 0; top: calc(var(--p) * (100vh - 30px)); width: 20px; height: 20px; rotate: calc(var(--p) * 1800deg); }

html[data-motion="off"] .hebe-scroll-thread { display: none; }

/* The heart is stitched in when a shade is saved */
.hebe-wish[aria-pressed="true"] svg { animation: heart-pop 0.65s ease; }
.hebe-wish[aria-pressed="true"] path { stroke-dasharray: 56; animation: heart-stitch 0.65s ease both; }

@keyframes heart-stitch { from { stroke-dashoffset: 56; fill-opacity: 0; } 60% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes heart-pop { 75% { scale: 1.22; } }

@media (max-width: 560px) {
    .hebe-scroll-thread { right: 0; width: 14px; }
    .hebe-scroll-thread i { left: 6px; }
    .hebe-scroll-thread svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hebe-scroll-thread { display: none; }
    .hebe-wish[aria-pressed="true"] svg, .hebe-wish[aria-pressed="true"] path { animation: none; }
}

/* Room beside the footer's last line so the corner cat never covers it */
body:has(.hebe-cat) .hebe-footer__legal { padding-right: 110px; padding-bottom: 8px; }

@media (max-width: 560px) {
    body:has(.hebe-cat:not(.hebe-cat--phone-hidden)) .hebe-footer__legal { padding-right: 96px; }
    body:has(.hebe-cat--phone-hidden) .hebe-footer__legal { padding-right: 0; }
}

/* ---------- Pattern page: thumbnails and stage on the left, price and buying on the right ---------- */

.hebe-listing {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Media */

.hebe-listing-media { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 20px; }

.hebe-listing-thumbs { display: grid; gap: 10px; align-content: start; list-style: none; margin: 0; padding: 0; }

.hebe-listing-thumbs button {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    border: 2px solid transparent;
    background: color-mix(in srgb, var(--c, var(--hebe-rose)) 24%, var(--hebe-card));
    color: var(--c, var(--hebe-rose));
    padding: 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.hebe-listing-thumbs button svg { width: 100%; }
.hebe-listing-thumbs button[aria-pressed="true"] { border-color: var(--hebe-ink); }

.hebe-listing-stage {
    position: relative;
    aspect-ratio: 1;
    border-radius: 18px;
    background: color-mix(in srgb, var(--c, var(--hebe-rose)) 24%, var(--hebe-card));
    color: var(--c, var(--hebe-rose));
    display: grid;
    place-items: center;
}

.hebe-listing-stage > .art { width: 52%; }
.hebe-listing-stage > .art svg { width: 100%; }

.hebe-listing-stage .caption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    background: var(--hebe-card);
    color: var(--hebe-ink-soft);
    font: 1rem var(--hebe-hand);
    padding: 2px 12px;
    border-radius: 999px;
}

.hebe-listing-stage .save {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--hebe-card);
    color: var(--hebe-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.hebe-listing-stage .save svg { width: 22px; height: 22px; }
.hebe-listing-stage .save[aria-pressed="true"] { color: var(--hebe-rose); }
.hebe-listing-stage .save[aria-pressed="true"] path { fill: currentColor; }

/* The intro video: a play mark on its thumbnail and on the stage */
.hebe-listing-thumbs button { position: relative; }

.hebe-listing-thumbs button[data-video]::after,
.hebe-listing-stage .playmark::before {
    content: "";
    border-left: 12px solid var(--hebe-ink);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.hebe-listing-thumbs button[data-video]::after {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    filter: drop-shadow(0 0 3px var(--hebe-card));
}

.hebe-listing-stage .playmark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 0;
    background: var(--hebe-card);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.hebe-listing-stage .playmark::before { border-left-width: 24px; border-top-width: 15px; border-bottom-width: 15px; margin-left: 6px; }
.hebe-listing-stage .playmark[hidden] { display: none; }

/* Buying column */

.hebe-listing-buy .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.hebe-listing-buy .tag {
    font: 1rem var(--hebe-hand);
    background: var(--hebe-card);
    border-radius: 999px;
    padding: 2px 12px;
    color: var(--hebe-ink);
}

.hebe-listing-buy .tag.best { background: color-mix(in srgb, var(--hebe-mustard) 40%, var(--hebe-card)); }

.hebe-listing-buy .price { font: 500 2.3rem/1.1 var(--hebe-display); font-variation-settings: "SOFT" 100; }
.hebe-listing-buy .price small { font: 400 0.95rem var(--hebe-body); color: var(--hebe-ink-soft); margin-left: 8px; }

.hebe-listing-buy h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; margin: 10px 0 12px; }

.hebe-listing-buy .by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--hebe-ink-soft); }
.hebe-listing-buy .by strong { color: var(--hebe-ink); }

.hebe-listing-buy .choose { margin: 24px 0 18px; }
.hebe-listing-buy .choose label { display: block; font-weight: 700; margin-bottom: 8px; }

.hebe-listing-buy select {
    width: 100%;
    font: inherit;
    color: var(--hebe-ink);
    background: var(--hebe-card);
    border: 2px solid var(--hebe-ink);
    border-radius: 12px;
    padding: 12px 14px;
}

.hebe-listing-buy .cta { display: grid; gap: 10px; }
.hebe-listing-buy .cta .hebe-button { text-align: center; }

.hebe-listing-buy .assure { color: var(--hebe-ink-soft); font-size: 0.95rem; margin-top: 14px; }

/* Folding sections: highlights, contents, delivery, licence */
.hebe-fold { border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent); }
.hebe-fold:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent); }
.hebe-folds { margin-top: 26px; }

.hebe-fold summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hebe-fold summary::-webkit-details-marker { display: none; }
.hebe-fold summary::after { content: "+"; font: 1.4rem/1 var(--hebe-hand); }
.hebe-fold[open] summary::after { content: "−"; }
.hebe-fold .inside { padding: 0 0 18px; color: var(--hebe-ink-soft); }
.hebe-fold .inside ul { margin: 0; padding-left: 20px; }
.hebe-fold .inside li { padding: 3px 0; }
.hebe-fold .inside li::marker { color: var(--hebe-teal); }

/* Also sold on Etsy and Ravelry */
.hebe-also {
    margin-top: 24px;
    border: var(--hebe-stitch);
    border-radius: 14px;
    padding: 16px 18px;
}

.hebe-also p { color: var(--hebe-ink-soft); font-size: 0.95rem; margin: 4px 0 12px; }

.hebe-needs { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent); }
.hebe-needs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 18%, transparent); }
.hebe-needs li > :last-child { white-space: nowrap; font-weight: 600; }
.hebe-needs .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--d); box-shadow: 0 0 0 1px rgba(74, 47, 58, 0.15); margin-right: 8px; vertical-align: -1px; }
.hebe-needs-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.hebe-needs-total strong { font-size: 1.15rem; }

.hebe-listing-stage img,
.hebe-listing-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 18px; object-fit: cover; }
.hebe-listing-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.hebe-listing-buy .hebe-rating { display: inline-flex; align-items: center; gap: 6px; }
.hebe-listing-buy .hebe-also strong { display: block; }
.hebe-needs .soft { color: var(--hebe-ink-soft); }
.hebe-needs-note { color: var(--hebe-ink-soft); font-size: 0.92rem; margin-top: 12px; }

@media (max-width: 980px) {
    .hebe-listing { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hebe-listing-media { position: static; }
}

@media (max-width: 560px) {
    .hebe-listing-media { grid-template-columns: minmax(0, 1fr); }
    .hebe-listing-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); order: 2; }
    .hebe-listing-thumbs button { padding: 8px; }
}

.hebe-listing-media--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- Pattern library in the account ---------- */

.hebe-owned-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.hebe-owned {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--hebe-card);
}

.hebe-owned__art {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: color-mix(in srgb, var(--hebe-rose) 24%, var(--hebe-paper));
    color: var(--hebe-rose);
    padding: 16px;
}

.hebe-owned__art svg { width: 100%; }

.hebe-owned__body h2 { font-size: 1.25rem; margin-top: 4px; }

.hebe-owned__get { display: grid; gap: 10px; }

.hebe-owned__get select { width: 100%; padding: 9px 14px; border: 2px solid var(--hebe-ink); border-radius: 12px; background: var(--hebe-card); font: inherit; color: var(--hebe-ink); }

.hebe-owned__get .hebe-button { text-align: center; }

.hebe-owned__left { font-size: 0.88rem; color: var(--hebe-ink-soft); text-align: center; }

.hebe-account__note { margin-top: 24px; color: var(--hebe-ink-soft); }

@media (max-width: 760px) {
    .hebe-owned { grid-template-columns: 80px minmax(0, 1fr); align-items: start; }
    .hebe-owned__get { grid-column: 1 / -1; }
    .hebe-owned__left { text-align: left; }
}

/* ---------- Payment result after MoMo ---------- */

.hebe-result-page { padding-top: 32px; padding-bottom: 72px; }
.hebe-result { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; align-items: start; max-width: 860px; }
.hebe-result__mark { width: 64px; height: 64px; border-radius: 50%; border: var(--hebe-stitch); background: var(--hebe-card); display: grid; place-items: center; color: var(--hebe-tone, var(--hebe-teal)); }
.hebe-result__mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hebe-result h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; }
.hebe-result__lead { color: var(--hebe-ink-soft); max-width: 60ch; margin-top: 10px; font-size: 1.05rem; }
.hebe-result__fine { color: var(--hebe-ink-soft); font-size: 0.92rem; margin-top: 16px; max-width: 60ch; }
.hebe-result__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hebe-result__rows { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.hebe-result__rows dt { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-result__rows dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.hebe-result__rows .hebe-pay-icon { width: 45px; height: 28px; flex: none; }

@media (max-width: 560px) {
    .hebe-result { grid-template-columns: minmax(0, 1fr); }
    .hebe-result__mark { width: 52px; height: 52px; }
    .hebe-result__rows { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- Reviews ---------- */

.hebe-stars {
    --hebe-score: 5;
    --hebe-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E");
    display: inline-block;
    flex: none;
    width: 5.5em;
    height: 1.1em;
    vertical-align: -0.15em;
    background: linear-gradient(90deg, var(--hebe-mustard) calc(var(--hebe-score) / 5 * 100%), color-mix(in srgb, var(--hebe-ink) 16%, transparent) 0);
    -webkit-mask: var(--hebe-star) left center / 1.1em 1.1em repeat-x;
    mask: var(--hebe-star) left center / 1.1em 1.1em repeat-x;
}

.hebe-stars--small { font-size: 0.85rem; }

.hebe-review-etsy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: var(--hebe-stitch); }
.hebe-review-etsy strong { font: 500 2rem/1 var(--hebe-display); }

.hebe-reviews { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.hebe-reviews__summary { display: grid; gap: 10px; justify-items: start; }
.hebe-reviews__score { font: 500 3rem/1 var(--hebe-display); }
.hebe-reviews__bars { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; width: 100%; }
.hebe-reviews__bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 0.9rem; }
.hebe-reviews__bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--hebe-ink) 12%, transparent); overflow: hidden; }
.hebe-reviews__bar i { display: block; height: 100%; background: var(--hebe-mustard); }
.hebe-reviews__sent { font: 1.1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-reviews__tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: var(--hebe-stitch); }
.hebe-reviews__showing { color: var(--hebe-ink-soft); font-size: 0.92rem; }

.hebe-review-list { list-style: none; margin: 0; padding: 0; }
.hebe-review { padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 14%, transparent); display: grid; gap: 6px; }
.hebe-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hebe-review__verified { font: 0.95rem var(--hebe-hand); background: color-mix(in srgb, var(--hebe-moss) 22%, var(--hebe-card)); border-radius: 999px; padding: 1px 10px; }
.hebe-review__title { font-weight: 700; }
.hebe-review__comment { color: var(--hebe-ink-soft); white-space: pre-line; }
.hebe-review__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.hebe-review__photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.hebe-review__reply { margin-top: 6px; padding: 10px 14px; border-left: 3px solid var(--hebe-teal); background: var(--hebe-card); border-radius: 0 10px 10px 0; }

.hebe-review-form { margin-bottom: 18px; }
.hebe-review-form .hebe-sheet__inner { display: grid; gap: 14px; }
.hebe-review-form__stars { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hebe-review-form__stars legend { font-weight: 700; margin-bottom: 6px; }
.hebe-review-form__stars label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 1.5px solid color-mix(in srgb, var(--hebe-ink) 30%, transparent); border-radius: 999px; cursor: pointer; }
.hebe-review-form__stars label:has(input:checked) { background: var(--hebe-ink); color: var(--hebe-card); border-color: var(--hebe-ink); }
.hebe-review-form__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hebe-review-form__stars label:has(input:focus-visible) { outline: 2px solid var(--hebe-teal); outline-offset: 2px; }
.hebe-review-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 760px) {
    .hebe-reviews { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Yarn page: what to make with this yarn ---------- */

.hebe-made-with { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hebe-made-with__card { background: var(--hebe-card); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.hebe-made-with__art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--hebe-tone, var(--hebe-rose)) 24%, var(--hebe-card)); color: var(--hebe-tone, var(--hebe-rose)); }
.hebe-made-with__art svg { width: 44%; }
.hebe-made-with__body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 18px; }
.hebe-made-with__body h3 { font-size: 1.1rem; }
.hebe-made-with__body p { color: var(--hebe-ink-soft); font-size: 0.92rem; }
.hebe-made-with__need { justify-self: start; font: 1rem var(--hebe-hand); background: color-mix(in srgb, var(--hebe-mustard) 30%, var(--hebe-card)); border-radius: 999px; padding: 1px 10px; }

@media (max-width: 980px) {
    .hebe-made-with { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .hebe-made-with { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Courses and lessons ---------- */

.hebe-listing-stage .playmark { text-decoration: none; }
.hebe-course-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hebe-course-points li { background: var(--hebe-card); border-radius: 14px; padding: 18px 20px; }
.hebe-course-points strong { display: block; font: 500 1.15rem/1.3 var(--hebe-display); }
.hebe-course-points p { color: var(--hebe-ink-soft); margin-top: 6px; }
.hebe-course-points--list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hebe-course-note { color: var(--hebe-ink-soft); margin-bottom: 18px; }
.hebe-course-chapter + .hebe-course-chapter { margin-top: 22px; }
.hebe-course-chapter h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 1.15rem; padding-bottom: 10px; border-bottom: var(--hebe-stitch); }
.hebe-course-chapter h3 span { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-course-lessons { list-style: none; margin: 0; padding: 0; }
.hebe-course-lessons li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 12%, transparent); }
.hebe-course-lessons a { font-weight: 600; border-bottom: var(--hebe-stitch); }
.hebe-course-lessons li > span:first-child { color: var(--hebe-ink-soft); }
.hebe-course-lessons__meta { color: var(--hebe-ink-soft); display: inline-flex; gap: 10px; align-items: baseline; }
.hebe-course-lessons .is-finished a::before, .hebe-lesson__list .is-finished a::before { content: "✓ "; color: var(--hebe-moss); }
.hebe-course-bio { color: var(--hebe-ink-soft); margin-top: 8px; }

.hebe-lesson-page { padding-bottom: 72px; }
.hebe-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; margin-top: 18px; }
.hebe-lesson__video { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--hebe-ink); color: var(--hebe-card); display: grid; place-items: center; }
.hebe-lesson__video iframe,
.hebe-lesson__video video { width: 100%; height: 100%; border: 0; background: #000; }
.hebe-lesson__main h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 18px; }
.hebe-lesson__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hebe-lesson__notes { margin-top: 26px; padding-top: 18px; border-top: var(--hebe-stitch); }
.hebe-lesson__notes h2 { font-size: 1.2rem; }
.hebe-lesson__notes p { color: var(--hebe-ink-soft); margin-top: 8px; white-space: pre-line; }
.hebe-lesson__list { background: var(--hebe-card); border-radius: 16px; padding: 16px 18px; position: sticky; top: 20px; }
.hebe-lesson__list ol { list-style: none; margin: 4px 0 12px; padding: 0; }
.hebe-lesson__list li { padding: 6px 0; font-size: 0.95rem; }
.hebe-lesson__list li > span { color: var(--hebe-ink-soft); }
.hebe-lesson__list a[aria-current="page"] { font-weight: 700; color: var(--hebe-teal); }
.hebe-my-courses { margin-bottom: 32px; }
.hebe-my-courses > h2 { font-size: 1.4rem; }

@media (max-width: 980px) {
    .hebe-course-points { grid-template-columns: minmax(0, 1fr); }
    .hebe-lesson { grid-template-columns: minmax(0, 1fr); }
    .hebe-lesson__list { position: static; }
}

/* Chứng nhận hoàn thành khoá học (certificate.html) */
.hebe-lesson__done { display: flex; flex-wrap: wrap; gap: 10px; }

.hebe-cert-head { text-align: center; padding: 44px 0 36px; }
.hebe-cert-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 400; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.hebe-cert-head p { color: var(--hebe-ink-soft); font-size: 1.12rem; max-width: 52ch; margin: 16px auto 0; }
.hebe-cert-head .hebe-hand { display: block; font-size: 1.2rem; margin-top: 10px; }

.hebe-cert-block { padding-top: 8px; }
.hebe-cert-stage { max-width: 900px; margin: 0 auto; }

.hebe-cert { background: var(--hebe-card); border-radius: 6px; padding: 14px; box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px color-mix(in srgb, var(--hebe-ink) 55%, transparent); }
.hebe-cert__border { border: var(--hebe-stitch); border-radius: 4px; padding: 7px; }
.hebe-cert__inner { position: relative; border: var(--hebe-stitch); border-color: color-mix(in srgb, var(--hebe-rose) 80%, var(--hebe-ink)); border-radius: 2px; aspect-ratio: 1.414 / 1; padding: 5% 7% 4.5%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hebe-cert__corner { position: absolute; width: 22px; height: 22px; color: var(--hebe-mustard); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hebe-cert__corner--tl { top: 12px; left: 12px; }
.hebe-cert__corner--tr { top: 12px; right: 12px; }
.hebe-cert__corner--bl { bottom: 12px; left: 12px; }
.hebe-cert__corner--br { bottom: 12px; right: 12px; }
.hebe-cert__shop { display: inline-flex; align-items: center; gap: 8px; font: 600 1.15rem/1 var(--hebe-display); font-variation-settings: "SOFT" 100; }
.hebe-cert__shop svg { width: 24px; height: 24px; color: var(--hebe-rose); }
.hebe-cert__title { font: 400 clamp(1.9rem, 5vw, 3.3rem)/1.08 var(--hebe-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.01em; margin-top: 3.5%; }
.hebe-cert__line { color: var(--hebe-ink-soft); margin-top: 2.5%; }
.hebe-cert__name { font: italic 400 clamp(2.2rem, 6vw, 4rem)/1.1 var(--hebe-display); font-variation-settings: "SOFT" 100; padding: 0 40px 6px; border-bottom: var(--hebe-stitch); margin-top: 1%; overflow-wrap: anywhere; }
.hebe-cert__course { font: 500 clamp(1.2rem, 2.6vw, 1.75rem)/1.2 var(--hebe-display); font-variation-settings: "SOFT" 100; margin-top: 1%; }
.hebe-cert__detail { color: var(--hebe-ink-soft); font-size: 0.95rem; margin-top: 6px; }
.hebe-cert__foot { width: 100%; margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; }
.hebe-cert__slot { display: grid; justify-items: center; gap: 2px; }
.hebe-cert__slot strong { font-weight: 600; padding: 0 14px 6px; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 40%, transparent); min-width: 70%; }
.hebe-cert__slot span { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-cert__slot .hebe-cert__sign { font: 400 1.9rem/1 var(--hebe-hand); }
.hebe-cert__seal { width: clamp(84px, 14vw, 124px); }
.hebe-cert__seal svg { width: 100%; height: auto; }
.hebe-cert__no { position: absolute; left: 0; right: 0; bottom: 8px; font: 0.95rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-cert__art { display: none; }

.hebe-cert-actions { display: grid; justify-items: center; gap: 16px; margin-top: 30px; }
.hebe-cert-actions__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.hebe-cert-actions__label { color: var(--hebe-ink-soft); }
.hebe-cert-actions__link { font: inherit; color: var(--hebe-ink); background: none; border: 0; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hebe-cert-actions__link:hover { color: var(--hebe-rose); }
.hebe-cert-status { font: 1.05rem var(--hebe-hand); color: var(--hebe-ink-soft); min-height: 1.4em; text-align: center; }
.hebe-cert-note { color: var(--hebe-ink-soft); font-size: 0.92rem; text-align: center; max-width: 60ch; margin: 12px auto 0; }

@media (max-width: 640px) {
    .hebe-cert { padding: 8px; }
    .hebe-cert__border { padding: 5px; }
    .hebe-cert__inner { aspect-ratio: auto; padding: 44px 18px 40px; gap: 6px; }
    .hebe-cert__name { padding: 0 16px 6px; }
    .hebe-cert__foot { grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 26px; }
    .hebe-cert__seal { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
    .hebe-cert__corner { width: 16px; height: 16px; }
    .hebe-cert-head { padding: 28px 0; }
}

/* Tạp chí (journal.html, article.html, khối Tạp chí trên trang chủ) */
.hebe-posts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.hebe-posts--even { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; }
.hebe-post { display: block; color: var(--hebe-ink); }
.hebe-post__cover { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: color-mix(in srgb, var(--hebe-tone, var(--hebe-teal)) 38%, var(--hebe-card)); color: var(--hebe-tone, var(--hebe-teal)); }
.hebe-post__cover svg { width: 34%; }
.hebe-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.hebe-post__kind { display: block; margin-top: 14px; font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-post h3 { margin-top: 4px; }
.hebe-posts:not(.hebe-posts--even) .hebe-post:first-child h3 { font-size: 1.6rem; }
.hebe-posts--even .hebe-post:first-child h3 { font-size: 1.3rem; }
.hebe-post p { margin-top: 8px; color: var(--hebe-ink-soft); font-size: 0.95rem; }
.hebe-post:hover h3 { color: var(--hebe-teal); }

.hebe-featured-post { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 56px; }
.hebe-featured-post .hebe-post__cover { border-radius: 18px; }
.hebe-featured-post .hebe-post__cover svg { width: 32%; }
.hebe-featured-post h2 { margin: 6px 0 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.hebe-featured-post h2 a:hover { color: var(--hebe-teal); }
.hebe-featured-post p { max-width: 46ch; color: var(--hebe-ink-soft); }
.hebe-featured-post .hebe-button { margin-top: 24px; }

.hebe-journal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.hebe-journal-bar h2 { font-size: 1.7rem; }
.hebe-chips a[aria-current="page"] { background: var(--hebe-ink); border-color: var(--hebe-ink); color: var(--hebe-card); }
.hebe-journal-empty { color: var(--hebe-ink-soft); }

.hebe-article { padding-bottom: 72px; }
.hebe-article__head { max-width: 860px; margin-inline: auto; padding-top: 24px; }
.hebe-article__head h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 400; line-height: 1.12; text-wrap: balance; }
.hebe-article__standfirst { max-width: 56ch; margin-top: 18px; font-size: 1.2rem; color: var(--hebe-ink-soft); }
.hebe-article__preview { margin-bottom: 14px; padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--hebe-mustard) 30%, var(--hebe-card)); font-weight: 700; }
.hebe-byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.hebe-byline svg { flex: none; width: 46px; height: 46px; color: var(--hebe-rose); }
.hebe-byline strong { display: block; }
.hebe-byline span { color: var(--hebe-ink-soft); font-size: 0.95rem; }
.hebe-article__cover { display: grid; place-items: center; max-width: 1000px; margin: 40px auto 0; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 18px; background: color-mix(in srgb, var(--hebe-tone) 30%, var(--hebe-card)); color: var(--hebe-rose); }
.hebe-article__cover svg { width: 16%; }
.hebe-article__cover img { width: 100%; height: 100%; object-fit: cover; }

.hebe-article__prose,
.hebe-article__end { max-width: 68ch; margin: 0 auto; }
.hebe-article__prose { padding-top: 24px; font-size: 1.12rem; line-height: 1.8; overflow-wrap: anywhere; }
.hebe-article__prose > * + * { margin-top: 1.2em; }
.hebe-article__prose h2 { margin-top: 2em; font-size: 1.8rem; line-height: 1.25; }
.hebe-article__prose h3 { margin-top: 1.6em; line-height: 1.3; }
.hebe-article__prose ul, .hebe-article__prose ol { padding-left: 1.2em; }
.hebe-article__prose ul { list-style: disc; }
.hebe-article__prose ol { list-style: decimal; }
.hebe-article__prose li + li { margin-top: 0.4em; }
.hebe-article__prose a { border-bottom: var(--hebe-stitch); }
.hebe-article__prose a:hover { color: var(--hebe-teal); }
.hebe-article__prose img { max-width: 100%; height: auto; border-radius: 14px; }
.hebe-article__prose blockquote { margin: 2em 0 0; padding: 26px 0; border-top: var(--hebe-stitch); border-bottom: var(--hebe-stitch); font: italic 400 1.6rem/1.4 var(--hebe-display); font-variation-settings: "SOFT" 100; text-align: center; }
.hebe-article__prose table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; background: var(--hebe-card); font-size: 1rem; line-height: 1.5; }
.hebe-article__prose caption { caption-side: bottom; padding: 10px 16px 0; font: 1.05rem var(--hebe-hand); color: var(--hebe-ink-soft); text-align: left; }
.hebe-article__prose th, .hebe-article__prose td { padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 16%, transparent); text-align: left; vertical-align: top; }
.hebe-article__prose thead th { background: var(--hebe-paper-deep); font: 500 1.05rem var(--hebe-display); }
.hebe-article__prose tr:last-child > * { border-bottom: 0; }
.hebe-article__prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.hebe-article__affiliate { padding: 12px 16px; border-radius: 12px; background: var(--hebe-card); color: var(--hebe-ink-soft); font-size: 0.95rem; line-height: 1.6; }

.hebe-mentions { display: grid; gap: 14px; margin-top: 2em; }
.hebe-mention { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px; border-radius: 14px; background: var(--hebe-card); line-height: 1.5; }
.hebe-mention__art, .hebe-pattern-box__art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: color-mix(in srgb, var(--hebe-tone, var(--hebe-mustard)) 24%, var(--hebe-card)); color: var(--hebe-tone, var(--hebe-mustard)); }
.hebe-mention__art svg, .hebe-pattern-box__art svg { width: 62%; }
.hebe-mention .hebe-hand, .hebe-pattern-box .hebe-hand { display: block; }
.hebe-mention h3, .hebe-pattern-box h3 { margin: 2px 0 4px; }
.hebe-mention p, .hebe-pattern-box p { color: var(--hebe-ink-soft); font-size: 0.95rem; }
.hebe-mention__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.hebe-pattern-box { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 2em; padding: 18px; border: var(--hebe-stitch); border-radius: 14px; line-height: 1.5; }
.hebe-pattern-box .hebe-button { margin-top: 14px; }

.hebe-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: var(--hebe-stitch); }
.hebe-share--article { margin-top: 44px; padding-top: 24px; }
.hebe-share__label { margin-right: 6px; font-weight: 700; }
.hebe-share__button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--hebe-paper-deep); color: var(--hebe-ink); cursor: pointer; transition: background-color 0.2s, color 0.2s, translate 0.2s; }
.hebe-share__button:hover { background: var(--hebe-ink); color: var(--hebe-card); translate: 0 -2px; }
.hebe-share__button:focus-visible { outline: 2px solid var(--hebe-teal); outline-offset: 2px; }
.hebe-share__button svg { width: 20px; height: 20px; }
.hebe-share__button--phone { display: none; }
.hebe-share__status { flex-basis: 100%; min-height: 1.2em; font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-share__status:empty { display: none; }

.hebe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; }
.hebe-tags__label { font-weight: 700; }
.hebe-tags a { border-bottom: var(--hebe-stitch); font: 1.1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-tags a:hover { color: var(--hebe-teal); }

.hebe-author-box { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 40px; padding: 24px; border-radius: 14px; background: var(--hebe-card); }
.hebe-author-box > svg { width: 84px; height: 84px; color: var(--hebe-rose); }
.hebe-author-box h2 { font-size: 1.3rem; }
.hebe-author-box p { margin-top: 6px; color: var(--hebe-ink-soft); }

.hebe-comments { max-width: 68ch; margin-inline: auto; }
.hebe-comments h2 { margin-bottom: 22px; font-size: 1.8rem; }
.hebe-comments__list { display: grid; gap: 22px; }
.hebe-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hebe-comment__head span { font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-comment__body { margin-top: 6px; white-space: pre-line; }
.hebe-comment--reply { margin: 14px 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--hebe-rose); border-radius: 0 12px 12px 0; background: var(--hebe-card); }
.hebe-comment-form { display: grid; gap: 16px; margin-top: 40px; }
.hebe-comment-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hebe-comment-form__note { color: var(--hebe-ink-soft); font-size: 0.92rem; }
.hebe-comment-form .hebe-button { justify-self: start; }

@media (max-width: 980px) {
    .hebe-posts, .hebe-posts--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hebe-featured-post { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
    .hebe-share__button--phone { display: grid; }
}

@media (max-width: 560px) {
    .hebe-posts, .hebe-posts--even { grid-template-columns: minmax(0, 1fr); }
    .hebe-posts:not(.hebe-posts--even) .hebe-post:first-child h3 { font-size: 1.3rem; }
    .hebe-article__cover { aspect-ratio: 3 / 2; }
    .hebe-article__cover svg { width: 22%; }
    .hebe-article__prose { font-size: 1.05rem; line-height: 1.75; }
    .hebe-article__prose blockquote { font-size: 1.3rem; }
    .hebe-article__prose table { display: block; overflow-x: auto; }
    .hebe-article__prose th, .hebe-article__prose td { min-width: 120px; padding: 10px 12px; }
    .hebe-mention, .hebe-pattern-box { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
    .hebe-author-box { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px; }
    .hebe-author-box > svg { width: 56px; height: 56px; }
    .hebe-comment-form__row { grid-template-columns: minmax(0, 1fr); }
}

/* Bảng tra mũi móc (glossary.html) */
.hebe-glossary__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hebe-glossary__print-note { display: block; margin-top: 14px; }

.hebe-glossary__trap-block { padding-top: 8px; }
.hebe-glossary__trap { padding: 10px; border-radius: 14px; background: var(--hebe-card); }
.hebe-glossary__trap-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 26px 28px; border: 2px dashed var(--hebe-mustard); border-radius: 9px; }
.hebe-glossary__trap p { margin-top: 10px; color: var(--hebe-ink-soft); }

.hebe-glossary__pairs,
.hebe-glossary__sizes { width: 100%; border-collapse: collapse; }
.hebe-glossary__pairs th, .hebe-glossary__pairs td,
.hebe-glossary__sizes th, .hebe-glossary__sizes td { padding: 9px 12px 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 16%, transparent); text-align: left; vertical-align: top; }
.hebe-glossary__pairs thead th,
.hebe-glossary__sizes thead th { border-bottom: var(--hebe-stitch); color: var(--hebe-ink-soft); font-size: 0.9rem; }
.hebe-glossary__pairs tbody th,
.hebe-glossary__sizes tbody th { font-weight: 600; }
.hebe-glossary__pairs tbody tr:last-child > *,
.hebe-glossary__sizes tbody tr:last-child > * { border-bottom: 0; }
.hebe-glossary code { padding: 1px 8px; border-radius: 6px; background: var(--hebe-paper); font: 700 1rem var(--hebe-body, inherit); white-space: nowrap; }
.hebe-glossary__pairs code { background: color-mix(in srgb, var(--hebe-mustard) 34%, var(--hebe-card)); }

.hebe-glossary__tools { display: grid; gap: 16px; margin-bottom: 22px; }
.hebe-glossary__search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hebe-glossary__search label { flex: 1 0 100%; font-weight: 700; }
.hebe-glossary__search input { flex: 1 1 260px; min-width: 0; max-width: 520px; padding: 12px 22px; border: 2px solid var(--hebe-ink); border-radius: 999px; background: var(--hebe-card); color: var(--hebe-ink); font: inherit; }
.hebe-glossary__search input::placeholder { color: var(--hebe-ink-soft); }
.hebe-chip { padding: 8px 18px; border: 2px solid color-mix(in srgb, var(--hebe-ink) 28%, transparent); border-radius: 999px; background: none; color: var(--hebe-ink); font: inherit; font-weight: 700; cursor: pointer; }
.hebe-chip:hover { background: var(--hebe-card); }
.hebe-chip[aria-pressed="true"] { border-color: var(--hebe-ink); background: var(--hebe-ink); color: var(--hebe-card); }
.hebe-glossary__count { font: 1.05rem var(--hebe-hand); color: var(--hebe-ink-soft); }

.hebe-glossary__table { width: 100%; border-collapse: collapse; }
.hebe-glossary__table th, .hebe-glossary__table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: middle; }
.hebe-glossary__table thead th { border-bottom: var(--hebe-stitch); color: var(--hebe-ink-soft); font-size: 0.92rem; white-space: nowrap; }
.hebe-glossary__table tbody tr + tr > * { border-top: 1px solid color-mix(in srgb, var(--hebe-ink) 14%, transparent); }
.hebe-glossary__table tbody th { font-weight: 700; }
.hebe-glossary__group { display: block; font: 400 0.98rem/1.3 var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-glossary__desc { min-width: 22ch; color: var(--hebe-ink-soft); font-size: 0.95rem; }
.hebe-glossary__video { display: inline-block; margin-top: 4px; font-size: 0.9rem; }
.hebe-glossary__none { color: var(--hebe-ink-soft); }
.hebe-glossary__sym { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--hebe-paper); }
.hebe-glossary__sym svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hebe-glossary__sym .hebe-fill { fill: currentColor; }
.hebe-glossary__sym img { width: 34px; height: 34px; object-fit: contain; }
.hebe-glossary__sym--none { font: 0.9rem var(--hebe-hand); color: var(--hebe-ink-soft); text-align: center; }
.hebe-glossary__empty { padding: 28px 0; color: var(--hebe-ink-soft); }
.hebe-glossary__note { display: block; margin-top: 12px; }

.hebe-glossary__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: start; }
.hebe-glossary__two h2 { margin-bottom: 8px; font-size: 1.7rem; }
.hebe-glossary__two > div > p { margin-bottom: 18px; color: var(--hebe-ink-soft); }
.hebe-glossary__sizes { padding: 6px 18px; border-radius: 14px; background: var(--hebe-card); }
.hebe-glossary__small { margin-top: 12px; color: var(--hebe-ink-soft); font-size: 0.9rem; }

.hebe-glossary__panel { max-width: 640px; padding: 28px; border-radius: 18px; background: var(--hebe-card); }
.hebe-glossary__panel p { margin: 8px 0 16px; color: var(--hebe-ink-soft); }

@media (max-width: 980px) {
    .hebe-glossary__trap-inner, .hebe-glossary__two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
    .hebe-glossary__table thead { position: absolute; left: -9999px; }
    .hebe-glossary__table, .hebe-glossary__table tbody { display: block; }
    .hebe-glossary__table tr { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--hebe-ink) 14%, transparent); }
    .hebe-glossary__table tr[hidden] { display: none; }
    .hebe-glossary__table tr > * { display: block; grid-column: 2; padding: 0; border: 0 !important; }
    .hebe-glossary__table tr > .hebe-glossary__sym-cell { grid-column: 1; grid-row: 1 / span 5; }
    .hebe-glossary__table td[data-label]::before { content: attr(data-label) ": "; color: var(--hebe-ink-soft); font-size: 0.9rem; }
    .hebe-glossary__desc { min-width: 0; }
    .hebe-glossary__trap-inner { padding: 18px 16px; }
    .hebe-glossary__sizes { display: block; overflow-x: auto; }
}

@media print {
    .hebe-glossary__actions, .hebe-glossary__print-note, .hebe-glossary__tools, .hebe-glossary__next { display: none !important; }
    .hebe-glossary .hebe-tinted { background: none; }
    .hebe-glossary .hebe-tinted::before, .hebe-glossary .hebe-tinted::after { display: none; }
    .hebe-glossary .hebe-block { padding: 14px 0; }
    .hebe-glossary tr { break-inside: avoid; }
}

/* Câu chuyện của Hebe (about.html) và check-in tại tiệm (checkin.html) */
.hebe-about .hebe-category__head { padding-bottom: 8px; }
.hebe-about__intro .doc-intro { max-width: 56ch; margin: 0; color: var(--hebe-ink-soft); font-size: 1.15rem; }
.hebe-about__story-block { padding-top: 28px; }
.hebe-about__story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hebe-about__prose p { margin-top: 1em; font-size: 1.08rem; line-height: 1.75; }
.hebe-about__prose p:first-child { margin-top: 0; }
.hebe-about__sign { font: 1.4rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-about__photo { margin: 0; }
.hebe-about__photo img { width: 100%; border-radius: 18px; }
.hebe-about__ph { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 24px; border-radius: 18px; background: color-mix(in srgb, var(--hebe-rose) 30%, var(--hebe-card)); color: var(--hebe-ink-soft); text-align: center; }
.hebe-about__photo figcaption { margin-top: 10px; font: 1rem var(--hebe-hand); color: var(--hebe-ink-soft); }
.hebe-about__soft { max-width: 52ch; margin-top: 10px; color: var(--hebe-ink-soft); }
.hebe-about__small { display: block; margin-top: 8px; color: var(--hebe-ink-soft); font-size: 0.92rem; }
.hebe-about__hand { display: block; margin-top: 16px; }
.hebe-about__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.hebe-about__cards li { padding: 24px; border-radius: 16px; background: var(--hebe-card); }
.hebe-about__cards p, .hebe-about__list p, .hebe-about__panel p { margin-top: 8px; color: var(--hebe-ink-soft); }
.hebe-about__sources { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hebe-about__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 28px; }
.hebe-about__panel { padding: 26px; border: var(--hebe-stitch); border-radius: 16px; }
.hebe-about__contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.hebe-contact-list { display: grid; gap: 14px; margin-top: 24px; }
.hebe-contact-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.hebe-contact-list dt { font-weight: 700; }
.hebe-contact-list dd { margin: 0; }
.hebe-contact-list__row { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.hebe-about__form { display: grid; gap: 16px; padding: 26px; border: var(--hebe-stitch); border-radius: 16px; background: var(--hebe-card); }
.hebe-about__form .hebe-button { justify-self: start; }
.hebe-about__form select { width: 100%; }

.hebe-checkin__hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hebe-checkin__gifts { display: grid; gap: 14px; }
.hebe-checkin__gifts li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--hebe-card); }
.hebe-checkin__gifts strong { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--hebe-mustard) 36%, var(--hebe-card)); font: 500 1.5rem var(--hebe-display); }
.hebe-checkin__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: hebe-step; }
.hebe-checkin__steps li { padding: 24px; border-radius: 16px; background: var(--hebe-card); counter-increment: hebe-step; }
.hebe-checkin__steps li::before { content: counter(hebe-step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--hebe-ink); color: var(--hebe-card); font-weight: 700; }
.hebe-checkin__steps h2 { font-size: 1.25rem; }
.hebe-checkin__steps p { margin-top: 8px; color: var(--hebe-ink-soft); }
.hebe-checkin__two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hebe-checkin__places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hebe-checkin__rules-title { margin-top: 40px; }
.hebe-checkin__rules { display: grid; gap: 10px; margin-top: 14px; padding-left: 1.2em; list-style: disc; }
.hebe-checkin__place { display: grid; gap: 12px; padding: 26px; border: var(--hebe-stitch); border-radius: 16px; background: var(--hebe-card); }
.hebe-checkin__place .hebe-button { justify-self: start; }
.hebe-checkin__line { display: block; }

@media (max-width: 980px) {
    .hebe-about__story, .hebe-about__sources, .hebe-about__contact, .hebe-checkin__hero, .hebe-checkin__two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hebe-about__cards, .hebe-checkin__steps { grid-template-columns: minmax(0, 1fr); }
    .hebe-about__ph { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
    .hebe-about__list { grid-template-columns: minmax(0, 1fr); }
    .hebe-contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Đầu trang có lớp .hebe-wrap trên cùng phần tử: giữ lề hai bên của khung */
.hebe-wrap.hebe-category__head { padding-right: 28px; padding-left: 28px; }

@media (max-width: 560px) {
    .hebe-wrap.hebe-category__head { padding-right: 16px; padding-left: 16px; }
}

/* Logo của tiệm cạnh tên tiệm ở đầu trang và chân trang */
.hebe-logo__mark { flex: none; width: 72px; height: 72px; margin: -10px 0; object-fit: contain; }
.hebe-footer__brand .hebe-logo__mark { width: 96px; height: 96px; margin: 0; }

@media (max-width: 560px) {
    .hebe-masthead .hebe-logo__mark { width: 52px; height: 52px; margin: -6px 0; }
}
