/* =============================================================================
   rea.bg theme — design system
   Source of truth: mockups/REA.bg — нов дизайн.html (decoded copy: mockups/source/*.html)
   Loaded after Bootstrap 5 (OpenCart default), so default templates keep working and
   pick up the tokens through the --bs-* variables.
   ========================================================================== */

/* ---------- Fonts (SIL OFL 1.1 — see ../fonts/OFL-*.txt). Variable fonts: one file per subset. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens */
:root {
  --rea-primary: #8C2028;        /* bordeaux: buttons, hero, accents */
  --rea-primary-hover: #A02A33;
  --rea-ink: #231F20;            /* text, top bar, footer, dark buttons */
  --rea-ink-soft: #3F3B3C;
  --rea-muted: #58595B;          /* secondary text */
  --rea-line: #ECE8E1;           /* borders, dividers */
  --rea-line-strong: #DAD6D6;    /* outline buttons, inputs */
  --rea-surface: #F6F3EE;        /* search field, soft panels */
  --rea-surface-2: #F1ECE4;
  --rea-pink: #E8A6AD;
  --rea-pink-soft: #F7EDEE;
  --rea-white: #FFFFFF;
  --rea-tint-beige: #F3E6D3;
  --rea-tint-pink: #F5E6E7;
  --rea-tint-lavender: #E8E4F0;
  --rea-tint-sand: #F1ECE4;
  --rea-tint-blue: #E4EEF4;
  --rea-tint-rose: #F4E4E1;

  --rea-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rea-font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;

  --rea-container: 1320px;
  --rea-gutter: 24px;
  --rea-radius-sm: 6px;
  --rea-radius: 12px;
  --rea-radius-md: 16px;
  --rea-radius-lg: 20px;
  --rea-radius-pill: 999px;
  --rea-focus: 0 0 0 3px rgba(140, 32, 40, .25);

  /* Bootstrap 5 bridge: default OpenCart templates inherit the look */
  --bs-body-font-family: var(--rea-font);
  --bs-body-color: var(--rea-ink);
  --bs-body-bg: var(--rea-white);
  --bs-primary: var(--rea-primary);
  --bs-primary-rgb: 140, 32, 40;
  --bs-link-color: var(--rea-ink);
  --bs-link-color-rgb: 35, 31, 32;
  --bs-link-hover-color: var(--rea-primary);
  --bs-link-hover-color-rgb: 140, 32, 40;
  --bs-border-color: var(--rea-line);
  --bs-border-radius: var(--rea-radius);
  --bs-secondary-color: var(--rea-muted);
}

/* ---------- Base */
/* "locl" off: with lang="bg" Manrope/Unbounded switch to Bulgarian cursive-style forms (д→g, т→m);
   the mockup uses the standard Cyrillic forms. */
body.rea-theme { font-family: var(--rea-font); color: var(--rea-ink); background: var(--rea-white); -webkit-font-smoothing: antialiased;
  font-feature-settings: "locl" 0; }
body.rea-theme input, body.rea-theme button, body.rea-theme select, body.rea-theme textarea { font-feature-settings: "locl" 0; }
/* Not for links that look like buttons (a.btn): they keep the button's own colours. :where() adds no specificity,
   so the rules for links in other places still win. */
body.rea-theme a:where(:not(.btn), .btn-link) { color: var(--rea-ink); }
body.rea-theme a:where(:not(.btn), .btn-link):hover { color: var(--rea-primary); }
body.rea-theme h1, body.rea-theme h2, body.rea-theme .rea-display { font-family: var(--rea-font-display); font-weight: 600; letter-spacing: -.01em; }
body.rea-theme h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
body.rea-theme h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
body.rea-theme h3, body.rea-theme h4, body.rea-theme h5 { font-family: var(--rea-font); font-weight: 800; }
body.rea-theme :focus-visible { outline: none; box-shadow: var(--rea-focus); border-radius: 4px; }

.rea-container { max-width: var(--rea-container); margin: 0 auto; padding: 0 var(--rea-gutter); }
/* Default OpenCart pages use .container — align it with the design grid. */
body.rea-theme .container { max-width: var(--rea-container); padding-left: var(--rea-gutter); padding-right: var(--rea-gutter); }
.rea-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rea-skip { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--rea-ink); color: #fff !important; padding: 10px 16px; border-radius: var(--rea-radius-sm); }
.rea-skip:focus { top: 8px; }
.rea-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons */
.rea-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--rea-radius-pill);
  border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.rea-btn--primary { background: var(--rea-primary); color: #fff !important; }
.rea-btn--primary:hover { background: var(--rea-primary-hover); }
.rea-btn--dark { background: var(--rea-ink); color: #fff !important; }
.rea-btn--dark:hover { background: var(--rea-ink-soft); }
.rea-btn--outline { background: #fff; color: var(--rea-ink) !important; border-color: var(--rea-line-strong); }
.rea-btn--outline:hover { border-color: var(--rea-ink); }
.rea-btn--light { background: #fff; color: var(--rea-primary) !important; }
.rea-btn--block { width: 100%; }
body.rea-theme .btn-primary { --bs-btn-bg: var(--rea-primary); --bs-btn-border-color: var(--rea-primary); --bs-btn-hover-bg: var(--rea-primary-hover);
  --bs-btn-hover-border-color: var(--rea-primary-hover); --bs-btn-active-bg: var(--rea-primary-hover); --bs-btn-disabled-bg: var(--rea-primary); --bs-btn-disabled-border-color: var(--rea-primary); }
/* The core's light button has white text on light grey on hover and when active. */
body.rea-theme .btn-light { --bs-btn-color: var(--rea-ink); --bs-btn-hover-color: var(--rea-ink); --bs-btn-hover-bg: var(--rea-surface-2);
  --bs-btn-hover-border-color: var(--rea-line-strong); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--rea-ink); --bs-btn-active-border-color: var(--rea-ink); }
/* The other kinds on the default pages: the core's cyan, orange, red and blue are too light for their text. */
body.rea-theme .btn-info { --bs-btn-color: #fff; --bs-btn-bg: var(--rea-ink); --bs-btn-border-color: var(--rea-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rea-ink-soft);
  --bs-btn-hover-border-color: var(--rea-ink-soft); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--rea-ink-soft); --bs-btn-active-border-color: var(--rea-ink-soft);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--rea-ink); --bs-btn-disabled-border-color: var(--rea-ink); }
body.rea-theme .btn-danger { --bs-btn-color: #fff; --bs-btn-bg: #B3261E; --bs-btn-border-color: #B3261E; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #8F1E18;
  --bs-btn-hover-border-color: #8F1E18; --bs-btn-active-color: #fff; --bs-btn-active-bg: #8F1E18; --bs-btn-active-border-color: #8F1E18;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #B3261E; --bs-btn-disabled-border-color: #B3261E; }
body.rea-theme .btn-warning { --bs-btn-color: var(--rea-ink); --bs-btn-bg: #FAA732; --bs-btn-border-color: #FAA732; --bs-btn-hover-color: var(--rea-ink); --bs-btn-hover-bg: #E8951F;
  --bs-btn-hover-border-color: #E8951F; --bs-btn-active-color: var(--rea-ink); --bs-btn-active-bg: #E8951F; --bs-btn-active-border-color: #E8951F;
  --bs-btn-disabled-color: var(--rea-ink); --bs-btn-disabled-bg: #FAA732; --bs-btn-disabled-border-color: #FAA732; }
body.rea-theme .btn-outline-primary { --bs-btn-color: var(--rea-primary); --bs-btn-bg: transparent; --bs-btn-border-color: var(--rea-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rea-primary);
  --bs-btn-hover-border-color: var(--rea-primary); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--rea-primary); --bs-btn-active-border-color: var(--rea-primary);
  --bs-btn-disabled-color: var(--rea-primary); --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: var(--rea-primary); }
body.rea-theme .btn { border-radius: var(--rea-radius-pill); font-weight: 700; }
body.rea-theme .list-group-item.active, body.rea-theme .list-group-item.active:hover { color: #fff; }
/* Default pages (search, specials…): the current page as in .rea-pagination, not the core's blue */
body.rea-theme .page-item.active .page-link { background: var(--rea-ink); border-color: var(--rea-ink); color: #fff; }

/* ---------- Top bar */
.rea-topbar { background: var(--rea-ink); color: var(--rea-surface); font-size: 13px; }
.rea-topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.rea-topbar__item { display: inline-flex; gap: 8px; align-items: center; }
.rea-topbar__item .rea-icon { width: 16px; height: 16px; stroke: var(--rea-pink); stroke-width: 2; }
body.rea-theme .rea-topbar a { color: var(--rea-surface); text-decoration: none; }
body.rea-theme .rea-topbar a:hover { color: #fff; }
.rea-topbar__tools { display: flex; gap: 16px; align-items: center; }
.rea-topbar__tools .dropdown-toggle, .rea-topbar__tools .btn-link { color: var(--rea-surface) !important; font-size: 13px; padding: 0; text-decoration: none; }

/* ---------- Header */
.rea-header { border-bottom: 1px solid var(--rea-line); background: #fff; position: relative; z-index: 1020; }
.rea-header__main { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.rea-header__logo { display: flex; align-items: center; text-decoration: none; }
.rea-header__logo img { width: auto; height: 60px; display: block; }   /* SVG 519×137 */
.rea-header__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; padding: 0; color: var(--rea-ink); }

.rea-search { flex: 999 1 420px; min-width: 0; display: flex; align-items: center; gap: 12px; background: var(--rea-surface); border: 1.5px solid var(--rea-line);
  border-radius: var(--rea-radius-pill); padding: 4px 4px 4px 20px; position: relative; }
.rea-search:focus-within { border-color: var(--rea-primary); }
.rea-search .rea-icon { width: 20px; height: 20px; stroke: var(--rea-muted); stroke-width: 2; }
.rea-search__input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--rea-ink); outline: none; box-shadow: none !important; }
.rea-search__input::placeholder { color: var(--rea-muted); }
.rea-search__button { min-height: 44px; }
.rea-search { position: relative; }
.rea-suggest { position: absolute; z-index: 1050; top: calc(100% + 8px); left: 0; right: 0; max-height: min(70vh, 640px); overflow-y: auto; padding: 8px;
  border: 1px solid var(--rea-line); border-radius: var(--rea-radius-md); background: #fff; box-shadow: 0 16px 40px rgba(35, 31, 32, .16); }
.rea-suggest[hidden] { display: none; }
.rea-suggest__note { margin: 0; padding: 8px 10px; font-size: 14px; color: var(--rea-muted); }
.rea-suggest__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: var(--rea-radius); text-decoration: none; }
.rea-suggest__item:hover, .rea-suggest__item.is-active { background: var(--rea-surface); }
.rea-suggest__item.is-active { box-shadow: inset 0 0 0 2px var(--rea-primary); }
.rea-suggest__image { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: var(--rea-radius-sm); background: #fff; }
.rea-suggest__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.rea-suggest__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; }
.rea-suggest__price { font-weight: 800; white-space: nowrap; }
.rea-suggest__price.is-special { color: var(--rea-primary); }
.rea-suggest__old { font-size: 13px; color: var(--rea-muted); white-space: nowrap; }
.rea-suggest__type { font-size: 13px; color: var(--rea-muted); }
.rea-suggest__item--all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--rea-line); border-radius: 0 0 var(--rea-radius) var(--rea-radius); font-size: 14px; font-weight: 700; }

.rea-header__nav { display: flex; gap: 8px; align-items: center; }
.rea-header__action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 4px;
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--rea-ink) !important; background: none; border: 0; }
.rea-header__action:hover, .rea-header__action.is-active { color: var(--rea-primary) !important; }
.rea-badge { position: absolute; top: 0; right: 12px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--rea-radius-pill);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; background: var(--rea-primary); }
.rea-badge--dark { background: var(--rea-ink); right: 10px; }

/* Mini cart (rendered by common/cart.twig inside #cart, reloaded via common/cart.info) */
#cart.rea-cart { margin: 0; }

/* ---------- Category navigation + mega menu */
.rea-menu { position: relative; }
.rea-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; font-weight: 700; }
.rea-menu__item { position: static; }
.rea-menu__link { display: block; padding: 14px 16px; text-decoration: none; color: var(--rea-ink) !important; border-bottom: 2px solid transparent; }
.rea-menu__item:first-child > .rea-menu__link { padding-left: 0; }
.rea-menu__link:hover, .rea-menu__item:is(.is-open, .is-active) > .rea-menu__link { color: var(--rea-primary) !important; border-bottom-color: var(--rea-primary); }
.rea-menu__link--accent { color: var(--rea-primary) !important; }
.rea-menu__toggle { display: none; }
.rea-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--rea-line); border-bottom: 1px solid var(--rea-line);
  box-shadow: 0 16px 32px rgba(35, 31, 32, .08); z-index: 1010; }
