/*
 * Romvesen Shop. The public site's design (public_base.html in the Django
 * repo: its palettes, which are the React app's in frontend/src/styles.css,
 * its header, cards, buttons and footer), with everything WooCommerce's own
 * stylesheets would have drawn, since those are not loaded.
 *
 * Keep the tokens in step with public_base.html. Light or dark is the
 * visitor's (data-theme on <html>, set before the first paint); without
 * JavaScript the page is dark. Flat surfaces and hairlines; no glows, glass or
 * hover lifts. Text is the system's sans serif, IBM Plex Sans for headings and
 * IBM Plex Mono for figures (prices, SKUs), never for labels.
 */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens: the React app's dark palette ------------------------------- */
/* The status roles (-soft, -border) are the SPA's own, which the public site
   does not carry: frontend/src/styles.css. */
:root {
  --mark: #e2e8f0;
  color-scheme: dark;
  --brand-100: #dbf0f2;
  --brand-200: #bce2e6;
  --brand-300: #95d0d8;
  --brand-400: #79bfc6;
  --brand-500: #519fa8;
  --brand-800: #2f565d;
  --brand-950: #172e33;

  --surface: #0f172a;
  --surface-raised: #1e293b;
  --surface-overlay: #334155;
  --surface-sunken: #020617;
  --content: #f1f5f9;
  --content-muted: #9fadc0;
  --content-subtle: #7c8ca2;
  --border: #334155;
  --border-subtle: #1e293b;

  --brand: var(--brand-300);
  --brand-solid: var(--brand-400);
  --brand-solid-hover: var(--brand-300);
  --brand-on: var(--brand-950);
  --brand-soft: #16333a;
  --brand-border: var(--brand-800);

  --danger: #f87171;
  --danger-soft: #4a2525;
  --danger-border: #7f1d1d;
  --success: #4ade80;
  --success-soft: #1d3528;
  --success-border: #166534;
  --warning: #fbbf24;
  --warning-soft: #3d3016;
  --warning-border: #92400e;
  --info: #60a5fa;
  --info-soft: #1a2740;
  --info-border: #1d4ed8;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "IBM Plex Sans", var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1440px;
  --header: 64px;
  --radius: 10px;
  --shadow-menu: 0 12px 32px rgba(2, 6, 23, 0.25);
}

/* The React app's light palette, moved one step for a page: its cards are
   white on a gray-100 page, so here --surface is the card and
   --surface-sunken the page under it. */
:root[data-theme="light"] {
  color-scheme: light;
  --mark: #334155;

  --surface: #ffffff;
  --surface-raised: #f3f4f6;
  --surface-overlay: #e5e7eb;
  --surface-sunken: #f3f6f9;
  --content: #111827;
  --content-muted: #374151;
  --content-subtle: #6b7280;
  --border: #d1d5db;
  --border-subtle: #e5e7eb;

  --brand: #336a72;
  --brand-solid: #6ec6d9;
  --brand-solid-hover: #95d0d8;
  --brand-on: #070d15;
  --brand-soft: #f1f9fa;
  --brand-border: var(--brand-200);

  --danger: #991b1b;
  --danger-soft: #fee2e2;
  --danger-border: #fecaca;
  --success: #166534;
  --success-soft: #dcfce7;
  --success-border: #bbf7d0;
  --warning: #854d0e;
  --warning-soft: #fef9c3;
  --warning-border: #fde68a;
  --info: #1e40af;
  --info-soft: #dbeafe;
  --info-border: #bfdbfe;
}

/* The header stays dark in both themes, as the SPA's top bar does. */
.stay-dark {
  color-scheme: dark;
  --mark: #e2e8f0;
  --surface: #0f172a;
  --surface-raised: #1e293b;
  --surface-overlay: #334155;
  --surface-sunken: #020617;
  --content: #f1f5f9;
  --content-muted: #9fadc0;
  --content-subtle: #7c8ca2;
  --border: #334155;
  --border-subtle: #1e293b;
  --brand: var(--brand-300);
  --brand-solid: var(--brand-400);
  --brand-solid-hover: var(--brand-300);
  --brand-on: var(--brand-950);
  --brand-soft: #16333a;
  --brand-border: var(--brand-800);
  --danger: #f87171;
  color: var(--content);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-sunken);
  color: var(--content);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

img, svg, video {
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  display: block;
  flex: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text, .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--brand-solid);
  color: var(--brand-on);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.clear {
  clear: both;
}

/* Figures: prices, SKUs, counts. Not for labels. */
.mono, .woocommerce-Price-amount, .sku, .cart-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.label {
  color: var(--content-subtle);
  font-size: 0.85rem;
  font-weight: 500;
}

.link, .prose a:not(.btn, .button), .page-content p a:not(.btn, .button), .woocommerce-info a:not(.button), .woocommerce-message a:not(.button), .lost_password a {
  color: var(--brand);
  text-decoration: none;
}

.link:hover, .prose a:not(.btn, .button):hover, .page-content p a:not(.btn, .button):hover, .woocommerce-info a:not(.button):hover, .woocommerce-message a:not(.button):hover, .lost_password a:hover {
  text-decoration: underline;
}

.page-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--content);
}

.section-title-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.lede {
  margin-top: 0.75rem;
  max-width: 46rem;
  color: var(--content-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.fine-print {
  color: var(--content-subtle);
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- The sky (dark theme only) ------------------------------------------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 85% -10%, rgba(121, 191, 198, 0.12), transparent 60%),
  radial-gradient(50vmax 35vmax at -10% 40%, rgba(192, 132, 252, 0.06), transparent 60%),
  radial-gradient(40vmax 30vmax at 70% 110%, rgba(96, 165, 250, 0.06), transparent 60%);
}

main, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 10;
}

