/* ==========================================================================
   Bunuri Shop — theme.css
   One theme file for the shop front end (Bulma 1.0.4 is loaded before this).
   ========================================================================== */

/* Fonts */
/* Inter 4.1 variable, self-hosted. Subsets built with pyftsubset:
   latin-shop (Basic Latin, Latin-1, Romanian letters and required punctuation)
   cyrillic   (U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116)       */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin-shop.var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0218-021B, U+2010-203A,
    U+20AC, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-cyrillic.var.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Design tokens */
:root {
  /* brand (brief §3.1) */
  --brand-green: #85c94f;
  --brand-green-hover: #74b83f;
  --brand-green-dark: #3f7a1f;
  --brand-green-dark-hover: #35661a;
  --brand-gold: #d6c04a;
  --sale-red: #c62828;

  --text: #1f2a1a;
  --text-muted: #5b6370; /* darker than the brief's #6b7280 so it passes 4.5:1 on --surface-soft (5.67:1) */
  --surface: #ffffff;
  --surface-soft: #f4f9ef;
  --border: #e3e8df;
  --footer-bg: #1f3a14;
  --footer-text: #ffffff;
  --footer-muted: #c9d6c0;
  --out-of-stock: #6b7280;
  --focus: #3f7a1f;

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 1.0625rem; /* 17px mobile */
  --fs-small: 0.9375rem; /* 15px: SKU, meta, captions. Never below 14px (0.875rem) */
  --fs-h1: 1.75rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --lh-body: 1.55;

  /* shape */
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-hover: 0 6px 20px rgba(31, 42, 26, 0.12);
  --tap: 44px;
  --tap-primary: 48px;
  --container-max: 1344px;
}
@media (min-width: 1024px) {
  :root {
    --fs-body: 1.125rem;
    --fs-h1: 2.125rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.375rem;
  }
}

/* Bulma mapping */
:root {
  --bulma-family-primary: var(--font);
  --bulma-family-secondary: var(--font);
  --bulma-body-size: var(--fs-body);
  --bulma-body-line-height: var(--lh-body);
  --bulma-body-color: var(--text);
  --bulma-text: var(--text);
  --bulma-text-strong: var(--text);
  --bulma-text-weak: var(--text-muted);
  --bulma-background: var(--surface);
  --bulma-scheme-main: var(--surface);

  --bulma-primary-h: 93deg;
  --bulma-primary-s: 53%;
  --bulma-primary-l: 55%; /* #85c94f */
  --bulma-warning-h: 51deg;
  --bulma-warning-s: 63%;
  --bulma-warning-l: 56%; /* #d6c04a */
  --bulma-danger-h: 0deg;
  --bulma-danger-s: 66%;
  --bulma-danger-l: 47%; /* #c62828 */
  --bulma-link-h: 98deg;
  --bulma-link-s: 60%;
  --bulma-link-l: 30%; /* #3f7a1f */
  --bulma-link-text: var(--brand-green-dark);

  --bulma-radius: var(--radius);
  --bulma-radius-small: var(--radius-sm);
  --bulma-control-height: 2.75em; /* inputs and default buttons reach >= 44px at 16px+ */

  --bulma-button-disabled-background-color: var(--surface-soft);
  --bulma-button-disabled-border-color: var(--border);
  --bulma-button-disabled-shadow: none;
  --bulma-button-disabled-opacity: 1;

  --bulma-help-size: var(--fs-small);
  --bulma-size-small: 0.875rem;
  --bulma-code-size: 0.875rem;
  --bulma-code-padding: 0.1em 0.35em;
  --bulma-code-background: var(--surface-soft);
  --bulma-code: var(--text);
}
.button.is-primary,
.button.is-primary:hover,
.button.is-warning {
  color: var(--text);
}

/* WCAG AA contrast (4.5:1 normal text, 3:1 large text and UI):
   --text on --surface ................. 14.95:1  body
   --text on --surface-soft ............ 13.99:1  body on tinted sections
   --text-muted (#5b6370) on white .....  6.06:1  SKU, meta
   --text-muted on --surface-soft ......  5.67:1  meta on tinted sections
   --brand-green-dark on white .........  5.23:1  links, prices
   --sale-red on white .................  5.62:1  old price, field errors
   --text on --brand-green .............  7.45:1  primary button
   --text on --brand-gold ..............  8.19:1  gold badge
   white on --brand-green-dark .........  5.23:1  secondary button
   white on --out-of-stock .............  4.83:1  grey badge
   white on --footer-bg ................ 12.55:1  footer
   --footer-muted on --footer-bg .......  8.28:1  footer secondary
   Rule: no opacity on any text element, never has-text-grey-light. */

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--brand-green-dark);
  text-decoration: none;
}
a:hover {
  color: var(--brand-green-dark-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
::selection {
  background: var(--brand-green);
  color: var(--text);
}
[x-cloak] {
  display: none !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}
h4 {
  font-size: var(--fs-body);
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}
ul,
ol {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}
li + li {
  margin-top: 0.25em;
}
strong {
  font-weight: 600;
}
del {
  color: var(--text-muted);
}
small,
.text-small {
  font-size: var(--fs-small);
}
code,
kbd,
samp {
  font-size: 0.875rem; /* never below 14px, even inside 15px help text */
}
.text-muted {
  color: var(--text-muted);
}
.prose {
  max-width: 65ch;
}
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose ul {
  list-style: disc; /* Bulma's reset removes the markers */
}
.prose ol {
  list-style: decimal;
}
.prose h2,
.prose h3 {
  margin-top: 1.5em;
}
.prose > :last-child {
  margin-bottom: 0;
}
.title,
.subtitle {
  color: var(--text);
}

/* Focus, motion and helpers */
/* Bulma's reset removes control outlines; both specificity levels have to be
   outranked so every keyboard focus keeps the shared ring. */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.button:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.select select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.is-sr-only,
.visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  border: 2px solid var(--brand-green-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  transition: top 120ms ease-out;
}
.skip-link:focus {
  top: 8px;
  text-decoration: none;
}
.container-max {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 769px) {
  .container-max {
    padding-inline: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Buttons */
.button {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  min-height: var(--tap);
  height: auto;
  padding: 0.5em 1.1em;
  border-radius: var(--radius);
  transition: background-color 120ms ease-out, border-color 120ms ease-out,
    box-shadow 120ms ease-out;
}
.button.is-medium {
  min-height: var(--tap-primary);
  padding-inline: 1.5rem;
}
.button.is-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--text);
}
.button.is-primary:hover,
.button.is-primary.is-hovered {
  background-color: var(--brand-green-hover);
  border-color: var(--brand-green-hover);
  color: var(--text);
}
.button.is-primary:active,
.button.is-primary.is-active {
  background-color: var(--brand-green-hover);
  border-color: var(--brand-green-dark);
  color: var(--text);
}
.button.is-link {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #ffffff;
}
.button.is-link:hover,
.button.is-link.is-hovered {
  background-color: var(--brand-green-dark-hover);
  border-color: var(--brand-green-dark-hover);
  color: #ffffff;
}
.button.is-link.is-outlined {
  background-color: var(--surface);
  border-color: var(--brand-green-dark);
  border-width: 2px;
  color: var(--brand-green-dark);
}
.button.is-link.is-outlined:hover,
.button.is-link.is-outlined.is-hovered {
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
}
.button.is-text {
  color: var(--brand-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.button.is-text:hover {
  background-color: var(--surface-soft);
  color: var(--brand-green-dark-hover);
}
.button.is-fullwidth,
.is-fullwidth-mobile {
  width: 100%;
}
@media (min-width: 769px) {
  .is-fullwidth-mobile {
    width: auto;
  }
}
.button[disabled],
.button.is-disabled,
fieldset[disabled] .button {
  background-color: var(--surface-soft);
  border-color: var(--border);
  box-shadow: none;
  color: var(--text-muted);
  opacity: 1;
  cursor: not-allowed;
}
.button[disabled]:hover,
.button.is-disabled:hover {
  background-color: var(--surface-soft);
  border-color: var(--border);
  color: var(--text-muted);
}
/* Loading state that keeps its label (never use Bulma's .is-loading, it hides text) */
.button.is-sending {
  pointer-events: none;
  cursor: progress;
}
.btn-spinner {
  width: 1em;
  height: 1em;
  flex: none;
  margin-inline-end: 0.5em;
  animation: btn-spin 800ms linear infinite;
}
.btn-spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 42, 56;
  stroke-dashoffset: 0;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Bulma ignores text nodes for :last-child, so an icon that opens a button is
   also :last-child and inherits the "-0.5 padding" end margin, which pulls the
   label onto the icon. Keep the pull-in at the start, give the label a gap. */
.button .icon:first-child:not(:last-child),
.button .icon:first-child:last-child {
  margin-inline-end: 0.5em;
}
.button .icon svg {
  width: 1.25em;
  height: 1.25em;
}

/* Badges */
.badge-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 0.875rem; /* 14px at every breakpoint */
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.badge--sale {
  background-color: var(--sale-red);
  color: #ffffff;
}
.badge--free {
  background-color: var(--brand-gold);
  color: var(--text);
}
.badge--new {
  background-color: var(--brand-green);
  color: var(--text);
}
.badge--out {
  background-color: var(--out-of-stock);
  color: #ffffff;
}

/* Price */
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
}
.price__new {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--brand-green-dark);
}
.price__new--sale {
  color: var(--brand-green-dark);
}
.price__old {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--sale-red);
}
.price__save {
  display: block;
  flex-basis: 100%; /* its own line under the two prices */
  font-size: var(--fs-body);
  color: var(--text);
  margin-top: 4px;
}
.price--lg .price__new {
  font-size: 1.875rem; /* 30px */
  font-weight: 800;
}
@media (min-width: 1024px) {
  .price__new {
    font-size: 1.375rem; /* 22px */
  }
  .price--lg .price__new {
    font-size: 2.25rem; /* 36px */
  }
}

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 140ms ease-out, border-color 140ms ease-out;
}
.product-card:hover {
  border-color: var(--brand-green-dark);
  box-shadow: var(--shadow-hover);
}
.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card__link:hover {
  color: inherit;
  text-decoration: none;
}
.product-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.product-card__link:focus-visible {
  outline: 3px solid transparent;
  outline-offset: 2px;
}
.product-card__link:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.product-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.product-card[data-stock="out"] .product-card__media img {
  opacity: 0.6; /* the only dimmed thing on the page; text is never dimmed */
}
.product-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere; /* a word longer than the card breaks instead of being cut off */
  min-height: 2.7em; /* 2 lines, so cards do not jump */
}
.product-card__sku {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  margin-top: auto;
}
.product-card__stock {
  font-size: var(--fs-small);
}
.product-card .button {
  position: relative;
  z-index: 1; /* stays a separate tap target above the stretched link */
  width: 100%;
  min-height: var(--tap-primary);
  margin-top: 6px;
  padding: 10px 6px;
  line-height: 1.2;
  white-space: normal; /* a long label takes two lines in a narrow card, never a smaller font */
}
.product-card .badge-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px); /* a long badge wraps inside the card */
}

