/* Barlow Condensed + Source Sans 3 — industrial B2B. Must stay at the very top. */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

/* ============================================================================
 * Default theme — storefront overrides
 *
 * Loaded AFTER the platform's prebuilt `base.css` (Tailwind v4 + the full
 * design-token system). This file's sole job is to redeclare any of the
 * documented `--brand-*` tokens (and the two `--font-*` aliases) to re-skin
 * the storefront. NO custom class library lives here anymore — every blade
 * in this theme styles itself with Tailwind utilities and design tokens.
 *
 * Full reference: see `themes/default/docs/tokens.md` §11.
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * Custom fonts (Google Fonts & self-hosted)
 *
 * Two steps to use any custom font: (1) LOAD it, (2) point --font-primary /
 * --font-secondary at it (always keep a system fallback at the end of the
 * stack). --font-primary drives every h1–h6 + the `font-primary` utility;
 * --font-secondary drives body copy + the `font-secondary` utility.
 *
 * The default theme ships NO active font override (it inherits the platform
 * "Roboto", sans-serif default), so the snippets below are commented out.
 * Uncomment ONE approach and edit the family name. Full guide: docs/tokens.md §11.1.
 *
 * --- Approach A — Google Fonts, hosted (fastest): add to a layout <head> ----
 *   @push('head')
 *       <link rel="preconnect" href="https://fonts.googleapis.com">
 *       <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *       <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap">
 *   @endpush
 *   …then set the variable in the :root block below.
 *
 * --- Approach B — Google Fonts, hosted via CSS @import (single file) --------
 *   Must be the VERY FIRST rule in this file (CSS requires @import first):
 *   @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");
 *
 * --- Approach C — self-hosted (recommended; GDPR-safe, no Google request) ---
 *   Drop the .woff2 files in assets/fonts/ then declare the faces here:
 *   @font-face {
 *       font-family: "Inter";
 *       font-style: normal;
 *       font-weight: 400;
 *       font-display: swap;
 *       src: url("../fonts/inter-400.woff2") format("woff2");
 *   }
 *   @font-face {
 *       font-family: "Inter";
 *       font-style: normal;
 *       font-weight: 700;
 *       font-display: swap;
 *       src: url("../fonts/inter-700.woff2") format("woff2");
 *   }
 * -------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------
 * Theme token DEFAULTS — deliberately inside a cascade layer.
 *
 * This stylesheet is served AFTER the tenant's Appearance <style> block, so an
 * unlayered `:root` here would outrank the Store setup → Appearance palette and
 * font pickers and make them dead for every tenant on this theme. A layered
 * declaration always loses to an unlayered one regardless of document order, so
 * wrapping the defaults keeps the contract the default theme is meant to have:
 * these values apply until the tenant configures Appearance, then Appearance
 * wins — exactly as before the theme stylesheet moved.
 *
 * A CUSTOM theme that wants to OWN its colors does the opposite: it declares
 * `:root` unlayered, which beats Appearance because this file loads later.
 * See docs/tokens.md §11 — Design tokens reference.
 * -------------------------------------------------------------------------- */
/* Custom theme owns brand colours (unlayered :root beats Appearance).
 * Measured from https://www.hs-arbeitsschutz.com/ — yellow header #FAB71C,
 * navy chrome #3555A2. Tenant Appearance also lists #F2C12E (close sibling). */
:root {
    --font-primary: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    --font-secondary: "Source Sans 3", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --brand-container-desktop: 1440px;

    --brand-color-primary-50:  #fff8e1;
    --brand-color-primary-100: #ffecb3;
    --brand-color-primary-200: #ffe082;
    --brand-color-primary-300: #ffd54f;
    --brand-color-primary-400: #ffc93a;
    --brand-color-primary-500: #fab71c;
    --brand-color-primary-600: #e0a010;
    --brand-color-primary-700: #c48a0c;
    --brand-color-primary-800: #8b6208;

    --brand-color-secondary-50:  #eef1f8;
    --brand-color-secondary-100: #d5dceb;
    --brand-color-secondary-200: #a9b6d4;
    --brand-color-secondary-300: #7a8fbb;
    --brand-color-secondary-400: #4d6aa8;
    --brand-color-secondary-500: #3555a2;
    --brand-color-secondary-600: #2c4788;
    --brand-color-secondary-700: #243a6e;
    --brand-color-secondary-800: #1b2a4a;

    --brand-color-surface-page: #f5f7fa;
    --brand-color-surface-card: #ffffff;
    --brand-color-headings: #1b2a4a;
    --brand-color-body: #333333;
    --brand-color-primary-content: #1b2a4a;
}