:root[data-theme="light"] .nebula, :root[data-theme="light"] #stars {
  display: none;
}

/* ---- Buttons ---------------------------------------------------------------
   .btn is the public site's; WooCommerce's .button is drawn as the same
   thing, .alt (the checkout, place order) as the primary. The base is
   :where(), so any one class on top of it (a variant, or a rule further
   down) wins whatever element the button is. */
:where(.btn, .button, .wp-element-button, .wp-block-button__link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--content);
  font: 600 0.95rem/1.1 var(--font-body);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

:where(.btn, .button):hover {
  border-color: var(--content-subtle);
}

.btn-primary, .button.alt, .button.checkout, .single_add_to_cart_button, .add_to_cart_button, .woocommerce-form-login__submit,
button[name="save_account_details"], button[name="save_address"],
.button.wc-forward.checkout, #place_order, .wp-block-button__link, .wc-block-components-button:not(.is-link) {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
  color: var(--brand-on);
}

.btn-primary:hover, .button.alt:hover, .button.checkout:hover, .single_add_to_cart_button:hover, .add_to_cart_button:hover,
.woocommerce-form-login__submit:hover, #place_order:hover, .wp-block-button__link:hover, .wc-block-components-button:not(.is-link):hover {
  background: var(--brand-solid-hover);
  border-color: var(--brand-solid-hover);
  color: var(--brand-on);
}

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

.btn-sm, .product-card .button {
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  gap: 0.4rem;
}

.btn-icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.btn svg, .button svg {
  width: 18px;
  height: 18px;
}

.button:disabled, .button.disabled, .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* WooCommerce marks a button that is adding to the cart, then one that has. */
.button.loading {
  opacity: 0.6;
  pointer-events: none;
}

.button.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.button.added::after {
  content: "✓";
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Forms --------------------------------------------------------------- */
:where(.input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], input[type="date"], select, textarea,
.select2-container .select2-selection--single) {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--content);
  font: 400 1rem/1.4 var(--font-body);
  appearance: none;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8ca2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}

input:focus, select:focus, textarea:focus, .select2-container--open .select2-selection--single {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand-solid);
}

input[readonly] {
  background: var(--surface-raised);
  color: var(--content-muted);
}

input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-solid);
  vertical-align: -3px;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--content-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

label.woocommerce-form__label-for-checkbox, label.checkbox, .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--content);
  font-weight: 400;
  cursor: pointer;
}

.required {
  color: var(--danger);
  text-decoration: none;
}

.form-row {
  margin: 0 0 1rem;
}

/* WooCommerce's two-up fields (first name / last name). */
.form-row-first, .form-row-last {
  width: calc(50% - 0.5rem);
  float: left;
}

.form-row-last {
  float: right;
}

.form-row-wide {
  clear: both;
}

@media (max-width: 560px) {
  .form-row-first, .form-row-last {
    width: 100%;
    float: none;
  }
}

.form-row .description, .woocommerce-form-row em, fieldset em {
  display: block;
  margin-top: 0.35rem;
  color: var(--content-subtle);
  font-size: 0.85rem;
  font-style: normal;
}

.woocommerce-invalid input, .woocommerce-invalid select {
  border-color: var(--danger);
}

fieldset {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

legend {
  padding: 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.password-input {
  position: relative;
  display: block;
}

.show-password-input {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--content-subtle);
  cursor: pointer;
}

.show-password-input::before {
  content: "👁";
}

.woocommerce-password-strength {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.woocommerce-password-strength.bad, .woocommerce-password-strength.short {
  color: var(--danger);
}

.woocommerce-password-strength.good {
  color: var(--warning);
}

.woocommerce-password-strength.strong {
  color: var(--success);
}

/* selectWoo (the country and county pickers) */
.select2-container {
  width: 100% !important;
}

/* selectWoo's own stylesheet paints the box white; this outranks it. */
.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--content-subtle);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--content);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: var(--content);
  line-height: 1.4;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
}

.select2-dropdown {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--content);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
  min-height: 38px;
}

.select2-results__option {
  padding: 0.45rem 0.8rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: var(--brand-soft);
  color: var(--content);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
  background: var(--surface-raised);
}

/* ---- Notices ------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  list-style: none;
  border: 1px solid var(--info-border);
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--content);
  font-size: 0.95rem;
}

/* WooCommerce moves focus to a notice so a screen reader reads it; a ring
   round a box that cannot be pressed reads as a mistake. */
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus, .notice:focus,
.woocommerce-NoticeGroup:focus {
  outline: none;
}

.woocommerce-message {
  border-color: var(--success-border);
  background: var(--success-soft);
}

.woocommerce-error, .notice-danger {
  border-color: var(--danger-border);
  background: var(--danger-soft);
}

.woocommerce-error {
  display: grid;
}

.woocommerce-error li {
  margin: 0;
}