/* Stock indicator */
.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--text);
}
.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-green-dark);
  flex: none;
}
.stock--out::before {
  background-color: var(--out-of-stock);
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  overflow: hidden;
}
.qty-stepper__btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.qty-stepper__btn:hover:not([disabled]) {
  background-color: var(--surface-soft);
}
.qty-stepper__btn[disabled] {
  color: var(--text-muted);
  cursor: not-allowed;
}
.qty-stepper__input {
  width: 64px;
  height: 48px;
  border: 0;
  border-inline: 1px solid var(--border);
  border-radius: 0;
  background-color: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* Forms */
.label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.help {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 6px;
}
.input,
.textarea,
.select select {
  font-size: var(--fs-body);
  color: var(--text);
  border-color: var(--border);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--brand-green-dark);
  box-shadow: none;
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--sale-red);
}
.field-error svg {
  flex: none;
  margin-top: 2px;
  width: 18px;
  height: 18px;
}
.input.is-invalid,
.textarea.is-invalid,
.select select.is-invalid {
  border-color: var(--sale-red);
  border-width: 2px;
  padding-block: calc(0.5em - 1px);
  padding-inline: calc(0.75em - 1px);
}
.checkbox,
.radio {
  font-size: var(--fs-body);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.checkbox input,
.radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-green-dark);
}

/* Toast */
.toast-region {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast-region > * {
  width: 100%;
  max-width: 520px;
}
@media (min-width: 769px) {
  .toast-region {
    inset-inline: auto 24px;
    bottom: 24px;
    align-items: flex-end;
  }
  .toast-region > * {
    width: 380px;
  }
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--text);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 42, 26, 0.28);
  font-size: var(--fs-body);
  animation: toast-in 180ms ease-out;
}
.toast__text {
  flex: 1;
  margin: 0;
  color: #ffffff;
}
.toast__action,
.toast__close {
  flex: none;
  min-height: var(--tap);
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.toast__action:hover,
.toast__close:hover {
  text-decoration-thickness: 2px;
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

/* Modal */
.modal-card {
  max-width: 520px;
  width: calc(100% - 32px);
  border-radius: var(--radius);
}
.modal-card-head,
.modal-card-foot {
  border-color: var(--border);
}
.modal-card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
}
.modal-card-body {
  color: var(--text);
  font-size: var(--fs-body);
}
.modal-close-text {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.modal-close-text svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Steps */
.steps {
  display: flex;
  gap: 4px; /* at 360px a bold "Date de livrare" needs 106px to stay on one line */
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.steps__item + .steps__item {
  margin-top: 0; /* the base "li + li" gap would drop steps 2 and 3 below step 1 */
}
.steps__item + .steps__item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(-50% + 26px);
  right: calc(50% + 26px);
  height: 2px;
  background-color: var(--border);
}
.steps__num {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 700;
}
.steps__label {
  font-size: var(--fs-small);
  color: var(--text);
}
.steps__item--current .steps__num {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--text);
}
.steps__item--current .steps__label {
  font-weight: 700;
}
.steps__item--done .steps__num {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #ffffff;
}

/* How it works */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 769px) {
  .how-it-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .how-it-works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.how-it-works__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.how-it-works__icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
}
.how-it-works__text {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text);
}
.how-it-works__text strong {
  display: block;
  color: var(--text);
}

/* Section title */
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 16px;
  font-size: var(--fs-h2);
  font-weight: 700;
}
.section-title__link {
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 16px;
  text-align: center;
}
.empty-state__icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
}
.empty-state__title {
  margin: 0;
  font-size: var(--fs-h2);
}
.empty-state__text {
  margin: 0;
  max-width: 40ch;
  color: var(--text-muted);
}

/* Internal style guide */
.sg-page {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 16px 80px; /* the last 80px stay clear of the fixed badge */
}
.sg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
}
.sg-header img {
  width: 150px;
  height: 48px;
}
.sg-header__note {
  margin: 0;
  text-align: right;
}
@media (max-width: 480px) {
  .sg-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .sg-header__note {
    text-align: left;
  }
}
.sg-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 8px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.sg-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}
.sg-nav a:hover {
  background-color: var(--surface-soft);
  text-decoration: none;
}
@media (min-width: 769px) {
  .sg-nav {
    flex-wrap: wrap;
    overflow: visible;
  }
}
.sg-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}
@media (min-width: 769px) {
  .sg-section {
    scroll-margin-top: 136px;
  }
}
.sg-section > h2 {
  margin-bottom: 4px;
}
.sg-note {
  margin: 0 0 16px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.sg-type-sample {
  margin: 0 0 0.5em;
  color: var(--text);
  line-height: 1.2;
  text-wrap: balance;
}
.button.is-text {
  /* the default underline cuts through the descenders at 17-18px */
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
.sg-note code,
.sg-spec code {
  font-size: 0.875rem;
  background: none;
  padding: 0;
  color: var(--brand-green-dark);
}
.sg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.sg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 769px) {
  .sg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .sg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sg-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 769px) {
  .sg-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .sg-swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sg-swatch {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sg-swatch__chip {
  height: 64px;
  border-bottom: 1px solid var(--border);
}
.sg-swatch__meta {
  padding: 8px 10px;
  font-size: var(--fs-small);
}
.sg-swatch__meta strong {
  display: block;
}
.sg-swatch__meta code {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.sg-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 769px) {
  .sg-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sg-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-small);
}
.sg-icon svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--brand-green-dark);
}
.sg-icon code {
  font-size: 0.875rem;
  color: var(--text-muted);
  word-break: break-all;
}
.sg-breakpoint {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: var(--text);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.18);
  pointer-events: none;
}
.sg-section .field {
  max-width: 560px;
}
.sg-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}
.sg-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
/* Static picture of the focus state for the style guide (real focus uses :focus-visible) */
.is-demo-focus {
  border-color: var(--brand-green-dark) !important;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Site layout and navigation */

/* Layout tokens and helpers */
:root {
  --topbar-h: 0px; /* the top bar exists from 1024px */
  --header-h: 56px; /* the part of the header that stays sticky */
  --footer-border: #3b5a2e;
  --z-nav: 25;
  --z-header: 30;
  --z-offcanvas: 45;
}
@media (min-width: 769px) {
  :root {
    --header-h: 88px;
  }
}
@media (min-width: 1024px) {
  :root {
    --topbar-h: 36px;
    --header-h: 96px;
  }
}
html {
  scroll-padding-top: calc(var(--header-h) + 8px); /* anchors stay clear of the sticky header */
}
a.button:hover,
a.button:focus {
  text-decoration: none; /* a link styled as a button keeps the button look */
}
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain > li + li {
  margin-top: 0;
}
.page-main {
  padding-block: 24px 48px;
}
/* An accordion body that starts closed on mobile only (footer "Categorii").
   Alpine removes the attribute; without JavaScript the <noscript> rule in the
   head shows it again. */
@media (max-width: 768px) {
  [x-cloak="mobile"] {
    display: none !important;
  }
}

/* Site header */
/* One <header>: top bar (desktop) + main row. A negative top lets the top bar
   scroll away while the main row stays stuck. */
.site-header {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: var(--z-header);
  background-color: var(--surface);
}
@media (max-width: 768px) {
  /* Keep Chromium from repainting the sticky row in the scrolling layer. */
  .site-header {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}
.site-logo {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: var(--radius-sm);
}
.site-logo img {
  display: block;
  width: 150px;
  height: 48px;
}
@media (min-width: 769px) {
  .site-logo img {
    width: 200px;
    height: 64px;
  }
}
@media (min-width: 1024px) {
  .site-logo img {
    width: 235px;
    height: 75px;
  }
}

/* Desktop top bar */
.topbar {
  height: var(--topbar-h);
  background-color: var(--surface-soft);
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__nav ul {
  display: flex;
  align-items: center;
  gap: 4px 20px;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--text-muted);
}
.topbar a:hover,
.topbar a[aria-current="page"] {
  color: var(--text);
}
.topbar a[aria-current="page"] {
  font-weight: 600;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar .topbar__phone {
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}
.topbar__phone svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--brand-green-dark);
}
.topbar__hours {
  display: none;
}
@media (max-width: 1215px) {
  /* no room for both numbers next to the longer menu labels; the second one stays in the footer */
  .topbar__phone + .topbar__phone {
    display: none;
  }
}
/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-switcher .lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
}
.lang-switcher .lang-switcher__link:hover {
  border-color: var(--brand-green-dark);
  color: var(--text);
  text-decoration: none;
}
.lang-switcher .lang-switcher__link[aria-current="true"] {
  border-color: var(--brand-green-dark);
  box-shadow: inset 0 0 0 1px var(--brand-green-dark);
}
.lang-switcher__link img {
  display: block;
  flex: none;
  width: 24px;
  height: 16px;
  border-radius: 2px;
}
.topbar .lang-switcher {
  gap: 4px;
}
.topbar .lang-switcher__link {
  min-height: 28px;
  padding: 0 8px;
}

/* Language chooser */
/* The page at the domain root: the logo, one line in each language, two buttons. */
.lang-chooser {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px;
  text-align: center;
}
.lang-chooser__logo {
  width: 235px;
  height: 75px;
}
.lang-chooser__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: var(--fs-h3);
}
.lang-chooser__actions {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 328px;
}
.lang-chooser__link.button {
  gap: 12px;
  min-height: 56px;
  border: 2px solid var(--brand-green-dark);
  background-color: var(--surface);
  color: var(--brand-green-dark);
  font-size: 1.25rem;
}
.lang-chooser__link.button:hover {
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
}
/* the language chosen last time (the `lang` cookie); Romanian on a first visit */
.lang-chooser__link.button[aria-current="true"] {
  border-color: var(--brand-green);
  background-color: var(--brand-green);
  color: var(--text);
}
.lang-chooser__link.button[aria-current="true"]:hover {
  border-color: var(--brand-green-hover);
  background-color: var(--brand-green-hover);
}
.lang-chooser__link img {
  display: block;
  flex: none;
  width: 30px;
  height: 20px;
  border-radius: 2px;
}
@media (min-width: 560px) {
  .lang-chooser__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 480px;
  }
}

