/*
    CCM Ace — Editorial luxe theme
    Warm-neutral palette built on CSS variables.
    Swap the brand colours in :root when the real CCM palette is confirmed.
*/

:root {
    /* Surfaces */
    --paper: #ffffff;       /* clean white page background */
    --surface: #f7faf9;     /* card / panel surface */
    --surface-2: #eef4f3;   /* tinted teal band */

    /* Ink */
    --ink: #1b2b2b;         /* deep teal-charcoal */
    --ink-soft: #3f4f4e;    /* body copy */
    --muted: #6f7d7c;       /* captions, meta */

    /* Lines */
    --line: #e0e8e7;        /* hairline rule */
    --line-soft: #eef3f2;

    /* Accents (brand colour: Ace petrol teal).
       Variable names kept as --clay/--olive/--gold for back-compat;
       values now hold the teal brand palette. */
    --clay: #2f6b6f;        /* primary petrol teal accent */
    --clay-deep: #21504f;
    --olive: #4f8079;       /* secondary teal */
    --gold: #7faaa4;        /* soft teal highlight */
    --header-bg: rgba(255, 255, 255, 0.85);
    --demo-contrast-bg: #1b2b2b;

    /* Type */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Shape */
    --radius: 3px;
    --radius-lg: 8px;

    /* Rhythm */
    --gutter: clamp(20px, 6vw, 96px);
    --home-section-y: clamp(48px, 7vw, 92px);
    --trust-strip-y: clamp(28px, 4vw, 46px);
    --home-card-padding: clamp(24px, 3vw, 36px);
    --home-card-min-height: 240px;
    --hero-feature-y: clamp(40px, 8vw, 110px);
}

/* Checkout order summary actions */
.wc-block-components-order-summary-item__description .wc-block-cart-item__prices,
.wc-block-components-order-summary-item__description .wc-block-components-order-summary-item__individual-prices {
    display: none !important;
}