.woocommerce-message .button, .woocommerce-info .button {
  order: 2;
  margin-left: auto;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.woocommerce-store-notice, .demo_store {
  position: relative;
  z-index: 11;
  margin: 0;
  padding: 0.6rem var(--gutter);
  background: var(--brand-solid);
  color: var(--brand-on);
  font-size: 0.9rem;
  text-align: center;
}

.woocommerce-store-notice a {
  color: inherit;
  font-weight: 600;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--surface-sunken) 92%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand-sub {
  padding-left: 0.6rem;
  border-left: 1px solid var(--border);
  color: var(--content-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1.25rem;
  margin-left: 1rem;
  min-width: 0;
}

.nav-link, .nav-menu summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0 0.1rem;
  color: var(--content-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.is-current, .nav-menu summary:hover, .nav-menu[open] summary, .nav-menu.is-current summary {
  color: var(--content);
}

.nav-link.is-current, .nav-menu.is-current summary {
  border-bottom-color: var(--brand);
}

.nav-link svg {
  width: 13px;
  height: 13px;
  color: var(--content-subtle);
}

.nav-menu {
  position: relative;
}

.nav-menu summary, .tool-menu summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-menu summary::-webkit-details-marker, .tool-menu summary::-webkit-details-marker, .local-sign-in summary::-webkit-details-marker {
  display: none;
}

.chevron {
  width: 12px;
  height: 12px;
  color: var(--content-subtle);
  transition: transform .15s ease;
}

details[open] > summary .chevron {
  transform: rotate(180deg);
}

.menu-list {
  position: absolute;
  left: -0.75rem;
  top: calc(100% + 12px);
  z-index: 20;
  width: 18rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  display: grid;
  gap: 2px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
}

/* The categories are many: two columns of them. */
.menu-list.menu-columns {
  width: 34rem;
  grid-template-columns: 1fr 1fr;
}

.menu-list .menu-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}

.menu-list li > a {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--content);
  text-decoration: none;
}

.menu-list li > a:hover {
  background: var(--surface-raised);
}

.menu-list li > a[aria-current="page"] {
  background: var(--brand-soft);
}

.menu-list strong {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.3;
}

.menu-list strong svg {
  width: 13px;
  height: 13px;
  color: var(--content-subtle);
}

/* The tools at the far end: search, the theme, the account and the bag. */
.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.tool-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--content);
  text-decoration: none;
}

.tool-button:hover, details[open] > .tool-button, .tool-button[aria-current="page"] {
  border-color: var(--content-subtle);
  background: var(--surface-raised);
}

.tool-button svg {
  width: 18px;
  height: 18px;
}

.site-header .sign-in {
  min-height: 40px;
  padding: 0.5rem 1rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-solid);
  color: var(--brand-on);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
}

.cart-count.is-empty {
  display: none;
}

.tool-menu {
  position: relative;
}

.tool-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 20;
  width: min(24rem, calc(100vw - 2 * var(--gutter)));
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
}

.search-panel {
  width: min(30rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.6rem;
}

.panel-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form .input {
  flex: 1;
  min-width: 0;
}

.search-form .btn-icon {
  width: 44px;
  min-height: 44px;
}

/* The theme: three buttons in a row. The VAT toggle beside it is the same
   control with two words in it. */
.theme-toggle, .vat-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.theme-toggle[hidden], .vat-toggle[hidden] {
  display: none;
}

.theme-toggle button, .vat-toggle button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--content-subtle);
  cursor: pointer;
}

.theme-toggle button svg {
  width: 16px;
  height: 16px;
}

.vat-toggle button {
  width: auto;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.theme-toggle button:hover, .vat-toggle button:hover {
  color: var(--content);
}

.theme-toggle button[aria-pressed="true"], .vat-toggle button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--content);
}

/* The narrow screen's menu: a sheet over the page under the header. */
.nav-all {
  display: none;
}

.nav-all summary .icon-close, .nav-all[open] summary .icon-open {
  display: none;
}

.nav-all[open] summary .icon-close {
  display: block;
}

.nav-all .menu-list {
  position: fixed;
  inset: var(--header) 0 0;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem var(--gutter) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--surface-sunken);
  box-shadow: none;
  animation: sheet-in .18s ease-out;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.nav-all .label {
  padding: 0 0.6rem;
}

.nav-all ul {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 0.5rem;
}

.nav-all li > a {
  min-height: 44px;
  align-content: center;
  padding: 0.45rem 0.6rem;
}

.sheet-foot {
  position: sticky;
  bottom: 0;
  margin: auto calc(-1 * var(--gutter)) 0;
  padding: 0.75rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sheet-actions .theme-toggle button {
  width: 40px;
  height: 40px;
}

.sheet-actions .vat-toggle button {
  height: 40px;
}

.sheet-actions .btn {
  flex: 1;
  min-height: 46px;
}

@media (max-width: 1180px) {
  .nav-external {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav, .tools > .theme-toggle, .tools > .vat-toggle, .tools > .sign-in, .tools > .account-link {
    display: none;
  }

  .nav-all {
    display: block;
  }

  .tool-button {
    width: 44px;
    height: 44px;
  }

  html:has(.nav-all[open]) {
    overflow: hidden;
  }

  /* The panels span the screen under the header. */
  .tool-menu {
    position: static;
  }

  .tool-panel {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header) + 8px);
    width: auto;
    max-height: calc(100vh - var(--header) - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }
}

/* ---- Mini cart ----------------------------------------------------------- */
.woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-height: 50vh;
  overflow-y: auto;
}

.woocommerce-mini-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  padding-right: 2rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.woocommerce-mini-cart-item > a:not(.remove) {
  display: contents;
  color: var(--content);
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-mini-cart-item img {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 4px;
  border-radius: 6px;
  background: #ffffff;
}

.woocommerce-mini-cart-item .quantity {
  grid-column: 2;
  color: var(--content-muted);
  font-size: 0.85rem;
}

.woocommerce-mini-cart-item dl.variation {
  grid-column: 2;
}

a.remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--content-subtle) !important;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
}

a.remove:hover {
  background: var(--danger-soft);
  color: var(--danger) !important;
}

.woocommerce-mini-cart-item a.remove {
  position: absolute;
  top: 0;
  right: 0;
}

.woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

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

/* ---- Pages --------------------------------------------------------------- */
/* .wrap.page, not .page: WordPress puts `page` in body_class() on every page,
   and the padding would land on <body> too, over the header. */