/* Mobile header */
.site-header__mobile {
  height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: stretch;
  column-gap: 8px;
  padding-inline: 8px;
  border-bottom: 1px solid var(--border);
}
.site-header__mobile .site-logo {
  align-self: center;
  justify-self: center;
}
.site-header__mobile .site-logo img {
  max-width: 100%; /* next to long button labels the logo gets smaller, never squeezed */
  height: auto;
}
.hdr-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 48px;
  height: 100%;
  padding: 0 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem; /* 14px, the smallest size allowed */
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.hdr-btn:hover {
  color: var(--brand-green-dark);
  text-decoration: none;
}
.hdr-btn:focus-visible {
  outline-offset: -3px; /* the button fills the header height; keep the ring inside it */
}
.hdr-btn svg {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}
.hdr-btn__icon {
  position: relative;
  display: inline-flex;
}
.hdr-btn__icon .cart-badge {
  position: absolute;
  top: -3px;
  right: -9px; /* a wider number grows over the icon, not out of the screen */
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background-color: var(--brand-green);
  color: var(--text); /* 7.45:1 on --brand-green */
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}
.cart-badge[data-cart-count="0"] {
  display: none;
}

/* Call dropdown */
.call-menu {
  display: flex;
}
.call-menu .dropdown-menu {
  min-width: 264px;
  padding-top: 4px;
}
.call-menu .dropdown-content {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-hover);
}
.call-menu__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
}
.call-menu__phone:hover {
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
  text-decoration: none;
}
.call-menu__phone svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand-green-dark);
}
.call-menu__hours {
  margin: 4px 12px 6px;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--text-muted);
  white-space: normal;
}

/* Search form */
.search-form {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.search-form__field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-form__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1; /* Bulma's .input is position: relative and would cover it */
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-form .search-form__input {
  height: 48px;
  padding-inline: 40px 12px;
  text-overflow: ellipsis;
}
.search-form__input::placeholder {
  text-overflow: ellipsis;
}
.search-form .search-form__button {
  flex: none;
  min-height: 48px;
}
.search-strip {
  padding-block: 8px;
  background-color: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

/* Main header */
.site-header__main {
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__inner .call-menu {
  align-self: stretch;
  padding-block: 16px;
}
.site-header__inner .hdr-btn {
  min-width: 56px;
}
.cart-button.button {
  flex: none;
  min-height: 48px;
  white-space: nowrap;
}
.cart-button .cart-badge {
  margin-inline-start: 8px;
}
.cart-button__total {
  margin-inline-start: 8px;
  font-weight: 700;
}
.cart-button__total:empty {
  display: none;
}
@media (max-width: 1023px) {
  /* a tablet has no room for the total next to a usable search field */
  .cart-button__total {
    display: none;
  }
}
@media (min-width: 769px) and (max-width: 899px) {
  /* the narrowest tablets give the search field every pixel they can */
  .site-header__inner {
    gap: 12px;
  }
  .site-header__inner .site-logo img {
    width: 160px;
    height: 51px;
  }
}
@media (min-width: 1024px) {
  .site-header__inner {
    gap: 32px;
  }
}

/* Navigation strip */
.nav-strip {
  position: relative;
  z-index: var(--z-nav);
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 48px;
}
.nav-strip__inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.nav-strip__links {
  display: flex;
  align-items: center;
  min-width: 0;
}
.nav-strip__links ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-strip__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.nav-strip__links a:hover,
.nav-strip__links a[aria-current="page"] {
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
  text-decoration: none;
}
@media (min-width: 1024px) {
  .nav-strip {
    height: 52px;
  }
  .nav-strip__inner {
    gap: 24px;
  }
  /* The home page shows the permanent category sidebar instead. */
  .is-home .nav-strip {
    display: none;
  }
}

/* Category menu */
.cat-menu {
  position: relative;
}
.cat-menu--flyout {
  display: flex;
  align-items: center;
}
.cat-menu__button.button {
  white-space: nowrap;
}
.cat-menu__button .cat-menu__caret {
  margin-inline: 0.35em -0.35em;
  transition: transform 120ms ease-out;
}
.cat-menu__button[aria-expanded="true"] .cat-menu__caret {
  transform: rotate(180deg);
}
.cat-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-hover);
}
.cat-menu__list {
  padding-block: 8px;
}
.cat-menu__item {
  position: relative;
}
.cat-menu__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 12px 6px 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}
.cat-menu__row:hover,
.cat-menu__item.is-active > .cat-menu__row {
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
  text-decoration: none;
}
.cat-menu__row:focus-visible {
  outline-offset: -3px;
}
.cat-menu__row img {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
}
.cat-menu__name {
  flex: 1;
  min-width: 0;
}
.cat-menu__chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.cat-menu__sub {
  position: absolute;
  top: var(--cat-menu-sub-offset, 0px);
  left: 100%;
  width: 320px;
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--surface);
  box-shadow: var(--shadow-hover);
}
.cat-menu__sub[hidden] {
  display: none;
}
.cat-menu__sub-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
}
.cat-menu__sub-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 16px;
  margin-bottom: 8px;
}
.cat-menu__sub-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}
.cat-menu__sub-list a:hover {
  color: var(--brand-green-dark);
}
.subcategory-icon {
  flex: none;
  object-fit: contain;
}
.cat-menu__see-all {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: var(--tap);
  margin-top: auto;
  font-size: 1rem;
  font-weight: 600;
}
.cat-menu__see-all svg {
  flex: none;
  width: 18px;
  height: 18px;
}
@media (min-width: 1024px) {
  .cat-menu__panel {
    width: 300px;
  }
  .cat-menu__sub {
    width: 480px;
  }
  .cat-menu__sub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cat-menu--sidebar .cat-menu__panel {
  position: relative;
  top: auto;
  width: auto;
  border-radius: var(--radius);
  box-shadow: none;
}
.cat-menu--sidebar .cat-menu__row {
  min-height: 56px;
}
.cat-menu--sidebar .cat-menu__sub {
  z-index: var(--z-nav);
}

/* Off-canvas panels */
html.is-clipped {
  scrollbar-gutter: stable;
}
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-offcanvas);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 200ms;
}
.offcanvas.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(31, 42, 26, 0.5);
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.offcanvas.is-open .offcanvas__backdrop {
  opacity: 1;
}
.offcanvas__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 86%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--surface);
  box-shadow: 8px 0 30px rgba(31, 42, 26, 0.2);
  transform: translateX(-100%);
  transition: transform 200ms ease-out;
}
.offcanvas.is-open .offcanvas__panel {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .offcanvas,
  .offcanvas__backdrop,
  .offcanvas__panel {
    transition: none !important;
  }
}
.offcanvas__head {
  position: sticky;
  top: 0;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 4px 4px 4px 16px;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}
.offcanvas__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
}
.offcanvas__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.offcanvas__close:hover {
  background-color: var(--surface-soft);
}
.offcanvas__close svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.offcanvas__section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.offcanvas__section:last-child {
  border-bottom: 0;
  padding-bottom: 24px;
}
.offcanvas__section--flush {
  padding-inline: 0;
}
.offcanvas__heading {
  margin: 4px 0 8px;
  font-size: var(--fs-h3);
  font-weight: 700;
}
.offcanvas__section--flush .offcanvas__heading {
  padding-inline: 16px;
}
.offcanvas__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 600;
}
.offcanvas__links a:hover,
.offcanvas__links a[aria-current="page"] {
  color: var(--brand-green-dark);
}
.offcanvas__hours {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.offcanvas .call-menu__phone {
  padding-inline: 0;
}
.offcanvas .call-menu__phone:hover {
  background-color: transparent;
}

/* accordion rows inside the off-canvas menu */
.oc-cat {
  border-top: 1px solid var(--border);
}
.oc-cat__row {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}
.oc-cat__link {
  flex: 1;
  min-width: 60%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 16px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}
.oc-cat__link:hover {
  color: var(--brand-green-dark);
  text-decoration: none;
}
.oc-cat__link:focus-visible,
.oc-cat__toggle:focus-visible,
.oc-cat__sub a:focus-visible {
  outline-offset: -3px;
}
.oc-cat__link img {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
}
.oc-cat__toggle {
  flex: none;
  width: 48px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.oc-cat__toggle:hover {
  background-color: var(--surface-soft);
}
.oc-cat__toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 160ms ease-out;
}
.oc-cat__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.oc-cat__sub {
  background-color: var(--surface-soft);
}
.oc-cat__sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 16px 4px 32px;
  color: var(--text);
  line-height: 1.25;
}
.oc-cat__sub a:hover {
  color: var(--brand-green-dark);
}