:root.dark {
    /* The platform base.css ships a complete dark palette (page + card
     * surfaces, text, borders, inputs, status subtles) under `.dark`, so the
     * whole storefront re-skins straight from the design tokens with no
     * per-element overrides. Hint native form controls / scrollbars for dark,
     * and redeclare any `--brand-*` token here to tune individual values. */
    color-scheme: dark;
}

/* ----------------------------------------------------------------------------
 * Light/dark asset swaps
 *
 * The logo (header, footer, login) and the header theme-toggle each ship a
 * light and a dark variant in the markup; CSS shows the one matching the
 * active `.dark` root class. Done in plain CSS (not `dark:` utilities) so it
 * is served live with NO base.css rebuild and flips the instant the root
 * class changes (server render, no-FOUC script, or live JS toggle).
 *
 * A logo without a dark variant ships no `--light` class, so it stays visible
 * in both schemes.
 * -------------------------------------------------------------------------- */
.storefront-logo--dark { display: none; }
:root.dark .storefront-logo--light { display: none; }
:root.dark .storefront-logo--dark { display: block; }

.theme-toggle__to-light { display: none; }
:root.dark .theme-toggle__to-dark { display: none; }
:root.dark .theme-toggle__to-light { display: inline-flex; }

/* ----------------------------------------------------------------------------
 * Form controls — checkboxes
 *
 * The platform base.css ships native, browser-default checkboxes which read
 * small and inconsistent across the storefront. Re-skin every storefront
 * checkbox to match the B2B template (Figma): a larger rounded box with a
 * subtle border + shadow that fills with the brand primary and shows a white
 * check when selected. Colors reference the design tokens, so per-customer
 * branding (which overrides `--color-primary`) recolors the checked state too.
 *
 * `:not(.sr-only)` leaves visually-hidden checkboxes untouched — those may
 * drive custom visually-hidden patterns and must keep their native clipped box.
 * -------------------------------------------------------------------------- */