.wrap.page {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.page-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.page-text .page-head, .page-text .prose, .page-text .post-hero {
  max-width: 48rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--content-subtle);
  font-size: 0.875rem;
}

.crumbs a {
  color: var(--content-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--content);
  text-decoration: underline;
}

.crumbs-sep {
  color: var(--border);
}

.prose {
  color: var(--content-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2, .prose h3, .prose h4 {
  color: var(--content);
  margin-top: 2rem;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose strong {
  color: var(--content);
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose img, .prose figure {
  border-radius: var(--radius);
}

.prose figure {
  margin: 1.5rem 0;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-border);
}

.prose table, .page-content table:not(.shop_table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th, .prose td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.prose iframe, .woocommerce-Tabs-panel iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
}

.post-hero {
  margin: 0 0 2rem;
}

.post-hero img {
  width: 100%;
  border-radius: var(--radius);
}

.card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}

a.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease;
}

a.card:hover {
  border-color: var(--brand-border);
}

a.card h2 {
  font-size: 1.15rem;
}

a.card p {
  color: var(--content-muted);
  font-size: 0.95rem;
}

a.card .go {
  margin-top: auto;
  padding-top: 0.25rem;
  color: var(--brand);
  font-size: 0.92rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.post-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

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

.contact-grid .card {
  height: 100%;
}

.contact-grid .go {
  word-break: break-word;
}

.company-line {
  margin-top: 2rem;
}

.post-card-media {
  display: block;
  margin: -1.5rem -1.5rem 0.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state {
  color: var(--content-muted);
}

.not-found-search {
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

/* Pagination: WordPress's and WooCommerce's. */
.navigation.pagination, .woocommerce-pagination {
  margin-top: 2.5rem;
}

.nav-links, .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  color: var(--content-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
}

a.page-numbers:hover {
  border-color: var(--content-subtle);
  color: var(--content);
}

.page-numbers.current {
  border-color: var(--brand-solid);
  background: var(--brand-soft);
  color: var(--content);
}

/* "Load more" (assets/js/shop.js) in place of the pagination. */
.load-more {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--content-subtle);
  font-size: 0.875rem;
}

/* ---- The catalogue --------------------------------------------------------- */
.catalog-head {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.catalog-head .page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.term-description, .page-description {
  margin-top: 0.6rem;
  max-width: 52rem;
  color: var(--content-muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--header) + 1.25rem);
  max-height: calc(100vh - var(--header) - 2.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.25rem;
}

.admin-bar .shop-sidebar {
  top: calc(var(--header) + 32px + 1.25rem);
}

.shop-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-sidebar .section-title {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.shop-sidebar-close, .shop-sidebar-open {
  display: none;
}

.category-tree, .category-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tree {
  margin-bottom: 1.75rem;
}

.category-tree ul {
  margin: 0.1rem 0 0.3rem 0.75rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--border-subtle);
}

.category-tree a {
  display: block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--content-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

.category-tree a:hover {
  background: var(--surface-raised);
  color: var(--content);
}

.category-tree .current-cat > a {
  background: var(--brand-soft);
  color: var(--content);
  font-weight: 600;
}

.category-tree .current-cat-parent > a, .category-tree .current-cat-ancestor > a {
  color: var(--content);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.woocommerce-result-count {
  margin: 0;
  color: var(--content-subtle);
  font-size: 0.875rem;
}

.woocommerce-ordering {
  margin: 0 0 0 auto;
}

.woocommerce-ordering select {
  min-height: 38px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.9rem;
  width: auto;
}

/* On a phone the sidebar is a sheet behind the "Categories" button. Without
   JavaScript it stays where it is, over the grid. */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
    max-height: none;
  }

  .js .shop-sidebar {
    display: none;
  }

  .js .shop-sidebar.is-open {
    display: block;
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 30;
    max-height: none;
    padding: 1rem var(--gutter) 2rem;
    background: var(--surface-sunken);
    overscroll-behavior: contain;
    animation: sheet-in .18s ease-out;
  }

  .js .shop-sidebar-close, .js .shop-sidebar-open {
    display: inline-flex;
  }

  .js .shop-sidebar.is-open .section-title {
    margin-bottom: 0.75rem;
  }

  html:has(.shop-sidebar.is-open) {
    overflow: hidden;
  }

  .category-tree a {
    padding: 0.55rem 0.6rem;
    font-size: 0.95rem;
  }

  .woocommerce-result-count {
    order: 3;
    width: 100%;
  }
}

/* The grid: five to a row on a wide screen, two on a phone. */
ul.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 1280px) {
  ul.products, ul.products.columns-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  ul.products, ul.products.columns-4, ul.products.columns-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color .15s ease;
}

.product-card:hover {
  border-color: var(--brand-border);
}

/* The product shots are drawn for a white page: the tile is white in both
   themes, as the public site's customer logos are. */
.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 10%;
  background: #ffffff;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-alt {
  position: absolute;
  inset: 10%;
  width: 80% !important;
  height: 80% !important;
  opacity: 0;
  transition: opacity .25s ease;
}

@media (hover: hover) {
  .product-card:hover .product-card-media.has-alt > img:not(.product-card-alt) {
    opacity: 0;
  }

  .product-card:hover .product-card-alt {
    opacity: 1;
  }
}

.onsale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-solid);
  color: var(--brand-on);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.woocommerce-loop-product__title a {
  color: var(--content);
  text-decoration: none;
}

.woocommerce-loop-product__title a:hover {
  color: var(--brand);
}

.product-card .price {
  font-size: 0.9rem;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.product-card .button {
  flex: 1;
  white-space: normal;
}

.product-card .added_to_cart {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 0.85rem;
  text-decoration: none;
}

/* The category tiles WooCommerce draws when a page is set to show them. */
.product-category a {
  display: block;
  color: var(--content);
  text-decoration: none;
}

.product-category img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10%;
  background: #ffffff;
}

.product-category .woocommerce-loop-category__title {
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

.product-category .count {
  background: none;
  color: var(--content-subtle);
  font-weight: 400;
}

/* ---- Prices: without VAT, then with it ------------------------------------ */
.price {
  display: block;
  color: var(--content);
}

.price-vat {
  display: grid;
  gap: 0.1rem;
}

.price-ex {
  font-weight: 500;
}

.price-inc {
  color: var(--content-subtle);
  font-size: 0.85em;
}

/* With the visitor's choice made (the VAT toggle; ex until they make one),
   one line: the one chosen, drawn as the price. Without the script, both, and
   the old price of a sale only on the first. */
:root[data-vat="ex"] .price-inc, :root[data-vat="inc"] .price-ex, :root:not([data-vat]) .price-inc del, :root:not([data-vat]) .price-inc del + .screen-reader-text {
  display: none;
}

:root[data-vat="inc"] .price-inc {
  color: var(--content);
  font-size: 1em;
  font-weight: 500;
}

.price-label, .woocommerce-price-suffix {
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 400;
  color: var(--content-subtle);
  white-space: nowrap;
}

.price del {
  color: var(--content-subtle);
  font-weight: 400;
  opacity: 0.8;
}

.price ins {
  text-decoration: none;
  font-weight: 600;
}

/* ---- Star ratings, without WooCommerce's icon font ------------------------- */
.star-rating {
  position: relative;
  display: inline-block;
  width: 5.4em;
  height: 1.1em;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.star-rating::before {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  color: var(--border);
}

.star-rating span {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--warning);
}

p.stars a {
  display: inline-block;
  width: 1.4em;
  overflow: hidden;
  color: transparent;
  text-decoration: none;
  position: relative;
}

p.stars a::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--border);
  font-size: 1.3em;
}