/* Footer */
.site-footer {
  --focus: #ffffff; /* the dark-green ring would disappear on the dark footer */
  margin-top: 48px;
  background-color: var(--footer-bg);
  color: var(--footer-text);
}
.site-footer a {
  color: var(--footer-text);
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--footer-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-block: 32px 16px;
}
.site-footer__logo {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius);
  background-color: #ffffff; /* the logo has dark lettering; a white plate keeps it readable */
  line-height: 0;
}
.site-footer__logo img {
  display: block;
  width: 150px;
  height: 48px;
}
.site-footer__text {
  margin: 12px 0 8px;
  max-width: 44ch;
  color: var(--footer-muted);
}
.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}
.site-footer__phone svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand-green);
}
.site-footer__title {
  margin: 0 0 4px;
  color: var(--footer-text);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
}
.site-footer__hours {
  margin: 0;
  color: var(--footer-muted);
}
.site-footer__hours span {
  white-space: nowrap;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.site-footer__toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--footer-border);
  background: transparent;
  color: var(--footer-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.site-footer__toggle svg {
  flex: none;
  width: 24px;
  height: 24px;
  transition: transform 160ms ease-out;
}
.site-footer__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.site-footer__links {
  padding-bottom: 8px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: 10px;
  line-height: 1.3;
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-block: 16px 24px;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: var(--fs-small);
}
.site-footer__bottom p {
  margin: 0;
}
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer .lang-switcher {
  margin-top: 4px;
}
.site-footer .lang-switcher__link {
  border-color: var(--footer-border);
  background-color: transparent;
  color: var(--footer-text);
}
.site-footer .lang-switcher__link:hover {
  border-color: var(--footer-text);
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--footer-text);
  text-decoration: none;
}
.site-footer .lang-switcher__link[aria-current="true"] {
  border-color: var(--footer-text);
  box-shadow: inset 0 0 0 1px var(--footer-text);
}
@media (min-width: 769px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-block: 40px 32px;
  }
  .site-footer__nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .site-footer__title {
    margin-bottom: 8px;
  }
  .site-footer__links {
    padding-bottom: 0;
  }
  .site-footer__links a {
    min-height: 0;
    padding-block: 6px;
  }
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 16px;
  }
  .site-footer .lang-switcher {
    margin-top: 0;
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr) auto;
    gap: 32px 48px;
  }
  .site-footer__nav {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
  }
  .site-footer__schedule {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Toast variants */
.toast {
  --focus: #ffffff;
  border: 1px solid #55604f; /* keeps the dark bar visible over the dark footer */
  border-inline-start-width: 4px;
}
.toast--success {
  border-inline-start-color: var(--brand-green);
}
.toast--danger {
  border-inline-start-color: #f28b82;
}
a.toast__action {
  display: inline-flex;
  align-items: center;
}
a.toast__action:hover {
  color: #ffffff;
}

/* Framed style guide */
.sg-page {
  padding-top: 16px;
}
.sg-nav {
  top: var(--header-h); /* sits under the sticky site header */
  flex-wrap: nowrap; /* one scrolling row at every width, so the two sticky bars stay low */
  overflow-x: auto;
}
.sg-section {
  scroll-margin-top: 72px; /* the height of .sg-nav; html scroll-padding covers the header */
}
.sg-demo {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.sg-demo + .sg-demo,
.sg-demo + .sg-note,
.sg-row + .sg-demo {
  margin-top: 16px;
}
.sg-demo--narrow {
  max-width: 360px;
}
.sg-demo--sidebar {
  max-width: 320px;
  padding: 0;
  border: 0;
}
.sg-demo--narrow .site-header__mobile .site-logo img {
  /* This demo stays in its mobile form even when the guide is viewed on
     desktop, so it must not inherit the desktop logo dimensions. */
  width: 150px;
  height: 48px;
}

/* Home page */

/* Page rhythm */
.is-home .nav-strip .cat-menu--flyout {
  /* Home uses category tiles below desktop and the permanent sidebar above it. */
  display: none;
}
.home {
  display: flex;
  flex-direction: column;
  gap: 40px; /* between sections at every width */
}
.home > * {
  min-width: 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.hero__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* The page title is one short line: above the banner up to 1023px, the first
   line of the promo panel from 1024px. */
.home-h1 {
  margin: 0 0 12px;
  font-size: 1.25rem; /* 20px at every width */
  line-height: 1.3;
}
@media (min-width: 1024px) {
  /* Sections wrap beside the full category list, then return to full width. */
  .home--with-sidebar {
    display: flow-root;
  }
  .home--with-sidebar > .hero__sidebar {
    float: left;
    width: calc((100% - 24px) / 4);
    margin: 0 24px 24px 0;
  }
  .home--with-sidebar > .hero__main ~ * {
    margin-top: 40px;
  }
  .home--with-sidebar > :is(.home-section, .home-how, .seo-block) {
    display: flow-root;
  }
  .home--with-sidebar > .home-section {
    container-type: inline-size;
  }
  .hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }
  .hero__main {
    padding: 20px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface-soft);
  }
  .home-h1 {
    margin-bottom: 16px;
  }
}

/* The sidebar in the static hero fills its row. */
.hero > .hero__sidebar .cat-menu {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero > .hero__sidebar .cat-menu__panel {
  flex: 1;
}
.cat-menu__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}
.cat-menu__heading svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--brand-green-dark);
}
.cat-menu--sidebar .cat-menu__heading + .cat-menu__panel {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Promo banner */
.promo {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
/* Without JavaScript the slides are a swipeable row; Alpine adds .is-enhanced
   and moves the track with the buttons instead. */
.promo__viewport {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.promo.is-enhanced .promo__viewport {
  overflow: hidden;
}
.promo__track {
  display: flex;
  flex: 1;
  min-width: 0;
  transition: transform 300ms ease-out;
}
.promo__slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  overflow: hidden;
}
.promo__media {
  display: block;
  background-color: var(--surface);
}
.promo__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* The text sits on the soft panel under or next to the image, never on it. */
.promo__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
}
.promo__title {
  margin: 0;
  font-size: var(--fs-h2);
}
.promo__text {
  margin: 0;
}
.promo__cta {
  margin-top: 8px;
}
.promo__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.promo__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.promo__dot {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.promo__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand-green-dark);
  border-radius: 50%;
  background-color: var(--surface);
}
.promo__dot[aria-current="true"]::before {
  background-color: var(--brand-green-dark);
}
.promo__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.promo__nav:hover {
  border-color: var(--brand-green-dark);
  color: var(--brand-green-dark);
}
.promo__nav svg {
  flex: none;
  width: 20px;
  height: 20px;
}
@media (min-width: 769px) {
  .promo__media img {
    aspect-ratio: 12 / 5;
  }
  .promo__body {
    padding: 20px 24px 24px;
  }
  .promo__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}
/* A picture uploaded in the panel is cut to 16:9 there: a phone and a tablet show all of it.
   From 1024px the rule below fills the tile, as for the standard drawing. */
.promo__media--upload img {
  aspect-ratio: 16 / 9;
}
@media (min-width: 1024px) {
  /* the panel is .hero__main; the slide is image 55% | text 45% inside it */
  .promo__slide {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    overflow: visible;
  }
  .promo__media {
    position: relative;
    flex: 0 0 55%;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .promo__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto; /* the tile takes the height of the row */
  }
  .promo__body {
    flex: 1;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 0;
  }
  .promo__title {
    font-size: 2.125rem; /* 34px */
  }
  .promo__controls {
    margin-top: 16px;
  }
}

/* Category tiles */
.cat-tiles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.cat-tile:hover {
  border-color: var(--brand-green-dark);
  color: var(--brand-green-dark);
  text-decoration: none;
}
.cat-tile img {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
}
.cat-tile__name {
  max-width: 100%;
}
@media (min-width: 769px) {
  .cat-tiles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .cat-tile {
    padding: 16px;
  }
}

/* Benefits */
/* The 1px grid gap over the border colour draws the lines between the cells. */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--border);
  overflow: hidden;
}
.benefits__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  background-color: var(--surface);
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}
.benefits__item svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--brand-green-dark);
}
@media (min-width: 769px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefits__item {
    min-height: 64px;
  }
}
@media (min-width: 1024px) {
  .benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Section header and product grid */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.section-header__title {
  min-width: 0;
  margin: 0;
  font-size: var(--fs-h2);
}
.section-header__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.section-header__link svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 769px) {
  .section-header {
    margin-bottom: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  @container (max-width: 799px) {
    .home--with-sidebar .product-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
  }
}

/* Added-to-cart card state */
.product-card__buy {
  margin: 0;
}
.button.is-added::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: 0.4em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%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='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Ordering steps and SEO text */
.home-how {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}
.home-how__title {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
}
.home-how .how-it-works__icon {
  background-color: var(--surface); /* Keep the icon visible on the soft panel. */
}
.home > .seo-block .prose {
  max-width: none;
}
.seo-block .prose > h2 {
  margin-top: 0;
}
@media (min-width: 769px) {
  .home-how {
    padding: 24px;
  }
}

/* Category listing */

/* Listing layout */
/* One column up to 1023px (the filters are an off-canvas panel there);
   from 1024px the filters are a 3/12 sidebar next to everything else. */
.listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
}
.listing > * {
  min-width: 0;
}
.listing__title {
  margin: 0 0 8px;
}
@media (min-width: 1024px) {
  .listing {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    grid-template-rows: auto auto auto 1fr; /* a sidebar taller than the list stretches the last row only */
    column-gap: 24px;
    row-gap: 20px;
  }
  .listing > * {
    grid-column: 2;
  }
  .listing > .filters {
    grid-column: 1;
    grid-row: 1 / span 4;
  }
  /* 9/12 of the page: 3 cards of about 225px at 1024px, 4 from 1216px */
  .listing .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1216px) {
  .listing .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Breadcrumbs */
.breadcrumbs {
  margin-top: -10px; /* the 44px row would double the top padding of the page */
  font-size: var(--fs-small);
  line-height: 1.3;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-muted);
}
/* The separator is a drawn chevron, not a character: nothing is read aloud. */
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-inline: 4px;
  background-color: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.breadcrumbs__item a {
  display: inline-flex;
  align-items: center;
  min-width: var(--tap); /* a short word like "Acasă" is still a full tap target */
  min-height: var(--tap);
}
.breadcrumbs__item [aria-current="page"] {
  color: var(--text);
}

/* Collapsible category intro */
.cat-intro {
  max-width: 75ch;
  margin-bottom: 8px;
}
.cat-intro__text {
  margin: 0;
}
.cat-intro__toggle,
.read-more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--brand-green-dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}
.cat-intro__toggle:hover,
.read-more:hover {
  color: var(--brand-green-dark-hover);
}
@media (max-width: 768px) {
  .cat-intro__text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (min-width: 769px) {
  .cat-intro {
    margin-bottom: 16px;
  }
}

/* Subcategory chips */
/* Keep every subcategory visible. On narrow screens the chips wrap instead of
   looking clipped in a horizontal row with no visible scrollbar. */
.chips {
  margin-inline: 0;
}
.chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0; /* room for the focus ring without extending past the page */
}
.chips__list > li {
  flex: none;
  max-width: 100%;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
}
.chip:hover,
.chip[aria-current="page"] {
  border-color: var(--brand-green-dark);
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
  text-decoration: none;
}
@media (min-width: 769px) {
  .chips__list {
    padding: 0;
  }
}

