/*
 * Storefront styling. Depends on tokens.css.
 *
 * The brief was "artisan, not corporate e-commerce": warm paper ground, a serif display face,
 * generous whitespace, and photography given room to breathe. Bootstrap supplies the grid
 * and a few components; everything with a visual opinion is written here.
 */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--ink);
}

a {
    color: var(--clay);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--clay-dark);
}

.shell {
    margin-inline: auto;
    max-width: 1240px;
    padding-inline: var(--space-4);
    width: 100%;
}

@media (min-width: 768px) {
    .shell {
        padding-inline: var(--space-6);
    }
}

.section {
    padding-block: var(--space-8);
}

@media (min-width: 768px) {
    .section {
        padding-block: var(--space-9);
    }
}

.section--sunk {
    background: var(--paper-sunk);
}

.section__eyebrow {
    color: var(--clay);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

.section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.section__lead {
    color: var(--ink-soft);
    font-size: var(--text-lg);
    max-width: 46ch;
}

.section__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

/* ---------------------------------------------------------------- Skip link */

.skip-link {
    background: var(--ink);
    color: #fff;
    left: var(--space-4);
    padding: var(--space-2) var(--space-4);
    position: absolute;
    top: -100px;
    z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top var(--transition);
}

.skip-link:focus {
    color: #fff;
    top: 0;
}

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

.site-header {
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--paper-edge);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: var(--space-4);
    /* Shared with the full-screen hero, which subtracts it. */
    min-height: var(--header-height);
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    gap: var(--space-3);
    text-decoration: none;
    flex: none;
}

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

.brand__logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.brand__name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand__tagline {
    color: var(--ink-faint);
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    gap: var(--space-5);
    margin-inline: auto;
}

.site-nav__link {
    color: var(--ink-soft);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-block: var(--space-2);
    position: relative;
    text-decoration: none;
}

.site-nav__link::after {
    background: var(--clay);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    width: 100%;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--ink);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    align-items: center;
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
}

.cart-button {
    align-items: center;
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-pill);
    color: var(--ink);
    display: inline-flex;
    gap: var(--space-2);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}

.cart-button:hover {
    background: var(--clay-tint);
    border-color: var(--clay);
    color: var(--clay-dark);
}

.cart-button__count {
    background: var(--clay);
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    min-width: 1.35rem;
    padding: 0 0.3rem;
    text-align: center;
}

.nav-toggle {
    background: none;
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius);
    color: var(--ink);
    display: none;
    font-size: 1.1rem;
    line-height: 1;
    padding: var(--space-2) var(--space-3);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        background: var(--paper-raised);
        border-bottom: 1px solid var(--paper-edge);
        display: none;
        flex-direction: column;
        gap: 0;
        left: 0;
        margin: 0;
        padding: var(--space-3) var(--space-4) var(--space-4);
        position: absolute;
        right: 0;
        top: 100%;
        box-shadow: var(--shadow);
    }

    .site-header.is-nav-open .site-nav {
        display: flex;
    }

    .site-nav__link {
        border-bottom: 1px solid var(--paper-sunk);
        padding-block: var(--space-3);
    }

    .site-nav__link::after {
        display: none;
    }
}

/* ---------------------------------------------------------------- Buttons */

.btn-clay,
.btn-ink,
.btn-ghost {
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.7rem 1.6rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition);
}

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

.btn-clay:hover:not(:disabled) {
    background: var(--clay-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ink {
    background: var(--ink);
    color: #fff;
}

.btn-ink:hover:not(:disabled) {
    background: #38302a;
    color: #fff;
    transform: translateY(-1px);
}

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

.btn-ghost:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
}

.btn-clay:disabled,
.btn-ink:disabled,
.btn-ghost:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.btn-lg {
    font-size: var(--text-base);
    padding: 0.9rem 2.2rem;
}

/* ---------------------------------------------------------------- Hero */

.hero {
    background: var(--paper-sunk);
    overflow: hidden;
    position: relative;
}

.hero__grid {
    align-items: center;
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
    padding-block: var(--space-8);
}

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 1.05fr 1fr;
        padding-block: var(--space-9);
    }
}

/* ---- Background variant
   The photograph fills the section and the text sits over a scrim. Everything here is scoped
   to .hero--background so the original side-image layout is untouched. */

.hero--background .hero__grid {
    /* Fills the screen. The header is sticky and opaque, so subtracting its height makes the
       hero and the header together come to exactly one viewport rather than one-plus-a-bit. */
    min-height: calc(100vh - var(--header-height));
    align-content: center;
    position: relative;
    z-index: 1;
}