p.stars:hover a::before, p.stars.selected a.active::before, p.stars.selected a:not(.active)::before {
  color: var(--warning);
}

p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before {
  color: var(--border);
}

/* ---- A product ------------------------------------------------------------- */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.single-product div.product > .woocommerce-tabs, .single-product div.product > .related, .single-product div.product > .upsells,
.single-product div.product > section {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .single-product div.product {
    grid-template-columns: 1fr;
  }
}

.single-product .shop-page {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* The gallery: the picture on its white tile, the others in a column beside
   it on a wide screen (as on the old shop) and in a row under it on a phone. */
.woocommerce-product-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
}

.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper {
  grid-column: 2;
  grid-row: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

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

.flex-viewport .woocommerce-product-gallery__wrapper {
  border: 0;
  border-radius: 0;
}

.woocommerce-product-gallery__image a {
  display: block;
}

.woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6%;
  background: #ffffff;
}

.woocommerce-product-gallery__image .zoomImg {
  background: #ffffff;
  padding: 0;
  aspect-ratio: auto;
  max-width: none;
}

.flex-control-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.flex-control-thumbs li {
  flex: none;
}

.flex-control-thumbs img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .15s ease, border-color .15s ease;
}

.flex-control-thumbs img:hover, .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--brand-solid);
}

/* A product with one picture has no thumbnails: the picture takes the row. */
.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
  grid-template-columns: minmax(0, 1fr);
}

.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) .flex-viewport,
.woocommerce-product-gallery:not(:has(.flex-control-thumbs)) .woocommerce-product-gallery__wrapper {
  grid-column: 1;
}

@media (max-width: 640px) {
  .woocommerce-product-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper {
    grid-column: 1;
  }

  .flex-control-thumbs {
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
  }

  .flex-control-thumbs img {
    width: 60px;
    height: 60px;
  }
}

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 0;
  text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-product-gallery__trigger span, .woocommerce-product-gallery__trigger img {
  display: none;
}

/* The product's own badge, over the corner of its picture (the grid's
   badges below it are the cards'). */
.single-product div.product {
  position: relative;
}

.single-product div.product > .onsale {
  top: calc(clamp(1.25rem, 3vw, 2rem) + 0.75rem);
  left: calc(72px + 1.5rem);
}

@media (max-width: 640px) {
  .single-product div.product > .onsale {
    left: 0.75rem;
  }
}

.summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.summary-top .crumbs {
  margin-bottom: 1rem;
}

.product-steps {
  display: flex;
  gap: 0.35rem;
}

.product-steps .btn-icon {
  width: 34px;
  min-height: 34px;
}

.product_title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.summary .woocommerce-review-link {
  color: var(--content-subtle);
}

.summary > .price {
  margin-bottom: 1.25rem;
  font-size: 1.45rem;
}

:root:not([data-vat="inc"]) .summary > .price .price-inc {
  font-size: 0.65em;
}

.woocommerce-product-details__short-description {
  margin-bottom: 1.5rem;
  color: var(--content-muted);
  font-size: 0.97rem;
}

.woocommerce-product-details__short-description ul {
  padding-left: 1.1rem;
}

.woocommerce-product-details__short-description li + li {
  margin-top: 0.35rem;
}

.woocommerce-product-details__short-description strong {
  color: var(--content);
}