/* Listing toolbar */
.listing__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-block: 1px solid var(--border);
}
.listing__count {
  margin: 0;
  font-weight: 600;
}
.listing__filters-open.button {
  min-height: var(--tap-primary);
  padding-inline: 1.25em;
}
.listing__sort {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.listing__sort-label {
  font-size: var(--fs-small);
  font-weight: 600;
}
.listing__sort .select,
.listing__sort .select select {
  width: 100%;
  height: var(--tap-primary);
}
@media (min-width: 769px) {
  .listing__toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
  }
  .listing__sort {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .listing__sort-label {
    font-size: var(--fs-body);
  }
  .listing__sort .select {
    width: 320px;
  }
  .listing__filters-open {
    order: 1; /* count | sort | "Filtre" */
  }
}
@media (min-width: 1024px) {
  .listing__toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .listing__sort .select {
    width: 260px;
  }
}

/* Listing filters */
/* Title on top, buttons at the bottom, and only the list of filters between
   them scrolls, in the panel and in the sidebar alike. */
.offcanvas--end {
  overflow: hidden; /* the closed panel waits past the right edge and must not widen the page */
}
.offcanvas--end .offcanvas__panel {
  left: auto;
  right: 0;
  width: 92%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: -8px 0 30px rgba(31, 42, 26, 0.2);
  transform: translateX(100%);
}
.filters__box,
.filters__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.filters__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.filters__group {
  min-width: 0;
  margin: 0;
  padding: 0 16px 8px;
  border: 0;
  border-bottom: 1px solid var(--border);
}
.filters__group:last-child {
  border-bottom: 0;
}
/* a <legend> ignores the padding of its fieldset, so it carries the space itself */
.filters__legend {
  padding: 14px 0 4px;
  color: var(--text);
  font-weight: 700;
}
.filters__range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 4px;
}
.filters__label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-small);
}
.filters__range .input {
  height: var(--tap-primary);
}
/* the whole 44px row is the label, so the whole row can be tapped */
.filters__check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  line-height: 1.3;
  cursor: pointer;
}
.filters__check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.filters__check:hover {
  color: var(--brand-green-dark);
}
/* how many products have the value */
.filters__count {
  color: var(--text-muted);
}
.filters__actions {
  flex: none;
  display: flex;
  flex-direction: row-reverse; /* "Resetează" on the left, the main button on the right */
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}
.filters__actions .button {
  min-height: var(--tap-primary);
}
.filters__apply {
  flex: 1 1 auto;
}
@media (max-width: 1023px) {
  /* the short label "Resetează" is shown; " filtrele" stays for screen readers */
  .filters__reset-more {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
}
@media (min-width: 1024px) {
  .filters.offcanvas {
    position: static;
    z-index: auto;
    overflow: visible; /* a clipping parent would stop the sticky panel */
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .filters .offcanvas__backdrop,
  .filters .offcanvas__close {
    display: none;
  }
  /* Sticky under the 96px header. The 16px above the box belong to the sticky
     element, so the box never touches the header. */
  .filters .offcanvas__panel {
    position: sticky;
    top: var(--header-h);
    width: auto;
    max-width: none;
    margin-top: -16px;
    padding-top: 16px;
    overflow: visible;
    background-color: transparent;
    box-shadow: none;
    transform: none !important;
    transition: none;
  }
  /* never taller than the screen: the buttons stay in view on a low laptop */
  .filters__box {
    max-height: calc(100vh - var(--header-h) - 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    overflow: hidden;
  }
  .filters .offcanvas__head {
    position: static;
    min-height: 48px;
    padding: 0 16px;
    background-color: var(--surface-soft);
  }
  .filters .offcanvas__title {
    font-size: var(--fs-body);
  }
  .filters__actions {
    flex-direction: column;
    padding: 12px 16px;
  }
  .filters__apply {
    flex: none;
  }
}

/* Pagination */
/* Up to 768px: the page numbers on one row, "Înapoi" and "Înainte" as two
   halves under it. From 769px everything is one centred row. */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.pager__pages {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pager__step--prev {
  grid-column: 1;
  grid-row: 2;
}
.pager__step--next {
  grid-column: 2;
  grid-row: 2;
}
.pager__page,
.pager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}
.pager__step {
  padding: 0 14px;
}
.pager__step svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.pager__page[href]:hover,
.pager__step[href]:hover {
  border-color: var(--brand-green-dark);
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
  text-decoration: none;
}
.pager__page[aria-current="page"] {
  border-color: var(--brand-green-dark);
  background-color: var(--brand-green-dark);
  color: #ffffff; /* 5.23:1 */
}
.pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: var(--tap);
  color: var(--text-muted);
}
/* first or last page: the step has no target and looks like a disabled button */
.pager__step[aria-disabled="true"] {
  background-color: var(--surface-soft);
  color: var(--text-muted);
  cursor: not-allowed;
}
@media (min-width: 769px) {
  .pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
  }
}

/* Results and SEO text */
.listing__empty {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.listing__seo {
  margin-top: 24px;
}
.listing__seo .prose {
  width: 100%;
  max-width: none;
}

/* Search results */
/* The parts of a listing in one column: no filters and no sorting. */
.search-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
}
.search-page > * {
  min-width: 0;
}
.search-page__title {
  margin: 0;
  overflow-wrap: anywhere; /* the searched text can be one long word */
}
.search-page .search-form {
  max-width: 560px;
}
.search-page__hint {
  margin: 0;
  color: var(--text-muted);
}
.search-page .listing__count {
  padding-block: 12px;
  border-block: 1px solid var(--border);
}
.search-page .empty-state__title {
  overflow-wrap: anywhere;
}

/* Current category */
.cat-menu__row[aria-current="page"],
.oc-cat__link[aria-current="page"] {
  color: var(--brand-green-dark);
}

/* Product page */

/* Page layout */
/* One column up to 768px: photos, buy box (with the delivery terms), table,
   description. From 769px two columns: the photos and then the description
   on the left, the buy box and the table on the right across both rows, so
   neither column waits for the other one to end. */
.product__top {
  position: relative; /* up to 1023px the badges of the buy box sit on the photo */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.product__aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 32px;
  min-width: 0;
}
.product__desc {
  margin-top: 16px; /* 32px from the table, as between the sections of the aside */
}
.product__section > h2 {
  margin: 0 0 12px;
}
.product__section .read-more {
  margin-top: 4px;
}
.product__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-weight: 600;
}
.product__link svg {
  flex: none;
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .prose.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (min-width: 769px) {
  /* The first row is as tall as the photos alone: the aside spans the 1fr row too. */
  .product__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 32px 24px;
  }
  .product__top > .gallery {
    grid-column: 1;
    grid-row: 1;
  }
  .product__aside {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .product__desc {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
}
@media (min-width: 1024px) {
  .product__top {
    gap: 40px;
  }
  /* The aside follows the page while the description is read. When it fits
     under the header it stays 16px below it; when it is taller than the
     window it scrolls with the page until its bottom is 16px above the
     window's, then stays, so every part of it can be reached. --aside-h is
     its height, set by stickyAside; without it the top is so far up that
     the aside never sticks. It stops at the end of the description. */
  .product__aside {
    position: sticky;
    top: min(calc(var(--header-h) + 16px), calc(100vh - var(--aside-h, 100000px) - 16px));
    align-self: start;
    gap: 40px;
  }
}

/* Breadcrumbs with a long last item */
/* The product name takes what is left of the last row and is cut to one line. */
.breadcrumbs--truncate .breadcrumbs__item:last-child {
  flex: 1 1 96px;
  min-width: 0;
}
.breadcrumbs--truncate [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}
.gallery__stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #ffffff;
  overflow: hidden;
}
/* One photo per screen, moved by swiping. The scrollbar stays up to 768px;
   above that the thumbnails are the controls and it is hidden, unless
   JavaScript is off and the thumbnails do nothing. */
.gallery__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  cursor: zoom-in;
}
@media (min-width: 769px) and (scripting: enabled) {
  .gallery__track {
    scrollbar-width: none;
  }
  .gallery__track::-webkit-scrollbar {
    display: none;
  }
}
.gallery__track:focus-visible {
  outline-offset: -3px;
}
.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product[data-stock="out"] .gallery__slide img {
  opacity: 0.6; /* the photo only; text is never dimmed */
}
.gallery__bar {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.gallery__dots {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: #ffffff;
}
.gallery__dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand-green-dark);
  border-radius: 50%;
  background-color: #ffffff;
}
.gallery__dot.is-active {
  background-color: var(--brand-green-dark);
}
.gallery__zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  margin-inline-start: auto;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}
.gallery__zoom:hover {
  border-color: var(--brand-green-dark);
  color: var(--brand-green-dark);
}
.gallery__zoom svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.gallery__thumbs {
  display: none;
}
.gallery__thumb {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
  cursor: pointer;
}
.gallery__thumb:hover,
.gallery__thumb[aria-current="true"] {
  border-color: var(--brand-green-dark);
}
.gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (min-width: 769px) {
  .gallery__dots {
    display: none;
  }
  .gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, 64px);
    gap: 8px;
  }
}
@media (min-width: 1024px) {
  /* thumbnails in a column on the left, the photo up to 520px */
  .gallery {
    grid-template-columns: 72px minmax(0, 1fr);
    max-width: 604px;
  }
  .gallery__thumbs {
    order: -1;
    grid-template-columns: 72px;
    align-content: start;
  }
  .gallery__thumb {
    width: 72px;
    height: 72px;
  }
  /* one photo has no thumbnails: the photo takes their column too */
  .gallery--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

/* Full-screen gallery */
.gallery-modal {
  --focus: #ffffff;
  align-items: stretch;
  justify-content: flex-start;
  background-color: rgba(31, 42, 26, 0.92);
}
.gallery-modal__top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
}
.gallery-modal__counter {
  margin: 0;
  color: #ffffff;
  font-size: var(--fs-body);
  font-weight: 600;
}
.gallery-modal__track {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-modal__track::-webkit-scrollbar {
  display: none;
}
.gallery-modal__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* A square as large as the screen allows: the full width on a phone, the
   height left between the two rows of buttons (176px) on a wide screen. */
.gallery-modal__slide img {
  display: block;
  width: min(100%, 85vh, 100vh - 176px);
  width: min(100%, 85dvh, 100dvh - 176px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-color: #ffffff;
  object-fit: contain;
}
.gallery-modal__nav {
  flex: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.gallery-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid #ffffff;
  border-radius: var(--radius);
  background-color: transparent;
  color: #ffffff;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.gallery-modal__btn:hover {
  background-color: #ffffff;
  color: var(--text);
}
.gallery-modal__btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.gallery-modal__close {
  min-height: 48px;
}
@media (min-width: 769px) {
  .gallery-modal__nav {
    grid-template-columns: repeat(2, 200px);
    gap: 16px;
    padding-block: 16px 24px;
  }
}

/* Buy box */
.buy-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.buy-box > * {
  margin: 0;
}
.buy-box__title {
  overflow-wrap: break-word;
}
.buy-box__meta {
  margin-top: -6px;
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.buy-box .badge-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  pointer-events: none; /* a swipe that starts on a badge still moves the photo */
}
.buy-box__stock {
  font-size: var(--fs-body);
  font-weight: 600;
}
.buy-box__stock::before {
  width: 10px;
  height: 10px;
}
.buy-box__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buy-box .qty-label {
  font-size: var(--fs-body);
}
.buy-box .qty-stepper__btn svg {
  width: 24px;
  height: 24px;
}
.buy-box__cta.button {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}
.buy-box__restock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.buy-box__restock p {
  margin: 0;
}
.buy-box__call.button {
  min-height: var(--tap-primary);
}
/* spare parts: the code people search by, with a button that copies it */
.buy-box__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: var(--tap);
  margin-top: -6px;
  font-size: var(--fs-body);
}
.buy-box__code strong {
  font-weight: 700;
}
.buy-box__copy {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.buy-box__copy:hover {
  border-color: var(--brand-green-dark);
  color: var(--brand-green-dark);
}
.compat__title {
  margin: 0 0 8px;
  font-size: var(--fs-body);
  font-weight: 700;
}
.compat__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compat__list > li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface-soft);
  font-size: 1rem;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .buy-box__call.button {
    align-self: stretch;
  }
}
@media (min-width: 1024px) {
  .buy-box {
    gap: 16px;
  }
  .buy-box__meta,
  .buy-box__code {
    margin-top: -10px;
  }
  .buy-box .badge-stack {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  /* quantity and button on one row, both 56px tall */
  .buy-box__form {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }
  .buy-box .qty-stepper__btn,
  .buy-box .qty-stepper__input {
    height: 54px;
  }
  .buy-box__cta.button {
    flex: 1;
    width: auto;
  }
}

/* Trust box */
.trust-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}
.trust-box__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}
.trust-box__item svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--brand-green-dark);
}
/* a link inside a sentence is not told apart by its colour alone */
.trust-box__item a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Specs table */
.specs {
  width: 100%;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-radius: var(--radius);
  border-spacing: 0;
  overflow: hidden;
}
.specs th,
.specs td {
  padding: 10px 12px;
  line-height: 1.4;
  text-align: start;
  vertical-align: top;
}
.specs th {
  width: 45%;
  color: var(--text);
  font-weight: 600;
}
.specs tr:nth-child(odd) > * {
  background-color: var(--surface-soft);
}
.specs tr + tr > * {
  border-top: 1px solid var(--border);
}

