/*
Theme Name: Four Seasons Collections
Description: Custom storefront for Four Seasons Collections.
Version: 1.2.23
Requires PHP: 8.4
*/
@font-face {
    font-family: "DM Sans";
    src: url(assets/dm-sans.woff2) format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: Fraunces;
    src: url(assets/fraunces.woff2) format("woff2");
    font-weight: 500 800;
    font-display: swap;
}

:root {
    --ink: #292e22;
    --muted: #53594c;
    --paper: #faf6eb;
    --canvas: #fff;
    --rule: #dfdbd0;
    --olive: #3c4935;
    --sand: #eee6d4;
    --blue: #e6edf0;
    --sans: "DM Sans", system-ui, sans-serif;
    --serif: Fraunces, Georgia, serif;
    --header-height: 77px;
    --header-offset: 0px;
}

html { scroll-padding-block-start: calc(var(--header-height) + var(--header-offset) + 12px); }
@media (min-width: 783px) {
    html:has(body.admin-bar) { --header-offset: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
    html:has(body.admin-bar) { --header-offset: 46px; }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, select):focus-visible { outline: 3px solid #446879; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.045em; line-height: 1.05; }
.wrap { width: min(100% - 80px, 1312px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 16px; top: calc(var(--header-offset) + 8px); z-index: 21; background: #fff; padding: 8px; }
.topline { background: var(--olive); color: #fff; text-align: center; font-size: .82rem; padding: 8px 16px; }
.site-masthead {
    --header-gap: clamp(14px, 3vw, 34px);
    --basket-width: 44px;
    --currency-width: 48px;
    position: sticky;
    top: var(--header-offset);
    z-index: 20;
    display: grid;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}
.site-header, .site-nav-wrap { grid-area: 1 / 1; }
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: calc(var(--header-height) - 1px);
}
.site-header-actions { display: flex; align-items: center; gap: var(--header-gap); }
.site-masthead:has(.bag) { --basket-space: calc(var(--basket-width) + var(--header-gap)); }
.site-masthead:has(.currency-picker:not([hidden])) { --currency-space: calc(var(--currency-width) + var(--header-gap)); }
.site-nav-wrap {
    display: flex;
    padding-inline-end: calc(var(--basket-space, 0px) + var(--currency-space, 0px));
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}
.site-nav { pointer-events: auto; }
.brand { display: inline-flex; flex-direction: column; align-items: center; width: 192px; flex: none; mix-blend-mode: multiply; text-decoration: none; }
.brand img { width: 100%; }
.brand-collections {
    font: 700 .6rem/1.2 var(--sans);
    letter-spacing: .22em;
    text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: var(--header-gap); }
.site-nav a { font-weight: 700; font-size: .92rem; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.bag {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--basket-width);
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: 50%;
}
.bag:hover { background: var(--sand); }

.currency-picker:not([hidden]) {
    position: relative;
    display: grid;
    grid-template-columns: 24px 6px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: var(--currency-width);
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
}
.currency-picker:focus-within { outline: 3px solid #446879; outline-offset: 4px; }
.currency-picker::after {
    content: "";
    width: 5px;
    height: 5px;
    border-inline-end: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}
.currency-flag { display: none; width: 24px; height: 16px; border-radius: 2px; }
.currency-picker[data-currency="GBP"] [data-flag="GBP"],
.currency-picker[data-currency="EUR"] [data-flag="EUR"],
.currency-picker[data-currency="USD"] [data-flag="USD"] { display: block; }
.currency-picker select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.woocommerce-Price-amount:has(+ .currency-price-estimate),
.wc-block-components-formatted-money-amount:has(+ .currency-price-estimate) { display: none !important; }
.currency-price-estimate { white-space: nowrap; }
.currency-note {
    margin: 0 0 22px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: .88rem;
}

.hero {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: clamp(24px, 6vw, 100px);
    align-items: center;
    padding-block: clamp(45px, 7vw, 112px);
}
.hero h1 { font-weight: 700; font-size: clamp(3rem, 6.4vw, 6.2rem); margin: 0 0 20px; max-width: 10ch; }
.hero h1 > span { display: block; }
.hero-line { white-space: nowrap; }
.hero p { font-size: clamp(.98rem, 1.45vw, 1.2rem); max-width: 30ch; margin: 0 0 25px; color: var(--muted); }
.hero-media { width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.button-pill,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    background: var(--olive);
    color: #fff;
    font: 750 .86rem/1.3 var(--sans);
    text-decoration: none;
    padding: 13px 21px;
    border: 0;
    border-radius: 24px;
    cursor: pointer;
}
.button-pill:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--ink); color: #fff; }

.feature { padding-block: clamp(42px, 6vw, 84px); }
.feature-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 26px; }
.section-title { margin: 0; font-size: clamp(2.15rem, 4.8vw, 3.95rem); }
.feature-head a { font-weight: 750; font-size: .88rem; white-space: nowrap; }

/* The white surface spans the entire catalogue so the supplier mockups read as products, without individual tiles. */
.catalogue-shelf { background: var(--canvas); }
.product-grid,
.catalogue-shelf ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 32px clamp(17px, 3.4vw, 48px);
}
.catalogue-shelf ul.products::before,
.catalogue-shelf ul.products::after { display: none; }
.catalogue-shelf ul.products[class*="columns-"] li.product {
    float: none;
    clear: none;
    width: auto;
    min-width: 0;
    margin: 0;
}
.product-card a { display: block; text-decoration: none; }
.product-image,
.catalogue-shelf ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    padding: clamp(8px, 1vw, 15px);
}
.product-image img,
.catalogue-shelf ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.catalogue-shelf ul.products li.product a img { height: auto; margin: 0 0 12px; }
.product-card h3,
.catalogue-shelf ul.products li.product .woocommerce-loop-product__title {
    color: var(--ink);
    margin: 0;
    padding: 5px 0;
    font: 600 clamp(1.13rem, 2vw, 1.54rem)/1.18 var(--serif);
    letter-spacing: -.028em;
}
.product-card a:hover h3,
.catalogue-shelf ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; text-underline-offset: .2em; }
.product-card .price,
.catalogue-shelf ul.products li.product .price,
.catalogue-shelf div.product p.price { color: var(--muted); font-weight: 650; font-size: .94rem; margin: 0; }