.stock {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.stock.in-stock {
  color: var(--success);
}

.stock.out-of-stock {
  color: var(--danger);
}

form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

form.cart .single_add_to_cart_button {
  flex: 1;
  min-width: 12rem;
  min-height: 48px;
}

.quantity .qty {
  width: 5.5rem;
  min-height: 48px;
  text-align: center;
  font-family: var(--font-mono);
}

/* Options of a variable product. */
form.variations_form {
  display: block;
}

table.variations {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

table.variations th, table.variations td {
  display: block;
  padding: 0;
  text-align: left;
}

table.variations th label {
  margin: 0.5rem 0 0.35rem;
}

.reset_variations {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--content-subtle);
  font-size: 0.85rem;
}

.single_variation_wrap .woocommerce-variation {
  margin-bottom: 1rem;
}

.woocommerce-variation-price .price {
  font-size: 1.2rem;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Grouped products. */
.group_table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.group_table td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.product_meta {
  display: grid;
  gap: 0.3rem;
  color: var(--content-subtle);
  font-size: 0.85rem;
}

.product_meta a {
  color: var(--content-muted);
  text-decoration: none;
}

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

.product-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.product-share ul {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-share .btn-icon {
  width: 36px;
  min-height: 36px;
}

.product-share svg {
  width: 16px;
  height: 16px;
}

/* The tabs under it: the description in a column the width of a text, as on
   the old shop, with its videos and pictures centred in it. */
.woocommerce-tabs {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.woocommerce-tabs ul.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border-subtle);
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 0.1rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--content-muted);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-tabs ul.tabs li a:hover {
  color: var(--content);
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--content);
  border-bottom-color: var(--brand);
}

.woocommerce-Tabs-panel {
  max-width: 50rem;
  margin: 0 auto;
  color: var(--content-muted);
  line-height: 1.7;
}

.woocommerce-Tabs-panel > * + * {
  margin-top: 1rem;
}

.woocommerce-Tabs-panel h2, .woocommerce-Tabs-panel h3, .woocommerce-Tabs-panel h4 {
  color: var(--content);
  margin-top: 2rem;
  text-align: center;
}

.woocommerce-Tabs-panel h2 {
  font-size: 1.5rem;
}

.woocommerce-Tabs-panel h3 {
  font-size: 1.2rem;
}

.woocommerce-Tabs-panel > h2:first-child {
  margin-top: 0;
}

.woocommerce-Tabs-panel--description > h2:first-child {
  display: none;
}

.woocommerce-Tabs-panel img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
}

.woocommerce-Tabs-panel strong {
  color: var(--content);
}

/* Descriptions pasted in from a word processor carry their own colours and
   fonts inline (black Helvetica, on the old shop's white page), which no
   palette here can reach without !important. The text takes the theme's. */
:is(.woocommerce-Tabs-panel, .woocommerce-product-details__short-description, .prose, .term-description) :is([style*="color"], [style*="font"], font) {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

:is(.woocommerce-Tabs-panel, .woocommerce-product-details__short-description, .prose, .term-description) :is(h2, h3, h4):is([style*="color"], [style*="font"]) {
  color: var(--content) !important;
  font-family: var(--font-display) !important;
}

:is(.woocommerce-Tabs-panel, .prose) h2[style*="font"] {
  font-size: 1.5rem !important;
}

:is(.woocommerce-Tabs-panel, .prose) :is(h3, h4)[style*="font"] {
  font-size: 1.2rem !important;
}

:is(.woocommerce-Tabs-panel, .woocommerce-product-details__short-description, .prose, .term-description) [style*="background"] {
  background: transparent !important;
}

.woocommerce-Tabs-panel ul, .woocommerce-Tabs-panel ol {
  padding-left: 1.25rem;
}

.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}

.shop_attributes th, .shop_attributes td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.shop_attributes th {
  width: 35%;
  color: var(--content);
  font-weight: 500;
}

.shop_attributes td p {
  margin: 0;
}

/* Reviews. */
#reviews .commentlist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

#reviews .comment_container {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
}

#reviews .avatar {
  border-radius: 999px;
}

#reviews .meta {
  font-size: 0.85rem;
  color: var(--content-subtle);
}

#review_form_wrapper {
  margin-top: 2rem;
}

#reply-title {
  display: block;
  margin-bottom: 1rem;
  color: var(--content);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.related, .upsells, .cross-sells {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.related > h2, .upsells > h2, .cross-sells > h2 {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

/* ---- Tables: the cart, an order, the account's lists ------------------------ */
.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.95rem;
  overflow: hidden;
}

.shop_table th, .shop_table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.shop_table thead th {
  color: var(--content-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface-raised);
}

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

.shop_table tfoot th {
  font-weight: 500;
  color: var(--content-muted);
}

.shop_table .order-total th, .shop_table .order-total td {
  color: var(--content);
  font-size: 1.05rem;
  font-weight: 600;
}

.shop_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 4px;
  border-radius: 6px;
  background: #ffffff;
}

.shop_table .product-name a {
  color: var(--content);
  font-weight: 500;
  text-decoration: none;
}

.shop_table .product-name a:hover {
  color: var(--brand);
}

.shop_table .product-remove {
  width: 40px;
}

.shop_table td.actions {
  padding: 1rem;
  background: var(--surface-raised);
}

.shop_table td.actions .coupon {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  float: left;
}

.shop_table td.actions .coupon .input-text {
  width: 12rem;
}

.shop_table td.actions > .button {
  float: right;
}

.shop_table small, .shop_table .includes_tax {
  display: block;
  color: var(--content-subtle);
  font-size: 0.82rem;
  font-weight: 400;
}

dl.variation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.4rem;
  margin: 0.3rem 0 0;
  color: var(--content-subtle);
  font-size: 0.82rem;
}

dl.variation dd, dl.variation p {
  margin: 0;
}

/* WooCommerce's own phone layout for these tables: each row a stack, each cell
   labelled by its data-title. */