/* Similar products */
/* Up to 768px a row that scrolls sideways, with its scrollbar; a grid above. */
.similar {
  margin-top: 40px;
}
.similar__list {
  display: flex;
  gap: 12px;
  margin-inline: -16px;
  padding: 6px 16px 12px;
  overflow-x: auto;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.similar__list > .product-card {
  flex: 0 0 min(72vw, 280px);
  scroll-snap-align: start;
}
@media (min-width: 769px) {
  .similar__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  /* one full row: 3 cards here, 4 from 1024px */
  .similar__list > .product-card:nth-child(n + 4) {
    display: none;
  }
}
@media (min-width: 1024px) {
  .similar {
    margin-top: 48px;
  }
  .similar__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .similar__list > .product-card:nth-child(4) {
    display: flex;
  }
}

/* Sticky order bar */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: 0 -4px 16px rgba(31, 42, 26, 0.1);
}
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-block: 8px;
}
.sticky-cta__price {
  margin: 0;
  color: var(--brand-green-dark);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
.sticky-cta__price--sale {
  color: var(--brand-green-dark);
}
.sticky-cta .button {
  min-height: var(--tap-primary);
}
.product .sticky-cta .button.is-primary {
  min-width: 0;
  padding: 0 0.75em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.sticky-cta .button:only-child {
  flex: 1;
}
@media (max-width: 1023px) {
  /* the bar must not cover the end of the page or a toast */
  .has-sticky-cta .site-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .has-sticky-cta .toast-region {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* Added-to-cart modal */
.added-modal .modal-card-head {
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.added-modal .modal-card-title {
  flex-shrink: 1;
  min-width: 0;
  margin: 0;
  padding-top: 8px;
  line-height: 1.25;
}
.added-modal .modal-card-body {
  padding: 16px;
}
.added-modal__product {
  display: flex;
  align-items: center;
  gap: 12px;
}
.added-modal__img {
  flex: none;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  object-fit: contain;
}
.added-modal__name {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}
.added-modal__qty {
  margin: 2px 0 0;
}
.added-modal__cart {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-soft);
  font-weight: 600;
}
.added-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}
.added-modal__actions .button {
  width: 100%;
  min-height: var(--tap-primary);
  margin: 0;
}
@media (min-width: 560px) {
  .added-modal__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Cart */

/* Page layout */
/* data-cart-state on .cart shows one block: "loading" (grey blocks while the
   prices are read), "filled" (lines and summary), "empty" or "error". */
.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.cart > * {
  min-width: 0;
}
.cart__steps {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
}
.cart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.cart__title {
  margin: 0;
}
.cart__count {
  margin: 0;
  color: var(--text-muted);
}
.cart__lines,
.cart__skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}
.cart__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 24px;
  margin-top: 24px;
}
.cart__empty {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.cart__noscript {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}
.cart__noscript a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}
.cart:not([data-cart-state="loading"]) .cart__skeleton,
.cart:not([data-cart-state="loading"]) .cart__loading,
.cart[data-cart-state="loading"] .cart__count-n,
.cart:not([data-cart-state="empty"]) .cart__empty,
.cart:not([data-cart-state="error"]) .cart__error,
.cart[data-cart-state="empty"] > .cart__lines,
.cart[data-cart-state="empty"] > .cart__side,
.cart[data-cart-state="empty"] .cart__count,
.cart[data-cart-state="error"] > .cart__lines,
.cart[data-cart-state="error"] > .cart__side,
.cart[data-cart-state="error"] .cart__count {
  display: none;
}
@media (min-width: 769px) and (max-width: 1023px) {
  .cart__side {
    width: 100%;
    max-width: 480px;
    margin-inline-start: auto;
  }
}
@media (min-width: 1024px) {
  .cart {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    grid-template-rows: auto auto 1fr; /* a summary taller than the lines stretches the last row only */
    column-gap: 32px;
  }
  .cart > * {
    grid-column: 1 / -1;
  }
  .cart > .cart__head,
  .cart > .cart__lines {
    grid-column: 1;
  }
  .cart > .cart__side {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    margin-top: 0;
  }
}

/* Cart line */
/* Up to 768px three rows: photo and name, quantity and line total, "Șterge".
   From 769px one row: photo, name, quantity, then the total over "Șterge". */
.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}
.cart-line > * {
  margin: 0;
}
.cart-line__media {
  flex: none;
  align-self: flex-start;
  display: block;
  width: 88px;
  height: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
}
.cart-line__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-line__info {
  flex: 1 1 calc(100% - 100px); /* fills the row next to the photo, so the quantity starts a new one */
  align-self: flex-start;
  min-width: 0;
}
.cart-line__name {
  margin: 0;
  font-size: 1.0625rem; /* 17px at every width */
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}
/* 11px above and below one line of the name make it a 44px target */
.cart-line__name a {
  position: relative;
  z-index: 1;
  display: block;
  margin-block: -11px;
  padding-block: 11px;
  color: var(--text);
}
.cart-line__name a:hover {
  color: var(--brand-green-dark);
}
.cart-line__meta {
  margin: 0; /* two lines of name and two of these stay within the 88px of the photo */
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.cart-line__qty {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cart-line__update.button {
  min-height: var(--tap-primary);
}
.cart-line__total {
  flex: none;
  margin-inline-start: auto;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.cart-line__remove {
  flex: 0 0 100%;
  display: flex;
}
.cart-line__remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-line__remove-btn:hover {
  color: var(--sale-red);
  text-decoration-thickness: 2px;
}
.cart-line__remove-btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}
/* a product that can no longer be ordered: no quantity, no total */
.cart-line--off {
  background-color: #f6f6f6; /* --text-muted on it: 5.6:1 */
}
.cart-line--off .cart-line__media img {
  opacity: 0.6; /* the photo only, never text */
}
.cart-line--off .cart-line__name,
.cart-line--off .cart-line__name a {
  color: var(--text-muted);
}
.cart-line__notice {
  flex: 0 0 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.cart-line__notice svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--sale-red);
}
@media (min-width: 769px) {
  .cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto minmax(112px, auto);
    grid-template-areas:
      "media info qty total"
      "media info qty remove";
    gap: 0 16px;
    padding: 16px;
  }
  .cart-line__media {
    grid-area: media;
    width: 96px;
    height: 96px;
  }
  .cart-line__info {
    grid-area: info;
  }
  .cart-line__qty {
    grid-area: qty;
  }
  .cart-line__total {
    grid-area: total;
    justify-self: end;
  }
  .cart-line__remove {
    grid-area: remove;
    justify-self: end;
  }
  .cart-line--off {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "media info remove"
      "media notice remove";
  }
  .cart-line__notice {
    grid-area: notice;
    align-self: start;
    margin-top: 8px;
  }
}

/* Loading blocks */
/* The boxes of a real line without its text, so nothing moves when the lines arrive. */
.skeleton-bar {
  display: block;
  height: 14px;
  border-radius: 4px;
  background-color: var(--border);
}
.cart-line--skeleton .cart-line__media {
  border-color: var(--border);
  background-color: var(--border);
}
.cart-line--skeleton .cart-line__info .skeleton-bar {
  width: 55%;
  margin-top: 10px;
}
.cart-line--skeleton .cart-line__info .skeleton-bar:first-child {
  width: 90%;
  height: 18px;
  margin-top: 2px;
}
.cart-line--skeleton .cart-line__qty {
  width: 162px;
  height: 50px;
  border-radius: var(--radius);
  background-color: var(--border);
}
.cart-line--skeleton .cart-line__total {
  width: 96px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--border);
}
.cart-line--skeleton .cart-line__remove {
  align-items: center;
  min-height: var(--tap);
}
.cart-line--skeleton .cart-line__remove .skeleton-bar {
  width: 76px;
}