.rea-menu__item.is-open > .rea-mega { display: block; }
@media (hover: hover) and (min-width: 992px) {
  .rea-menu__item:hover > .rea-mega, .rea-menu__item:focus-within > .rea-mega { display: block; }
}
.rea-mega__inner { padding-top: 24px; padding-bottom: 28px; }
.rea-mega__list { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 32px; }
.rea-mega__list li { break-inside: avoid; }
.rea-mega__list a { display: block; padding: 7px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
/* "Марки": columns by kind of brand */
.rea-mega__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.rea-mega__group-title { margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rea-muted); }
.rea-mega__list--plain { columns: auto; }
.rea-mega__all { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 800; color: var(--rea-primary) !important; }

/* ---------- Main */
body.rea-theme main { min-height: 40vh; }
body.rea-theme #alert { position: fixed; top: 16px; right: 16px; z-index: 2000; width: min(420px, calc(100vw - 32px)); }
/* Breadcrumb as in the mockup: "Начало / Боя за коса" (core stylesheet draws arrows and a box) */
body.rea-theme .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0 14px; padding: 0; background: none; border: 0;
  border-radius: 0; font-size: 13px; color: var(--rea-muted); }
body.rea-theme .breadcrumb > li, body.rea-theme .breadcrumb-item { padding: 0 !important; text-shadow: none; }
body.rea-theme .breadcrumb > li::after, body.rea-theme .breadcrumb > li::before { content: none !important; display: none !important; }
body.rea-theme .breadcrumb > li + li::before { content: "/" !important; display: inline !important; position: static; border: 0; margin-right: 8px; color: var(--rea-muted);
  width: auto; height: auto; transform: none; background: none; }
body.rea-theme .breadcrumb a { color: var(--rea-muted); text-decoration: underline; }
body.rea-theme .breadcrumb [aria-current="page"] { color: var(--rea-ink); font-weight: 700; }
/* One line: the current page (often a long product name) is shortened with an ellipsis instead of widening the page. */
body.rea-theme .breadcrumb { flex-wrap: nowrap; min-width: 0; }
body.rea-theme .breadcrumb > li { flex: none; white-space: nowrap; }
body.rea-theme .breadcrumb > li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Core stylesheet.css makes #container and footer position:absolute with a fixed 300px footer gap
   (sticky footer). Our footer is taller, so use normal flow + flex instead. */
body.rea-theme #container { position: static; margin-bottom: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.rea-theme #container > main { flex: 1 0 auto; }
/* ...and pads #content / the columns with 400px (730px on phones) at the bottom for that footer. */
body.rea-theme #content, body.rea-theme #column-left, body.rea-theme #column-right { padding-bottom: 0; }
body.rea-theme h1, body.rea-theme h2, body.rea-theme h3, body.rea-theme h4, body.rea-theme h5, body.rea-theme h6 { color: inherit; }