.fss-card-options {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    color: var(--muted);
    font-size: .81rem;
    line-height: 1.35;
}
.fss-card-colours { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.fss-card-swatches { display: inline-flex; gap: 3px; }
.fss-card-swatches .fss-colour-swatch { flex: 0 0 auto; width: 14px; height: 14px; }

.collection-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.collection-panel { display: grid; grid-template-rows: auto 1fr; gap: 16px; padding: clamp(18px, 3vw, 34px); background: var(--sand); }
.collection-panel.winter { background: var(--blue); }
.collection-panel h3 { margin: 0; font-size: clamp(1.65rem, 3.5vw, 2.65rem); }
.collection-panel h3 a { text-decoration: none; }
.collection-panel h3 a:hover { text-decoration: underline; }
.collection-panel h3 span { font: 700 .55em var(--sans); vertical-align: middle; }
.collection-artwork { display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); }
.collection-artwork img { flex: 0 1 29%; width: 29%; height: clamp(76px, 12vw, 145px); object-fit: contain; mix-blend-mode: multiply; }
.collection-artwork .collection-artwork-wide { flex-basis: 64%; width: 64%; height: auto; max-height: 145px; }

.shop-content { padding-block: clamp(36px, 5.8vw, 84px); min-height: 55vh; }
.basket-content { background: var(--canvas); }
.shop-content h1 { font-size: clamp(2.5rem, 5.5vw, 4.6rem); margin: 0 0 20px; }
.shop-content article { max-width: 780px; }
.shop-content :where(input:not([type=checkbox]):not([type=radio]), select, textarea) { font: inherit; padding: 8px 11px; border: 1px solid #857f72; border-radius: 4px; }
.woocommerce .woocommerce-ordering { margin-bottom: 26px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); margin: 0 0 25px; }
.catalogue-shelf div.product .summary { padding-top: 12px; }
.catalogue-shelf div.product .summary .price { font-size: 1.12rem; margin-bottom: 20px; }
.catalogue-shelf div.product div.images .woocommerce-product-gallery__image img { object-fit: contain; background: var(--canvas); }
.catalogue-shelf div.product div.images .flex-control-thumbs li { padding: 6px; }
.catalogue-shelf div.product div.images .flex-control-thumbs img.flex-active { outline: 1px solid var(--rule); outline-offset: -1px; }
.catalogue-shelf div.product .woocommerce-tabs { padding-top: 24px; }
.preview-notice { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }

.product-preview-image { display: block; }
.product-preview-image img { width: 100%; height: auto; object-fit: contain; }
.product-preview-controls:not([hidden]) { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.product-preview-controls button {
    border: 1px solid var(--rule);
    border-radius: 24px;
    background: var(--canvas);
    color: var(--olive);
    padding: 8px 18px;
    font: 750 .86rem var(--sans);
    cursor: pointer;
}
.product-preview-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }
.product-preview-controls button[aria-pressed="true"] { background: var(--olive); color: #fff; border-color: var(--olive); }

.catalogue-shelf .size-guide { border-block: 1px solid var(--rule); margin: 20px 0 28px; }
.size-guide summary { padding: 12px 0; color: var(--olive); font-weight: 750; cursor: pointer; }
.size-guide summary:focus-visible { outline: 3px solid #446879; outline-offset: 3px; }
.size-guide-content { font-size: .9rem; padding-bottom: 12px; }
.size-guide-content p { color: var(--muted); margin: 0 0 12px; }
.size-guide-table { overflow-x: auto; }
.size-guide-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.size-guide-content caption { text-align: start; font-weight: 750; padding-bottom: 6px; }
.size-guide-content th, .size-guide-content td {
    text-align: start;
    padding: 7px clamp(4px, 1vw, 10px);
    border-bottom: 1px solid var(--rule);
    font-variant-numeric: tabular-nums;
}
.size-guide-content thead th { background: var(--paper); line-height: 1.25; }
.size-guide-content th[scope="row"] { white-space: nowrap; }

.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; }
.site-footer .wrap { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.site-footer .brand { width: 145px; }
.site-footer p { margin: 0; color: var(--muted); font-size: .82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .86rem; }

@media (max-width: 850px) {
    .wrap { width: calc(100% - 44px); }
    .hero { gap: 27px; }
    .hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
    .product-grid, .catalogue-shelf ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .wrap { width: calc(100% - 36px); }
    :root { --header-height: 61px; }
    .site-masthead { display: contents; }
    .site-header {
        position: sticky;
        top: var(--header-offset);
        z-index: 20;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
    }
    .brand { width: 122px; }
    .site-header-actions { gap: 8px; }
    .site-nav-wrap { width: 100%; padding: 0; border-bottom: 1px solid var(--rule); }
    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        width: 100%;
    }
    .site-nav a {
        display: grid;
        place-items: center;
        min-height: 48px;
        padding: 8px 12px;
        font-size: 1.0625rem;
        line-height: 1.3;
        text-align: center;
    }
    .site-nav a + a { border-inline-start: 1px solid var(--rule); }
    .site-nav a:focus-visible { outline-offset: -4px; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 36px; text-align: center; }
    .hero h1 { font-size: clamp(1.8rem, 10.25vw, 3.55rem); margin: 0 auto 14px; max-width: none; text-wrap: balance; }
    .hero h1 > span { display: inline; }
    .hero p { margin: 0 auto 18px; }
    .hero > img { grid-row: 1; justify-self: center; }
    .feature-head { align-items: start; gap: 10px; }
    .feature-head a { font-size: .75rem; padding-top: 4px; }
    .collection-layout { grid-template-columns: 1fr; gap: 12px; }
    .collection-artwork img { height: clamp(76px, 21vw, 115px); }
    .site-footer .wrap { flex-direction: column; gap: 12px; text-align: center; }
    .site-footer nav { justify-content: center; row-gap: 8px; }
}

@media (max-width: 380px) {
    .site-header .brand { width: 104px; }
}

.preview-picker { margin: 18px 0; }
.preview-picker form.cart { margin: 0; }
.catalogue-shelf div.product form.cart table.variations {
    width: 100%;
    margin: 0 0 18px;
    border: 0;
}
.catalogue-shelf div.product form.cart .variations tr {
    display: grid;
    grid-template-columns: minmax(88px, .35fr) minmax(0, 1fr);
    align-items: baseline;
    border-top: 1px solid var(--rule);
    padding-block: 10px;
}
.catalogue-shelf div.product form.cart .variations th,
.catalogue-shelf div.product form.cart .variations td {
    padding: 0;
    text-align: start;
    vertical-align: middle;
}
.catalogue-shelf div.product form.cart .variations select {
    display: block;
    width: 100%;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
}
.catalogue-shelf div.product form.cart .variations .fss-colour-picker select[hidden] {
    display: none;
}
.fss-colour-picker { position: relative; }
.fss-colour-picker :is(.fss-colour-trigger, .fss-colour-option) {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    color: var(--ink);
    font: inherit;
    line-height: 1.35;
    text-align: start;
    background: var(--canvas);
    border: 0;
    cursor: pointer;
}
.fss-colour-picker .fss-colour-trigger {
    border: 1px solid #857f72;
    border-radius: 4px;
}
.fss-colour-trigger::after {
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin-inline: auto 3px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}
.fss-colour-trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.fss-colour-swatch {
    flex: 0 0 19px;
    height: 19px;
    border: 1px solid rgba(41, 46, 34, .36);
    border-radius: 3px;
}
.fss-colour-menu {
    position: absolute;
    z-index: 5;
    inset: calc(100% + 4px) 0 auto;
    max-height: min(17rem, 48vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
    background: var(--canvas);
    border: 1px solid #857f72;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(41, 46, 34, .14);
}
.fss-colour-menu.fss-colour-menu-above { inset: auto 0 calc(100% + 4px); }
.fss-colour-picker .fss-colour-option { border-radius: 4px; }
.fss-colour-picker .fss-colour-option[aria-pressed="true"] { background: var(--paper); font-weight: 700; }
.fss-colour-picker .fss-colour-option:enabled:is(:hover, :focus-visible) { background: #f2f1ed; }
.fss-colour-picker .fss-colour-option:focus-visible { outline-offset: -3px; }
.fss-colour-picker button:disabled { opacity: .55; cursor: default; }
@media (forced-colors: active) {
    .fss-colour-swatch { forced-color-adjust: none; }
}
.catalogue-shelf div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    gap: 18px;
}
.catalogue-shelf div.product form.cart .woocommerce-variation-add-to-cart .quantity {
    display: flex;
    margin: 0;
}
.catalogue-shelf div.product form.cart .quantity .qty {
    min-height: 44px;
}
.catalogue-shelf div.product form.cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-block: 0;
    background: var(--ink);
    color: var(--paper);
    line-height: 1.3;
}
.catalogue-shelf div.product form.cart .single_add_to_cart_button:hover {
    background: #343434;
    color: var(--paper);
}
.catalogue-shelf div.product .reset_variations { display: inline-block; margin-top: 6px; }
.preview-picker .woocommerce-variation { min-height: 0; }
.preview-picker .woocommerce-variation-price { padding-bottom: 10px; }
.preview-picker .woocommerce-variation-availability p { margin: 0 0 10px; }