/* Order summary */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}
.cart-summary > * {
  margin: 0;
}
.cart-summary__title {
  font-size: var(--fs-h3);
  font-weight: 700;
}
.cart-summary__rows {
  display: grid;
  gap: 8px;
}
.cart-summary__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
/* the value takes the rest of the row, so a longer text wraps inside it */
.cart-summary__row dd {
  flex: 1;
  font-weight: 600;
  text-align: end;
}
/* a value that is not known yet */
.cart-summary__row dd:empty::before {
  content: "";
  display: inline-block;
  width: 88px;
  height: 0.8em;
  border-radius: 4px;
  background-color: var(--border);
}
.cart-summary__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.375rem; /* 22px */
  line-height: 1.3;
}
.cart-summary__row--total dt,
.cart-summary__row--total dd {
  font-weight: 800;
}
.cart-summary__cta.button {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}
.cart-summary__back {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-weight: 600;
}
.cart-summary__back svg {
  flex: none;
  width: 18px;
  height: 18px;
}

/* What happens next */
.cart-next__title {
  margin: 0 0 12px;
  font-size: 1.25rem; /* 20px at every width */
}
.cart-next__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cart-next;
}
.cart-next__list > li {
  position: relative;
  min-height: 28px;
  margin: 0;
  padding: 1px 0 0 40px;
  line-height: 1.45;
  counter-increment: cart-next;
}
.cart-next__list > li::before {
  content: counter(cart-next);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--surface-soft);
  color: var(--brand-green-dark);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
}

/* Sticky total bar */
/* The total over its label on the left, the button on the rest of the row;
   a total too long for that moves the button onto a second row. */
.sticky-cta--cart .sticky-cta__inner {
  flex-wrap: wrap;
  gap: 6px 12px;
}
.sticky-cta--cart .sticky-cta__price {
  display: flex;
  flex-direction: column;
  color: var(--text);
  line-height: 1.2;
}
.sticky-cta__label {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 400;
}
.sticky-cta--cart .button {
  flex: 1 1 auto;
  padding-inline: 12px;
}

/* Mini-cart */
/* Opens under the header cart button, only for a mouse from 1024px. The top
   padding of the panel is the gap the pointer crosses on its way down. */
.mini-cart {
  position: relative;
  flex: none;
}
.mini-cart__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  width: 380px;
  padding-top: 8px;
}
.mini-cart__box {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.mini-cart__title {
  flex: none;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.mini-cart__note {
  margin: 0;
  padding: 16px;
  color: var(--text-muted);
}
.mini-cart__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mini-cart__list > li + li {
  border-top: 1px solid var(--border);
}
.mini-cart__line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 16px;
  color: var(--text);
}
.mini-cart__line[href]:hover {
  background-color: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}
.mini-cart__line:focus-visible {
  outline-offset: -3px; /* the list cuts off what is outside it */
}
.mini-cart__media {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
}
.mini-cart__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-cart__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mini-cart__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
}
.mini-cart__meta {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.3;
}
.mini-cart__line.is-off .mini-cart__name {
  color: var(--text-muted);
}
.mini-cart__line.is-off img {
  opacity: 0.6;
}
.mini-cart__more {
  flex: none;
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.mini-cart__foot {
  flex: none;
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}
.mini-cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  font-weight: 600;
}
.mini-cart__total strong {
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}
.mini-cart__foot .button {
  width: 100%;
  min-height: var(--tap-primary);
}

/* Checkout */

/* Page layout */
/* data-checkout-state on .checkout shows one block: "form", "empty",
   "unavailable" (nothing in the cart can be ordered) or "error". */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.checkout > * {
  min-width: 0;
}
.checkout__steps,
.confirm__steps {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
}
.checkout__head {
  margin-bottom: 16px;
}
.checkout__title {
  margin: 0;
}
.checkout__intro {
  max-width: 60ch;
  margin: 8px 0 0;
}
.checkout__side {
  margin-bottom: 24px;
}
.checkout__empty,
.checkout__unavailable,
.checkout__error {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.checkout:not([data-checkout-state="form"]) > .checkout__side,
.checkout:not([data-checkout-state="form"]) > .checkout__form,
.checkout:not([data-checkout-state="form"]) .checkout__intro,
.checkout:not([data-checkout-state="empty"]) > .checkout__empty,
.checkout:not([data-checkout-state="unavailable"]) > .checkout__unavailable,
.checkout:not([data-checkout-state="error"]) > .checkout__error {
  display: none;
}
@media (min-width: 769px) {
  .checkout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto 1fr; /* a summary taller than the form stretches the last row only */
    column-gap: 24px;
  }
  .checkout > * {
    grid-column: 1 / -1;
  }
  .checkout > .checkout__head,
  .checkout > .checkout__form {
    grid-column: 1;
  }
  .checkout > .checkout__side {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    margin-bottom: 0;
  }
}
/* The summary follows the page only in a window tall enough to show all of
   it; more than five products then scroll inside the box, above the totals. */
@media (min-width: 769px) and (min-height: 700px) {
  .checkout > .checkout__side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
  .checkout__side .order-lines {
    max-height: 320px;
    padding-inline-end: 4px;
    overflow-y: auto;
  }
}
@media (min-width: 1024px) {
  .checkout {
    column-gap: 32px;
  }
}

/* Checkout header */
/* Up to 768px the checkout keeps the logo and "Sună" only: no menu, no cart
   button, no search. The cart stays one tap away through the first step. */
.is-checkout .search-strip,
.is-checkout .site-header__mobile > .hdr-btn {
  display: none;
}
.is-checkout .site-header__mobile {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: 16px 8px;
}
.is-checkout .site-header__mobile .site-logo {
  justify-self: start;
}

/* Step that leads back */
.steps__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: var(--tap);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.steps__link .steps__label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.steps__link:hover {
  color: var(--brand-green-dark);
  text-decoration: none;
}
.steps__link:hover .steps__label {
  color: var(--brand-green-dark);
  text-decoration-thickness: 2px;
}

/* Checkout form */
.checkout__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: none;
}
.checkout__form > * {
  min-width: 0;
  margin: 0;
}
.checkout__form .field:not(:last-child) {
  margin-bottom: 0;
}
.checkout__form .input {
  height: 52px;
}
.checkout__form .textarea {
  min-height: 104px;
}
.label__req {
  color: var(--sale-red);
}
.checkout__submit.button {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}
.checkout__privacy {
  margin: 12px 0 0;
  color: var(--text);
  font-size: var(--fs-small);
}
.checkout__privacy a,
.form-alert a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
@media (min-width: 769px) {
  .checkout__form {
    max-width: 560px;
  }
}

/* Form problems */
/* The list shown after a refused submit, and the message of a failed one. */
.form-errors,
.form-alert > p {
  padding: 12px 16px;
  border: 2px solid var(--sale-red);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
}
.form-errors__title {
  margin: 0 0 4px;
  font-size: var(--fs-body);
  font-weight: 700;
}
.form-errors__list {
  margin: 0;
  padding-inline-start: 1.25em;
  list-style: disc;
}
.form-errors__list > li {
  margin: 0;
}
.form-errors__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--sale-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-errors__list a:hover {
  color: var(--sale-red);
  text-decoration-thickness: 2px;
}
.form-alert > p {
  margin: 0 0 12px;
}
.form-alert a {
  white-space: nowrap;
}

/* Summary toggle */
/* Up to 768px the summary is closed under this button; "2 produse · 25 597 lei"
   has a line of its own, so the button is as tall before the prices arrive. */
.summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.summary-toggle__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.summary-toggle__label {
  color: var(--brand-green-dark);
  font-weight: 700;
}
.summary-toggle__meta {
  min-height: 1.35em;
}
.summary-toggle__meta:empty::before {
  content: "";
  display: inline-block;
  width: 168px;
  max-width: 100%;
  height: 0.8em;
  border-radius: 4px;
  background-color: var(--border);
}
.summary-toggle svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--brand-green-dark);
  transition: transform 150ms ease-out;
}
.summary-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.checkout__summary {
  display: flow-root; /* keeps the margin of the box inside what opens and closes */
}
@media (max-width: 768px) {
  .checkout__summary > .order-summary {
    margin-top: 8px;
  }
}

/* Order lines */
/* Photo, name with "× 2", line total; a total that does not fit next to the
   name moves under it. Used by the checkout summary and the confirmation. */
.order-summary__note {
  color: var(--text-muted);
}
.order-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.order-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.order-line__media {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
}
.order-line__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.order-line__body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  min-width: 0;
  min-height: 48px;
  align-content: center;
  font-size: var(--fs-small);
  line-height: 1.35;
}
.order-line__text {
  flex: 1 1 11em;
  min-width: 0;
  overflow-wrap: break-word;
}
.order-line__name {
  font-weight: 600;
}
.order-line__qty {
  color: var(--text-muted);
  white-space: nowrap;
}
.order-line__total {
  flex: none;
  margin-inline-start: auto;
  font-weight: 700;
  white-space: nowrap;
}

/* Payment box */
.pay-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}
.pay-box__title {
  margin: 0 0 8px;
  font-size: var(--fs-body);
  font-weight: 700;
}
.pay-box__list {
  display: grid;
  gap: 8px;
}
.pay-box__list > li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pay-box__list svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--brand-green-dark);
}

/* Confirmation */
/* data-confirm-state on .confirm: "order" (number, phone and products are
   known) or "generic" (the same page without them). */
.confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.confirm > * {
  min-width: 0;
  margin-block: 0;
}
.confirm__head {
  text-align: center;
}
.confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--brand-green-dark);
  color: #ffffff;
}
.confirm__icon svg {
  width: 44px;
  height: 44px;
}
.confirm__title {
  margin: 0;
}
.confirm__number {
  margin: 8px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.confirm__number strong {
  font-weight: 700;
  white-space: nowrap;
}
.confirm__call {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  font-size: 1.125rem;
  text-align: center;
}
.confirm__call p {
  margin: 0;
}
.confirm__call .confirm__hours {
  margin-top: 8px;
}
.confirm__phone {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
.confirm__wrong {
  text-align: center;
}
.confirm__wrong a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 700;
  white-space: nowrap;
}
.confirm__order {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.confirm__order > * {
  margin: 0;
}
.confirm__order-title {
  font-size: var(--fs-h3);
  font-weight: 700;
}
.confirm__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.375rem; /* 22px */
  font-weight: 800;
  line-height: 1.3;
}
.confirm__total strong {
  font-weight: 800;
  white-space: nowrap;
}
.confirm__back.button {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}
.confirm[data-confirm-state="generic"] .confirm__number,
.confirm[data-confirm-state="generic"] .confirm__text--order,
.confirm[data-confirm-state="generic"] .confirm__order,
.confirm[data-confirm-state="order"] .confirm__text--generic {
  display: none;
}

/* Blog list */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 24px;
}
.post-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-card img {
  display: block;
  width: 100%;
  height: 12rem;
  margin-bottom: 12px;
  object-fit: contain;
}
.post-card time {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* Content pages */

/* Page layout */
/* A page of the `pages` table takes the whole width of the container, like
   the listing and the product page. With a table of contents the text is 9/12
   and the contents 3/12 from 1024px, in a column that follows the page. */
.info-page__article > * {
  min-width: 0;
}
.info-page__title {
  margin: 0 0 8px;
}
.info-page__updated {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.info-page__summary {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  font-weight: 600;
}
.info-page__body.prose {
  max-width: none; /* the text fills its column */
}
.info-page__body > :first-child {
  margin-top: 0;
}
@media (min-width: 1024px) {
  .info-page--toc .info-page__article {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 48px;
    align-items: start;
  }
  .info-page--toc .info-page__article > * {
    grid-column: 1;
  }
  .info-page--toc .info-page__article > .page-toc {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* Table of contents */
/* Up to 768px a closed list under a "Cuprins" button; a box above the text
   up to 1023px; from 1024px the right column, which stays in view. */
.page-toc {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.page-toc__title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
}
.page-toc__title > span {
  display: block;
  padding: 14px 16px 4px;
}
.page-toc__toggle {
  width: 100%;
  min-height: var(--tap-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.page-toc__toggle svg {
  flex: none;
  width: 24px;
  height: 24px;
  transition: transform 160ms ease-out;
}
.page-toc__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.page-toc__list {
  padding: 0 16px 8px;
}
.page-toc__list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: 8px;
  line-height: 1.3;
}
.page-toc__list .page-toc__subheading {
  padding-inline-start: 16px;
}
@media (min-width: 1024px) {
  .page-toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    margin-bottom: 0;
    overflow-y: auto;
  }
  .page-toc__list a {
    font-size: 1rem;
  }
}

/* Content elements */
/* What the text of a page may contain besides headings, paragraphs and lists. */
.prose a.button {
  text-decoration: none;
}
.prose img {
  display: block;
  border-radius: var(--radius);
}
.prose figure {
  margin: 0 0 1em;
}
.prose figcaption {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.prose address {
  margin: 0 0 1em;
  font-style: normal;
}
.prose abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}
.prose table {
  width: 100%;
  margin: 0 0 1em;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-radius: var(--radius);
  border-spacing: 0;
  overflow: hidden;
}
.prose caption {
  padding-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  text-align: start;
}
.prose th,
.prose td {
  padding: 10px 12px;
  line-height: 1.4;
  text-align: start;
  vertical-align: top;
}
.prose th {
  background-color: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}
.prose thead th {
  border-bottom: 1px solid var(--border);
}
.prose tr + tr > * {
  border-top: 1px solid var(--border);
}
/* A table with many columns: up to 768px every row is a card and every cell
   carries the name of its column (data-label). */
@media (max-width: 768px) {
  .prose .table-cards,
  .prose .table-cards tbody,
  .prose .table-cards tr,
  .prose .table-cards td,
  .prose .table-cards th,
  .prose .table-cards caption {
    display: block;
  }
  .prose .table-cards {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .prose .table-cards thead {
    display: none;
  }
  .prose .table-cards tr {
    padding: 4px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .prose .table-cards tr + tr {
    margin-top: 12px;
  }
  .prose .table-cards tbody > tr > * {
    padding: 6px 12px;
    border-top: 0;
    background-color: transparent;
    font-weight: 400;
  }
  .prose .table-cards [data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--text-muted);
    font-size: var(--fs-small);
    font-weight: 600;
  }
  .prose .table-cards tbody > tr > :first-child {
    font-weight: 700;
  }
}
/* Question and answer */
.prose details {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.prose summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap-primary);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.prose summary::-webkit-details-marker {
  display: none;
}
.prose summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 160ms ease-out;
}
.prose details[open] > summary::after {
  transform: rotate(180deg);
}
.prose details > :not(summary) {
  margin: 0;
  padding: 0 16px 14px;
}
/* Text a lawyer still has to confirm; the server can strip the element. */
.legal-review {
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #fff1b8;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.contacts > * {
  min-width: 0;
}
.contacts__title {
  margin: 0;
}
.contacts__col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 24px;
}
.contacts__col > * {
  min-width: 0;
}
.contacts__block > h2 {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  font-weight: 700;
}
.contacts__block > :last-child {
  margin-bottom: 0;
}
.contacts__block address {
  margin: 0 0 12px;
  font-style: normal;
}
.contacts__phones {
  display: grid;
  /* side by side only where both numbers fit on one line each */
  grid-template-columns: repeat(auto-fit, minmax(min(264px, 100%), 1fr));
  gap: 12px;
}
.phone-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  min-height: 56px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  color: var(--text);
}
.phone-card:hover {
  border-color: var(--brand-green-dark);
  color: var(--text);
  text-decoration: none;
}
.phone-card svg {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  color: var(--brand-green-dark);
}
.phone-card__label {
  font-size: var(--fs-small);
  line-height: 1.3;
}
.phone-card__number {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.phone-card__cta.button {
  grid-column: 1 / -1;
  min-height: var(--tap-primary);
  margin-top: 8px;
}
.contacts__map {
  margin: 0;
}
.contacts__map img,
.contacts__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: cover;
}
.contacts__map .button {
  margin-top: 12px;
}
.contacts__email {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contacts__company {
  margin: 0;
}
.contacts__company > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.contacts__company > div + div {
  margin-top: 4px;
}
.contacts__company dt {
  color: var(--text-muted);
}
.contacts__company dd {
  margin: 0;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
  .contacts__title {
    grid-column: 1 / -1;
  }
}

/* Page not found */
.not-found {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.not-found > * {
  min-width: 0;
}
.not-found__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
  padding-top: 16px;
  text-align: center;
}
.not-found__head > * {
  margin: 0;
}
.not-found__icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
}
.not-found .search-form {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.not-found__cats-title {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  font-weight: 700;
  text-align: center;
}
.not-found__home {
  text-align: center;
}
.not-found__home .button {
  min-height: var(--tap-primary);
}

/* Cookie consent */

/* Cookie banner */
/* A bar at the bottom up to 1023px, a box in the bottom left corner above.
   It never covers the page with a backdrop and never takes the focus. While
   it is on screen <html> carries its height in --consent-h, so toasts and the
   end of the page stay clear of it. */
.consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 35; /* over the header, under modals and off-canvas panels */
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: 0 -4px 16px rgba(31, 42, 26, 0.12);
}
.consent-banner__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}
.consent-banner__text {
  margin: 0;
  color: var(--text);
  font-size: 1.0625rem; /* 17px at every width */
  line-height: 1.45;
}
.consent-banner__text a,
.consent-banner__settings {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.consent-banner__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
/* accept and refuse: the same width, height and weight */
.consent-banner__actions--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.consent-banner__actions .button {
  width: 100%;
  height: 100%;
  min-height: var(--tap-primary);
  margin: 0;
  padding-inline: 8px;
  white-space: normal;
}
.consent-banner__settings {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: var(--tap);
  font-weight: 600;
}
@media (max-width: 1023px) {
  .toast-region {
    bottom: calc(16px + var(--consent-h, 0px));
  }
  .has-sticky-cta .toast-region {
    bottom: max(calc(80px + env(safe-area-inset-bottom, 0px)), calc(16px + var(--consent-h, 0px)));
  }
  /* a border, because the sticky order bar already uses the padding */
  .site-footer {
    border-bottom: var(--consent-h, 0px) solid var(--footer-bg);
  }
}
@media (min-width: 1024px) {
  .consent-banner {
    inset: auto auto 24px 24px;
    width: 420px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(31, 42, 26, 0.18);
  }
}
/* the same box inside a page, for a preview */
.consent-banner--static {
  position: static;
  width: auto;
  max-width: 420px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

/* Switch */
/* button[role="switch"]: 52×32 track and the state in words next to it. */
.switch {
  display: inline-flex;
  flex-direction: row-reverse; /* the track at the end of the row, the word before it */
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.switch__track {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background-color: var(--out-of-stock);
  transition: background-color 120ms ease-out;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: transform 120ms ease-out;
}
.switch[aria-checked="true"] .switch__track {
  background-color: var(--brand-green-dark);
}
.switch[aria-checked="true"] .switch__thumb {
  transform: translateX(20px);
}
.switch__state {
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Cookie settings modal */
.cookie-modal .modal-card {
  max-width: 560px;
}
.cookie-modal .modal-card-head {
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.cookie-modal .modal-card-title {
  flex-shrink: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}
.cookie-modal .modal-card-body {
  padding: 16px;
}
.cookie-cats {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.cookie-cat {
  padding-block: 8px;
  border-bottom: 1px solid var(--border);
}
.cookie-cat__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  min-height: var(--tap);
}
.cookie-cat__name {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
}
.cookie-cat__always {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
}
.cookie-cat__more > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  color: var(--brand-green-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-cat__more > p {
  margin: 0 0 8px;
  font-size: var(--fs-small);
}
.cookie-modal__policy {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* "Salvează alegerile" on a row of its own; under it refuse and accept, the
   same width, height and weight. */
.cookie-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}
.cookie-modal__actions .button {
  width: 100%;
  height: 100%;
  min-height: var(--tap-primary);
  margin: 0;
  padding-inline: 8px;
  white-space: normal;
}
.cookie-modal__actions .cookie-modal__save {
  grid-column: 1 / -1;
}

/* Keep the keyboard focus ring inside the page edges. */
#main:focus-visible {
  outline-offset: -3px;
}