@media (max-width: 768px) {
  .shop_table_responsive thead {
    display: none;
  }

  .shop_table_responsive tr {
    display: block;
    border-bottom: 1px solid var(--border-subtle);
  }

  .shop_table_responsive tbody tr:last-child {
    border-bottom: 0;
  }

  .shop_table_responsive td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 0;
    text-align: right;
  }

  .shop_table_responsive td[data-title]::before {
    content: attr(data-title);
    color: var(--content-subtle);
    font-weight: 500;
    text-align: left;
  }

  .shop_table_responsive .product-thumbnail, .shop_table_responsive td.product-remove {
    justify-content: flex-start;
  }

  .shop_table_responsive td.actions {
    display: block;
  }

  .shop_table td.actions .coupon, .shop_table td.actions > .button {
    float: none;
    width: 100%;
  }

  .shop_table td.actions .coupon .input-text {
    flex: 1;
  }

  .shop_table td.actions > .button {
    margin-top: 0.75rem;
  }
}

/* ---- Cart ---------------------------------------------------------------- */
.page-shop .page-head .page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.woocommerce-cart-form {
  margin-bottom: 2rem;
}

.cart-collaterals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 2rem;
  align-items: start;
}

.cart-collaterals .cart_totals {
  grid-column: 2;
}

.cart-collaterals .cross-sells {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

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

  .cart-collaterals .cart_totals, .cart-collaterals .cross-sells {
    grid-column: 1;
    grid-row: auto;
  }
}

.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3, .woocommerce-order-details__title, .woocommerce-column__title,
.woocommerce-customer-details h2, .woocommerce-Address-title h2, .woocommerce-Address-title h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.wc-proceed-to-checkout {
  margin-top: 1rem;
}

.wc-proceed-to-checkout .checkout-button {
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
}

.woocommerce-shipping-methods {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.woocommerce-shipping-methods li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.woocommerce-shipping-methods label {
  margin: 0;
  color: var(--content);
  font-weight: 400;
}

.woocommerce-shipping-destination, .woocommerce-shipping-calculator {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--content-subtle);
}

.shipping-calculator-button {
  color: var(--brand);
}

.cart-empty {
  font-size: 1.05rem;
}

.return-to-shop {
  margin-top: 1rem;
}

/* ---- Checkout ------------------------------------------------------------ */
.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.col2-set::before, .col2-set::after {
  display: none;
}

@media (max-width: 768px) {
  .col2-set {
    grid-template-columns: 1fr;
  }
}

form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: 0 2.5rem;
  align-items: start;
}

form.checkout > .woocommerce-NoticeGroup {
  grid-column: 1 / -1;
}

form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
  grid-template-columns: 1fr;
}

form.checkout #order_review_heading, form.checkout #order_review {
  grid-column: 2;
}

form.checkout #order_review {
  position: sticky;
  top: calc(var(--header) + 1.25rem);
}

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

  form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  form.checkout #order_review {
    position: static;
  }
}

#customer_details .col-1, #customer_details .col-2 {
  min-width: 0;
}

.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after,
.woocommerce-address-fields__field-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

#ship-to-different-address {
  margin: 1.5rem 0 1rem;
  font-size: 1rem;
}

#ship-to-different-address label {
  color: var(--content);
}

.woocommerce-checkout-review-order-table {
  margin-bottom: 1.25rem;
}

#payment {
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

#payment ul.payment_methods {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

#payment .payment_methods > li > label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0 0.4rem;
  color: var(--content);
  font-weight: 500;
}

#payment .payment_methods label img {
  max-height: 24px;
  width: auto;
}

#payment .payment_box {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--content-muted);
  font-size: 0.9rem;
}

.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--content-muted);
}

.woocommerce-privacy-policy-text a, .woocommerce-terms-and-conditions-link {
  color: var(--brand);
}

.woocommerce-terms-and-conditions {
  max-height: 14rem;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--surface-raised);
}

#place_order {
  width: 100%;
  min-height: 52px;
  font-size: 1.02rem;
}

.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info {
  margin-bottom: 1rem;
}

form.checkout_coupon, form.woocommerce-form-login {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

form.checkout_coupon p:not(.form-row) {
  width: 100%;
}

form.checkout_coupon .form-row {
  float: none;
  width: auto;
  margin: 0;
}

form.checkout_coupon .form-row-first {
  flex: 1;
  min-width: 12rem;
}

/* ---- Order received, and an order in My account ---------------------------- */
.woocommerce-thankyou-order-received {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--success-border);
  border-radius: var(--radius);
  background: var(--success-soft);
  font-size: 1.05rem;
}

ul.order_details, .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

ul.order_details li, .woocommerce-order-overview li {
  flex: 1 1 10rem;
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--border-subtle);
  color: var(--content-subtle);
  font-size: 0.8rem;
}

ul.order_details li:last-child, .woocommerce-order-overview li:last-child {
  border-right: 0;
}

ul.order_details li strong, .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--content);
  font-size: 0.98rem;
  font-weight: 500;
}

.woocommerce-order-details, .woocommerce-customer-details {
  margin-top: 2rem;
}

.woocommerce-customer-details address {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--content-muted);
  font-style: normal;
  line-height: 1.7;
}

.woocommerce-customer-details--phone, .woocommerce-customer-details--email {
  margin: 0.25rem 0 0;
}

mark {
  background: var(--brand-soft);
  color: var(--content);
  padding: 0 0.25rem;
  border-radius: 4px;
}

/* ---- My account ---------------------------------------------------------- */
.woocommerce-account .page-content > .woocommerce {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.woocommerce-account .page-content > .woocommerce:has(.sign-in-page), .woocommerce-account .page-content > .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
  display: block;
}

.woocommerce-account .page-content > .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--content-muted);
  font-size: 0.93rem;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover {
  background: var(--surface-raised);
  color: var(--content);
}