/* svh is the viewport with the mobile browser's toolbars showing. Without it, 100vh on a
   phone measures the *expanded* viewport, so the bottom of the hero sits under the address
   bar until you scroll. Applied as a progressive override for browsers that support it. */
@supports (height: 100svh) {
    .hero--background .hero__grid {
        min-height: calc(100svh - var(--header-height));
    }
}

/* With no side figure the text has the row to itself, background or not. */
.hero--no-figure .hero__grid {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .hero--no-figure .hero__grid {
        grid-template-columns: 1fr;
    }

    /* A full-width measure is unreadable, so the text keeps a sensible line length. */
    .hero--no-figure .hero__title,
    .hero--no-figure .hero__lead {
        max-width: 34ch;
    }
}

/* Background plus side figure: the photograph is behind everything, so the figure needs to
   sit above the scrim like the text does. */
.hero--background .hero__figure {
    position: relative;
    z-index: 1;
}

.hero--background .hero__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Cover crops; object-position is set inline from the configured focal point so the
       subject survives a narrow viewport. */
    object-fit: cover;
    z-index: 0;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Angled rather than flat: heaviest behind the text on the left, lighter on the right so
       more of the photograph stays visible. */
    background: linear-gradient(
        100deg,
        rgba(26, 22, 19, var(--hero-overlay, 0.45)) 0%,
        rgba(26, 22, 19, calc(var(--hero-overlay, 0.45) * 0.85)) 45%,
        rgba(26, 22, 19, calc(var(--hero-overlay, 0.45) * 0.45)) 100%
    );
}

/* Over a photograph the hero text goes light — unless the administrator has chosen a colour, in
   which case theirs wins here too. Each rule below keeps its original value as the var() fallback,
   so an un-themed site renders exactly as it did before these colours became editable. */