.storefront input[type="checkbox"]:not(.sr-only) {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border-subtle, #e5e8ee);
    border-radius: 0.375rem;
    background-color: var(--color-surface-card, #ffffff);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.storefront input[type="checkbox"]:not(.sr-only):checked {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

/* The check is masked rather than baked into the data URI so its colour comes
 * from --color-primary-content: a hardcoded white glyph disappears on a light
 * brand colour (a gold primary scores 1.65:1 against white). */
.storefront input[type="checkbox"]:not(.sr-only):checked::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-content);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 1rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.storefront input[type="checkbox"]:not(.sr-only):focus-visible {
    outline: 2px solid var(--color-primary, #3260e7);
    outline-offset: 2px;
}

.storefront input[type="checkbox"]:not(.sr-only):disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ----------------------------------------------------------------------------
 * Form controls — radio buttons
 *
 * Mirror the checkbox skin so every storefront radio is the same 24px control:
 * a circle that fills with the brand primary and shows a white center dot when
 * selected. Colors reference the design tokens, so per-customer branding
 * recolors the checked state too. `:not(.sr-only)` leaves visually-hidden radios
 * untouched. Native browser radios can't be resized reliably, so the size unification
 * requested for the storefront requires this `appearance: none` re-skin.
 * -------------------------------------------------------------------------- */
.storefront input[type="radio"]:not(.sr-only) {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border-subtle, #e5e8ee);
    border-radius: 9999px;
    background-color: var(--color-surface-card, #ffffff);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.storefront input[type="radio"]:not(.sr-only):checked {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

/* Masked for the same contrast reason as the checkbox check above. */
.storefront input[type="radio"]:not(.sr-only):checked::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-content);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4.5' fill='black'/%3E%3C/svg%3E") center / 1rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4.5' fill='black'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.storefront input[type="radio"]:not(.sr-only):focus-visible {
    outline: 2px solid var(--color-primary, #3260e7);
    outline-offset: 2px;
}

.storefront input[type="radio"]:not(.sr-only):disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ----------------------------------------------------------------------------
 * Form controls — select / dropdown
 *
 * Replace the browser's native dropdown arrow (tiny, unpositioned, and
 * inconsistent across OS/browser) with a custom chevron that is:
 *   - a consistent 1.125 rem (≈18 px), slightly larger than the default 16 px
 *     indicator most browsers render;
 *   - positioned 0.75 rem from the right border (not flush against the edge).
 *
 * `padding-right: 2.5rem` reserves space so option text never overlaps the
 * arrow (icon right-edge at 0.75 rem + icon width 1.125 rem = 1.875 rem,
 * plus ~0.625 rem breathing room). The rule's specificity (0,1,1) outranks
 * Tailwind's `px-*` utilities (0,1,0) so the reserved space is always applied
 * even when individual selects carry `px-2` or `px-3` utility classes.
 *
 * Dark-mode variant swaps the arrow to a lighter stroke so it stays legible
 * against dark `surface-input` backgrounds.
 * -------------------------------------------------------------------------- */
.storefront select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

:root.dark .storefront select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------------
 * Form controls — toggle switch (.sf-switch)
 *
 * A pill switch built from a visually-hidden (.sr-only) native checkbox plus a
 * track whose ::after knob slides on :checked. The input stays .sr-only so it
 * escapes the global checkbox re-skin above while remaining a real, focusable,
 * form-submitting control (progressive enhancement: works with JS off). Colors
 * reference the design tokens, so per-customer branding recolors the on-state.
 * Used by the catalog-export column picker (switch + drag-to-reorder rows).
 * -------------------------------------------------------------------------- */
.sf-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.sf-switch__track {
    position: relative;
    flex-shrink: 0;
    width: 2.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: var(--color-border-subtle, #e5e8ee);
    transition: background-color 0.15s ease;
}

.sf-switch__track::after {
    content: "";
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: var(--color-neutral-white, #ffffff);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.sf-switch input:checked + .sf-switch__track {
    background-color: var(--color-primary);
}

/* The knob rides ON the primary track once checked, so it takes the paired
 * foreground — a fixed white knob vanishes on a light brand colour. */
.sf-switch input:checked + .sf-switch__track::after {
    background-color: var(--color-primary-content);
    transform: translateX(1rem);
}

.sf-switch input:focus-visible + .sf-switch__track {
    outline: 2px solid var(--color-primary, #3260e7);
    outline-offset: 2px;
}

.sf-switch input:disabled + .sf-switch__track {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----------------------------------------------------------------------------
 * Catalog-export preview table
 *
 * Styles the live preview table on the account catalog-export page. Kept as a
 * component (rather than Tailwind utilities) because the platform base.css is
 * prebuilt and does not ship the per-cell utilities this needs (vertical-align,
 * last-row border reset). This file loads after base.css, so these rules win.
 * -------------------------------------------------------------------------- */
.sf-preview-table {
    border-collapse: collapse;
}

.sf-preview-table th,
.sf-preview-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border-subtle, #e5e8ee);
    text-align: left;
    vertical-align: top;
}

.sf-preview-table thead th {
    font-weight: 600;
    color: var(--color-headings, #1a2233);
    white-space: nowrap;
}

.sf-preview-table tbody td {
    color: var(--color-body, #3b4252);
}

.sf-preview-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ----------------------------------------------------------------------------
 * Native <dialog> centering
 *
 * The platform base.css ships Tailwind's Preflight, whose universal
 * `*, ::before, ::after { margin: 0 }` reset overrides the user-agent
 * `dialog { margin: auto }` rule that centers an open modal dialog. Without
 * this, every `showModal()` dialog (the canonical modal component plus the
 * inlined checkout / account dialogs) renders pinned to the top-left corner.
 * Re-assert the native centering here; an element selector outranks the `*`
 * reset, and this file loads after base.css.
 *
 * NOTE FOR CUSTOM THEMES: this rule is NOT in the platform base.css, so every
 * theme that uses `<dialog>` modals MUST re-declare it in its own stylesheet
 * (see docs/blade-api.md §9 "Modals" and docs/styling.md §10.4).
 * -------------------------------------------------------------------------- */
dialog {
    margin: auto;
}

/* ----------------------------------------------------------------------------
 * Checkout "deliver to my billing address" toggle
 *
 * The same-as-billing checkbox lives inside its <label> so it picks up the
 * shared checkbox skin above (it is a real native checkbox, not a visually
 * hidden peer). Because it is therefore not a previous sibling of the delivery
 * fields, neither Tailwind's `peer-*` nor `has-*` variants can reach them; a
 * panel-scoped `:has()` rule collapses the delivery fields when it is checked,
 * with no JavaScript. `:has()` is part of the supported browser baseline and is
 * already used elsewhere in the theme (the `has-[:checked]:` address cards).
 * -------------------------------------------------------------------------- */
.checkout__panel:has(.checkout__same-cb:checked) .checkout__delivery-body {
    display: none;
}

/* ----------------------------------------------------------------------------
 * Hidden scrollbar — horizontally-scrollable rows with their own arrow controls
 *
 * Tailwind ships no core utility for suppressing a native scrollbar, so this is
 * a targeted custom rule (docs/styling.md §10.4). Used by the header category row
 * (partials/nav.blade.php) — scrolling itself still works (touch, trackpad,
 * keyboard via the row's `tabindex`), only the native scrollbar chrome is
 * hidden in favor of the row's own prev/next arrow buttons.
 * -------------------------------------------------------------------------- */
.storefront-nav__links {
    scrollbar-width: none;
}

.storefront-nav__links::-webkit-scrollbar {
    display: none;
}

/* Same technique, for the product gallery's thumbnail rail — its own scroll
 * arrows replace the scrollbar on both axes (up/down in the tablet+ vertical
 * column, left/right in the horizontal strip on phones). */
.product-gallery__thumbs {
    scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery__main,
.product-gallery__thumb,
.product-gallery__placeholder {
    background: #fff;
}

.product-gallery__main img,
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    background: #fff;
}

/* ============================================================================
 * HS-Arbeitsschutz — chrome, search, catalog sidebar, listing images
 * ============================================================================ */

.storefront-header {
    background: transparent;
    border-bottom: 0;
}

.storefront-header__sticky {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-primary, #fab71c);
}

.storefront-header.storefront-header__sticky {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-primary, #fab71c);
}

.storefront-header__banner {
    background: var(--color-secondary-800, #1b2a4a);
}

.storefront-header__bar {
    gap: 0.75rem;
    padding-block: 0.75rem;
}

.storefront-header__search {
    position: relative;
    flex: 1 1 auto;
    max-width: none;
}

.hs-search {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    gap: 0.15rem;
    padding: 0.2rem 0.25rem 0.2rem 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(27, 42, 74, 0.18);
    border-radius: 9999px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-search:focus-within {
    border-color: #1b2a4a;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.16);
}

.hs-search__input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.35rem;
    font-size: 0.9375rem;
    color: #1b2a4a;
    outline: none;
}

.storefront-header__brand .storefront-logo,
.storefront-footer__brand .storefront-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 2.75rem;
    max-width: min(240px, 48vw);
    object-fit: contain;
    background: transparent;
}

.storefront-header__search {
    position: relative;
}

.storefront-header__brand .storefront-logo--dark,
.storefront-footer__brand .storefront-logo--dark,
.login__brand-logo .storefront-logo--dark {
    display: none;
}

.hs-search-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--color-border-subtle, #e5e8ee);
    border-radius: 0.75rem;
    background: var(--color-surface-card, #fff);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.hs-search-panel[hidden] {
    display: none !important;
}

.hs-search-panel__label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-body, #6b7280);
}

.hs-search-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.hs-search-panel__chip {
    border-radius: 999px;
    background: var(--color-surface-page, #f5f7fa);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-headings, #1b2a4a);
    text-decoration: none;
}

.hs-search-panel__chip:hover {
    background: var(--color-primary-50, #fff8e1);
}

.hs-search-panel__all {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--color-border-subtle, #e5e8ee);
    background: transparent;
    padding: 0.75rem 0 0;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-headings, #1b2a4a);
    cursor: pointer;
}

.storefront-nav {
    position: relative;
    background: var(--color-surface-card, #fff);
    border-bottom: 1px solid var(--color-border-subtle, #e5e8ee);
}

.storefront-nav__bar {
    min-width: 0;
}

.hs-mega {
    position: static;
    flex: 1 1 0;
    min-width: 0;
}

.hs-mega__trigger {
    display: flex;
    height: 3rem;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-headings, #1b2a4a);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.hs-mega__trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-mega.is-open .hs-mega__trigger,
.hs-mega__trigger:hover {
    color: var(--color-secondary-500, #3555a2);
}

.hs-mega__panel {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: 100%;
    border-top: 1px solid var(--color-border-subtle, #e5e8ee);
    background: var(--color-surface-card, #fff);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.hs-mega__panel[hidden] {
    display: none !important;
}

.hs-mega__inner {
    max-width: var(--brand-container-desktop, 1440px);
    margin-inline: auto;
    padding: 1.5rem 1rem;
}

.hs-mega__blurb {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary-500, #3555a2);
}

.hs-mega__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .hs-mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .hs-mega__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.hs-mega__card {
    border-radius: 0.75rem;
    border: 1px solid var(--color-border-subtle, #e5e8ee);
    background: var(--color-surface-page, #f5f7fa);
    padding: 1rem;
    text-decoration: none;
}

.hs-mega__card:hover {
    border-color: var(--color-primary, #fab71c);
    background: var(--color-primary-50, #fff8e1);
}

.hs-mega__card-name {
    display: block;
    font-weight: 600;
    color: var(--color-headings, #1b2a4a);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.hs-mobile-nav {
    width: min(100%, 22rem);
    max-width: 22rem;
    height: 100%;
    max-height: 100%;
    margin: 0 auto 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.hs-mobile-nav::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.hs-mobile-nav__sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface-card, #fff);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.hs-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-subtle, #e5e8ee);
}

.hs-mobile-nav__title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-headings, #1b2a4a);
}

.hs-mobile-nav__close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-headings, #1b2a4a);
    cursor: pointer;
}

.hs-mobile-nav__body {
    overflow: auto;
    padding: 0.5rem 0;
}

.hs-mobile-nav__summary,
.hs-mobile-nav__link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-headings, #1b2a4a);
    text-decoration: none;
    cursor: pointer;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.hs-mobile-nav__children {
    margin: 0;
    padding: 0 1rem 0.75rem 1.5rem;
    list-style: none;
}

.hs-mobile-nav__children a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--color-body, #333);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.category-card__name {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.storefront-footer__stripe {
    height: 0.375rem;
    background: var(--color-primary, #fab71c);
}

.price--special .price__current {
    color: #b45309;
}

.product-card--grid .add-to-cart a,
.product-card--grid .add-to-cart button,
.product-card__add {
    border-radius: 9999px;
}

.catalog__grid {
    align-items: stretch;
}

.catalog__grid > li {
    display: flex;
    min-width: 0;
}

.product-card--grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-card--grid .product-card__media,
.product-card--grid .product-card__image {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    background: #fff;
}

.product-card__media {
    position: relative;
}

.hs-color-rail {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 0.3rem;
    padding: 0.45rem 0.5rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 42%, #fff 100%);
    scrollbar-width: thin;
}

.hs-color-rail__swatch {
    display: block;
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5d9e2;
    border-radius: 0.35rem;
    background: #9ca3af;
    cursor: pointer;
}

.hs-color-rail__swatch[style*="#f3f4f6"],
.hs-color-rail__swatch[style*="#F3F4F6"],
.hs-color-rail__swatch[style*="#ffffff"],
.hs-color-rail__swatch[style*="#FFFFFF"] {
    border-color: #c5c9d3;
}

.hs-color-rail__swatch.is-active,
.hs-color-rail__swatch:hover,
.hs-color-rail__swatch:focus-visible {
    border-color: #1b2a4a;
    box-shadow: 0 0 0 2px #fab71c;
    outline: none;
}

.product-card--grid .product-card__image img,
.product-card--list .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product-card--grid .product-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.product-card--grid .product-card__title {
    min-height: calc(1.25em * 2);
}

.product-card--grid .product-card__sku {
    min-height: 1rem;
}

.product-card--grid .price {
    min-height: 2.75rem;
}

.catalog-filter-active__reset {
    white-space: nowrap;
}

.catalog-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.25rem 0.5rem 0.25rem 0.625rem;
    border: 1px solid var(--color-border-subtle, #e5e8ee);
    border-radius: 999px;
    background: var(--color-surface-card, #fff);
    color: var(--color-headings, #1b2a4a);
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.catalog-filter-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-700, #c48a0c);
}

.catalog-filter-tag__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-filter-tag__x {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.catalog-filter-search {
    position: relative;
}

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

.catalog-filter-search__input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--color-surface-input-stroke, #d5d9e2);
    border-radius: 0.5rem;
    background: var(--color-surface-input, #fff);
    font-size: 0.875rem;
    color: var(--color-body, #333);
    outline: none;
}

.catalog-filter-search__input:focus {
    border-color: var(--color-primary);
}

.catalog-filter-search__chevron {
    position: absolute;
    right: 0.625rem;
    width: 1rem;
    height: 1rem;
    color: var(--color-body, #6b7280);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.catalog-filter-search.is-open .catalog-filter-search__chevron {
    transform: rotate(180deg);
}

.catalog-filter-search__panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--color-border-subtle, #e5e8ee);
    border-radius: 0.5rem;
    background: var(--color-surface-card, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.catalog-filter-search__panel[hidden] {
    display: none !important;
}

.catalog-filter-swatches,
.catalog-filter-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalog-filter-swatch {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 2px solid #d5d9e2;
    cursor: pointer;
    position: relative;
    background: #ccc;
}

.catalog-filter-swatch:has(input:checked) {
    border-color: #1b2a4a;
    box-shadow: 0 0 0 2px #fab71c;
}

.catalog-filter-size {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d5d9e2;
    border-radius: 0.4rem;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1b2a4a;
    cursor: pointer;
}

.catalog-filter-size:has(input:checked) {
    border-color: #fab71c;
    background: #fab71c;
}

/* Sticky filter: keep the navy head visible, scroll the long facet list. */
@media (min-width: 1024px) {
    .hs-catalog-filters {
        position: sticky;
        top: 5.75rem;
        align-self: flex-start;
        max-height: calc(100vh - 6.25rem);
        overflow: hidden;
    }

    .hs-catalog-filters .hs-filter-panel {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 6.25rem);
        overflow: hidden;
    }

    .hs-catalog-filters .hs-filter-panel__body {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 1.5rem;
    }
}

.hs-color-picker__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hs-color-picker__option {
    display: flex;
    width: 3.5rem;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e5e8ee;
    border-radius: 0.45rem;
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.hs-color-picker__option:hover {
    border-color: #3555a2;
}

.hs-color-picker__option.is-selected {
    border-color: #1b2a4a;
    box-shadow: 0 0 0 2px #fab71c;
}

.hs-color-picker__photo {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    overflow: hidden;
    background: #fff;
}

.hs-color-picker__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.hs-color-picker__name {
    display: block;
    overflow: hidden;
    padding: 0.15rem 0.2rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: #1b2a4a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hs-search-panel__layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hs-search-panel__layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    }
}

.hs-search-panel__hits {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hs-search-panel__hit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.25rem;
    color: inherit;
    text-decoration: none;
}

.hs-search-panel__hit:hover {
    background: #f5f7fa;
}

.hs-search-panel__hit-img {
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    border-radius: 0.35rem;
    background: #fff;
}

.hs-search-panel__hit-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hs-search-panel__hit-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1b2a4a;
}

.hs-search-panel__hit-sku {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.hs-filter-families {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hs-filter-size-group + .hs-filter-size-group {
    margin-top: 0.35rem;
}

.hs-filter-size-group__title {
    color: #6b7280;
}

.hs-filter-family {
    display: inline-flex;
    cursor: pointer;
}

.hs-filter-family.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

.hs-filter-family input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hs-filter-family__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #d5d9e2;
    border-radius: 999px;
    background: #fff;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1b2a4a;
}

.hs-filter-family:has(input:checked) .hs-filter-family__chip {
    border-color: #1b2a4a;
    box-shadow: 0 0 0 2px #fab71c;
}

.hs-filter-family__dot {
    width: 0.85rem;
    height: 0.85rem;
    border: 1px solid #d5d9e2;
    border-radius: 999px;
    background: #9ca3af;
}

.hs-size-matrix__table thead tr {
    background: #1b2a4a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hs-size-matrix__tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.hs-size-matrix__tier {
    border-radius: 999px;
    background: #f5f7fa;
    padding: 0.15rem 0.5rem;
    font-size: 11px;
    color: #6b7280;
}

.hs-size-matrix__tier.is-active {
    background: #fff4cc;
    font-weight: 600;
    color: #1b2a4a;
}

.hs-size-matrix__step {
    width: 2.25rem;
    border: 0;
    background: #fff;
    color: #1b2a4a;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.hs-size-matrix__qty-input {
    -moz-appearance: textfield;
}

.hs-size-matrix__qty-input::-webkit-outer-spin-button,
.hs-size-matrix__qty-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

[data-hs-color-matrix] [data-variant-submit]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