/* ---------- Footer */
body.rea-theme .rea-footer { position: static; border: 0; padding-top: 0; background: var(--rea-ink); color: var(--rea-line-strong); margin-top: 56px; }
.rea-footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.rea-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.rea-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.rea-footer__brand { gap: 14px; }
.rea-footer__logo { background: #fff; border-radius: var(--rea-radius); padding: 10px 14px; align-self: flex-start; }
.rea-footer__logo img { width: auto; height: 48px; display: block; }
.rea-footer__title { margin: 0 0 6px; color: #fff; font-size: 15px; font-weight: 800; font-family: var(--rea-font); }
.rea-footer p { margin: 0; line-height: 1.6; }
body.rea-theme .rea-footer a { color: var(--rea-line-strong); text-decoration: none; }
body.rea-theme .rea-footer a:hover { color: #fff; }
body.rea-theme .rea-footer .rea-footer__phone { color: #fff; font-weight: 800; font-size: 18px; }
body.rea-theme .rea-footer .rea-footer__viber { color: var(--rea-pink); font-weight: 700; text-decoration: underline; }
.rea-footer__bottom { border-top: 1px solid #3A3536; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; }
.rea-footer__payments { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rea-footer__payments li { background: #fff; color: var(--rea-ink); font-weight: 800; font-size: 12px; border-radius: var(--rea-radius-sm); padding: 6px 10px; }

/* ---------- Alerts (core #alert toasts) */
body.rea-theme #alert .alert { border: 0; border-radius: var(--rea-radius); box-shadow: 0 12px 32px rgba(35, 31, 32, .16); font-size: 14px; }
/* The core centres it with left and margin-left, which moves it out of a phone's screen. */
@media (max-width: 575.98px) { body.rea-theme #alert { left: 16px; margin-left: 0; } }
body.rea-theme #alert .alert-success { background: var(--rea-ink); color: #fff; }
body.rea-theme #alert .alert-success a { color: var(--rea-pink); }
body.rea-theme #alert .alert-success .btn-close { filter: invert(1); }
body.rea-theme #alert .alert-danger { background: var(--rea-pink-soft); color: var(--rea-primary); }

/* ---------- Form controls */
.rea-select { height: 44px; border: 1.5px solid var(--rea-line); border-radius: 10px; padding: 0 36px 0 12px; font: inherit; font-size: 14px; color: var(--rea-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358595B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  appearance: none; }
.rea-select:focus { border-color: var(--rea-primary); outline: none; }

/* ---------- Quantity stepper */
.rea-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rea-line); border-radius: var(--rea-radius); background: #fff; }
.rea-qty__btn { width: 36px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 18px; line-height: 1; color: var(--rea-ink); cursor: pointer; }
.rea-qty__btn:hover { color: var(--rea-primary); }
.rea-qty__input { width: 28px; border: 0; padding: 0; text-align: center; font: inherit; font-weight: 800; font-size: 14px; color: var(--rea-ink); background: transparent; -moz-appearance: textfield; }
.rea-qty__input::-webkit-outer-spin-button, .rea-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Product card (product/thumb.twig) */
.rea-card { min-width: 0; }
.rea-card__form { height: 100%; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.rea-card__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--rea-radius-md); background: var(--rea-surface); overflow: hidden; }
.rea-grid--tinted .rea-card__media { background: var(--rea-card-tint, var(--rea-surface)); }
.rea-card__image { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 12%; }
/* multiply: white product photos blend into the soft background like in the mockup */
.rea-card__image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.rea-card:hover .rea-card__image img { transform: scale(1.03); }
.rea-card__shade { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: var(--rea-radius-pill);
  min-height: 30px; padding: 4px 10px; font-size: 13px; font-weight: 800; line-height: 1.2; }
.rea-card__dot { width: 22px; height: 22px; margin-left: -6px; border: 1px solid #D9D3C9; border-radius: 50%; }
.rea-card__fav { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center;
  justify-content: center; color: var(--rea-ink); cursor: pointer; }
.rea-card__fav .rea-icon { width: 20px; height: 20px; }
.rea-card__fav:hover { color: var(--rea-primary); }
.rea-card__badge { position: absolute; right: 12px; bottom: 10px; background: #fff; color: var(--rea-primary); font-size: 11px; font-weight: 800; border-radius: var(--rea-radius-sm); padding: 4px 8px; }
.rea-card__badge--discontinued { background: var(--rea-ink); color: #fff; }
.rea-card.is-discontinued .rea-card__image img { opacity: .55; filter: grayscale(.6); }
.rea-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rea-card__brand { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
body.rea-theme .rea-card__name { font-size: 14px; line-height: 1.4; color: var(--rea-ink-soft); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.rea-theme .rea-card__name:hover { color: var(--rea-primary); }
.rea-card__meta { font-size: 13px; color: var(--rea-muted); }
.rea-card__unit { font-size: 12px; color: var(--rea-muted); }
.rea-card__buy { display: flex; flex-direction: column; gap: 10px; }
.rea-card__prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rea-card__price { font-size: 19px; font-weight: 800; white-space: nowrap; }
.rea-card__price--special { color: var(--rea-primary); }
.rea-card__price--muted { color: var(--rea-muted); font-size: 16px; }
.rea-card__price--request { font-size: 16px; }
.rea-card__price-old { font-size: 13px; color: var(--rea-muted); }
.rea-card__actions { display: flex; gap: 8px; }
.rea-card__add { flex: 1; min-height: 47px; border-radius: var(--rea-radius); padding: 0 12px; font-weight: 800; }
.rea-card__add .rea-icon { width: 18px; height: 18px; stroke-width: 2; }
.rea-card__cta { min-height: 47px; border-radius: var(--rea-radius); width: 100%; text-align: center; line-height: 1.2; padding: 6px 12px; }

/* ---------- Category page */
.rea-category__head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.rea-category__intro { display: flex; flex-direction: column; gap: 8px; flex: 1 1 560px; min-width: 0; }
body.rea-theme .rea-category h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.8px; }
.rea-category__desc { font-size: 15px; line-height: 1.55; color: var(--rea-ink-soft); max-width: 760px; }
.rea-category__desc p:last-child { margin-bottom: 0; }
.rea-category__count { font-size: 14px; color: var(--rea-muted); font-weight: 600; }
.rea-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 32px; }
.rea-series__item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--rea-line); border-radius: 14px; background: #fff; text-decoration: none; }
.rea-series__item:hover { border-color: var(--rea-ink); }
.rea-series__name { font-weight: 800; font-size: 14px; line-height: 1.3; }
.rea-series__dots { display: flex; }
.rea-series__dots span { width: 22px; height: 22px; margin-right: -6px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(35, 31, 32, .06); }
.rea-series__note { font-size: 12px; color: var(--rea-muted); }
.rea-listing { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.rea-listing__sidebar { flex: 1 1 260px; max-width: 300px; }
/* core column_left/right come as <aside id="column-left" class="col-3 d-none d-md-block"> */
.rea-listing__sidebar > aside { width: 100%; max-width: none; flex: none; padding: 0; }
body.rea-theme .rea-listing__sidebar .list-group { --bs-list-group-border-color: var(--rea-line); --bs-list-group-active-bg: var(--rea-ink);
  --bs-list-group-active-border-color: var(--rea-ink); border-radius: var(--rea-radius-md); margin-bottom: 24px; font-size: 14px; }
body.rea-theme .rea-listing__sidebar .list-group-item { padding: 10px 16px; }
.rea-listing__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* Filters: a column on desktop, a Bootstrap offcanvas (offcanvas-lg) below 992px */
.rea-filters__group { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--rea-line); }
.rea-filters__group:last-child { border-bottom: 0; }
body.rea-theme .rea-filters legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; border: 0; font-family: var(--rea-font); font-size: 15px; font-weight: 800; line-height: 1.5; letter-spacing: 0; }
.rea-filters legend + * { clear: both; }
.rea-filters__note { margin: -6px 0 12px; font-size: 12px; color: var(--rea-muted); }
.rea-filters__switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rea-filters__switch label { flex: 1; font-size: 15px; font-weight: 800; cursor: pointer; }
.rea-filters__switch input { appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: var(--rea-radius-pill); background: #D9D3C9; cursor: pointer; transition: background .15s; }
.rea-filters__switch input::before { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rea-filters__switch input:checked { background: var(--rea-primary); }
.rea-filters__switch input:checked::before { transform: translateX(20px); }
body.rea-theme .rea-filters__switch input:focus-visible { border-radius: var(--rea-radius-pill); }
.rea-filters__check { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 4px; font-size: 14px; cursor: pointer; }
.rea-filters__check:last-child { margin-bottom: 0; }
.rea-filters__check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--rea-primary); }
.rea-filters__check.is-disabled { color: #8A8785; cursor: default; }
.rea-filters__pills { display: grid; gap: 8px; }
.rea-filters__pills--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rea-filters__pills--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rea-pill { position: relative; display: block; }
.rea-pill input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rea-pill__body { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 1.5px solid var(--rea-line); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 700; }
.rea-pill--left .rea-pill__body { justify-content: flex-start; padding: 0 10px; }
.rea-pill__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.rea-pill__dot--sm { width: 14px; height: 14px; border: 1px solid #D9D3C9; }
.rea-pill input:hover:not(:disabled) + .rea-pill__body { border-color: var(--rea-ink); }
.rea-pill input:checked + .rea-pill__body { border-color: var(--rea-primary); background: var(--rea-pink-soft); color: var(--rea-primary); }
.rea-pill input:focus-visible + .rea-pill__body { box-shadow: var(--rea-focus); }
.rea-pill input:disabled { cursor: default; }
.rea-pill input:disabled + .rea-pill__body { color: #8A8785; background: #FBFAF8; }
.rea-pill input:disabled + .rea-pill__body .rea-pill__dot { opacity: .4; }
.rea-filters__prices { display: flex; align-items: center; gap: 10px; }
.rea-filters__prices label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--rea-muted); }
.rea-filters__prices > span { margin-top: 18px; color: var(--rea-muted); }
.rea-filters__prices input { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--rea-line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--rea-ink); }
.rea-filters__prices input:focus { border-color: var(--rea-primary); outline: none; }
.rea-filters__prices input::placeholder { color: #8A8785; opacity: 1; }
.rea-filters__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--rea-ink); }
.rea-filters__close .rea-icon { width: 22px; height: 22px; }
@media (min-width: 992px) {
  .rea-filters { flex: 0 0 300px; min-width: 0; padding: 4px 20px; border: 1px solid var(--rea-line); border-radius: var(--rea-radius-md); }
  .rea-filters__head, .rea-filters__foot, .rea-btn.rea-toolbar__filters { display: none; }
}
@media (max-width: 991.98px) {
  body.rea-theme .rea-filters.offcanvas-lg { --bs-offcanvas-width: min(360px, 100vw); background: #fff; }
  body.rea-theme .rea-filters:focus-visible { box-shadow: none; border-radius: 0; }
  .rea-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--rea-line); }
  body.rea-theme .rea-filters__head h2 { margin: 0; font-size: 18px; }
  .rea-filters__form { flex: 1; min-height: 0; padding: 0 20px; overflow-y: auto; overscroll-behavior: contain; }
  .rea-filters__foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--rea-line); }
  .rea-filters__foot .rea-btn { flex: 1; padding: 0 12px; line-height: 1.2; }
  .rea-listing .rea-toolbar__active { order: 3; width: 100%; }
}

.rea-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.rea-toolbar__results { font-size: 14px; color: var(--rea-muted); }
.rea-toolbar__active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rea-toolbar__active .rea-toolbar__results { margin-right: 4px; }
body.rea-theme .rea-toolbar__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--rea-radius-pill); background: var(--rea-pink-soft); color: var(--rea-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
body.rea-theme .rea-toolbar__chip:hover { background: var(--rea-tint-pink); }
.rea-toolbar__chip .rea-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.rea-toolbar__clear { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; font-size: 13px; font-weight: 700; text-decoration: underline; }
.rea-toolbar__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--rea-radius-pill); background: var(--rea-primary); color: #fff; font-size: 12px; }
.rea-listing__results { display: flex; flex-direction: column; gap: 20px; transition: opacity .15s; }
.rea-listing__results[aria-busy] { opacity: .5; }
.rea-toolbar__controls { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.rea-toolbar__field { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin: 0; }
.rea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 16px; }
.rea-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rea-chips__item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--rea-line-strong); border-radius: var(--rea-radius-pill); background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.rea-chips__item:hover { border-color: var(--rea-ink); }
.rea-chips__item span { font-weight: 500; color: var(--rea-muted); }
.rea-empty .rea-chips { justify-content: center; margin: 12px 0 0; }
.rea-empty { border: 1px dashed #D9D3C9; border-radius: var(--rea-radius-md); padding: 48px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }

/* Pagination (core common/pagination.twig markup) */
.rea-pagination { display: flex; justify-content: center; padding-top: 16px; }
body.rea-theme .rea-pagination .pagination { gap: 6px; margin: 0; flex-wrap: wrap; justify-content: center; }
body.rea-theme .rea-pagination .page-link { min-width: 44px; height: 44px; border-radius: var(--rea-radius) !important; border: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--rea-ink); background: transparent; }
body.rea-theme .rea-pagination .page-link:hover { background: var(--rea-surface); color: var(--rea-ink); }
body.rea-theme .rea-pagination .active > .page-link { background: var(--rea-ink); color: #fff; }

/* Pages of the category */
.rea-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 16px; }
.rea-btn.rea-pages__more { min-height: 50px; padding: 0 36px; border: 1.5px solid var(--rea-ink); font-size: 15px; font-weight: 800; }
.rea-btn.rea-pages__more:hover { background: var(--rea-ink); color: #fff !important; }
.rea-btn.rea-pages__more[aria-disabled] { opacity: .55; cursor: progress; }
.rea-pages__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; }
.rea-pages__list a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid transparent; border-radius: var(--rea-radius); text-decoration: none; }
.rea-pages__list a:hover { background: var(--rea-surface); }
body.rea-theme .rea-pages__list a[aria-current] { background: var(--rea-ink); color: #fff; }
.rea-pages__list .rea-pages__arrow { border-color: var(--rea-line); }
.rea-pages__arrow .rea-icon { width: 18px; height: 18px; stroke-width: 2; }
.rea-pages__arrow--back .rea-icon { transform: rotate(180deg); }
.rea-pages__gap { width: 28px; text-align: center; color: var(--rea-muted); }
.rea-pages__shown { font-size: 13px; color: var(--rea-muted); }

/* Guide and questions (hair colours) */
.rea-guide { display: flex; flex-wrap: wrap; gap: 32px; margin: 52px 0 32px; padding: 40px; border-radius: 24px; background: var(--rea-surface); }
.rea-guide__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rea-guide__label { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rea-primary); }
body.rea-theme .rea-guide__text h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.rea-guide__text p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rea-ink-soft); }
.rea-guide__example { align-self: flex-start; display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: var(--rea-radius-md); background: #fff; font-size: 13px; line-height: 1.5; color: var(--rea-ink-soft); }
.rea-guide__code { font-family: var(--rea-font-display); font-size: 30px; font-weight: 700; color: var(--rea-ink); white-space: nowrap; }
.rea-guide__code span:nth-child(2) { color: var(--rea-muted); }
.rea-guide__code span:last-child, .rea-guide__accent { color: var(--rea-primary); }
.rea-guide__faq { flex: 1 1 480px; min-width: 0; }
.rea-guide--single > div { flex-basis: 100%; }
body.rea-theme .rea-guide__faq h2 { margin: 0 0 8px; font-family: var(--rea-font); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.rea-guide details { border-bottom: 1px solid #E2DCD3; }
.rea-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.rea-guide summary::-webkit-details-marker { display: none; }
.rea-guide summary .rea-icon { flex: none; width: 18px; height: 18px; stroke-width: 2; transform: rotate(90deg); transition: transform .15s; }
.rea-guide details[open] summary .rea-icon { transform: rotate(-90deg); }
.rea-guide details p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--rea-ink-soft); }
.rea-category__more { margin-bottom: 32px; }
@media (max-width: 575.98px) {
  .rea-guide { margin-top: 40px; padding: 28px 20px; border-radius: var(--rea-radius-lg); }
  .rea-guide__text, .rea-guide__faq { flex-basis: 100%; }
  .rea-guide__code { font-size: 24px; }
  .rea-series { display: flex; gap: 10px; margin: 0 calc(-1 * var(--rea-gutter)) 24px; padding: 2px var(--rea-gutter); overflow-x: auto; scrollbar-width: none; }
  .rea-series::-webkit-scrollbar { display: none; }
  .rea-series__item { flex: 0 0 148px; }
  .has-filters .rea-toolbar { flex-wrap: wrap; }
  .has-filters .rea-toolbar__filters { flex: 0 0 auto; }
  .has-filters .rea-toolbar__field { flex: 1 1 0; min-width: 0; font-size: 0; gap: 0; }
}

/* ---------- Responsive: tablet / mobile (mockup: 390px) */
@media (max-width: 991.98px) {
  :root { --rea-gutter: 16px; }
  .rea-topbar__inner { padding-top: 6px; padding-bottom: 6px; }
  .rea-topbar__hide-sm { display: none !important; }
  .rea-header__main { gap: 10px; padding: 8px 8px 12px; }
  .rea-header__brand { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }
  .rea-header__burger { display: inline-flex; }
  .rea-header__logo img { height: 40px; }
  .rea-header__nav { gap: 0; }
  .rea-header__action { min-width: 44px; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .rea-header__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rea-header__action .rea-icon { width: 22px; height: 22px; }
  .rea-badge { top: 4px; right: 4px; }
  .rea-badge--dark { right: 2px; }
  .rea-search { order: 10; flex: 1 1 100%; margin: 0 8px; padding: 2px 2px 2px 16px; gap: 10px; }
  .rea-search .rea-icon { width: 18px; height: 18px; }
  .rea-search__input { height: 44px; }
  .rea-search__button { display: none; }

  /* Sticky header: the top bar scrolls away, the logo, search and icons stay. --rea-header-h is the height of
     .rea-header__main (rea.js measures it; the fallback is the usual phone height). */
  .rea-header { position: sticky; top: 0; transition: box-shadow .15s; }
  .rea-header.is-stuck { box-shadow: 0 6px 20px rgba(35, 31, 32, .08); }
  html:has(body.rea-theme .rea-header) { scroll-padding-top: calc(var(--rea-header-h, 124px) + 8px); }
  .rea-suggest { max-height: calc(100vh - var(--rea-header-h, 124px) - 16px); max-height: calc(100dvh - var(--rea-header-h, 124px) - 16px); }

  .rea-menu { display: none; border-bottom: 1px solid var(--rea-line); }
  /* The open menu scrolls inside the header, since a sticky header does not move with the page. */
  .rea-menu.is-open { display: block; max-height: calc(100vh - var(--rea-header-h, 124px)); max-height: calc(100dvh - var(--rea-header-h, 124px));
    overflow-y: auto; overscroll-behavior: contain; }
  .rea-menu .rea-container { padding: 0; }
  .rea-menu__list { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 0; font-size: 16px; }
  .rea-menu__item { position: relative; border-bottom: 1px solid #F3EFEA; }
  .rea-menu__link, .rea-menu__item:first-child > .rea-menu__link { display: flex; align-items: center; height: 52px; padding: 0 64px 0 20px; border: 0; }
  .rea-menu__link:hover, .rea-menu__item.is-open > .rea-menu__link { border: 0; }
  .rea-menu__toggle { display: flex; position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: var(--rea-muted); }
  .rea-menu__toggle .rea-icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .15s; }
  .rea-menu__item.is-open > .rea-menu__toggle .rea-icon { transform: rotate(90deg); }
  .rea-mega { position: static; box-shadow: none; border: 0; background: var(--rea-surface); }
  .rea-menu .rea-mega__inner { padding: 4px 20px 12px 32px; }
  .rea-mega__list a { padding: 10px 0; }
  .rea-mega__list { columns: 1; }
  .rea-mega__groups { grid-template-columns: 1fr; gap: 12px; }
  .rea-mega__group-title { margin: 8px 0 0; }

  .rea-footer__inner { padding-top: 40px; }
}

@media (max-width: 575.98px) {
  .rea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .rea-card__actions { flex-direction: column; }
  .rea-card__actions .rea-qty { justify-content: space-between; }
  .rea-card__price { font-size: 17px; }
  .rea-listing__sidebar { max-width: none; }
  .rea-toolbar__controls { width: 100%; }
  .rea-toolbar__field { flex: 1 1 auto; }
  .rea-toolbar__field .rea-select { flex: 1; min-width: 0; }
}

/* ==========================================================================
   Home page — mockups/source/home.html (common/home.twig)
   ========================================================================== */
.rea-home { display: flex; flex-direction: column; gap: 56px; padding-top: 24px; padding-bottom: 64px; }
.rea-btn--ghost { background: transparent; color: #fff !important; border: 1.5px solid #fff; }
.rea-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.rea-btn--outline-dark { background: transparent; color: var(--rea-ink) !important; border: 1.5px solid var(--rea-ink); }
.rea-btn--outline-dark:hover { background: var(--rea-ink); color: #fff !important; }
.rea-home .rea-btn { min-height: 50px; padding: 0 28px; font-weight: 800; font-size: 15px; }

.rea-kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rea-primary); }
.rea-kicker--light { color: #F2C9CD; }

/* Hero */
.rea-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.rea-hero__main { position: relative; overflow: hidden; min-height: 440px; background: var(--rea-primary); color: #fff; border-radius: var(--rea-radius-lg);
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.rea-hero__copy { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.rea-hero__title { margin: 0; font-family: var(--rea-font-display); font-weight: 600; font-size: 46px; line-height: 1.1; letter-spacing: -1px; color: #fff; }
.rea-hero__text { margin: 0; font-size: 18px; line-height: 1.5; color: #F7E3E5; }
.rea-hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.rea-hero__side { display: flex; flex-direction: column; gap: 16px; }
.rea-promo { flex: 1; min-height: 212px; border-radius: var(--rea-radius-lg); padding: 32px; text-decoration: none; display: flex; flex-direction: column;
  justify-content: space-between; gap: 16px; transition: transform .2s; }
.rea-promo:hover { transform: translateY(-2px); }
.rea-promo--sand { background: #F3E6D3; color: var(--rea-ink) !important; }
.rea-promo--dark { background: var(--rea-ink); color: #fff !important; }
.rea-promo__kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #7A5418; }
.rea-promo--dark .rea-promo__kicker { color: #E8A6AD; }
.rea-promo__title { font-family: var(--rea-font-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.rea-promo__link { font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.rea-promo__link .rea-icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* Benefits */
.rea-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: -24px; }
.rea-benefit { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--rea-line); border-radius: 14px; }
.rea-benefit__icon { width: 44px; height: 44px; border-radius: var(--rea-radius); background: #F7EDEE; color: var(--rea-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.rea-benefit__icon .rea-icon { width: 22px; height: 22px; stroke-width: 2; }
.rea-benefit__title { font-weight: 800; font-size: 15px; }
.rea-benefit__sub { font-size: 13px; color: var(--rea-muted); }

/* Sections */
.rea-section { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rea-section__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.rea-section__title { margin: 0; font-family: var(--rea-font-display); font-weight: 600; font-size: 26px; letter-spacing: -.5px; }
.rea-section__sub { margin: 6px 0 0; color: var(--rea-muted); font-size: 15px; }
.rea-section__tools { display: flex; gap: 8px; align-items: center; }
.rea-section__more { font-weight: 700; font-size: 14px; color: var(--rea-ink) !important; margin-right: 8px; }
.rea-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #D9D3C9; background: #fff; color: var(--rea-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rea-arrow .rea-icon { width: 18px; height: 18px; stroke-width: 2.2; }
.rea-arrow--dark { border-color: var(--rea-ink); background: var(--rea-ink); color: #fff; }
.rea-arrow:disabled { opacity: .35; cursor: default; }

/* Category circles */
.rea-circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 20px 16px; }
.rea-circle { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--rea-ink) !important; }
.rea-circle__disc { width: 112px; height: 112px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.rea-circle:hover .rea-circle__disc { transform: scale(1.04); }
.rea-circle__disc .rea-icon { width: 40px; height: 40px; stroke-width: 1.5; }
/* Phosphor Icons (256×256 grid): line width 12 of 256, as in their Light weight. */
.rea-icon--ph { stroke-width: 12; }
.rea-circle__disc .rea-icon--ph { width: 44px; height: 44px; stroke-width: 12; }
.rea-circle__name { font-weight: 700; font-size: 14px; }

/* Product rows: carousel track (scroll-snap) and a single grid row */
.rea-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.rea-track::-webkit-scrollbar { display: none; }
.rea-track > .rea-card { scroll-snap-align: start; }
/* Positioned, so absolutely positioned descendants (visually-hidden labels) are clipped by the track. */
.rea-track { position: relative; }
.rea-grid--row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

/* Compact card (home): price + square bag button, no quantity */
.rea-grid--compact .rea-card__name { font-size: 14px; }
.rea-grid--compact .rea-card__buy { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.rea-grid--compact .rea-card__actions .rea-qty, .rea-grid--compact .rea-card__unit { display: none; }
.rea-grid--compact .rea-card__add { position: relative; flex: none; width: 44px; min-height: 44px; padding: 0; border-radius: var(--rea-radius); }
.rea-grid--compact .rea-card__add .rea-icon { width: 20px; height: 20px; }
.rea-grid--compact .rea-card__add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rea-grid--compact .rea-card__cta { font-size: 13px; }
.rea-grid--compact .is-out .rea-card__buy { flex-direction: column; align-items: stretch; }

/* Pro banner */
.rea-pro { background: var(--rea-surface); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.rea-pro__copy { display: flex; flex-direction: column; gap: 14px; flex: 1 1 480px; min-width: 0; }
.rea-pro__title { margin: 0; font-family: var(--rea-font-display); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -.5px; }
.rea-pro__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--rea-ink-soft); max-width: 620px; }
.rea-pro__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Brands */
.rea-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rea-brand { height: 84px; border: 1px solid var(--rea-line); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 800; font-size: 16px; letter-spacing: .3px; text-align: center; padding: 0 12px; color: var(--rea-ink) !important; transition: border-color .2s; }
.rea-brand:hover { border-color: var(--rea-ink); }
.rea-brand img { display: block; width: auto; max-width: 100%; height: 72px; object-fit: contain; }

/* Blog */
.rea-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.rea-post { text-decoration: none; display: flex; flex-direction: column; gap: 14px; color: var(--rea-ink) !important; }
.rea-post__media { aspect-ratio: 16 / 10; border-radius: var(--rea-radius-md); overflow: hidden; display: block; }
.rea-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rea-post:hover .rea-post__media img { transform: scale(1.03); }
.rea-post__media--empty { display: flex; align-items: center; justify-content: center; color: var(--rea-primary); }
.rea-post__media--empty .rea-icon { width: 48px; height: 48px; stroke-width: 1.4; opacity: .55; }
.rea-post__category { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--rea-primary); }
.rea-post__title { font-weight: 800; font-size: 19px; line-height: 1.3; }

/* Newsletter */
.rea-newsletter { background: var(--rea-primary); color: #fff; border-radius: 24px; padding: 40px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.rea-newsletter__copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 380px; min-width: 0; }
.rea-newsletter__title { margin: 0; font-family: var(--rea-font-display); font-weight: 600; font-size: 26px; color: #fff; }
.rea-newsletter__text { margin: 0; font-size: 15px; color: #F7E3E5; }

@media (max-width: 1199.98px) {
  .rea-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .rea-grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .rea-home { gap: 40px; }
  .rea-hero { grid-template-columns: 1fr; }
  .rea-hero__main { min-height: 0; padding: 32px; }
  .rea-hero__title { font-size: 34px; }
  .rea-hero__side { flex-direction: row; }
  .rea-promo { min-height: 180px; padding: 24px; }
  .rea-benefits { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rea-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .rea-pro { padding: 32px; }
  .rea-pro__title { font-size: 28px; }
}

@media (max-width: 575.98px) {
  .rea-home { gap: 32px; padding-top: 16px; }
  .rea-hero__main { padding: 28px 24px; gap: 24px; }
  .rea-hero__title { font-size: 28px; letter-spacing: -.5px; }
  .rea-hero__text { font-size: 16px; }
  .rea-hero__side { flex-direction: column; }
  .rea-promo { min-height: 0; gap: 10px; }
  .rea-promo__title { font-size: 20px; }
  .rea-benefits { grid-template-columns: 1fr; gap: 10px; }
  .rea-benefit { padding: 14px 16px; }
  .rea-section__title { font-size: 22px; }
  .rea-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
  .rea-circle__disc { width: 72px; height: 72px; }
  .rea-circle__disc .rea-icon { width: 30px; height: 30px; }
  .rea-circle__name { font-size: 12px; }
  .rea-track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .rea-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .rea-grid--compact .rea-card__actions { flex-direction: row; }
  .rea-section__tools .rea-arrow { display: none; }
  .rea-pro { padding: 28px 24px; gap: 20px; }
  .rea-pro__title { font-size: 24px; }
  .rea-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rea-brand { height: 72px; font-size: 14px; }
  .rea-brand img { height: 64px; }
  .rea-post__media--empty { aspect-ratio: 16 / 6; }
  .rea-newsletter { padding: 28px 24px; }
  .rea-newsletter__title { font-size: 22px; }
}

/* Newsletter form (rea_newsletter) */
.rea-newsletter__form { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; min-width: 0; margin: 0; }
.rea-newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.rea-newsletter__input { flex: 1 1 240px; min-width: 0; height: 52px; border-radius: var(--rea-radius-pill); border: 2px solid transparent; padding: 0 22px;
  font: inherit; font-size: 15px; color: var(--rea-ink); background: #fff; outline: none; }
.rea-newsletter__input:focus { border-color: #F2C9CD; }
.rea-newsletter__input.is-invalid { border-color: #FFD166; }
.rea-home .rea-newsletter__button { height: 52px; }
.rea-newsletter__agree { margin: 0; font-size: 13px; line-height: 1.45; color: #F7E3E5; padding-left: 1.75em; }
.rea-newsletter__agree .form-check-input { width: 1.15em; height: 1.15em; margin-left: -1.75em; border: 0; }
.rea-newsletter__agree .form-check-input:checked { background-color: var(--rea-ink); }
.rea-newsletter__agree a { color: #fff !important; text-decoration: underline; }
.rea-newsletter__agree .form-check-label.is-invalid, .rea-newsletter__agree.is-invalid .form-check-label { color: #F7E3E5; }
.rea-newsletter__agree .form-check-input.is-invalid { box-shadow: 0 0 0 2px #FFD166; }
.rea-newsletter__error { color: #FFD166; font-weight: 700; font-size: 13px; margin: -4px 0 0 22px; }
.rea-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Notice page (newsletter confirm / unsubscribe) */
.rea-notice { padding-top: 48px; padding-bottom: 64px; }
.rea-notice__box { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
  border: 1px solid var(--rea-line); border-radius: 24px; padding: 48px 32px; }
.rea-notice__icon { width: 64px; height: 64px; border-radius: 50%; background: #F7EDEE; color: var(--rea-primary); display: flex; align-items: center; justify-content: center; }
.rea-notice__icon .rea-icon { width: 28px; height: 28px; }
body.rea-theme .rea-notice__title { margin: 0; font-family: var(--rea-font-display); font-weight: 600; font-size: 26px; letter-spacing: -.5px; }
.rea-notice__text { margin: 0; color: var(--rea-ink-soft); font-size: 16px; line-height: 1.55; }
.rea-notice__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.rea-notice__actions form { margin: 0; }

/* ==========================================================================
   Product page (product/product.twig) — no mockup: OC4 structure in the design system
   ========================================================================== */
.rea-product { padding-bottom: 64px; display: flex; flex-direction: column; gap: 48px; }
.rea-product > nav { margin-bottom: -32px; }
.rea-product__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Gallery */
.rea-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.rea-gallery__main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--rea-radius-lg);
  background: var(--rea-surface); padding: 8%; overflow: hidden; }
.rea-gallery__main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.rea-gallery__shade { left: 16px; top: 16px; font-size: 14px; padding: 6px 12px; }
.rea-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.rea-gallery__thumb { width: 84px; height: 84px; border-radius: var(--rea-radius); background: var(--rea-surface); display: flex; align-items: center; justify-content: center;
  padding: 8px; border: 1.5px solid transparent; }
.rea-gallery__thumb:hover { border-color: var(--rea-ink); }
.rea-gallery__thumb img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }

/* Buy box */
.rea-buybox { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rea-buybox__brand { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--rea-primary) !important; text-decoration: none; }
body.rea-theme .rea-buybox__title { margin: -8px 0 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.3px; }
.rea-buybox__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--rea-muted); }
.rea-buybox__meta a { color: var(--rea-ink); font-weight: 700; }
.rea-buybox__rating { display: inline-flex; align-items: center; gap: 2px; }
.rea-star { color: #D9D3C9; font-size: 16px; }
.rea-star.is-on { color: #E0A100; }
.rea-buybox__rating a { margin-left: 6px; font-weight: 600; }
.rea-buybox__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.rea-buybox__price { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.rea-buybox__price--special { color: var(--rea-primary); }
.rea-buybox__old { color: var(--rea-muted); font-size: 18px; }
.rea-buybox__small { margin: -12px 0 0; font-size: 13px; color: var(--rea-muted); }
.rea-buybox__discounts { margin: 0; padding-left: 18px; font-size: 14px; }
.rea-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; border-radius: var(--rea-radius-pill); padding: 5px 12px; align-self: center; }
.rea-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rea-stock.is-in { background: #E7F3EA; color: #1F7A3A; }
.rea-stock.is-out { background: #F7EDEE; color: var(--rea-primary); }
.rea-buybox__form { margin: 0; }
.rea-buybox__actions { display: flex; gap: 10px; align-items: stretch; }
.rea-qty--lg { min-height: 54px; }
.rea-qty--lg .rea-qty__btn { width: 44px; }
.rea-buybox__cart { flex: 1; min-height: 54px; font-size: 16px; font-weight: 800; border-radius: var(--rea-radius); }
.rea-buybox__cart .rea-icon { width: 20px; height: 20px; stroke-width: 2; }
.rea-buybox__fav { width: 54px; min-height: 54px; flex: none; border-radius: var(--rea-radius); border: 1.5px solid var(--rea-line-strong); background: #fff; color: var(--rea-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rea-buybox__fav:hover { border-color: var(--rea-primary); color: var(--rea-primary); }
/* "Купи с tbi bank / newpay": side by side, one under the other when there is no room for two */
.rea-paybtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.rea-paybtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 12px;
  border: 1.5px solid var(--rea-line-strong); border-radius: var(--rea-radius-md); background: var(--rea-surface); color: var(--rea-ink);
  font-size: 14px; line-height: 1.35; text-align: center; transition: border-color .15s, background .15s; }
.rea-paybtn:hover { border-color: var(--rea-ink); background: var(--rea-white); }
.rea-paybtn:focus-visible { outline: 2px solid var(--rea-primary); outline-offset: 2px; }
.rea-paybtn__top { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 26px; }
.rea-paybtn__top img { display: block; }
.rea-paybtn__line { font-weight: 700; }
body.rea-theme .rea-paypop .modal-body { padding: 20px 24px 24px; font-size: 15px; line-height: 1.55; }
body.rea-theme .rea-paypop__title { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.rea-paypop ul, .rea-paypop ol { margin: 0 0 16px; padding-left: 20px; }
.rea-paypop ul { list-style: disc; }
.rea-paypop ol { list-style: decimal; }
.rea-paypop li { margin-bottom: 8px; }
.rea-paypop__example { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--rea-radius); background: var(--rea-surface); }
.rea-paypop__note { margin: 0; color: var(--rea-muted); font-size: 14px; }
.rea-buybox__notice { background: var(--rea-surface); border-radius: var(--rea-radius-md); padding: 20px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 24px; }
.rea-buybox__notice p { margin: 0; color: var(--rea-ink-soft); font-size: 14px; }
.rea-buybox__notice .rea-notify { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; }
.rea-notify__row { display: flex; flex-wrap: wrap; gap: 10px; }
.rea-notify__row .form-control { flex: 1 1 220px; width: auto; min-width: 0; }
.rea-notify__row .rea-btn { min-height: 48px; }
.rea-notify .invalid-feedback { margin: 0; }
.rea-notify__agree { margin: 0; font-size: 13px; line-height: 1.45; color: var(--rea-ink-soft); }
.rea-notify__agree a { text-decoration: underline; }
.rea-notify__agree .form-check-label.is-invalid { color: var(--rea-ink-soft); }
.rea-buybox__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rea-buybox__contact .rea-btn { min-height: 50px; }
.rea-buybox__contact .rea-buybox__fav { width: 50px; min-height: 50px; }
.rea-perks { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rea-line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.rea-perks li { display: flex; align-items: center; gap: 10px; }
.rea-perks .rea-icon { width: 20px; height: 20px; color: var(--rea-primary); }

/* Shade palette */
.rea-palette { border: 1px solid var(--rea-line); border-radius: var(--rea-radius-md); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rea-palette__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 14px; }
.rea-palette__title { font-weight: 700; }
.rea-palette__count { color: var(--rea-muted); }
.rea-palette__list { list-style: none; margin: 0; padding: 2px; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px 8px;
  max-height: 246px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rea-palette.is-open .rea-palette__list { max-height: none; }
.rea-swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--rea-ink) !important; }
.rea-swatch img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 38%; transform: scale(1); background: var(--rea-surface);
  box-shadow: 0 0 0 1px var(--rea-line); transition: box-shadow .15s; }
.rea-swatch:hover img { box-shadow: 0 0 0 2px var(--rea-ink-soft); }
.rea-swatch.is-current img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rea-primary); }
.rea-swatch.is-out img { opacity: .4; }
.rea-swatch__code { font-size: 12px; font-weight: 700; line-height: 1.1; }
.rea-swatch.is-current .rea-swatch__code { color: var(--rea-primary); }
.rea-swatch.is-out .rea-swatch__code { color: var(--rea-muted); text-decoration: line-through; }
.rea-palette__more { align-self: flex-start; border: 0; background: none; padding: 0; font-weight: 700; font-size: 14px; color: var(--rea-ink); text-decoration: underline; cursor: pointer; }

/* Description, specs, reviews */
.rea-product__section { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.rea-product__section.rea-section { max-width: none; }
.rea-prose { font-size: 15px; line-height: 1.7; color: var(--rea-ink-soft); }
.rea-prose img { max-width: 100%; height: auto; }
.rea-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.rea-specs th, .rea-specs td { padding: 10px 12px; border-bottom: 1px solid var(--rea-line); text-align: left; }
.rea-specs th { width: 35%; font-weight: 700; }

/* Bar at the bottom with "Добави" once the buy box is scrolled past (product.twig, rea.js) */
.rea-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding-bottom: env(safe-area-inset-bottom); background: #fff;
  border-top: 1px solid var(--rea-line); box-shadow: 0 -6px 20px rgba(35, 31, 32, .08); transform: translateY(100%); visibility: hidden;
  transition: transform .2s ease, visibility 0s linear .2s; }
.rea-stickybuy.is-visible { transform: none; visibility: visible; transition: transform .2s ease; }
.rea-stickybuy__inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.rea-stickybuy__image { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: var(--rea-radius-sm); background: var(--rea-surface); }
.rea-stickybuy__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rea-stickybuy__name { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rea-stickybuy__price { font-size: 18px; font-weight: 800; line-height: 1.2; }
.rea-stickybuy__price.is-special { color: var(--rea-primary); }
.rea-stickybuy__cart { flex: none; min-height: 48px; padding: 0 28px; border-radius: var(--rea-radius); font-size: 15px; font-weight: 800; }
.rea-stickybuy__cart .rea-icon { width: 20px; height: 20px; stroke-width: 2; }
/* Room under the footer, so the bar does not cover its last line. */
body.rea-theme:has(.rea-stickybuy) { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .rea-stickybuy, .rea-stickybuy.is-visible { transition: none; } }
@media (max-width: 575.98px) {
  .rea-stickybuy__inner { gap: 10px; }
  .rea-stickybuy__image { width: 40px; height: 40px; }
  .rea-stickybuy__name { font-size: 13px; }
  .rea-stickybuy__price { font-size: 16px; }
  .rea-stickybuy__cart { padding: 0 18px; }
  .rea-stickybuy__cart .rea-icon { display: none; }   /* "Добави в количката" is long: more room for the name */
}

@media (max-width: 991.98px) {
  .rea-product { gap: 36px; }
  .rea-product__top { grid-template-columns: 1fr; gap: 28px; }
  .rea-gallery { position: static; }
}

@media (max-width: 575.98px) {
  .rea-product > nav { margin-bottom: -20px; }
  .rea-buybox__price { font-size: 28px; }
  .rea-gallery__thumb { width: 64px; height: 64px; }
  .rea-palette { padding: 12px; }
  .rea-palette__list { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); max-height: 226px; }
  .rea-swatch img { width: 46px; height: 46px; }
}

/* ==========================================================================
   Forms of the default OpenCart templates (checkout, account): design-system look
   ========================================================================== */
body.rea-theme .form-control, body.rea-theme .form-select { min-height: 48px; border: 1.5px solid var(--rea-line-strong); border-radius: var(--rea-radius);
  font-size: 15px; color: var(--rea-ink); box-shadow: none; }
body.rea-theme textarea.form-control { min-height: 96px; padding-top: 12px; }
body.rea-theme .form-control:focus, body.rea-theme .form-select:focus { border-color: var(--rea-ink); box-shadow: var(--rea-focus); }
body.rea-theme .form-control[readonly] { background: var(--rea-surface); }
body.rea-theme .form-control.is-invalid, body.rea-theme .form-select.is-invalid { border-color: var(--rea-primary); }
body.rea-theme .invalid-feedback { color: var(--rea-primary); font-weight: 600; }
body.rea-theme .form-label, body.rea-theme .col-form-label { font-weight: 700; font-size: 14px; }
body.rea-theme .required .form-label::after, body.rea-theme .required .col-form-label::after { content: " *"; color: var(--rea-primary); }
body.rea-theme .required .form-label::before, body.rea-theme .required .col-form-label::before { content: none; }
body.rea-theme .form-check-input { border: 1.5px solid var(--rea-line-strong); }
body.rea-theme .form-check-input:checked { background-color: var(--rea-primary); border-color: var(--rea-primary); }
body.rea-theme .form-check-input:focus { box-shadow: var(--rea-focus); border-color: var(--rea-ink); }
body.rea-theme .input-group > .input-group-text { border: 1.5px solid var(--rea-line-strong); background: var(--rea-surface); border-radius: var(--rea-radius) 0 0 var(--rea-radius); }
body.rea-theme .input-group > .btn { border-radius: 0 var(--rea-radius) var(--rea-radius) 0; padding-left: 18px; padding-right: 18px; }
body.rea-theme fieldset > legend { font-family: var(--rea-font-display); font-weight: 600; font-size: 20px; letter-spacing: -.3px; margin-bottom: 16px; float: none; }
body.rea-theme .modal-content { border: 0; border-radius: var(--rea-radius-lg); box-shadow: 0 24px 64px rgba(35, 31, 32, .22); }
body.rea-theme .modal-header { border-bottom: 1px solid var(--rea-line); }
body.rea-theme .modal-title { font-weight: 800; }
body.rea-theme .modal-body .form-check { padding: 12px 12px 12px 40px; border: 1.5px solid var(--rea-line); border-radius: var(--rea-radius); margin-bottom: 8px; }
body.rea-theme .modal-body .form-check:has(.form-check-input:checked) { border-color: var(--rea-primary); background: #FBF5F5; }
body.rea-theme .accordion { --bs-accordion-border-color: var(--rea-line); --bs-accordion-border-radius: var(--rea-radius); --bs-accordion-inner-border-radius: var(--rea-radius);
  --bs-accordion-active-bg: var(--rea-surface); --bs-accordion-active-color: var(--rea-ink); --bs-accordion-btn-focus-box-shadow: var(--rea-focus); }
body.rea-theme .accordion-button { font-weight: 700; font-size: 14px; }

/* ==========================================================================
   Cart page (checkout/cart.twig, cart_list.twig)
   ========================================================================== */
.rea-cartpage { padding-bottom: 64px; }
body.rea-theme .rea-cartpage__title { margin: 8px 0 24px; font-size: clamp(26px, 2.6vw, 34px); }
.rea-cartpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
#shopping-cart.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }
.rea-cartlines { display: flex; flex-direction: column; border-top: 1px solid var(--rea-line); }
.rea-cartline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 110px 44px; gap: 8px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rea-line);
  transition: opacity .2s; }
.rea-cartline.is-removing { opacity: .35; }
.rea-cartline__image { width: 96px; height: 96px; border-radius: var(--rea-radius); background: var(--rea-surface); display: flex; align-items: center; justify-content: center; padding: 8px; }
.rea-cartline__image img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.rea-cartline__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rea-cartline__name { font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; }
.rea-cartline__meta { font-size: 13px; color: var(--rea-muted); }
.rea-cartline__warn { font-size: 13px; font-weight: 700; color: var(--rea-primary); }
.rea-cartline__qty { margin: 0; }
.rea-cartline__total { text-align: right; font-size: 17px; font-weight: 800; white-space: nowrap; }
.rea-cartline__remove { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--rea-muted) !important; }
.rea-cartline__remove:hover { background: #F7EDEE; color: var(--rea-primary) !important; }
.rea-cartline__remove .rea-icon { width: 20px; height: 20px; }
.rea-cartpage__back { align-self: flex-start; margin-top: 18px; font-weight: 700; font-size: 14px; }
.rea-cartpage__empty { margin: 24px 0 64px; }
.rea-cartpage__empty .rea-icon { width: 48px; height: 48px; color: var(--rea-primary); }
.rea-cartpage__empty h1 { margin: 0; }

/* Summary card (cart) */
.rea-summary { background: var(--rea-surface); border-radius: var(--rea-radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.rea-cartpage .rea-summary { position: sticky; top: 16px; }
.rea-summary__totals { width: 100%; border-collapse: collapse; font-size: 15px; }
.rea-summary__totals th { font-weight: 500; color: var(--rea-ink-soft); padding: 6px 0; }
.rea-summary__totals td { text-align: right; font-weight: 700; padding: 6px 0; white-space: nowrap; }
.rea-summary__totals tr.is-grand th, .rea-summary__totals tr.is-grand td { border-top: 1px solid var(--rea-line-strong); padding-top: 14px; font-size: 20px; font-weight: 800; color: var(--rea-ink); }
.rea-summary__cta { min-height: 54px; font-size: 16px; font-weight: 800; }
.rea-summary__note { margin: 0; font-size: 13px; color: var(--rea-muted); }
.rea-summary__modules .accordion-body .row { flex-direction: column; }
.rea-summary__modules .accordion-body .col-md-4, .rea-summary__modules .accordion-body .col-md-8 { width: 100%; }

/* ==========================================================================
   One-page checkout (mockups/Поръчка (checkout) — desktop.png): checkout/checkout.twig, delivery, payments, confirm
   ========================================================================== */
body.rea-is-checkout { --rea-container: 1288px; background: var(--rea-surface); }

/* Short header with the steps */
.rea-cohead { background: #fff; border-bottom: 1px solid var(--rea-line); }
.rea-cohead__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 82px; }
.rea-cohead__logo img { display: block; width: auto; height: 51px; }
.rea-costeps { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--rea-muted); }
.rea-costeps li { display: flex; align-items: center; gap: 8px; }
.rea-costeps li + li::before { content: ""; width: 32px; height: 2px; margin: 0 0 0 8px; background: #DDD6CB; }
.rea-costeps li.is-current { color: var(--rea-ink); }
.rea-costeps li.is-current::before { background: var(--rea-primary); }
body.rea-theme .rea-costeps a { display: flex; align-items: center; gap: 8px; color: var(--rea-muted); text-decoration: underline; text-underline-offset: 3px; }
.rea-costeps__dot { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid #DDD6CB; border-radius: 50%; font-size: 13px; }
.rea-costeps .is-done .rea-costeps__dot { border-color: var(--rea-pink-soft); background: var(--rea-pink-soft); color: var(--rea-primary); }
.rea-costeps .is-current .rea-costeps__dot { border-color: var(--rea-primary); background: var(--rea-primary); color: #fff; }
.rea-costeps__dot .rea-icon { width: 14px; height: 14px; stroke-width: 2.6; }
.rea-cohead__info { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--rea-muted); white-space: nowrap; }
.rea-cohead__secure { display: flex; align-items: center; gap: 6px; }
.rea-cohead__secure .rea-icon { width: 16px; height: 16px; color: var(--rea-primary); stroke-width: 2; }
body.rea-theme .rea-cohead__info a { font-weight: 800; text-decoration: none; }

/* Layout */
.rea-co { padding-top: 36px; padding-bottom: 64px; }
body.rea-theme .rea-co__title { margin: 0 0 24px; font-size: clamp(28px, 2.5vw, 36px); }
.rea-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.rea-co__steps, .rea-co__aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rea-co__aside { position: sticky; top: 16px; }
body.rea-theme :is(.rea-cocard__head p, .rea-cosum__head, .rea-cocheck, .rea-cotrust) a { text-decoration: underline; text-underline-offset: 2px; }
.rea-co [hidden] { display: none !important; }
.rea-cocard { margin: 0; padding: 28px; background: #fff; border-radius: var(--rea-radius-lg); }
.rea-cocard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
body.rea-theme .rea-cocard__head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--rea-font); font-size: 21px; font-weight: 800; }
.rea-cocard__num { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rea-ink); color: #fff; font-size: 15px; }
.rea-cocard__head p { margin: 0; font-size: 14px; color: var(--rea-muted); }
body.rea-theme .rea-cocard__head p a { color: var(--rea-primary); font-weight: 800; }

/* Guest / new account */
.rea-cotabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; background: var(--rea-surface); border-radius: 14px; }
.rea-cotabs label { position: relative; margin: 0; cursor: pointer; }
.rea-cotabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rea-cotabs span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 4px 8px; border-radius: 11px; font-size: 14px; font-weight: 700; text-align: center; color: var(--rea-muted); }
.rea-cotabs input:checked + span { background: #fff; color: var(--rea-ink); box-shadow: 0 1px 3px rgba(35, 31, 32, .12); }
.rea-cotabs input:focus-visible + span { box-shadow: var(--rea-focus); }

/* Fields */
.rea-cofields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.rea-cofields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rea-cofields--two .rea-cofield--wide { grid-column: 1 / -1; }
.rea-cofields--single { margin-bottom: 18px; }
.rea-cofields--single .rea-cofield { grid-column: span 2; }
.rea-cofield { min-width: 0; }
.rea-cofield label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.rea-cofield label small { font-size: inherit; font-weight: 400; color: var(--rea-muted); }
.rea-cofield input, .rea-cofield select, .rea-cofield textarea, .rea-cocoupon input { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid #E3DED3; border-radius: 14px;
  background: #fff; color: var(--rea-ink); font: inherit; font-size: 15px; }
.rea-cofield textarea { display: block; padding: 12px 14px; }
.rea-cofield ::placeholder, .rea-cocoupon ::placeholder { color: #8A8785; opacity: 1; }
.rea-cofield input[readonly] { background: var(--rea-surface); color: var(--rea-muted); }
body.rea-theme .rea-cofield :is(input, select, textarea):focus, body.rea-theme .rea-cocoupon input:focus { outline: none; border-color: var(--rea-ink); border-radius: 14px; box-shadow: var(--rea-focus); }
.rea-cofield.is-invalid input, .rea-cofield.is-invalid .rea-cophone { border-color: var(--rea-primary); }
.rea-cofield__error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--rea-primary); }
.rea-cofield__error:empty { display: none; }
.rea-cofield__hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--rea-muted); }
.rea-cophone { display: flex; border: 1.5px solid #E3DED3; border-radius: 14px; overflow: hidden; background: #fff; }
.rea-cophone span { display: flex; align-items: center; padding: 0 12px; background: var(--rea-surface); border-right: 1.5px solid #E3DED3; font-size: 14px; font-weight: 700; }
body.rea-theme .rea-cophone input, body.rea-theme .rea-cophone input:focus { min-height: 49px; border: 0; border-radius: 0; box-shadow: none; }
.rea-cophone:focus-within { border-color: var(--rea-ink); box-shadow: var(--rea-focus); }

/* Login panel and the notice after it */
.rea-cologin { padding: 20px 22px 22px; border: 2px solid var(--rea-primary); border-radius: 16px; background: #FBF7F7; }
.rea-cologin__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
body.rea-theme .rea-cologin__head h3 { margin: 0 0 2px; font-size: 17px; }
.rea-cologin__head p { margin: 0; font-size: 13.5px; color: var(--rea-muted); }
.rea-cologin__close { width: 44px; height: 44px; flex: none; margin: -6px -10px 0 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--rea-ink); }
.rea-cologin__close:hover { background: var(--rea-pink-soft); }
.rea-cologin__close .rea-icon { width: 20px; height: 20px; }
.rea-cologin .rea-cotabs { margin-bottom: 16px; background: var(--rea-surface-2); }
.rea-cologin__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rea-cologin__info { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--rea-ink-soft); }
.rea-cologin > .rea-cofield__error { margin-top: 14px; }
.rea-cologin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.rea-cologin__actions .rea-btn { min-height: 50px; padding: 0 28px; font-size: 15px; }
.rea-cologin :is(.rea-btn, .rea-colink):disabled { opacity: .55; cursor: progress; }
.rea-colink { min-height: 24px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.rea-cofield__error .rea-colink { font-size: inherit; }
.rea-colink--accent { font-size: 13px; color: var(--rea-primary); }
.rea-conotice { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border: 1.5px solid #B9DFC3; border-radius: 12px; background: #F3FAF5; font-size: 14px; }
.rea-conotice .rea-icon { width: 20px; height: 20px; color: #1F7A3A; stroke-width: 2.2; }
body.rea-theme .rea-conotice a { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* Invoice */
.rea-coinvoice { margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--rea-line); }
.rea-coinvoice > .rea-cocheck { align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.rea-coinvoice__box { margin-top: 24px; padding: 20px; border: 1px solid var(--rea-line); border-radius: var(--rea-radius-lg); background: #FAF8F4; }
.rea-coinvoice__box .rea-cotabs { margin-bottom: 18px; background: var(--rea-surface-2); }
.rea-coinvoice__note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 13.5px; color: var(--rea-muted); }
.rea-coinvoice__note .rea-icon { width: 16px; height: 16px; color: var(--rea-primary); stroke-width: 2; }

/* Choices: couriers, delivery types, payments */
.rea-cogroup { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
body.rea-theme fieldset.rea-cogroup > legend { margin: 0 0 10px; padding: 0; border: 0; font-family: var(--rea-font); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.rea-cooption { position: relative; margin: 0; border: 2px solid var(--rea-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.rea-cooption:hover { border-color: var(--rea-line-strong); }
.rea-cooption:has(input:checked) { border-color: var(--rea-primary); background: #FBF7F7; }
.rea-cooption:has(input:focus-visible) { box-shadow: var(--rea-focus); }
.rea-cooption input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 2px solid #CFC9BE; border-radius: 50%; background: #fff; cursor: pointer; }
.rea-cooption input:checked { border-color: var(--rea-primary); background: radial-gradient(circle, var(--rea-primary) 0 5px, #fff 5.5px); }
body.rea-theme .rea-cooption input:focus-visible { border-radius: 50%; box-shadow: none; }
.rea-cocouriers, .rea-cotypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rea-cocourier { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
.rea-cocourier input { position: absolute; top: 24px; right: 16px; }
.rea-cocourier__name { padding: 6px 14px; margin-right: 34px; border-radius: 8px; background: var(--rea-ink); color: #fff; font-weight: 800; }
.rea-cocourier__types { font-size: 13px; line-height: 1.4; color: var(--rea-muted); }
.rea-cocourier__price { font-size: 15px; font-weight: 800; }
.rea-cotype { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; }
.rea-cotype input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.rea-cotype .rea-icon { width: 22px; height: 22px; }
.rea-cotype span { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.4; }
.rea-cotype strong { font-weight: 700; }
.rea-cotype small { font-size: 13px; color: var(--rea-muted); }
.rea-copays { display: flex; flex-direction: column; gap: 10px; }
.rea-copay { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 14px 18px; }
.rea-copay__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--rea-surface); }
.rea-copay__icon .rea-icon { width: 22px; height: 22px; }
.rea-copay__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.rea-copay__text strong { font-weight: 800; }
.rea-copay__text small { font-size: 13px; color: var(--rea-muted); }
.rea-copay__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.rea-copay__badges span { padding: 5px 8px; border: 1px solid var(--rea-line); border-radius: 6px; background: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rea-copay__note { grid-column: 3 / -1; padding-top: 10px; font-size: 13px; }
.rea-co .alert { margin: 0 0 20px; border-radius: 12px; font-size: 14px; }
.rea-conote { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--rea-pink-soft); font-size: 14px; }
.rea-conote .rea-icon { width: 20px; height: 20px; color: var(--rea-primary); }
.rea-coempty { margin: 18px 0 0; font-size: 14px; color: var(--rea-muted); }
.rea-co .rea-offices { margin-top: 20px; }
body.rea-theme .rea-co .rea-offices__title { font-family: var(--rea-font); font-size: 14px; font-weight: 700; letter-spacing: 0; }

/* Note, newsletter, terms */
.rea-cocard--extra { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rea-cocard--extra .rea-cofield { width: 100%; }
.rea-coadd { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--rea-ink); font: inherit; font-size: 15px; font-weight: 700; }
.rea-coadd .rea-icon { width: 18px; height: 18px; color: var(--rea-primary); stroke-width: 2.2; transition: transform .15s; }
.rea-coadd[aria-expanded="true"] .rea-icon { transform: rotate(45deg); }
.rea-cocheck { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.45; cursor: pointer; }
.rea-cocheck input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 2px solid #CFC9BE; border-radius: 6px; background: #fff center / 16px no-repeat; cursor: pointer; }
.rea-cocheck input:checked { border-color: var(--rea-primary); background-color: var(--rea-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.rea-cocheck a { font-weight: 800; }

/* Summary */
.rea-cosum { display: flex; flex-direction: column; gap: 18px; padding: 24px; transition: opacity .15s; }
.is-updating .rea-cosum__totals { opacity: .45; }
.rea-cosum__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.rea-theme .rea-cosum__head h2 { margin: 0; font-family: var(--rea-font); font-size: 18px; font-weight: 800; }
.rea-cosum__head a { font-size: 13px; font-weight: 700; }
.rea-cosum__lines { display: flex; flex-direction: column; gap: 14px; max-height: 340px; margin: -8px -8px 0 0; padding: 8px 8px 0 0; overflow-y: auto; list-style: none; }
.rea-cosum__lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.rea-cosum__image { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--rea-surface); }
.rea-cosum__image img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.rea-cosum__image > .rea-icon { width: 30px; height: 30px; color: #A7A29B; stroke-width: 1.3; }
.rea-cosum__qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rea-ink); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.rea-cosum__info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; }
.rea-cosum__brand { font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.rea-cosum__info a { text-decoration: none; }
.rea-cosum__info small { font-size: 13px; color: var(--rea-muted); }
.rea-cosum__price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.rea-cocoupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rea-cocoupon input { min-height: 48px; font-size: 14px; }
.rea-cocoupon input[readonly] { background: var(--rea-surface); font-weight: 700; }
.rea-cocoupon__button { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--rea-ink); border-radius: 14px; background: #fff; color: var(--rea-ink); font-size: 14px; font-weight: 800; }
.rea-cocoupon__button:hover { background: var(--rea-surface); }
.rea-cocoupon .rea-cofield__error { grid-column: 1 / -1; margin: 0; }
.rea-cosum__totals { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--rea-line); font-size: 14px; transition: opacity .15s; }
.rea-cosum__totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rea-cosum__totals dt { font-weight: 400; color: var(--rea-ink-soft); }
.rea-cosum__totals dd { margin: 0; font-weight: 800; text-align: right; }
.rea-cosum__totals .is-grand { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rea-line); }
.rea-cosum__totals .is-grand dt { font-size: 18px; font-weight: 800; color: var(--rea-ink); }
.rea-cosum__totals .is-grand dd { font-size: 27px; line-height: 1.2; white-space: nowrap; }
.rea-cosum__totals small { display: block; font-size: 12.5px; font-weight: 400; color: var(--rea-muted); }
.rea-cosum__warning { padding: 10px 14px; border-radius: 12px; background: var(--rea-pink-soft); color: var(--rea-primary); font-size: 14px; font-weight: 600; }
.rea-cosum__warning:empty { display: none; }
.rea-cosum #rea-place { min-height: 56px; font-size: 16px; font-weight: 800; }
.rea-cosum #rea-place:disabled { background: #E3DBD0; color: var(--rea-muted) !important; cursor: not-allowed; }
.rea-cosum #rea-place.is-loading { cursor: progress; }
.rea-cosum #rea-place.is-loading::after { content: ""; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rea-spin .8s linear infinite; }
@keyframes rea-spin { to { transform: rotate(360deg); } }
/* Checkout: waiting for the couriers (prices, pick-up points). Shown after .3 s, so fast answers do not flicker. */
.rea-coloading { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--rea-muted); animation: rea-appear .2s .3s both; }
.rea-coloading[hidden] { display: none; }
.rea-coloading__spin { flex: none; width: 18px; height: 18px; border: 2.5px solid var(--rea-primary); border-right-color: transparent; border-radius: 50%; animation: rea-spin .8s linear infinite; }
.is-updating #rea-delivery { opacity: .55; transition: opacity .15s .3s; }
@keyframes rea-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rea-coloading__spin { animation-duration: 2.4s; } }
.rea-cosum__hint { margin: -6px 0 0; font-size: 13px; text-align: center; color: var(--rea-primary); }
.rea-cotrust { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; list-style: none; font-size: 13.5px; line-height: 1.35; }
.rea-cotrust li { display: flex; align-items: center; gap: 12px; }
.rea-cotrust .rea-icon { width: 20px; height: 20px; color: var(--rea-primary); }

/* Short footer */
body.rea-theme .rea-cofoot { position: static; padding: 0; border: 0; background: var(--rea-ink); color: #fff; font-size: 13px; }
.rea-cofoot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.rea-cofoot__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-weight: 700; }
.rea-cofoot__copy { color: #CFCACA; }

@media (max-width: 991.98px) {
  .rea-cartpage__grid, .rea-co__grid { grid-template-columns: minmax(0, 1fr); }
  .rea-cartpage .rea-summary, .rea-co__aside { position: static; }
  .rea-cohead__secure { display: none; }
}

@media (max-width: 767.98px) {
  .rea-cohead__inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .rea-cohead__logo img { height: 42px; }
  .rea-costeps { order: 3; width: 100%; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.25; }
  .rea-costeps li, body.rea-theme .rea-costeps a { gap: 6px; }
  .rea-costeps li + li::before { content: none; }
  .rea-co { padding-top: 24px; }
  .rea-cologin { padding: 16px; }
  .rea-coinvoice__box { padding: 16px; }
  .rea-cofields, .rea-cocouriers, .rea-cotypes { grid-template-columns: minmax(0, 1fr); }
  .rea-cofields--single .rea-cofield { grid-column: auto; }
  .rea-copay__badges { grid-column: 3 / -1; justify-content: flex-start; padding-top: 8px; }
}

@media (max-width: 575.98px) {
  .rea-cartline { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img qty total"; gap: 10px 12px; }
  .rea-cartline__image { grid-area: img; width: 72px; height: 72px; align-self: start; }
  .rea-cartline__info { grid-area: info; }
  .rea-cartline__qty { grid-area: qty; }
  .rea-cartline__total { grid-area: total; justify-self: end; }
  .rea-cartline__remove { grid-area: remove; width: 40px; height: 40px; align-self: start; justify-self: end; }
  .rea-cocard, .rea-cosum { padding: 20px 16px; }
  .rea-summary { padding: 20px 16px; }
}

/* Links in the texts of the information pages: otherwise they look like the text around them. */
body.rea-theme #information-information .rea-prose :is(p, li, td) a:not(.btn) { text-decoration: underline; }

/* Choice about cookies (common/consent.twig). The two main buttons have the same look on purpose. */
.rea-consent[hidden], .rea-consent [hidden], .rea-media [hidden] { display: none !important; }
.rea-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; padding: 16px; pointer-events: none; }
.rea-consent__box { pointer-events: auto; max-width: 720px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: 0 auto; padding: 24px; overflow-y: auto;
  background: #fff; color: var(--rea-ink); border: 1px solid var(--rea-line-strong); border-radius: var(--rea-radius-lg); box-shadow: 0 12px 48px rgba(35, 31, 32, .28); }
body.rea-theme .rea-consent__title { margin: 0 0 8px; font-family: var(--rea-font-display); font-size: 18px; font-weight: 600; outline: none; box-shadow: none; }
.rea-consent__text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.rea-consent__text a { text-decoration: underline; }
.rea-consent__more { margin: 0 0 16px; font-size: 14px; }
.rea-consent__more summary { padding: 6px 0; font-weight: 700; cursor: pointer; }
.rea-consent__list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rea-consent__list li { display: flex; gap: 12px; align-items: flex-start; }
.rea-consent__list .form-check-input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; }
.rea-consent__list label { font-weight: 700; cursor: pointer; }
.rea-consent__list p { margin: 2px 0 0; color: var(--rea-muted); line-height: 1.45; }
.rea-consent__error { margin: 0 0 12px; color: var(--rea-primary); font-size: 14px; font-weight: 700; }
.rea-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rea-consent__actions .rea-btn { flex: 1 1 200px; }
.rea-consent-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.rea-consent-open:hover { text-decoration: none; }
.rea-consent-open:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 575.98px) {
  .rea-consent { padding: 8px; }
  .rea-consent__box { padding: 16px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .rea-consent__text { font-size: 13px; }
}

/* A video of another site before it is loaded (common/media.twig), and after that */
.rea-media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; max-width: 700px; min-height: 220px; margin: 16px 0; padding: 24px; text-align: center;
  background: var(--rea-surface); border: 1px solid var(--rea-line-strong); border-radius: var(--rea-radius-md); }
.rea-media p { max-width: 46ch; margin: 0; font-size: 14px; }
.rea-media__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rea-media__frame { display: block; width: 100%; max-width: 700px; aspect-ratio: 16 / 9; height: auto; margin: 16px 0; border: 0; border-radius: var(--rea-radius-md); }

/* Courier office / locker picker (checkout, extension/rea/shipping/office_picker.twig) */
.rea-offices { display: flex; flex-direction: column; gap: 12px; }
body.rea-theme .rea-offices__title { margin: 0; font-family: var(--rea-font-display); font-weight: 600; font-size: 20px; letter-spacing: -.3px; }
.rea-offices__list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.rea-office { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--rea-line); border-radius: var(--rea-radius); cursor: pointer; margin: 0; }
.rea-office:hover { border-color: var(--rea-line-strong); }
.rea-office.is-selected { border-color: var(--rea-primary); background: #FBF5F5; }
.rea-office .form-check-input { margin: 3px 0 0; flex: none; }
.rea-office__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rea-office__name { font-weight: 700; font-size: 14px; }
.rea-office__address, .rea-office__hours { font-size: 13px; color: var(--rea-muted); }
.rea-offices__empty { margin: 0; color: var(--rea-muted); font-size: 14px; }

/* Shipment tracking in account › order (account/order_info.twig) */
.rea-tracking { display: flex; flex-direction: column; gap: 10px; }
body.rea-theme .rea-tracking__title { margin: 0 0 4px; font-size: 20px; }
.rea-tracking__item { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 18px;
  border: 1.5px solid var(--rea-line); border-radius: var(--rea-radius-md); }
.rea-tracking__item.is-delivered { border-color: #B9DFC3; background: #F3FAF5; }
.rea-tracking__main { display: flex; flex-direction: column; gap: 2px; }
.rea-tracking__courier { font-weight: 800; }
.rea-tracking__number { font-size: 14px; color: var(--rea-ink-soft); }
.rea-tracking__status { font-size: 14px; color: var(--rea-primary); font-weight: 700; }
.rea-tracking__item.is-delivered .rea-tracking__status { color: #1F7A3A; }

/* myPOS card payment (payment/rea_mypos_result.twig) */
.rea-pay-result { padding-top: 32px; padding-bottom: 56px; max-width: 720px; }
.rea-pay-result__text { font-size: 17px; line-height: 1.6; margin: 12px 0 24px; }
.rea-pay-result__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* "Марки" (/marki): event/brands.php. The tiles of the home page with the name and what the brand sells. */
.rea-brand-list__section { margin: 0 0 40px; scroll-margin-top: 24px; }
body.rea-theme .rea-brand-list__section h2 { margin: 0 0 16px; font-size: 24px; }
.rea-brand-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rea-brand-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--rea-line); border-radius: 18px; color: inherit; text-decoration: none; }
.rea-brand-card:hover { border-color: var(--rea-ink); }
.rea-brand-card__logo { display: flex; align-items: center; justify-content: center; height: 84px; margin-bottom: 8px; font-family: var(--rea-font-display); font-size: 18px; font-weight: 600; text-align: center; }
.rea-brand-card__logo img { display: block; width: auto; max-width: 100%; height: 72px; object-fit: contain; }
.rea-brand-card__name { font-size: 15px; font-weight: 800; }
.rea-brand-card__meta { font-size: 13px; line-height: 1.45; color: var(--rea-ink-soft); }
@media (max-width: 575.98px) {
  .rea-brand-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rea-brand-card { padding: 12px; }
  .rea-brand-card__logo { height: 64px; }
  .rea-brand-card__logo img { height: 56px; }
}

/* Pictures of the hero and the two cards (common/home.twig). The text stays on the left, the subject is on the right;
   a gradient in the colour of the card keeps the text readable where the picture is behind it. */
.rea-hero__main, .rea-promo { position: relative; isolation: isolate; overflow: hidden; }
.rea-hero__image, .rea-promo__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.rea-hero__main::after, .rea-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rea-hero__main::after { background: linear-gradient(90deg, rgba(110, 12, 28, .55) 0%, rgba(110, 12, 28, .2) 45%, rgba(110, 12, 28, 0) 65%); }
.rea-promo--sand::after { background: linear-gradient(90deg, #F3E6D3 0%, rgba(243, 230, 211, .85) 40%, rgba(243, 230, 211, 0) 70%); }
.rea-promo--dark::after { background: linear-gradient(90deg, #151314 0%, rgba(21, 19, 20, .8) 40%, rgba(21, 19, 20, 0) 72%); }
/* Desktop: the whole height of the picture on the right, its left edge fades into the colour of the card (as in the
   design); the headline wraps before the face. */
@media (min-width: 992px) {
  .rea-hero__image { left: auto; width: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .rea-hero__title { max-width: 480px; }
  .rea-hero__text { max-width: 520px; }
}
.rea-promo__title { max-width: 62%; }
@media (max-width: 991.98px) {
  .rea-hero__image { object-position: 78% center; }
  .rea-hero__main::after { background: linear-gradient(90deg, rgba(110, 12, 28, .92) 0%, rgba(110, 12, 28, .75) 55%, rgba(110, 12, 28, .2) 100%); }
}
@media (max-width: 575.98px) {
  .rea-hero__main::after { background: linear-gradient(180deg, rgba(110, 12, 28, .85) 0%, rgba(110, 12, 28, .9) 100%); }
  .rea-promo--sand::after { background: linear-gradient(90deg, #F3E6D3 0%, rgba(243, 230, 211, .9) 55%, rgba(243, 230, 211, .3) 100%); }
  .rea-promo--dark::after { background: linear-gradient(90deg, #151314 0%, rgba(21, 19, 20, .85) 55%, rgba(21, 19, 20, .3) 100%); }
}

/* "Вход" and "Нов клиент" (account/login.twig, account/register.twig). Design: mockups/Вход и регистрация — desktop.png */
/* The beige reaches the footer: its top margin (56px) is taken back here. */
.rea-auth { background: var(--rea-surface); padding: 56px 0 72px; margin-bottom: -56px; }
.rea-auth__inner { max-width: 1128px; }
.rea-auth__guest { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; padding: 16px 24px; border: 1px solid var(--rea-line); border-radius: var(--rea-radius-lg); background: #fff; }
.rea-auth__guest p { flex: 1 1 280px; margin: 0; font-size: 15px; }
.rea-auth__guest-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--rea-radius); background: var(--rea-pink-soft); color: var(--rea-primary); }
.rea-auth__guest-icon .rea-icon { width: 20px; height: 20px; }
.rea-auth__guest-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--rea-primary) !important; }
.rea-auth__guest-link .rea-icon { width: 16px; height: 16px; stroke-width: 2.2; }
.rea-auth__card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 var(--rea-line); }
.rea-auth__main { padding: 40px 48px 48px; }
.rea-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 32px; padding: 4px; border-radius: var(--rea-radius-md); background: var(--rea-surface); }
.rea-auth__tab { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--rea-radius); font-size: 16px; font-weight: 700; color: var(--rea-muted) !important; text-decoration: none; }
.rea-auth__tab:hover { color: var(--rea-ink) !important; }
.rea-auth__tab.is-active { background: #fff; color: var(--rea-ink) !important; box-shadow: 0 1px 3px rgba(35, 31, 32, .12); }
body.rea-theme .rea-auth__title { margin: 0 0 8px; font-size: 32px; line-height: 1.15; }
.rea-auth__lead { margin: 0 0 28px; font-size: 15px; line-height: 1.5; color: var(--rea-muted); }
.rea-auth__form { display: flex; flex-direction: column; gap: 20px; }
.rea-auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rea-auth__field .form-label { margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.rea-auth__field.required .form-label::after { content: " *"; color: var(--rea-primary); }
body.rea-theme .rea-auth__field .form-control, body.rea-theme .rea-auth__field .form-select { min-height: 54px; padding: 0 18px; font-size: 16px; }
.rea-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rea-auth__forgotten { font-size: 14px; font-weight: 700; color: var(--rea-primary) !important; }
.rea-auth__password { position: relative; }
body.rea-theme .rea-auth__password .form-control { padding-right: 56px; }
.rea-auth__eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--rea-radius); background: none; color: var(--rea-muted); }
.rea-auth__eye:hover, .rea-auth__eye[aria-pressed="true"] { color: var(--rea-ink); }
.rea-auth__eye .rea-icon { width: 20px; height: 20px; }
.rea-auth__check { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; }
.rea-auth__check .form-check-input { flex: none; float: none; width: 20px; height: 20px; margin: 0; }
.rea-auth__check .form-check-label { font-size: 14px; line-height: 1.45; color: var(--rea-ink-soft); }
.rea-auth__check a { color: var(--rea-primary) !important; text-decoration: underline; }
.rea-btn.rea-auth__submit { min-height: 56px; margin-top: 4px; font-size: 16px; font-weight: 800; }
.rea-auth__main .alert { margin-bottom: 20px; border-radius: var(--rea-radius); }
.rea-auth__aside { position: relative; isolation: isolate; overflow: hidden; padding: 48px; background: var(--rea-primary); color: #fff; }
.rea-auth__ring { position: absolute; top: 32px; right: 32px; z-index: -1; width: 112px; height: 112px; border: 2px solid var(--rea-pink); border-radius: 50%; }
.rea-auth__disc { position: absolute; right: -120px; bottom: -150px; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: var(--rea-primary-hover); }
body.rea-theme .rea-auth__aside-title { max-width: 400px; margin: 14px 0 32px; padding-right: 96px; font-size: 30px; line-height: 1.2; color: #fff; }
.rea-auth__benefits { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.rea-auth__benefits li { display: flex; gap: 16px; align-items: flex-start; }
.rea-auth__benefits strong { display: block; margin-bottom: 2px; font-size: 17px; }
.rea-auth__benefits li > span:last-child { font-size: 15px; line-height: 1.5; color: #F7E3E5; }
.rea-auth__benefit-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--rea-radius); background: rgba(255, 255, 255, .12); color: #fff; }
.rea-auth__benefit-icon .rea-icon { width: 22px; height: 22px; }
@media (max-width: 991.98px) {
  .rea-auth { padding: 32px 0 48px; }
  .rea-auth__card { grid-template-columns: 1fr; }
  .rea-auth__main, .rea-auth__aside { padding: 32px 24px; }
}
@media (max-width: 575.98px) {
  .rea-auth { padding: 16px 0 32px; }
  .rea-auth__ring { top: -36px; right: -36px; }
  body.rea-theme .rea-auth__aside-title { padding-right: 48px; font-size: 26px; }
  .rea-auth__main { padding: 24px 16px 28px; }
  .rea-auth__row { grid-template-columns: 1fr; }
  body.rea-theme .rea-auth__title { font-size: 26px; }
  .rea-auth__guest { padding: 14px 16px; }
}

/* Cart panel on the right (common/cart.twig, header.twig; rea.js keeps it in step with #cart) */
.rea-cart-panel.offcanvas { --bs-offcanvas-width: 440px; display: flex; flex-direction: column; border-left: 0; box-shadow: -12px 0 40px rgba(35, 31, 32, .12); }
.rea-cart-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--rea-line); }
body.rea-theme .rea-cart-panel__title { margin: 0; font-size: 22px; }
.rea-cart-panel__title span { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; margin-left: 6px; padding: 0 8px; border-radius: var(--rea-radius-pill); background: var(--rea-surface); font-family: var(--rea-font); font-size: 13px; font-weight: 800; vertical-align: middle; }
.rea-cart-panel__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--rea-surface); color: var(--rea-ink); }
.rea-cart-panel__close:hover { background: var(--rea-line); }
.rea-cart-panel__list { flex: 1 1 auto; overflow-y: auto; margin: 0; padding: 8px 24px; list-style: none; }
.rea-cart-panel__item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rea-line); }
.rea-cart-panel__item:last-child { border-bottom: 0; }
.rea-cart-panel__image { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; padding: 6px; border-radius: var(--rea-radius); background: var(--rea-surface); }
.rea-cart-panel__image img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.rea-cart-panel__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rea-cart-panel__name { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--rea-ink) !important; text-decoration: none; }
.rea-cart-panel__name:hover { color: var(--rea-primary) !important; }
.rea-cart-panel__meta { font-size: 12px; color: var(--rea-muted); }
.rea-cart-panel__stock { font-size: 12px; font-weight: 700; color: var(--rea-primary); }
.rea-cart-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.rea-cart-panel__qty form { display: contents; }
.rea-cart-panel__qty .rea-qty__btn { height: 38px; }
.rea-cart-panel__qty .rea-qty__btn[disabled] { opacity: .35; cursor: default; }
.rea-cart-panel__qty .rea-qty__input { display: inline-block; min-width: 28px; }
.rea-cart-panel__price { font-size: 15px; white-space: nowrap; }
.rea-cart-panel__remove { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--rea-muted); }
.rea-cart-panel__remove:hover { background: var(--rea-surface); color: var(--rea-primary); }
.rea-cart-panel__remove .rea-icon { width: 18px; height: 18px; }
.rea-cart-panel__foot { display: flex; flex-direction: column; gap: 10px; padding: 18px 24px 24px; border-top: 1px solid var(--rea-line); background: #fff; }
.rea-cart-panel__totals { width: 100%; font-size: 14px; }
.rea-cart-panel__totals td { padding: 3px 0; }
.rea-cart-panel__totals td:last-child { text-align: right; white-space: nowrap; }
.rea-cart-panel__totals tr:last-child td { padding-top: 6px; font-size: 17px; font-weight: 800; }
.rea-cart-panel__note { margin: 0 0 4px; font-size: 12px; color: var(--rea-muted); }
.rea-cart-panel__foot .rea-btn { min-height: 50px; font-weight: 800; }
/* "Продължи пазаруването": a third, quieter way out of the panel (closes it). */
.rea-cart-panel__continue { align-self: center; min-height: 44px; padding: 8px 16px; border: 0; background: none; color: var(--rea-ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rea-cart-panel__continue:hover { color: var(--rea-primary); }
.rea-cart-panel__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px; text-align: center; color: var(--rea-muted); }
.rea-cart-panel__empty p { margin: 0; font-size: 15px; }
.rea-cart-panel__empty-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--rea-surface); color: var(--rea-ink); }
.rea-cart-panel__empty-icon .rea-icon { width: 30px; height: 30px; }
@media (max-width: 575.98px) {
  .rea-cart-panel.offcanvas { --bs-offcanvas-width: 100vw; }
  .rea-cart-panel__head, .rea-cart-panel__foot { padding-left: 16px; padding-right: 16px; }
  .rea-cart-panel__list { padding: 4px 16px; }
}

/* Help pages: information/information.twig, information/help.twig (/pomosht). Design: mockups/Информационна страница — „За rea.bg“.png */
.rea-help { padding-bottom: 32px; }
.rea-help__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.rea-help__nav { position: sticky; top: 16px; padding: 20px 16px; border-radius: var(--rea-radius-lg); background: var(--rea-surface); }
.rea-help__group + .rea-help__group { margin-top: 18px; }
.rea-help__group-title { padding: 0 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rea-muted); }
.rea-help__nav ul { margin: 0; padding: 0; list-style: none; }
body.rea-theme .rea-help__nav a { display: block; padding: 9px 12px; border-radius: var(--rea-radius); font-size: 15px; font-weight: 600; color: var(--rea-ink) !important; text-decoration: none; }
body.rea-theme .rea-help__nav a:hover { background: #fff; }
body.rea-theme .rea-help__nav a.is-active { background: #fff; color: var(--rea-primary) !important; font-weight: 800; }
.rea-help__main { max-width: 800px; min-width: 0; }
body.rea-theme .rea-help__title { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 46px); }
.rea-help__lead { margin: 0 0 28px; font-size: 19px; line-height: 1.55; color: var(--rea-ink-soft); }
.rea-prose { font-size: 16px; line-height: 1.75; color: var(--rea-ink-soft); overflow-wrap: anywhere; }
body.rea-theme .rea-prose h2, body.rea-theme .rea-about__heading { margin: 36px 0 12px; font-family: var(--rea-font); font-size: 22px; font-weight: 800; letter-spacing: 0; color: var(--rea-ink); }
body.rea-theme .rea-prose h3 { margin: 24px 0 8px; font-family: var(--rea-font); font-size: 18px; font-weight: 800; color: var(--rea-ink); }
.rea-prose > :first-child { margin-top: 0; }
.rea-prose p, .rea-prose ul, .rea-prose ol { margin: 0 0 14px; }
.rea-prose li + li { margin-top: 4px; }
.rea-prose a { color: var(--rea-primary) !important; text-decoration: underline; }
.rea-prose table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 14px; }
.rea-prose th, .rea-prose td { padding: 8px 10px; border-bottom: 1px solid var(--rea-line); text-align: left; vertical-align: top; }
.rea-prose img { max-width: 100%; height: auto; }
.rea-about__figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 36px; padding: 0; list-style: none; }
.rea-about__figures li { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: var(--rea-radius-md); background: var(--rea-pink-soft); }
.rea-about__figures strong { font-family: var(--rea-font-display); font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--rea-primary); }
.rea-about__figures span { font-size: 14px; line-height: 1.4; color: var(--rea-ink-soft); }
.rea-about__brands { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
body.rea-theme .rea-about__brands a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--rea-line-strong); border-radius: var(--rea-radius-pill); font-size: 15px; font-weight: 700; color: var(--rea-ink) !important; text-decoration: none; }
.rea-about__brands a:hover { border-color: var(--rea-ink); }
.rea-about__brands a.is-all { border-color: var(--rea-primary); color: var(--rea-primary) !important; }
.rea-about__merchant { margin: 40px 0 0; padding: 24px 28px; border: 1px solid var(--rea-line); border-radius: var(--rea-radius-lg); }
body.rea-theme .rea-about__merchant h2 { margin: 0 0 16px; font-family: var(--rea-font); font-size: 20px; font-weight: 800; letter-spacing: 0; }
.rea-about__merchant dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 0; }
.rea-about__merchant dt { font-size: 13px; font-weight: 500; color: var(--rea-muted); }
.rea-about__merchant dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; }
.rea-about__merchant a { color: var(--rea-ink) !important; text-decoration: underline; }
.rea-help__related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
body.rea-theme .rea-help__related a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--rea-radius-md); background: var(--rea-surface); color: var(--rea-ink) !important; text-decoration: none; }
.rea-help__related a:hover { background: var(--rea-tint-sand); }
.rea-help__related strong { font-size: 16px; }
.rea-help__related span { font-size: 14px; color: var(--rea-muted); }
.rea-help__related--grid { margin-top: 0; }
.rea-help__section { margin-top: 32px; }
body.rea-theme .rea-help__section h2 { margin: 0 0 12px; font-family: var(--rea-font); font-size: 20px; font-weight: 800; letter-spacing: 0; }
.rea-help__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px 28px; border-radius: var(--rea-radius-lg); background: var(--rea-pink-soft); }
.rea-help__contact strong { display: block; font-size: 18px; }
.rea-help__contact span { color: var(--rea-ink-soft); }
@media (max-width: 991.98px) {
  .rea-help__layout { grid-template-columns: 1fr; gap: 24px; }
  .rea-help__nav { position: static; order: 2; }
  .rea-help__main { order: 1; }
  .rea-about__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .rea-help__lead { font-size: 17px; }
  .rea-help__related { grid-template-columns: 1fr; }
  .rea-about__merchant { padding: 20px; }
  .rea-about__merchant dl { grid-template-columns: 1fr; }
  .rea-about__figures strong { font-size: 24px; }
}

/* Footer: the help groups, the legal links and the merchant (common/footer.twig, event/help.footer) */
body.rea-theme .rea-footer .rea-footer__help { color: #fff; font-weight: 700; text-decoration: underline; }
.rea-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
body.rea-theme .rea-footer .rea-footer__legal a, .rea-footer__legal .rea-consent-open { text-decoration: underline; }
.rea-footer__company { margin: 0; color: var(--rea-line-strong); }

/* "Контакти" (information/contact.twig, event/help.contact) */
.rea-contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.rea-contact__cards li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--rea-radius-md); background: var(--rea-surface); }
.rea-contact__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--rea-radius); background: var(--rea-pink-soft); color: var(--rea-primary); }
.rea-contact__icon .rea-icon { width: 22px; height: 22px; }
.rea-contact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rea-contact__title { font-size: 13px; color: var(--rea-muted); }
.rea-contact__value { font-size: 17px; font-weight: 800; color: var(--rea-ink) !important; overflow-wrap: anywhere; }
body.rea-theme a.rea-contact__value { text-decoration: underline; text-underline-offset: 3px; }
.rea-contact__note { font-size: 13px; line-height: 1.45; color: var(--rea-ink-soft); }
.rea-contact__form { padding: 28px; border: 1px solid var(--rea-line); border-radius: var(--rea-radius-lg); }
body.rea-theme .rea-contact__form h2 { margin: 0 0 6px; font-family: var(--rea-font); font-size: 22px; font-weight: 800; letter-spacing: 0; }
.rea-contact__form > p { margin: 0 0 20px; font-size: 15px; color: var(--rea-ink-soft); }
.rea-contact__form form { display: flex; flex-direction: column; gap: 18px; }
.rea-contact__form .rea-btn { align-self: flex-start; min-height: 52px; padding: 0 36px; font-weight: 800; }
@media (max-width: 575.98px) {
  .rea-contact__cards { grid-template-columns: 1fr; }
  .rea-contact__form { padding: 20px 16px; }
  .rea-contact__form .rea-btn { align-self: stretch; }
}