.hero--background .hero__title {
    color: var(--hero-title-colour, #fff);
}

.hero--background .hero__lead {
    color: var(--hero-lead-colour, #fff);
}

.hero--background .hero__lead {
    /* A touch of shadow keeps the smaller text readable over a busy photograph even when the
       overlay is turned right down. */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero--background .hero__title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero--background .hero__eyebrow {
    color: var(--hero-eyebrow-colour, #f0d9cd);
}

.hero--background .hero__eyebrow::before {
    background: var(--hero-eyebrow-colour, #f0d9cd);
}

/* The outline button is dark-on-light by default, which disappears against a photograph.

   Scoped through .hero__actions purely to raise specificity above the plain-hero rule further down
   this file. Both would otherwise be two classes, leaving which one wins to depend on their order in
   the stylesheet — and a reader moving either block would silently change the over-photograph
   colours. The extra class makes the outcome order-independent. */
.hero--background .hero__actions .btn-ghost {
    border-color: var(--hero-btn-secondary-fg, rgba(255, 255, 255, 0.75));
    color: var(--hero-btn-secondary-fg, #fff);
}

.hero--background .hero__actions .btn-ghost:hover:not(:disabled) {
    background: var(--hero-btn-secondary-fg, #fff);
    color: var(--hero-btn-secondary-bg, var(--ink));
}

/* Inline stand-in for the floating badge when there is no side figure to hang it off.
   Defaults to ink so it stays readable on the plain paper hero; goes light over a photograph. */
.hero__count {
    color: var(--ink-soft);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    margin-top: var(--space-5);
    margin-bottom: 0;
}

.hero--background .hero__count {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero__count strong {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-right: 0.35rem;
}

/* The five hero text and button colours the administrator can override, each falling back to the
   palette value it has always used. A custom property rather than an inline style on the element,
   because the eyebrow's leading dash is a ::before pseudo-element and a style attribute cannot
   reach one — the dash would stay clay while its text changed. */
.hero__eyebrow {
    align-items: center;
    color: var(--hero-eyebrow-colour, var(--clay));
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 600;
    gap: var(--space-2);
    letter-spacing: 0.18em;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.hero__eyebrow::before {
    background: var(--hero-eyebrow-colour, var(--clay));
    content: "";
    display: block;
    height: 1px;
    width: 2rem;
}

.hero__title {
    /* inherit is the previous behaviour: the title took its colour from the body. */
    color: var(--hero-title-colour, inherit);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.hero__lead {
    color: var(--hero-lead-colour, var(--ink-soft));
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    max-width: 48ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* Scoped to the hero, never to .btn-clay/.btn-ghost themselves: those two classes are used across
   the catalogue, product pages and cards, and recolouring them here would change every button on
   the site. Site-wide button colour is what the --clay palette token is for. */
.hero__actions .btn-clay {
    background: var(--hero-btn-primary-bg, var(--clay));
    color: var(--hero-btn-primary-fg, #fff);
}

/* --hero-btn-primary-bg-hover is derived server-side by darkening whatever fill was chosen. Without
   it a custom fill would revert to --clay-dark on hover, jumping to a colour from a palette the
   owner has moved away from. With nothing overridden the fallback is --clay-dark, unchanged. */
.hero__actions .btn-clay:hover:not(:disabled) {
    background: var(--hero-btn-primary-bg-hover, var(--clay-dark));
    color: var(--hero-btn-primary-fg, #fff);
}

.hero__actions .btn-ghost {
    background: var(--hero-btn-secondary-bg, transparent);
    border-color: var(--hero-btn-secondary-fg, var(--ink));
    color: var(--hero-btn-secondary-fg, var(--ink));
}

/* The outline button inverts on hover: the outline colour becomes the fill. */
.hero__actions .btn-ghost:hover:not(:disabled) {
    background: var(--hero-btn-secondary-fg, var(--ink));
    color: var(--hero-btn-secondary-bg, var(--paper-raised));
}

.hero__figure {
    margin: 0;
    position: relative;
}

.hero__image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    width: 100%;
}

/* Stand-in when no hero photograph has been uploaded yet. */
.hero__placeholder {
    align-items: center;
    aspect-ratio: 4 / 5;
    background:
        repeating-linear-gradient(45deg, var(--paper-edge) 0 2px, transparent 2px 14px),
        linear-gradient(150deg, var(--clay-tint), var(--sage-tint));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: var(--ink-faint);
    display: flex;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    justify-content: center;
    padding: var(--space-6);
    text-align: center;
}

.hero__badge {
    background: var(--paper-raised);
    border-radius: var(--radius);
    bottom: var(--space-5);
    box-shadow: var(--shadow-lg);
    left: calc(-1 * var(--space-4));
    padding: var(--space-4) var(--space-5);
    position: absolute;
    max-width: 15rem;
}

@media (max-width: 900px) {
    .hero__badge {
        display: none;
    }
}

.hero__badge-value {
    color: var(--clay);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: 1;
}

.hero__badge-label {
    color: var(--ink-faint);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- Product cards */

.product-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

@media (min-width: 1024px) {
    .product-grid {
        gap: var(--space-6);
    }
}

.product-card {
    background: var(--paper-raised);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover,
.product-card:focus-within {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card__media {
    aspect-ratio: 4 / 5;
    background: var(--paper-sunk);
    display: block;
    overflow: hidden;
    position: relative;
}

.product-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.2, 0, 0.2, 1);
    width: 100%;
}

.product-card:hover .product-card__image {
    transform: scale(1.04);
}

.product-card__noimage {
    align-items: center;
    color: var(--ink-faint);
    display: flex;
    font-size: var(--text-sm);
    height: 100%;
    justify-content: center;
}

.product-card__flag {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 600;
    left: var(--space-3);
    letter-spacing: 0.04em;
    padding: 0.2rem 0.7rem;
    position: absolute;
    top: var(--space-3);
}

.product-card__flag--quote { color: var(--clay-dark); }
.product-card__flag--low { color: var(--warning); }
.product-card__flag--out { color: var(--danger); }

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-4) var(--space-5);
}

.product-card__category {
    color: var(--ink-faint);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-card__name {
    font-size: var(--text-lg);
    margin: 0;
}

.product-card__name a {
    color: var(--ink);
    text-decoration: none;
}

/* Makes the whole card clickable while keeping a real, focusable link for keyboards. */
.product-card__name a::after {
    content: "";
    inset: 0;
    position: absolute;
}

.product-card {
    position: relative;
}

.product-card__name a:hover {
    color: var(--clay);
}

.product-card__summary {
    color: var(--ink-soft);
    font-size: var(--text-sm);
    margin: 0;
}

.product-card__footer {
    align-items: baseline;
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-3);
}

.product-card__price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
}

.product-card__price-note {
    color: var(--ink-faint);
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.product-card__stock {
    color: var(--ink-faint);
    font-size: var(--text-xs);
}

/* ---------------------------------------------------------------- Category strip */

.category-strip {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.category-tile {
    background: var(--paper-raised);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    color: var(--ink);
    display: block;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
}

.category-tile:hover {
    box-shadow: var(--shadow);
    color: var(--ink);
    transform: translateY(-3px);
}

.category-tile__media {
    aspect-ratio: 3 / 2;
    background: var(--paper-sunk);
    display: block;
    overflow: hidden;
}

.category-tile__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.category-tile__body {
    padding: var(--space-4);
}

.category-tile__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.category-tile__count {
    color: var(--ink-faint);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- About & contact */

.about-grid {
    align-items: center;
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-body {
    color: var(--ink-soft);
    font-size: var(--text-lg);
}

.about-body p {
    margin-bottom: var(--space-4);
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.contact-card {
    background: var(--paper-raised);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.contact-card__label {
    color: var(--clay);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

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

.contact-card a:hover {
    color: var(--clay);
    text-decoration: underline;
}

.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: 0.15rem;
    font-size: var(--text-sm);
}

.hours-list__day {
    color: var(--ink-soft);
}

.hours-list__closed {
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------- Product detail */

.product-detail {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .product-detail {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-8);
    }
}

.gallery__main {
    aspect-ratio: 4 / 5;
    background: var(--paper-sunk);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
    object-fit: cover;
    width: 100%;
}

.gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.gallery__thumb {
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    height: 72px;
    width: 72px;
}

.gallery__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery__thumb.is-active {
    border-color: var(--clay);
}

.product-detail__category {
    color: var(--ink-faint);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-detail__title {
    font-size: var(--text-3xl);
    margin-block: var(--space-2) var(--space-3);
}

.product-detail__price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.product-detail__price-note {
    color: var(--ink-faint);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
}

.product-detail__description {
    color: var(--ink-soft);
    margin-bottom: var(--space-5);
    white-space: pre-line;
}

.availability {
    align-items: center;
    border-radius: var(--radius-pill);
    display: inline-flex;
    font-size: var(--text-sm);
    font-weight: 600;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding: 0.3rem 0.9rem;
}

.availability::before {
    border-radius: 50%;
    content: "";
    height: 0.5rem;
    width: 0.5rem;
    background: currentColor;
}

.availability--in { background: var(--success-tint); color: var(--success); }
.availability--low { background: var(--warning-tint); color: var(--warning); }
.availability--out { background: var(--danger-tint); color: var(--danger); }
.availability--quote { background: var(--clay-tint); color: var(--clay-dark); }

.buy-box {
    background: var(--paper-raised);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

/* The quote panel is deliberately tinted differently from the buy box so it never
   reads as a normal purchase at the displayed price. */
.buy-box--quote {
    background: var(--clay-tint);
    border-color: color-mix(in srgb, var(--clay) 30%, transparent);
}

.buy-box__row {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.quantity-field {
    max-width: 7rem;
}

.spec-list {
    border-top: 1px solid var(--paper-edge);
    list-style: none;
    margin-top: var(--space-5);
    padding: var(--space-4) 0 0;
}

.spec-list li {
    display: flex;
    gap: var(--space-3);
    justify-content: space-between;
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--paper-sunk);
    font-size: var(--text-sm);
}

.spec-list dt,
.spec-list__label {
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------- Filters & toolbar */

.catalogue-toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.catalogue-toolbar .form-control,
.catalogue-toolbar .form-select {
    border-color: var(--paper-edge);
    border-radius: var(--radius);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.chip {
    background: var(--paper-raised);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: var(--text-sm);
    padding: 0.35rem 1rem;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.chip:hover {
    border-color: var(--clay);
    color: var(--clay-dark);
}

.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---------------------------------------------------------------- Empty states & notices */

.notice {
    border-left: 3px solid var(--clay);
    background: var(--paper-raised);
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
    padding: var(--space-4) var(--space-5);
}

.notice--success { border-left-color: var(--success); }
.notice--warning { border-left-color: var(--warning); }
.notice--danger { border-left-color: var(--danger); }

.blank-slate {
    color: var(--ink-soft);
    padding-block: var(--space-8);
    text-align: center;
}

.blank-slate__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

/* ---------------------------------------------------------------- Pager
   Shares markup with the admin panel (_Pager.cshtml); the two skins differ only here. */

.pager {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: space-between;
}

.pager__summary {
    color: var(--ink-faint);
    font-size: var(--text-sm);
}

.pager__links {
    display: flex;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.pager__links a,
.pager__links span {
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    display: block;
    font-size: var(--text-sm);
    min-width: 2.4rem;
    padding: 0.3rem 0.7rem;
    text-align: center;
    text-decoration: none;
}

.pager__links a:hover {
    background: var(--clay-tint);
    border-color: var(--clay);
    color: var(--clay-dark);
}

.pager__links .is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 600;
}

.pager__links .is-disabled {
    color: var(--paper-edge);
}

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

.site-footer {
    background: var(--ink);
    color: #cfc6bc;
    flex-shrink: 0;
    padding-block: var(--space-7) var(--space-5);
    margin-top: var(--space-9);
}

.site-footer a {
    color: #cfc6bc;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.footer__brand {
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.footer__heading {
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8a7f74;
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-xs);
    gap: var(--space-3);
    justify-content: space-between;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.social-row a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    padding: 0.25rem 0.85rem;
}

.social-row a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}