.woocommerce-MyAccount-navigation .is-active a {
  background: var(--brand-soft);
  color: var(--content);
  font-weight: 600;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border-subtle);
}

.woocommerce-MyAccount-content > p:first-child {
  margin-bottom: 1rem;
}

.woocommerce-MyAccount-content > p {
  color: var(--content-muted);
}

.woocommerce-MyAccount-content > p + p {
  margin-top: 0.75rem;
}

.woocommerce-MyAccount-content strong {
  color: var(--content);
}

.woocommerce-MyAccount-content a:not(.button) {
  color: var(--brand);
  text-decoration: none;
}

.woocommerce-MyAccount-content a:not(.button):hover {
  text-decoration: underline;
}

.woocommerce-orders-table .button, .woocommerce-MyAccount-downloads .button {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.woocommerce-orders-table .button + .button {
  margin-left: 0.35rem;
}

.woocommerce-Addresses {
  margin-top: 1.5rem;
}

.woocommerce-Address {
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

.woocommerce-Address-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.woocommerce-Address address {
  color: var(--content-muted);
  font-style: normal;
  line-height: 1.7;
}

.woocommerce-EditAccountForm, .woocommerce-address-fields {
  max-width: 42rem;
}

.woocommerce-EditAccountForm::after {
  content: "";
  display: table;
  clear: both;
}

.account-managed {
  clear: both;
  margin: 1.5rem 0;
}

.account-managed p {
  margin-top: 0.5rem;
  color: var(--content-muted);
  font-size: 0.93rem;
}

.account-managed .btn svg {
  width: 14px;
  height: 14px;
}

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

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .woocommerce-MyAccount-navigation li {
    flex: none;
  }

  .woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

/* Signed out: sign in with Romvesen, the shop's own form folded under it. */
.sign-in-page {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.sign-in-card {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.sign-in-card h2 {
  font-size: 1.35rem;
}

.sign-in-card p {
  color: var(--content-muted);
}

.sign-in-card .cta-row {
  margin-top: 0.25rem;
}

.sign-in-card .notice {
  margin: 0;
}

.local-sign-in {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

.local-sign-in > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  color: var(--content-muted);
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
}

.local-sign-in > summary svg:not(.chevron) {
  width: 16px;
  height: 16px;
  color: var(--content-subtle);
}

.local-sign-in > summary .chevron {
  margin-left: auto;
}

.local-sign-in > summary:hover {
  color: var(--content);
}

.local-sign-in > .fine-print, .local-sign-in > .section-title {
  padding: 0 1.25rem;
}

.local-sign-in > .section-title {
  padding-top: 1.25rem;
}

.local-sign-in form.woocommerce-form-login {
  margin: 0;
  border: 0;
  background: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lost_password {
  font-size: 0.9rem;
}

/* ---- The Cart and Checkout blocks, where the shop uses them ------------------ */
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-select select, .wc-blocks-components-select__select, .wc-block-components-textarea {
  background: var(--surface) !important;
  color: var(--content) !important;
  border-color: var(--border) !important;
}

.wc-block-components-text-input label, .wc-block-components-combobox label, .wc-blocks-components-select__label {
  color: var(--content-subtle) !important;
}

.wc-block-components-button:not(.is-link) {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 600;
}

.wc-block-components-sidebar-layout, .wc-block-components-totals-wrapper, .wc-block-components-order-summary,
.wc-block-cart-items, .wc-block-components-radio-control__option {
  color: var(--content);
}

.wc-block-components-panel, .wc-block-components-checkout-step, .wc-block-components-totals-wrapper,
.wc-block-cart-items td, .wc-block-cart-items th {
  border-color: var(--border-subtle) !important;
}

.wc-block-components-product-name, .wc-block-components-product-name:hover {
  color: var(--content) !important;
}

.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img {
  background: #ffffff;
  border-radius: 6px;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
  box-shadow: inset 0 0 0 1.5px var(--brand-solid) !important;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  padding: 4rem 0 2rem;
  color: var(--content-subtle);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-categories ul {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
}

@media (max-width: 1100px) {
  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-bottom: 5.5rem;
  }

  .site-footer .cols {
    grid-template-columns: 1fr;
  }
}

.site-footer .about .brand {
  color: var(--content);
  font-size: 1.35rem;
}

.site-footer .about .brand img {
  width: 40px;
  height: 40px;
}

.site-footer .brand .on-light, :root[data-theme="light"] .site-footer .brand .on-dark {
  display: none;
}

:root[data-theme="light"] .site-footer .brand .on-light {
  display: block;
}

.site-footer .about p {
  margin: 1.25rem 0 0;
  max-width: 38ch;
}

.site-footer h2 {
  margin: 0.5rem 0 1.25rem;
  color: var(--content);
  font-size: 1.05rem;
}

.site-footer ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--content-muted);
  text-decoration: none;
}

.site-footer a:hover, .site-footer a[aria-current="page"] {
  color: var(--brand);
}

.contact-lines {
  margin-top: 1.25rem !important;
}

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-lines svg {
  width: 16px;
  height: 16px;
  color: var(--content-subtle);
}

.site-footer .socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.site-footer .socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.site-footer .socials a:hover {
  border-color: var(--brand-border);
}

.site-footer .socials svg {
  width: 18px;
  height: 18px;
}

.site-footer .legal {
  margin: 3.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Back to top --------------------------------------------------------- */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 1.5rem;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-solid);
  color: var(--brand-on);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand-solid-hover);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* ---- Touch targets ------------------------------------------------------- */
@media (pointer: coarse) {
  .btn-sm, .product-card .button {
    min-height: 44px;
  }

  .product-steps .btn-icon, .product-share .btn-icon {
    width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