.ccm-checkout-remove-item {
    appearance: none;
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 9px 0 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: var(--clay, #2f6b6f);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
}

.ccm-checkout-remove-item:hover,
.ccm-checkout-remove-item:focus-visible {
    color: var(--ink, #172a2b);
}

.ccm-checkout-remove-item:focus-visible {
    outline: 2px solid var(--clay, #2f6b6f);
    outline-offset: 3px;
}

.ccm-checkout-remove-item:disabled {
    cursor: wait;
    opacity: 0.6;
}

.ccm-checkout-remove-status {
    display: block;
    margin-top: 5px;
    color: #9b2c2c;
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width: 782px) {
    .wp-block-woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
        top: var(--ccm-sticky-content-offset, 128px) !important;
    }
}

* {
    box-sizing: border-box;
}

body {
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .site-brand__wordmark {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.015em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    height: auto;
    max-width: 100%;
}

::selection {
    background: var(--clay);
    color: #fff;
}

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

.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-bar .site-header {
    top: 32px;
}

.site-header__top {
    align-items: center;
    display: grid;
    gap: clamp(12px, 2vw, 28px);
    grid-template-columns: auto 1fr auto;
    min-height: 92px;
    padding: 18px clamp(20px, 3.2vw, 64px);
}

.site-header__actions {
    align-items: center;
    display: inline-flex;
    gap: clamp(8px, 1.2vw, 18px);
    justify-self: end;
}

.site-header__cta {
    flex: none;
    font-size: 11px;
    padding: 12px 18px;
    white-space: nowrap;
}

.site-brand {
    align-items: flex-start;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    justify-self: start;
    line-height: 1;
    text-align: left;
}

.site-brand__wordmark {
    color: var(--ink);
    display: block;
    font-size: clamp(21px, 1.7vw, 30px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
}

.site-brand__strapline {
    color: var(--clay);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-top: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-actions {
    align-items: center;
    display: inline-flex;
    gap: clamp(4px, 0.8vw, 10px);
}

.icon-link {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    padding: 0;
    position: relative;
    transition: color 160ms ease, transform 160ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
    color: var(--clay);
    transform: translateY(-1px);
}

.icon-link--cart strong {
    align-items: center;
    background: var(--clay);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    position: absolute;
    right: -4px;
    top: -2px;
}

.icon-user,
.icon-bag,
.icon-search {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 28px;
}

.icon-user::before {
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
    height: 10px;
    left: 8px;
    position: absolute;
    top: 2px;
    width: 10px;
}

.icon-user::after {
    border: 2px solid currentColor;
    border-radius: 50% 50% 0 0;
    border-bottom: 0;
    content: "";
    height: 12px;
    left: 3px;
    position: absolute;
    top: 17px;
    width: 22px;
}

.icon-bag::before {
    border: 2px solid currentColor;
    border-radius: 2px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 8px;
    width: 22px;
}

.icon-bag::after {
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    content: "";
    height: 8px;
    left: 9px;
    position: absolute;
    top: 2px;
    width: 10px;
}

.icon-search::before {
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
    height: 16px;
    left: 1px;
    position: absolute;
    top: 1px;
    width: 16px;
}

.icon-search::after {
    background: currentColor;
    content: "";
    height: 13px;
    left: 20px;
    position: absolute;
    top: 19px;
    transform: rotate(-45deg);
    transform-origin: top center;
    width: 2px;
}

/* ---------------------------------------------------------------- Nav */

.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.4vw, 26px);
    justify-content: center;
    margin: 0;
}

.site-nav a,
.site-nav summary {
    color: var(--ink);
    cursor: pointer;
    display: block;
    font-size: clamp(11px, 0.85vw, 12px);
    font-weight: 600;
    letter-spacing: 0.13em;
    list-style: none;
    padding: 14px 2px;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav summary::-webkit-details-marker {
    display: none;
}

.site-nav a::after,
.site-nav summary::after {
    background: var(--clay);
    bottom: 8px;
    content: "";
    height: 1px;
    left: 2px;
    position: absolute;
    right: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--clay);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

/* ---------------------------------------------------------------- Main */

.site-main {
    min-height: 70vh;
}

/* ---------------------------------------------------------------- Homepage hero (split) */

.home-hero {
    align-items: center;
    display: grid;
    gap: clamp(32px, 6vw, 80px);
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.25fr);
    padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(48px, 7vw, 96px);
}

.home-hero__copy {
    max-width: 540px;
}

.home-hero__copy h1 {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 20px;
}

.home-hero__copy p {
    color: var(--ink-soft);
    font-size: clamp(16px, 1.3vw, 19px);
    margin: 0 0 32px;
    max-width: 480px;
}

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

.home-hero__media {
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -48px rgba(20, 43, 43, 0.45);
    overflow: hidden;
}

.home-hero__media img {
    aspect-ratio: 6 / 5;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero__copy {
        max-width: none;
    }

    .home-hero__media img {
        aspect-ratio: 4 / 3;
    }
}

/* ---------------------------------------------------------------- Category grid */

.category-grid {
    display: grid;
    gap: clamp(14px, 1.8vw, 22px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.category-card:hover {
    border-color: var(--clay);
    box-shadow: 0 26px 50px -36px rgba(20, 43, 43, 0.5);
    transform: translateY(-3px);
}

.category-card__media {
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    position: relative;
}

.category-card__media img,
.category-card__swatch {
    display: block;
    inset: 0;
    object-fit: cover;
    position: absolute;
    height: 100%;
    width: 100%;
}

.category-card__swatch {
    background: repeating-linear-gradient(90deg, #d9c8ad 0 20px, #f1e7d5 20px 34px, #c9b694 34px 44px);
}

.category-card__label {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    justify-content: space-between;
    padding: 14px 16px;
}

.category-card__label em {
    color: var(--clay);
    font-style: normal;
    transition: transform 200ms ease;
}

.category-card:hover .category-card__label em {
    transform: translateX(3px);
}

@media (max-width: 980px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

.eyebrow {
    color: var(--clay);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

/* Buttons */

.button,
.button:visited,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    align-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.14em;
    line-height: 1;
    padding: 17px 30px;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button--primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--ink);
    color: var(--paper);
}

.button--primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

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

.button--ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---------------------------------------------------------------- Product paths */

.product-paths {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 var(--gutter) clamp(48px, 7vw, 72px);
}

.path-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 14px;
    min-height: 260px;
    padding: clamp(26px, 3vw, 40px);
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.path-card:hover {
    border-color: var(--clay);
    box-shadow: 0 30px 60px -40px rgba(20, 43, 43, 0.5);
    transform: translateY(-3px);
}

.path-card span {
    color: var(--clay);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.path-card strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.08;
    max-width: 680px;
}

.path-card em {
    align-items: center;
    align-self: end;
    color: var(--ink);
    display: inline-flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    gap: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.path-card em::after {
    border-right: 1.5px solid var(--clay);
    border-top: 1.5px solid var(--clay);
    content: "";
    height: 7px;
    transform: rotate(45deg);
    transition: transform 200ms ease;
    width: 7px;
}

.path-card:hover em::after {
    transform: rotate(45deg) translate(2px, -2px);
}

/* Site search overlay */
.site-search {
    inset: 0;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 140;
}

.site-search.is-open {
    pointer-events: auto;
    visibility: visible;
}

.site-search__overlay {
    background: rgba(20, 43, 43, 0.42);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 220ms ease;
}

.site-search.is-open .site-search__overlay {
    opacity: 1;
}

.site-search__panel {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -30px rgba(20, 43, 43, 0.45);
    left: 0;
    opacity: 0;
    padding: clamp(20px, 4vw, 32px) var(--gutter) 18px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.admin-bar .site-search__panel {
    top: 32px;
}

.site-search.is-open .site-search__panel {
    opacity: 1;
    transform: translateY(0);
}

.site-search__form {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin: 0 auto;
    max-width: 760px;
}

.site-search__input {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 16px;
    padding: 14px 22px;
    width: 100%;
}

.site-search__input:focus {
    border-color: var(--clay);
    outline: none;
}

.site-search__submit {
    white-space: nowrap;
}

.site-search__close {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0 4px;
}

.site-search__hint {
    color: var(--muted);
    font-size: 13px;
    margin: 10px auto 0;
    max-width: 760px;
    text-align: center;
}

body.search-open {
    overflow: hidden;
}

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

/* Search results page */
.site-search-results {
    padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 88px);
}

.site-search-results__head {
    margin: 0 auto 40px;
    max-width: 760px;
    text-align: center;
}

.site-search-results__head h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 10px;
}

.site-search-results__head p {
    color: var(--ink-soft);
    margin: 0 0 24px;
}

.site-search-results__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.site-search-results__form input {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    flex: 1;
    font-size: 15px;
    min-width: 240px;
    padding: 12px 20px;
}

.site-search-results__form input:focus {
    border-color: var(--clay);
    outline: none;
}

.site-search-results__section {
    margin-bottom: 48px;
}

.site-search-results__section-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.site-search-results__section-head h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

.site-search-results__section-head a {
    color: var(--clay);
    font-size: 14px;
    font-weight: 600;
}

.site-search-results__empty {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.site-search-results .fabric-card h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    margin: 10px 0;
}

.site-search-results .accessory-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

@media (max-width: 782px) {
    .admin-bar .site-search__panel {
        top: 46px;
    }
}

@media (max-width: 640px) {
    .site-search__form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-search__submit {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ---------------------------------------------------------------- Fabric archive */

.fabric-archive {
    padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.fabric-archive__intro {
    max-width: 860px;
}

.fabric-archive__intro h1 {
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
    margin: 0 0 20px;
}

.fabric-archive__intro p {
    color: var(--ink-soft);
    font-size: clamp(17px, 1.5vw, 20px);
    margin: 0 0 28px;
}

.fabric-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: 38px 0 28px;
    padding: 18px 0;
}

.fabric-toolbar span {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.fabric-toolbar strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fabric-filter-toggle {
    background: none;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease;
}

.fabric-filter-toggle:hover {
    background: var(--ink);
    color: var(--paper);
}

.fabric-grid__empty {
    color: var(--muted);
    margin: 40px 0;
    text-align: center;
}

.link-button {
    background: none;
    border: 0;
    color: var(--clay);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

/* Fabrics: filter & sort slide-out */
.fabric-filters {
    inset: 0;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 120;
}

.fabric-filters.is-open {
    pointer-events: auto;
    visibility: visible;
}

.fabric-filters__overlay {
    background: rgba(20, 43, 43, 0.42);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 240ms ease;
}

.fabric-filters.is-open .fabric-filters__overlay {
    opacity: 1;
}

.fabric-filters__panel {
    background: var(--paper);
    box-shadow: -24px 0 70px -32px rgba(20, 43, 43, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    width: min(380px, 92vw);
}

.fabric-filters.is-open .fabric-filters__panel {
    transform: translateX(0);
}

.admin-bar .fabric-filters__panel {
    height: calc(100% - 32px);
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fabric-filters__panel {
        height: calc(100% - 46px);
        top: 46px;
    }
}

.fabric-filters__head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
}

.fabric-filters__head strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
}

.fabric-filters__close {
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0 4px;
}

.fabric-filters__body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 24px 20px;
}

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

.fabric-facet summary {
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    list-style: none;
    text-transform: uppercase;
}

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

.fabric-facet summary::after {
    content: "+";
    float: right;
    font-weight: 400;
}

.fabric-facet[open] summary::after {
    content: "\2212";
}

.fabric-facet label {
    align-items: center;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    gap: 10px;
    padding: 8px 0 0;
}

.fabric-facet label input {
    accent-color: var(--clay);
}

.fabric-price-range {
    padding: 14px 0 4px;
}

.fabric-price-range__input {
    accent-color: var(--clay);
    cursor: pointer;
    width: 100%;
}

.fabric-price-range__label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 0;
}

.fabric-filters__foot {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 18px 24px;
}

.fabric-filters__clear {
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 12px 18px;
    text-transform: uppercase;
}

.fabric-filters__view {
    flex: 1;
    text-align: center;
}

.fabric-grid {
    display: grid;
    gap: clamp(20px, 2.5vw, 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------------------------------------------------------------- Accessories archive */

.accessory-archive {
    padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(40px, 6vw, 80px);
}

.accessory-archive .fabric-toolbar {
    margin-top: 0;
}

.accessory-grid {
    display: grid;
    gap: clamp(20px, 2.5vw, 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accessory-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.accessory-card:hover {
    border-color: var(--clay);
    box-shadow: 0 30px 60px -40px rgba(20, 43, 43, 0.5);
    transform: translateY(-3px);
}

.accessory-card__media {
    display: block;
    position: relative;
}

.accessory-card__media img {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    display: block;
    object-fit: cover;
    width: 100%;
}

.accessory-card__badge {
    background: var(--clay);
    border-radius: 999px;
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
    left: 14px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    position: absolute;
    text-transform: uppercase;
    top: 14px;
}

.accessory-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.accessory-card__type {
    color: var(--clay);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.accessory-card h2 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

.accessory-card h2 a {
    color: inherit;
    text-decoration: none;
}

.accessory-card h2 a:hover {
    color: var(--clay);
}

.accessory-card .price {
    color: var(--clay);
    font-weight: 600;
}

.accessory-card .button {
    align-self: flex-start;
    margin-top: auto;
}

.accessory-grid__empty,
.accessory-empty {
    color: var(--muted);
    margin: 40px 0;
    text-align: center;
}

.accessory-empty h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 12px;
}

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

@media (max-width: 560px) {
    .accessory-grid {
        grid-template-columns: 1fr;
    }
}

.fabric-search {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.fabric-search__input {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    flex: 1;
    font-size: 15px;
    min-width: 240px;
    padding: 14px 22px;
}

.fabric-search__input:focus {
    border-color: var(--clay);
    outline: none;
}

.fabric-search__count {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.fabric-search__empty {
    color: var(--muted);
    margin: 30px 0;
    text-align: center;
}

.fabric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.fabric-card:hover {
    border-color: var(--clay);
    box-shadow: 0 30px 60px -40px rgba(20, 43, 43, 0.5);
    transform: translateY(-3px);
}

.fabric-card img,
.fabric-card__swatch {
    aspect-ratio: 4 / 3;
    background: repeating-linear-gradient(90deg, #d9c8ad 0 26px, #f1e7d5 26px 44px, #c9b694 44px 58px);
    display: block;
    object-fit: cover;
    width: 100%;
}

.fabric-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.fabric-card__group {
    color: var(--clay);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fabric-card h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    margin: 10px 0;
}

.fabric-card p {
    color: var(--muted);
    margin: 0 0 16px;
}

.fabric-card dl,
.fabric-single dl {
    display: grid;
    gap: 11px;
    margin: 0;
}

.fabric-card dl div,
.fabric-single dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.fabric-card dt,
.fabric-single dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.fabric-card dd,
.fabric-single dd {
    color: var(--ink);
    font-weight: 500;
    margin: 0;
    text-align: right;
}

.fabric-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.fabric-action {
    align-items: center;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    color: var(--ink);
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.12em;
    min-height: 40px;
    padding: 10px 16px;
    text-transform: uppercase;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.fabric-action:hover {
    background: var(--ink);
    color: var(--paper);
}

.fabric-action--primary {
    background: var(--ink);
    color: var(--paper);
}

.fabric-action--primary:hover {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.fabric-action::after {
    content: "";
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    height: 6px;
    margin-left: 9px;
    transform: rotate(45deg);
    width: 6px;
}

.fabric-empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    padding: 32px;
}

/* ---------------------------------------------------------------- Curtain journey */

.journey-hero {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding: clamp(48px, 8vw, 100px) var(--gutter);
    text-align: center;
}

.journey-hero h1 {
    font-size: clamp(38px, 5.5vw, 78px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
    margin: 10px auto 16px;
    max-width: 980px;
}

.journey-hero p:last-child {
    color: var(--ink-soft);
    margin: 0 auto;
    max-width: 720px;
}

.curtain-journey {
    display: grid;
    gap: clamp(32px, 5vw, 68px);
    padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.journey-step {
    opacity: 0.5;
    scroll-margin-top: 110px;
    transition: opacity 200ms ease;
}

.journey-step--active {
    opacity: 1;
}

.journey-step__heading {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}

.journey-step__heading > span {
    align-items: center;
    border: 1px solid var(--clay);
    border-radius: 999px;
    color: var(--clay);
    display: inline-flex;
    font-family: var(--font-display);
    font-weight: 500;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.journey-step--active .journey-step__heading > span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.journey-step__heading h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 4px 0 0;
}

.fabric-grid--compact,
.fabric-grid--journey {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fabric-grid--journey {
    gap: clamp(28px, 3.5vw, 44px);
}

.fabric-card--select {
    color: inherit;
    padding: 0;
    text-decoration: none;
}

.fabric-card--journey {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.fabric-card--journey:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.fabric-card--journey .fabric-card__media {
    border-radius: 8px;
    display: block;
    overflow: hidden;
}

.fabric-card--journey .fabric-card__media img,
.fabric-card--journey .fabric-card__swatch {
    aspect-ratio: 1 / 1;
    transition: opacity 180ms ease;
}

.fabric-card--journey:hover .fabric-card__media img {
    opacity: 0.94;
}

.fabric-card--journey.is-selected .fabric-card__media {
    box-shadow: 0 0 0 2px var(--ink);
}

.fabric-card--journey .fabric-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0;
}

.fabric-card--journey .fabric-card__title {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.fabric-card--journey .fabric-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.fabric-card--journey .fabric-card__title a:hover {
    text-decoration: underline;
}

.fabric-card--journey .fabric-card__desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.fabric-card--journey .fabric-card__price {
    font-size: 15px;
    font-weight: 500;
    margin: 2px 0 0;
}

.fabric-card--journey .fabric-card__price span {
    color: var(--muted);
    font-weight: 400;
}

.fabric-card--journey .fabric-swatches {
    margin: 2px 0 0;
}

.fabric-card--journey .fabric-swatch {
    height: 30px;
    width: 30px;
}

.fabric-card--journey .fabric-card__select {
    color: var(--ink);
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: fit-content;
}

.fabric-card--journey .fabric-card__select:hover {
    color: var(--clay);
}

.fabric-card--select .fabric-card__media {
    display: block;
}

.journey-step__content {
    display: grid;
    gap: 28px;
}

.journey-fabric-strip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--clay);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    padding: 16px 20px;
}

.journey-fabric-strip img {
    border-radius: 6px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.journey-fabric-strip__copy {
    display: grid;
    flex: 1;
    gap: 4px;
    min-width: 0;
}

.journey-fabric-strip__copy span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.journey-fabric-strip__copy strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 500;
    line-height: 1.1;
}

.journey-fabric-strip__change {
    color: var(--clay);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.selected-fabric-bar {
    align-items: center;
    background: linear-gradient(180deg, #fbfcfc, #f3f8f7);
    border: 1px solid #d9e7e5;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -36px rgba(20, 43, 43, 0.42);
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 24px;
    padding: 16px 18px;
}

.selected-fabric-bar img {
    border: 1px solid rgba(27, 43, 43, 0.08);
    border-radius: 6px;
    box-shadow: 0 8px 18px -14px rgba(20, 43, 43, 0.45);
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.selected-fabric-bar > div {
    display: grid;
    gap: 4px;
}

.selected-fabric-bar strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.05;
}

.selected-fabric-bar span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.selected-fabric-bar a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    margin-left: 0;
    padding: 10px 16px;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.heading-choice-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.heading-choice-grid__lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin: -8px 0 0;
}

.heading-choice-wrap {
    position: relative;
}

.heading-choice-wrap.is-help-active .heading-choice {
    border-color: var(--clay);
}

.heading-choice-wrap.is-help-active .heading-choice__help {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.heading-choice__help {
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(27, 43, 43, 0.1);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 30px;
    z-index: 3;
}

.heading-choice__help:hover,
.heading-choice__help:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    outline: none;
}

.curtain-headings-help-bar {
    align-items: center;
    background: #eef5f4;
    border: 1px solid #d6e6e4;
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow: visible;
    padding: 14px 18px;
    position: relative;
    z-index: 4;
}

.curtain-headings-help-bar p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    max-width: 52ch;
}

.curtain-headings-help-trigger--primary {
    align-items: center;
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    display: inline-flex;
    gap: 8px;
    padding: 10px 18px;
}

.curtain-headings-help-trigger--primary:hover,
.curtain-headings-help-trigger--primary:focus-visible {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.curtain-headings-help-trigger--primary span {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.journey-fabric-strip--hero {
    align-items: center;
    gap: 20px 28px;
    padding: 22px 24px;
}

.journey-fabric-strip--hero img {
    border-radius: 10px;
    box-shadow: 0 18px 36px -28px rgba(20, 43, 43, 0.45);
    height: 96px;
    object-fit: cover;
    width: 96px;
}

.journey-fabric-strip__copy em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.4;
}

.heading-choice {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: inherit;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.heading-choice--visual {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: hidden;
}

.heading-choice--visual .heading-choice__preview {
    border: none;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
}

.heading-choice:hover {
    border-color: rgba(47, 107, 111, 0.45);
    box-shadow: 0 24px 48px -36px rgba(20, 43, 43, 0.35);
    transform: translateY(-2px);
}

.heading-choice__preview {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    max-height: 320px;
    overflow: hidden;
    padding: 16px 14px 10px;
}

.curtain-journey .heading-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 300px));
    gap: 16px;
}

.curtain-journey .heading-choice {
    border-color: #e5e7eb;
}

.curtain-journey .heading-choice__preview--photo {
    aspect-ratio: auto;
    background: #fff;
    border-bottom: 0;
    height: 250px;
    padding: 10px;
    width: 100%;
}

.curtain-journey .heading-choice__footer {
    border-top-color: #f1f1f1;
    gap: 10px;
    padding: 12px 14px;
}

.curtain-journey .heading-choice__body strong {
    font-size: 20px;
}

.curtain-journey .heading-choice__cta {
    padding: 10px 12px;
}

.curtain-journey .heading-choice__preview--photo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.heading-choice__preview .ccm-curtain-svg {
    display: block;
    height: 100%;
    max-height: 100%;
    width: auto;
}

.heading-choice__preview:not(.has-fabric) .ccm-curtain-svg {
    opacity: 0.65;
}

.heading-choice__footer {
    align-items: center;
    border-top: 1px solid var(--line-soft);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px 20px;
}

.heading-choice__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.heading-choice strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 500;
    line-height: 1.15;
}

.heading-choice small {
    color: var(--muted);
    display: block;
    font-size: 14px;
    font-style: normal;
}

.heading-choice__cta {
    align-items: center;
    background: var(--ink);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 10px 16px;
    text-transform: uppercase;
    transition: background 180ms ease;
}

.heading-choice:hover .heading-choice__cta {
    background: var(--clay);
}

.heading-choice--editorial {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 220px;
    padding: 28px 28px 24px;
}

.heading-choice__content {
    display: grid;
    flex: 1;
    gap: 10px;
}

.heading-choice__kicker {
    color: var(--clay);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.heading-choice__desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    max-width: 42ch;
}

.heading-choice__meta {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.heading-choice__action {
    align-items: center;
    border-top: 1px solid var(--line-soft);
    color: var(--ink);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    justify-content: space-between;
    letter-spacing: 0.08em;
    padding-top: 18px;
    text-transform: uppercase;
}

.heading-choice__arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 180ms ease;
}

.heading-choice:hover .heading-choice__arrow {
    transform: translateX(4px);
}

.heading-choice.is-help-active {
    border-color: var(--clay);
    box-shadow: 0 0 0 2px rgba(47, 107, 111, 0.18);
}

.journey-step__heading .curtain-headings-help-trigger {
    margin-top: 10px;
}

.curtain-headings-help-trigger {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--clay);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    transition: background 150ms ease, border-color 150ms ease;
}

.curtain-headings-help-trigger:hover,
.curtain-headings-help-trigger:focus-visible {
    background: #eef5f4;
    border-color: var(--clay);
    outline: none;
}

.curtain-headings-help {
    align-items: center;
    background: rgba(20, 43, 43, 0.45);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    transition: opacity 180ms ease;
    z-index: 1200;
}

.curtain-headings-help.is-open {
    opacity: 1;
    pointer-events: auto;
}

.curtain-headings-help__dialog {
    background: #fff;
    border: 1px solid #d0d8d7;
    box-shadow: 0 28px 60px -24px rgba(20, 43, 43, 0.45);
    max-height: min(88vh, 720px);
    max-width: min(1120px, 96vw);
    overflow: hidden;
    width: 100%;
}

.curtain-headings-help__head {
    align-items: center;
    border-bottom: 1px solid #e3ecea;
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
}

.curtain-headings-help__head h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.curtain-headings-help__close {
    background: transparent;
    border: 0;
    color: #6a7b7b;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
}

.curtain-headings-help__body {
    max-height: calc(min(88vh, 720px) - 58px);
    overflow: auto;
}

.curtain-headings-help__table-wrap {
    overflow-x: auto;
}

.curtain-headings-help__table {
    border-collapse: collapse;
    font-size: 13px;
    min-width: 920px;
    width: 100%;
}

.curtain-headings-help__table th,
.curtain-headings-help__table td {
    border: 1px solid #d0d8d7;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.curtain-headings-help__table thead th {
    background: #f4f8f7;
    font-weight: 700;
}

.curtain-headings-help__table tbody th {
    background: #fafcfc;
    font-weight: 700;
    width: 120px;
}

.curtain-headings-help__table [data-heading-col].is-highlight {
    background: #eef6f5;
    box-shadow: inset 0 0 0 2px rgba(47, 107, 111, 0.35);
}

.curtain-headings-help__note,
.curtain-headings-help__cta {
    color: #6a7b7b;
    display: block;
    margin-top: 8px;
}

.curtain-headings-help__cta a {
    color: var(--clay);
    font-weight: 600;
}

.curtain-headings-popover {
    background: #fff;
    border: 1px solid #d0d8d7;
    border-radius: 12px;
    box-shadow: 0 18px 40px -20px rgba(20, 43, 43, 0.45);
    max-width: min(340px, calc(100vw - 32px));
    padding: 14px 16px;
    pointer-events: none;
    position: fixed;
    z-index: 1100;
}

.curtain-headings-popover.is-visible {
    pointer-events: auto;
}

.curtain-headings-popover__title {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    margin: 0 0 10px;
}

.curtain-headings-popover__list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.curtain-headings-popover__list div {
    margin: 0;
}

.curtain-headings-popover__list dt {
    color: #6a7b7b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.curtain-headings-popover__list dd {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.curtain-headings-popover__note,
.curtain-headings-popover__cta {
    color: #6a7b7b;
    font-size: 12px;
    margin: 10px 0 0;
}

.curtain-headings-popover__cta a {
    color: var(--clay);
    font-weight: 600;
}

.curtain-headings-popover__all {
    background: transparent;
    border: 0;
    color: var(--clay);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    padding: 0;
    text-decoration: underline;
}

.curtain-headings-compare-wrap {
    position: relative;
    z-index: 5;
}

.curtain-headings-compare-preview {
    background: #fff;
    border: 1px solid #d0d8d7;
    border-radius: 14px;
    box-shadow: 0 22px 48px -18px rgba(20, 43, 43, 0.5);
    max-height: min(420px, 70vh);
    max-width: min(480px, calc(100vw - 32px));
    overflow: auto;
    padding: 16px 18px;
}

.curtain-headings-compare-preview--inline {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
    width: min(420px, 88vw);
    z-index: 30;
}

.curtain-headings-compare-wrap:hover .curtain-headings-compare-preview--inline,
.curtain-headings-compare-wrap:focus-within .curtain-headings-compare-preview--inline,
.curtain-headings-compare-wrap.is-open .curtain-headings-compare-preview--inline {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.curtain-headings-compare-preview__title {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    margin: 0 0 6px;
}

.curtain-headings-compare-preview__intro,
.curtain-headings-compare-preview__foot {
    color: #6a7b7b;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.curtain-headings-compare-preview__foot {
    border-top: 1px solid #e3ecea;
    margin: 12px 0 0;
    padding-top: 10px;
}

.curtain-headings-compare-preview__list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.curtain-headings-compare-preview__list li {
    border-left: 3px solid #d6e6e4;
    padding-left: 10px;
    transition: border-color 150ms ease, background 150ms ease;
}

.curtain-headings-compare-preview__list li.is-highlight {
    background: #eef6f5;
    border-left-color: var(--clay);
}

.curtain-headings-compare-preview__list strong {
    color: var(--ink);
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.curtain-headings-compare-preview__list span {
    color: #4a5a5a;
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.journey-locked {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    padding: 32px;
}

/* ---------------------------------------------------------------- Single fabric */

.fabric-single {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr);
    padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.fabric-single__image img,
.fabric-single__image .fabric-card__swatch {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    width: 100%;
}

.fabric-single h1 {
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
    margin: 0 0 16px;
}

.fabric-single dl {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin: 30px 0;
    padding: 22px 0;
}

/* ---------------------------------------------------------------- WooCommerce */

.content-band,
.woocommerce-shell {
    padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.content-narrow {
    margin: 0 auto;
    max-width: 880px;
}

.woocommerce-products-header__title,
.product_title {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
    margin-top: 0;
}

.woocommerce div.product .product_title {
    font-size: clamp(32px, 3.6vw, 48px);
    margin: 0 0 6px;
}

.ccm-has-fabric .summary .product_title {
    display: none;
}

.ccm-product-hero {
    margin: 0 0 4px;
}

.ccm-has-fabric .summary > *:first-child,
.ccm-has-fabric .ccm-product-hero {
    margin-top: 0;
}

/* Keep the fabric title level with the curtain pole in the left preview. */
@media (min-width: 769px) {
    .ccm-has-fabric.ccm-mtm-product div.summary {
        padding-top: 8px;
    }
}

.ccm-product-hero__title {
    color: #000;
    font-family: var(--font-sans);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 14px;
}

.ccm-product-hero__price-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 0 18px;
}

.ccm-product-hero__badge {
    background: #c00;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
}

.ccm-product-hero__price {
    color: #000;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.ccm-product-hero__price .woocommerce-Price-amount {
    color: #000;
    font-weight: 700;
}

.ccm-product-hero__price span {
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.ccm-product-hero__was {
    color: #999;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    text-decoration: line-through;
}

.ccm-product-hero__was .woocommerce-Price-amount {
    color: #999;
    font-weight: 400;
}

.ccm-product-hero__desc {
    margin: 0 0 22px;
    max-width: 36em;
}

.ccm-product-hero__excerpt,
.ccm-product-hero__full {
    color: #666;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.ccm-product-hero__full p {
    color: #666;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.ccm-product-hero__full p:last-child {
    margin-bottom: 0;
}

.ccm-product-hero__read-more {
    align-items: center;
    background: none;
    border: 0;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
}

.ccm-product-hero__read-more svg {
    flex: none;
    transition: transform 0.2s ease;
}

.ccm-product-hero__read-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.ccm-product-hero__features {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.ccm-product-hero__features li {
    align-items: center;
    color: #000;
    display: flex;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    gap: 12px;
    line-height: 1.35;
}

.ccm-product-hero__icon {
    align-items: center;
    display: inline-flex;
    flex: none;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.ccm-product-hero__icon svg {
    display: block;
    height: 24px;
    width: 24px;
}

.ccm-has-fabric .ccm-estimator {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.ccm-has-fabric .price {
    color: var(--ink);
    display: block;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 18px;
}

.ccm-has-fabric .price .woocommerce-Price-amount {
    color: var(--ink);
    font-weight: 600;
}

.ccm-has-fabric .ccm-fabric-price__unit {
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
}

.woocommerce div.product .eyebrow {
    margin-bottom: 10px;
}

.woocommerce div.product .price:empty {
    display: none;
}

.ccm-has-fabric .price:empty {
    display: none;
}

.ccm-mtm-product .product_meta,
.ccm-mtm-product form.cart .quantity,
.ccm-mtm-product .demo-colour-picker {
    display: none;
}

.ccm-mtm-product form.cart .single_add_to_cart_button {
    margin-top: 4px;
    min-height: 52px;
    width: 100%;
}

.woocommerce ul.products {
    display: grid;
    gap: clamp(20px, 2.5vw, 32px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 22px;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--clay);
    box-shadow: 0 30px 60px -40px rgba(20, 43, 43, 0.5);
    transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    border-radius: var(--radius);
    object-fit: cover;
    width: 100%;
}

.woocommerce-loop-product__title {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    margin: 0;
}

.price {
    color: var(--clay);
    display: block;
    font-weight: 600;
}

.woocommerce div.product {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
}

.woocommerce div.product div.images {
    margin: 0;
}

.woocommerce div.product div.summary {
    margin: 0;
}

.woocommerce-product-gallery,
.woocommerce div.product div.images img {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.ccm-mtm-product .woocommerce-product-gallery {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.ccm-mtm-product .woocommerce-product-gallery .ccm-live-product-preview {
    margin: 0;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce div.product form.cart {
    margin-top: 18px;
}

.quantity {
    margin: 20px 0;
}

.quantity input {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    width: 92px;
}

.single_add_to_cart_button {
    min-width: 240px;
}

.product_meta,
.related.products {
    grid-column: 1 / -1;
}

.woocommerce-tabs,
.related.products {
    display: none;
}

/* ---------------------------------------------------------- Order received */

.woocommerce-order > p:first-of-type,
.woocommerce-thankyou-order-received {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 32px;
    max-width: 720px;
}

.woocommerce-order-overview {
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    list-style: none;
    margin: 0 0 44px;
    overflow: hidden;
    padding: 0;
}

.woocommerce-order-overview li {
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin: 0;
    padding: 18px 22px;
    text-transform: uppercase;
}

.woocommerce-order-overview li strong {
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 9px;
    overflow-wrap: anywhere;
    text-transform: none;
    word-break: break-word;
}

.woocommerce-order-overview li {
    min-width: 0;
}

.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin: 40px 0 18px;
}

.woocommerce-table--order-details {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    text-align: left;
    vertical-align: top;
}

.woocommerce-table--order-details thead th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.woocommerce-table--order-details td.product-total,
.woocommerce-table--order-details th.product-total,
.woocommerce-table--order-details tfoot td {
    text-align: right;
}

.woocommerce-table--order-details .product-name > a {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
}

.woocommerce-table--order-details tfoot th {
    font-weight: 600;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 20px;
}

.wc-item-meta {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.wc-item-meta li {
    color: var(--ink-soft);
    display: flex;
    font-size: 14px;
    gap: 10px;
}

.wc-item-meta li strong {
    color: var(--muted);
    flex: none;
    font-weight: 600;
    width: 130px;
}

/* Newsletter welcome modal */
.newsletter-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 200;
}

.newsletter-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.newsletter-modal__overlay {
    background: rgba(20, 43, 43, 0.5);
    inset: 0;
    position: absolute;
}

.newsletter-modal__dialog {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 90px -30px rgba(20, 43, 43, 0.55);
    max-width: 440px;
    padding: 44px 40px 32px;
    position: relative;
    text-align: center;
    transform: translateY(14px) scale(0.98);
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.newsletter-modal.is-open .newsletter-modal__dialog {
    transform: translateY(0) scale(1);
}

.newsletter-modal__close {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 12px;
}

.newsletter-modal__eyebrow {
    color: var(--clay);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.newsletter-modal__title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 12px;
}

.newsletter-modal__text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.newsletter-modal__form {
    display: grid;
    gap: 10px;
}

.newsletter-modal__input {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 15px;
    padding: 14px 20px;
    text-align: center;
    width: 100%;
}

.newsletter-modal__input:focus {
    border-color: var(--clay);
    outline: none;
}

.newsletter-modal__submit {
    width: 100%;
}

.newsletter-modal__success {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 15px;
    margin: 0;
    padding: 16px 18px;
}

.newsletter-modal__decline {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.02em;
    margin-top: 16px;
    text-decoration: underline;
}

/* Checkout gate modal: stands in for real order/payment processing on this demo */
.checkout-gate-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 200;
}

.checkout-gate-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.checkout-gate-modal__overlay {
    background: rgba(20, 43, 43, 0.5);
    inset: 0;
    position: absolute;
}

.checkout-gate-modal__dialog {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 90px -30px rgba(20, 43, 43, 0.55);
    max-width: 440px;
    padding: 44px 40px 32px;
    position: relative;
    text-align: center;
    transform: translateY(14px) scale(0.98);
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.checkout-gate-modal.is-open .checkout-gate-modal__dialog {
    transform: translateY(0) scale(1);
}

.checkout-gate-modal__close {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 12px;
}

.checkout-gate-modal__eyebrow {
    color: var(--clay);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.checkout-gate-modal__title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 12px;
}

.checkout-gate-modal__text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.checkout-gate-modal__cta {
    display: block;
    width: 100%;
}

.checkout-gate-modal__decline {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.02em;
    margin-top: 16px;
    text-decoration: underline;
}

.checkout-gate-hint {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--clay-deep);
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 auto clamp(20px, 3vw, 32px);
    padding: 10px 18px;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease;
    width: fit-content;
}

.checkout-gate-hint:hover,
.checkout-gate-hint:focus-visible {
    background: #eef5f4;
    border-color: var(--clay);
}

/* Help chat widget */
.help-chat {
    bottom: 24px;
    position: fixed;
    right: 24px;
    z-index: 130;
}

.help-chat__toggle {
    align-items: center;
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 40px -16px rgba(20, 43, 43, 0.65);
    color: var(--paper);
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.08em;
    padding: 14px 20px;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease;
}

.help-chat__toggle:hover {
    background: var(--clay);
    transform: translateY(-2px);
}

.help-chat__toggle::before {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    content: "?";
    display: inline-flex;
    font-size: 14px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.help-chat__panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    bottom: calc(100% + 14px);
    box-shadow: 0 28px 70px -28px rgba(20, 43, 43, 0.55);
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 680px);
    min-height: 480px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 200ms ease, transform 200ms ease;
    width: min(360px, calc(100vw - 32px));
}

.help-chat.is-open .help-chat__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.help-chat__head {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 18px 18px 16px;
}

.help-chat__eyebrow {
    color: var(--clay);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.help-chat__head strong {
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
}

.help-chat__close {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.help-chat__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.help-chat__thread {
    flex: 1 1 auto;
    max-height: 240px;
    min-height: 140px;
    overflow-y: auto;
    padding: 16px 18px 8px;
}

.help-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-chat__footer {
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
    padding: 14px 18px 18px;
}

.help-chat__links-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 14px 0 8px;
    text-transform: uppercase;
}

.help-chat__faq-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.help-chat__faqs {
    display: grid;
    gap: 8px;
}

.help-chat__faq {
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
    padding: 10px 12px;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease;
}

.help-chat__faq:hover:not(:disabled) {
    background: rgba(20, 43, 43, 0.04);
    border-color: var(--clay);
}

.help-chat__faq.is-asked,
.help-chat__faq:disabled {
    cursor: default;
    opacity: 0.55;
}

.help-chat__message {
    animation: help-chat-in 220ms ease;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 88%;
    padding: 12px 14px;
}

@keyframes help-chat-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-chat__message p {
    margin: 0;
}

.help-chat__message p + p {
    margin-top: 8px;
}

.help-chat__message--bot {
    align-self: flex-start;
    background: rgba(20, 43, 43, 0.06);
    color: var(--ink-soft);
}

.help-chat__message--user {
    align-self: flex-end;
    background: var(--ink);
    color: var(--paper);
    margin-left: auto;
}

.help-chat__typing {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    min-height: 42px;
    padding: 14px 16px;
    width: auto;
}

.help-chat__typing span {
    animation: help-chat-dot 900ms infinite ease-in-out;
    background: var(--muted);
    border-radius: 999px;
    display: block;
    height: 7px;
    width: 7px;
}

.help-chat__typing span:nth-child(2) {
    animation-delay: 120ms;
}

.help-chat__typing span:nth-child(3) {
    animation-delay: 240ms;
}

@keyframes help-chat-dot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.help-chat__message a {
    color: var(--clay);
    font-weight: 600;
}

.help-chat__message--user a {
    color: #fff;
}

.help-chat__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-chat__action {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 9px 14px;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease;
}

.help-chat__action:hover {
    border-color: var(--clay);
    color: var(--clay);
}

.help-chat__action--muted {
    background: transparent;
    color: var(--muted);
}

@media (max-width: 560px) {
    .help-chat {
        bottom: 16px;
        right: 16px;
    }

    .help-chat__panel {
        bottom: calc(100% + 10px);
        width: min(360px, calc(100vw - 24px));
    }
}

body.cart-drawer-open .help-chat {
    z-index: 110;
}

.wc-item-meta li p {
    margin: 0;
}

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

.woocommerce-customer-details address {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    font-style: normal;
    line-height: 1.7;
    padding: 22px;
}

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

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    padding: clamp(48px, 6vw, 84px) var(--gutter) 32px;
}

.site-footer__cols {
    display: grid;
    gap: clamp(24px, 3vw, 48px);
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1.3fr;
    margin: 0 auto;
    max-width: 1320px;
}

.footer-col h4 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 500;
    margin: 0 0 20px;
}

.footer-col a {
    color: var(--ink-soft);
    display: block;
    font-size: 15px;
    margin-bottom: 13px;
    transition: color 160ms ease;
    width: fit-content;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--clay);
}

.footer-col--contact .footer-contact {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    gap: 11px;
    margin: 0 0 15px;
}

.footer-contact__icon {
    color: var(--clay);
    flex: none;
    font-size: 17px;
    line-height: 1;
    width: 18px;
}

.site-footer__bar {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    margin: clamp(36px, 4vw, 56px) auto 0;
    max-width: 1320px;
    padding-top: 26px;
}

.site-footer__bar p {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.02em;
    margin: 0;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-icons span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(20, 43, 43, 0.05);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    min-width: 46px;
    padding: 0 10px;
}

.payment-icons svg {
    display: block;
    height: auto;
}

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

/* Header needs more room than the content grid breakpoint below: a full-length
   wordmark + 5 nav links + 3 icons + CTA button don't fit single-row much
   below this, so it gets its own wider stacking threshold. */
@media (max-width: 1180px) {
    .site-header {
        position: static;
    }

    .site-header__top {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: auto;
        padding-top: 18px;
        text-align: center;
    }

    .site-header__actions {
        justify-content: center;
        justify-self: center;
    }

    .site-brand {
        align-items: center;
        flex-direction: column;
        gap: 10px;
        justify-self: center;
        text-align: center;
    }

    .site-nav {
        gap: 6px 22px;
        padding-bottom: 4px;
        padding-top: 8px;
    }
}

@media (max-width: 860px) {
    .hero,
    .woocommerce div.product,
    .product-paths,
    .fabric-grid,
    .fabric-grid--compact,
    .fabric-grid--journey,
    .heading-choice-grid,
    .fabric-single,
    .woocommerce-columns--addresses,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .selected-fabric-bar,
    .journey-fabric-strip {
        align-items: start;
    }

    .selected-fabric-bar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .selected-fabric-bar a,
    .journey-fabric-strip__change {
        width: 100%;
    }


    .site-footer__cols {
        gap: 32px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-col--contact {
        grid-column: 1 / -1;
    }

    .site-footer__bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 861px) and (max-width: 1180px) {
    .heading-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fabric-grid--compact,
    .fabric-grid--journey {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ------------------------------------------ Header condense + nav CTA */

.site-header__top,
.site-brand__wordmark,
.site-brand__strapline {
    transition: min-height 200ms ease, padding 200ms ease, font-size 200ms ease, opacity 160ms ease;
}

.site-header.is-scrolled {
    box-shadow: 0 14px 32px -24px rgba(20, 43, 43, 0.5);
}

.site-header.is-scrolled .site-header__top {
    min-height: 62px;
    padding-bottom: 6px;
    padding-top: 8px;
}

.site-header.is-scrolled .site-brand__wordmark {
    font-size: clamp(22px, 2.2vw, 30px);
}

.site-header.is-scrolled .site-brand__strapline {
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
}

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

body.cart-drawer-open {
    overflow: hidden;
}

.cart-drawer {
    inset: 0;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 120;
}

.cart-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.cart-drawer__overlay {
    background: rgba(20, 43, 43, 0.42);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 240ms ease;
}

.cart-drawer.is-open .cart-drawer__overlay {
    opacity: 1;
}

.cart-drawer__panel {
    background: var(--paper);
    box-shadow: -24px 0 70px -32px rgba(20, 43, 43, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    width: min(420px, 92vw);
}

.cart-drawer.is-open .cart-drawer__panel {
    transform: translateX(0);
}

.admin-bar .cart-drawer__panel {
    height: calc(100% - 32px);
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .cart-drawer__panel {
        height: calc(100% - 46px);
        top: 46px;
    }
}

.cart-drawer__head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
}

.cart-drawer__head strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
}

.cart-drawer__close {
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0 4px;
}

.widget_shopping_cart_content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 28px;
}

.woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-mini-cart__empty-message {
    color: var(--muted);
}

.woocommerce-mini-cart li {
    border-bottom: 1px solid var(--line);
    display: block;
    min-height: 72px;
    padding: 16px 28px 16px 72px;
    position: relative;
}

.woocommerce-mini-cart li a:not(.remove) {
    color: var(--ink);
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.woocommerce-mini-cart li img {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 56px;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 16px;
    width: 56px !important;
    background: var(--surface);
}

.woocommerce-mini-cart li .remove {
    color: var(--muted) !important;
    font-size: 20px;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 14px;
}

.woocommerce-mini-cart li .variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: 8px 0 0;
}

.woocommerce-mini-cart li .variation dt,
.woocommerce-mini-cart li .variation dd {
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.woocommerce-mini-cart li .variation dt {
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.woocommerce-mini-cart li .variation dd {
    color: var(--ink);
}

.woocommerce-mini-cart li .variation dd p {
    margin: 0;
}

.woocommerce-mini-cart li .quantity {
    color: var(--ink);
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.woocommerce-mini-cart__total {
    border-top: 1px solid var(--line);
    display: flex;
    font-size: 16px;
    justify-content: space-between;
    margin: 18px 0;
    padding-top: 16px;
}

.woocommerce-mini-cart__buttons {
    display: grid;
    gap: 10px;
    margin: 0;
}

.woocommerce-mini-cart__buttons .button {
    text-align: center;
    width: 100%;
}

.woocommerce-mini-cart__buttons .checkout {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

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

.trust-strip {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: clamp(20px, 3vw, 36px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--trust-strip-y) var(--gutter);
}

.trust-strip > div {
    border-left: 2px solid var(--clay);
    padding-left: 16px;
}

.trust-strip strong {
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.trust-strip span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.home-section {
    padding: var(--home-section-y) var(--gutter);
}

.home-section--tint {
    background: var(--surface);
}

.home-section__head {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    justify-content: space-between;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.home-section__head h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.04;
    margin: 6px 0 0;
}

.home-section__head .eyebrow {
    margin: 0;
}

.home-section__link {
    color: var(--clay);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-section__link:hover {
    color: var(--clay-deep);
}

@media (max-width: 860px) {
    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.ccm-account-shell {
    padding-top: clamp(24px, 4vw, 48px);
}

/* Login + register (logged out) */
.woocommerce-account:not(.logged-in) .woocommerce {
    margin: 0 auto;
    max-width: 640px;
}

.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
    margin: 0 0 20px;
}

.ccm-account-auth {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    margin: 0 auto clamp(44px, 6vw, 72px);
    max-width: 640px;
}

.ccm-account-auth__intro {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.ccm-account-auth__eyebrow {
    color: var(--clay);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0;
    text-transform: uppercase;
}

.ccm-account-auth__intro h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 400;
    line-height: 1.04;
    margin: 0;
    max-width: 12ch;
}

.ccm-account-auth__lede {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    max-width: 42ch;
}

.ccm-account-auth__card {
    background: linear-gradient(180deg, rgba(247, 250, 249, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 26px 60px -42px rgba(25, 46, 44, 0.28);
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 38px);
}

.ccm-account-auth__lookup {
    display: grid;
    gap: 10px;
}

.ccm-account-auth__label {
    color: var(--ink-soft);
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ccm-account-auth__lookup-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ccm-account-auth__input {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    min-height: 54px;
    padding: 0 16px;
    width: 100%;
}

.ccm-account-auth__input:focus {
    border-color: var(--clay);
    outline: none;
}

.ccm-account-auth__continue {
    min-height: 54px;
    min-width: 146px;
}

.ccm-account-auth__hint,
.ccm-account-auth__copy,
.ccm-account-auth__helper {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.ccm-account-auth__message {
    background: rgba(35, 49, 50, 0.06);
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 12px 14px;
}

.ccm-account-auth__message.is-error {
    background: rgba(133, 41, 41, 0.08);
    color: #7d2d2d;
}

.ccm-account-auth__flow {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
    padding-top: 22px;
}

.ccm-account-auth__flow[hidden] {
    display: none !important;
}

.ccm-account-auth__back {
    align-self: start;
    background: transparent;
    border: 0;
    color: var(--clay);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 0;
}

.ccm-account-auth__email-chip {
    align-items: center;
    background: rgba(35, 49, 50, 0.06);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 0 14px;
    width: fit-content;
}

.ccm-account-auth__flow h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 400;
    margin: 0;
}

.ccm-account-auth .form-row {
    margin: 0 0 16px;
}

.ccm-account-auth .woocommerce-LostPassword {
    margin: 4px 0 0;
}

.ccm-account-auth .woocommerce-form-login__submit,
.ccm-account-auth .woocommerce-form-register__submit {
    width: 100%;
}

/* Form fields across all account/auth forms */
.woocommerce form .form-row {
    display: block;
    margin: 0 0 16px;
}

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

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="tel"],
.woocommerce-account input.input-text {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    padding: 12px 14px;
    width: 100%;
}

.woocommerce form .form-row input:focus,
.woocommerce-account input.input-text:focus {
    border-color: var(--clay);
    outline: none;
}

.woocommerce-form-login__rememberme {
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    gap: 7px;
    margin: 4px 0 16px;
}

.woocommerce-LostPassword a,
.woocommerce form .lost_password a {
    color: var(--clay);
    font-size: 13px;
}

/* Account dashboard (logged in) */
.logged-in.woocommerce-account .woocommerce {
    align-items: start;
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}

.ccm-account-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 10px;
    position: sticky;
    top: 120px;
}

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

.ccm-account-nav li {
    margin: 0;
}

.ccm-account-nav li a {
    border-radius: calc(var(--radius-lg) - 4px);
    color: var(--ink-soft);
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 13px 16px;
    transition: background 160ms ease, color 160ms ease;
}

.ccm-account-nav li a:hover,
.ccm-account-nav li.is-active a {
    background: rgba(20, 43, 43, 0.05);
    color: var(--ink);
}

.ccm-account-nav li.is-active a {
    box-shadow: inset 3px 0 0 var(--clay);
}

.ccm-account-nav__item--customer-logout a {
    color: var(--muted);
}

.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3:first-child {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.ccm-account-dashboard__hero {
    margin-bottom: clamp(24px, 4vw, 36px);
}

.ccm-account-dashboard__eyebrow,
.ccm-account-card__eyebrow {
    color: var(--clay);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ccm-account-dashboard__hero h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.ccm-account-dashboard__hero p,
.ccm-account-card p {
    color: var(--ink-soft);
    margin: 0;
}

.ccm-account-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: clamp(24px, 4vw, 36px);
}

.ccm-account-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 24px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ccm-account-card--featured {
    grid-column: 1 / -1;
}

.ccm-account-card--link {
    color: inherit;
    text-decoration: none;
}

.ccm-account-card--link:hover {
    border-color: var(--clay);
    box-shadow: 0 24px 50px -36px rgba(20, 43, 43, 0.45);
    transform: translateY(-2px);
}

.ccm-account-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

.ccm-account-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ccm-account-card h3 a:hover {
    color: var(--clay);
}

.ccm-account-card__meta,
.ccm-account-card__copy,
.ccm-account-card__note,
.ccm-account-card__total {
    color: var(--muted);
    font-size: 14px;
}

.ccm-account-card__total {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
}

.ccm-account-card .button {
    align-self: flex-start;
    margin-top: auto;
}

.ccm-account-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    text-transform: uppercase;
}

.ccm-account-status.is-completed,
.ccm-account-status.is-processing {
    background: #dcfce7;
    color: #166534;
}

.ccm-account-status.is-pending,
.ccm-account-status.is-on-hold {
    background: #fef3c7;
    color: #92400e;
}

.ccm-account-status.is-cancelled,
.ccm-account-status.is-failed,
.ccm-account-status.is-refunded {
    background: #fee2e2;
    color: #991b1b;
}

.ccm-account-snapshot {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 24px;
}

.ccm-account-snapshot__block strong {
    color: var(--ink);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ccm-account-snapshot__block p,
.ccm-account-snapshot__block li {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0;
}

.ccm-account-snapshot__block a {
    color: var(--clay);
    display: inline-block;
    font-size: 13px;
    margin-top: 8px;
}

.ccm-account-measures {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccm-account-measures li + li {
    margin-top: 10px;
}

.ccm-account-measures span {
    color: var(--muted);
    font-size: 13px;
}

.ccm-account-orders {
    display: grid;
    gap: 18px;
}

.ccm-account-order-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.ccm-account-order-card__head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: space-between;
}

.ccm-account-order-card__head h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.ccm-account-order-card__head h3 a {
    color: inherit;
    text-decoration: none;
}

.ccm-account-order-card__meta,
.ccm-account-order-card__copy,
.ccm-account-order-card__note {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.ccm-account-order-card__foot {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-top: auto;
}

.ccm-account-order-card__total {
    color: var(--ink);
    font-size: 18px;
}

.ccm-account-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.button--ghost:hover {
    border-color: var(--ink);
}

.ccm-account-workshop {
    background: rgba(20, 43, 43, 0.05);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    padding: 18px 20px;
}

.ccm-account-workshop strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ccm-account-workshop p {
    color: var(--ink-soft);
    margin: 0;
}

.ccm-account-line-summary {
    color: var(--ink-soft);
    font-size: 13px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.ccm-account-line-summary li + li {
    margin-top: 4px;
}

.ccm-account-line-summary strong {
    color: var(--ink);
    font-weight: 500;
}

.ccm-account-empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
}

.ccm-account-empty h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 10px;
}

.ccm-account-empty p {
    color: var(--ink-soft);
    margin: 0 auto 20px;
    max-width: 420px;
}

.ccm-account-orders__pagination {
    margin-top: 24px;
}

.woocommerce-MyAccount-content p {
    color: var(--ink-soft);
}

.woocommerce-MyAccount-content a:not(.button) {
    color: var(--clay);
}

.woocommerce-Address,
.woocommerce-address-fields {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.woocommerce-Address-title h2,
.woocommerce-address-fields h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-top: 0;
}

@media (max-width: 980px) {
    .ccm-account-cards,
    .ccm-account-snapshot {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .logged-in.woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }

    .ccm-account-auth__lookup-row {
        grid-template-columns: 1fr;
    }

    .ccm-account-auth__continue {
        width: 100%;
    }

    .ccm-account-nav {
        position: static;
    }
}

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

.page__title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.04;
    margin: 0 0 28px;
}

.page__content {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}

.page__content > * + * {
    margin-top: 18px;
}

.page__content h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin-top: 40px;
}

.page__content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 28px;
}

.page__content a {
    color: var(--clay);
}

.page__content ul,
.page__content ol {
    margin-left: 22px;
}

.page__content li + li {
    margin-top: 8px;
}

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

/* Book a measure form */
.measure-form {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
    max-width: 680px;
}

.measure-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.measure-form .measure-form__row--full {
    grid-column: 1 / -1;
}

.measure-form input,
.measure-form textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    width: 100%;
}

.measure-form input:focus,
.measure-form textarea:focus {
    border-color: var(--clay);
    outline: none;
}

.measure-form textarea {
    min-height: 120px;
    resize: vertical;
}

.measure-notice {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--clay);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    padding: 18px 22px;
}

@media (max-width: 600px) {
    .measure-form {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------ Fabric pattern swatches (archive) */
.fabric-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px;
}

.fabric-swatch {
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    height: 34px;
    overflow: hidden;
    padding: 0;
    width: 34px;
}

.fabric-swatch img {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fabric-swatch__dot {
    background: #cbd6d5;
    display: block;
    height: 100%;
    width: 100%;
}

.fabric-swatch.is-active {
    border-color: var(--clay);
    box-shadow: 0 0 0 2px var(--clay);
}

.fabric-swatch-more {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    height: 34px;
    letter-spacing: 0.02em;
    padding-left: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.fabric-swatch-more:hover {
    color: var(--clay);
    text-decoration: underline;
}

.fabric-card .price span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

/* ------------------------------------------ Fabric product page (buy by metre) */
.fabric-single__sub {
    color: var(--ink-soft);
    margin: 0 0 10px;
}

.fabric-single__price {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0 0 26px;
}

.fabric-single__price span:first-child {
    color: var(--clay);
    font-weight: 500;
}

.fabric-single__price span:last-child {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px;
}

.fabric-single__swatches {
    margin-bottom: 26px;
}

.fabric-single__label {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.fabric-buy {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.fabric-buy__qty {
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.fabric-buy__qty span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    gap: 6px;
}

.fabric-buy__qty input {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    width: 96px;
}

.fabric-single__make {
    color: var(--clay);
    display: inline-block;
    font-weight: 600;
    margin-top: 8px;
}

.fabric-group__link,
.fabric-group__title {
    display: block;
}

/* ---------------------------------------------------- Live design studio */

.demo-colour-picker {
    bottom: 20px;
    left: 20px;
    position: fixed;
    z-index: 90;
}

.demo-colour-picker__hint {
    align-items: flex-start;
    animation: demo-colour-picker-hint-bob 2.6s ease-in-out infinite;
    bottom: calc(100% + 4px);
    color: var(--clay-deep);
    display: flex;
    flex-direction: column;
    left: 6px;
    pointer-events: none;
    position: absolute;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.demo-colour-picker.is-open .demo-colour-picker__hint,
.demo-colour-picker__hint.is-dismissed {
    opacity: 0;
    visibility: hidden;
}

.demo-colour-picker__hint-text {
    background: var(--paper);
    border-radius: 10px;
    box-shadow: 0 10px 22px -12px rgba(20, 43, 43, 0.4);
    font-family: "Caveat", cursive;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 2px 20px;
    padding: 4px 10px 5px;
    transform: rotate(-4deg);
    white-space: nowrap;
}

.demo-colour-picker__hint-arrow {
    height: 40px;
    width: 30px;
}

@keyframes demo-colour-picker-hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .demo-colour-picker__hint {
        animation: none;
    }
}

.demo-colour-picker__toggle {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 34px -16px rgba(20, 43, 43, 0.55);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font: 600 12px/1 var(--font-sans);
    gap: 9px;
    letter-spacing: 0.04em;
    padding: 10px 14px 10px 10px;
}

.demo-colour-picker__toggle-swatch {
    background: var(--clay);
    border: 2px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
    height: 22px;
    width: 22px;
}

.demo-colour-picker__panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    bottom: 52px;
    box-shadow: 0 24px 70px -28px rgba(20, 43, 43, 0.65);
    color: var(--ink-soft);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 20px;
    position: absolute;
    width: min(320px, calc(100vw - 40px));
}

.demo-colour-picker__panel[hidden] {
    display: none;
}

.demo-colour-picker__heading,
.demo-colour-picker__field {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.demo-colour-picker__heading {
    color: var(--ink);
    margin-bottom: 18px;
}

.demo-colour-picker__heading > div {
    display: grid;
    gap: 3px;
}

.demo-colour-picker__heading strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
}

.demo-colour-picker__heading span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.demo-colour-picker__close {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 2px;
}

.demo-colour-picker__field {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    gap: 12px;
    padding: 8px 10px;
}

.demo-colour-picker__group {
    border: 0;
    border-top: 1px solid var(--line-soft);
    margin: 0;
    padding: 15px 0 0;
}

.demo-colour-picker__group + .demo-colour-picker__group {
    margin-top: 15px;
}

.demo-colour-picker__group legend,
.demo-colour-picker__label {
    color: var(--ink);
    display: block;
    float: none;
    font: 600 11px/1.2 var(--font-sans);
    letter-spacing: 0.06em;
    margin: 0 0 9px;
    padding: 0;
    text-transform: uppercase;
    width: 100%;
}

.demo-colour-picker__field input[type="color"] {
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 34px;
    padding: 0;
    width: 52px;
}

.demo-colour-picker__field output {
    color: var(--ink);
    font: 600 12px/1 var(--font-sans);
    letter-spacing: 0.08em;
}

.demo-colour-picker__presets {
    display: flex;
    gap: 10px;
    margin: 13px 0 0;
}

.demo-colour-picker__presets button {
    background: var(--preset-colour);
    border: 2px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
    cursor: pointer;
    height: 28px;
    padding: 0;
    width: 28px;
}

.demo-colour-picker__presets button:hover,
.demo-colour-picker__presets button:focus-visible {
    box-shadow: 0 0 0 2px var(--ink);
    transform: scale(1.08);
}

.demo-colour-picker__segments {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    padding: 3px;
}

.demo-colour-picker__segments--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-colour-picker__segments button {
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    color: var(--muted);
    cursor: pointer;
    font: 600 10px/1.2 var(--font-sans);
    padding: 8px 5px;
}

.demo-colour-picker__segments button:hover,
.demo-colour-picker__segments button:focus-visible {
    color: var(--ink);
}

.demo-colour-picker__segments button.is-active {
    background: var(--paper);
    box-shadow: 0 2px 8px -4px rgba(20, 43, 43, 0.45);
    color: var(--clay);
}

.demo-colour-picker__footer {
    align-items: flex-end;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 15px;
}

.demo-colour-picker__reset {
    background: transparent;
    border: 0;
    color: var(--clay);
    cursor: pointer;
    font: 600 12px/1.2 var(--font-sans);
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-colour-picker__footer p {
    color: var(--muted);
    font-size: 10px;
    margin: 0;
    text-align: right;
}

html[data-demo-appearance="dark"] .site-footer {
    background: var(--demo-contrast-bg);
}

@media (max-width: 480px) {
    .demo-colour-picker {
        bottom: 12px;
        left: 12px;
    }

    .demo-colour-picker__panel {
        width: min(320px, calc(100vw - 24px));
    }

    .demo-colour-picker__hint-text {
        font-size: 18px;
    }

    .demo-colour-picker__hint-arrow {
        height: 32px;
        width: 24px;
    }
}

/* Site scrollbar. */
html { scrollbar-width: thin; scrollbar-color: #64839c #f3f7fa; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f3f7fa; }
::-webkit-scrollbar-thumb { background: #64839c; border: 2px solid #f3f7fa; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #0c3150; }
