/* ============================================================
   Elvaro Design System — Component Library v1.1.0
   All components. Depends on tokens.css.
   Prefix: elv-  (VIP card: elvaro-vip-card, parcel: elvaro-pterm)
   ============================================================ */

/* ============================================================
   1. BUTTONS
   ============================================================ */
.elv-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  border: none;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}

/* Sizes */
.elv-btn--sm { padding: var(--sp-2) var(--sp-3); font-size: 13px; }
.elv-btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-button); }

/* Primary */
.elv-btn--primary {
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  box-shadow: var(--shadow-button);
}
.elv-btn--primary:hover  { background: var(--brand-yellow-hover); transform: translateY(-0.5px); }
.elv-btn--primary:active { background: var(--brand-yellow-press); transform: translateY(1px); }
.elv-btn--primary:focus-visible { box-shadow: var(--shadow-yellow-ring); }

/* Secondary */
.elv-btn--secondary {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid rgba(var(--fg-rgb), 0.18);
}
.elv-btn--secondary:hover {
  background: rgba(var(--fg-rgb), 0.04);
  border-color: rgba(var(--fg-rgb), 1);
}
.elv-btn--secondary:focus-visible { box-shadow: var(--shadow-yellow-ring); }

/* Ghost */
.elv-btn--ghost {
  background: rgba(var(--fg-rgb), 0.04);
  color: var(--fg-1);
}
.elv-btn--ghost:hover { background: rgba(var(--fg-rgb), 0.08); }

/* Text */
.elv-btn--text {
  background: transparent;
  color: var(--brand-yellow);
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}
.elv-btn--text:hover { color: var(--brand-yellow-hover); }

/* VIP */
.elv-btn--vip {
  background: var(--surface-2);
  color: var(--brand-gold-hi);
  border: 1px solid rgba(232,184,95,0.45);
}
.elv-btn--vip:hover { background: rgba(232,184,95,0.08); }

/* Danger */
.elv-btn--danger {
  background: var(--danger);
  color: var(--fg-1);
  box-shadow: var(--shadow-button);
}
.elv-btn--danger:hover { background: #DC2626; }

/* Disabled */
.elv-btn:disabled,
.elv-btn--disabled {
  background: var(--surface-1);
  color: var(--fg-4);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  border-color: transparent;
}

/* Product CTA — 48px tall, used inside cards */
.elv-btn--cta {
  width: 100%;
  height: 48px;
  justify-content: center;
  border-radius: 12px;
  font-size: var(--fs-button);
  font-weight: 700;
}

/* ============================================================
   2. BADGES — condition + SALE
   ============================================================ */
.elv-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.elv-badge--sale     { background: var(--brand-yellow); color: var(--fg-on-yellow); }
.elv-badge--new      { background: var(--cond-new-bg);     color: var(--cond-new-fg); }
.elv-badge--refurb   { background: var(--cond-refurb-bg);  color: var(--cond-refurb-fg); }
.elv-badge--tested   { background: var(--cond-tested-bg);  color: var(--cond-tested-fg); }
.elv-badge--broken   { background: var(--cond-broken-bg);  color: var(--cond-broken-fg); }

/* Badge stack — absolute top-left of image area */
.elv-badge-stack {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}

/* ============================================================
   3. CHIPS
   ============================================================ */
.elv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.elv-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.elv-chip--success { background: var(--success-soft);   color: var(--success); }
.elv-chip--danger  { background: var(--danger-soft);     color: var(--danger); }
.elv-chip--warning { background: var(--warning-soft);    color: var(--warning); }
.elv-chip--neutral { background: var(--surface-4);       color: var(--fg-2); }
.elv-chip--popular {
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
}

/* Warranty — plain icon + text (NOT a chip) */
.elv-warranty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  line-height: 1;
}
.elv-warranty svg { color: var(--success); flex-shrink: 0; }

/* ============================================================
   4. PRODUCT CARD — SALES
   ============================================================ */
.elv-card-sales {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.elv-card-sales:hover {
  background: var(--surface-3);
  border-color: var(--hairline-strong);
}

.elv-card-sales__img {
  aspect-ratio: 1/1;
  background:
    radial-gradient(60% 60% at 50% 55%, rgba(34,80,90,0.18) 0%, var(--surface-1) 80%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.elv-card-sales__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.elv-card-sales__title {
  font-weight: 800;
  font-size: 19px;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.elv-card-sales__sub {
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 4px;
  line-height: 1.3;
}

.elv-card-sales__price {
  font-weight: 800;
  font-size: 32px;
  color: var(--fg-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.elv-card-sales__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.elv-card-sales__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* ============================================================
   5. PRODUCT CARD — RENTAL
   ============================================================ */
.elv-card-rental {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-card);
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.elv-card-rental:hover {
  background: var(--surface-3);
  border-color: var(--hairline-strong);
}

.elv-card-rental__img {
  position: relative;
  aspect-ratio: 1 / 0.85;
  background:
    radial-gradient(50% 50% at 50% 55%, rgba(34,80,90,0.18) 0%, var(--surface-1) 80%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.elv-card-rental__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.elv-card-rental__title { font-weight: 800; font-size: 22px; color: var(--fg-1); letter-spacing: -0.01em; line-height: 1.15; }
.elv-card-rental__sub   { font-size: 14px; color: var(--fg-3); margin-top: 2px; }
.elv-card-rental__stock { margin-top: var(--sp-2); }

/* Pricing columns: Regular | VIP */
.elv-card-rental__pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.elv-pricing-col {
  border-radius: 12px;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--hairline);
}
.elv-pricing-col--regular { background: rgba(var(--fg-rgb), 0.02); }
.elv-pricing-col--vip {
  background: rgba(247,183,3,0.06);
  border-color: rgba(247,183,3,0.30);
}

.elv-pricing-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.elv-pricing-col__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.elv-pricing-col--vip .elv-pricing-col__name { color: var(--brand-yellow); }
.elv-pricing-col--vip .elv-pricing-col__name svg { fill: var(--brand-yellow); }

.elv-pricing-col__save {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(34,197,94,0.18);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.elv-pricing-col__row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.elv-pricing-col__num { font-size: 17px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.01em; line-height: 1.2; }
.elv-pricing-col--vip .elv-pricing-col__num { color: var(--brand-yellow); }
.elv-pricing-col__per { font-size: 12px; color: var(--fg-3); }
.elv-pricing-col--vip .elv-pricing-col__per { color: rgba(var(--fg-rgb), 0.6); }

.elv-pricing-col__deposit {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--fg-2);
}
.elv-pricing-col--vip .elv-pricing-col__deposit {
  border-top-color: rgba(247,183,3,0.18);
  color: var(--success);
  font-weight: 700;
}

.elv-card-rental__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.elv-card-rental__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  padding: 0 var(--sp-1);
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-card-rental__more:hover { color: var(--brand-yellow); }

/* ============================================================
   6. RENTAL COMPARISON TABLE
   ============================================================ */
.elv-rental-table {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.elv-rental-table table {
  width: 100%;
  border-collapse: collapse;
}

.elv-rental-table th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.elv-rental-table th.col-vip {
  color: var(--brand-yellow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.elv-rental-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
  vertical-align: middle;
}

.elv-rental-table tr:first-of-type td { border-top: none; }

/* Period column */
.elv-rental-table .col-period { font-size: 18px; font-weight: 500; color: var(--fg-1); }

/* Regular price */
.elv-rental-table .col-regular {
  font-size: 22px;
  font-weight: 800;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}

/* VIP price */
.elv-rental-table .col-vip-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-yellow);
  font-variant-numeric: tabular-nums;
}

.elv-rental-table__save {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(34,197,94,0.16);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* Popular row */
.elv-rental-table tr.is-popular td {
  background: linear-gradient(90deg, transparent 0%, rgba(247,183,3,0.06) 40%, rgba(247,183,3,0.10) 100%);
  border-top: 1px solid rgba(247,183,3,0.18);
  border-bottom: 1px solid rgba(247,183,3,0.18);
}
.elv-rental-table tr.is-popular + tr td { border-top: none; }

.elv-rental-table__popular-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* ============================================================
   7. RENTAL PERIOD SELECTOR
   ============================================================ */
.elv-period-selector { display: flex; flex-direction: column; gap: 10px; }

.elv-period-selector__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.elv-period-selector__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.elv-period-tile {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 180ms cubic-bezier(0.2,0,0,1);
}
.elv-period-tile__term  { font-size: 22px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.01em; line-height: 1.1; }
.elv-period-tile__price { font-size: 18px; font-weight: 500; color: var(--fg-3); font-variant-numeric: tabular-nums; line-height: 1.2; }

.elv-period-tile:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-3);
}

.elv-period-tile.is-selected {
  background: rgba(247,183,3,0.04);
  border: 1.5px solid var(--brand-yellow);
  box-shadow:
    0 0 0 4px rgba(247,183,3,0.08),
    0 1px 0 0 rgba(var(--fg-rgb), 0.04) inset;
}

.elv-period-tile__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 6px 16px -4px rgba(247,183,3,0.4);
}

/* ============================================================
   8. CATALOG FILTER BAR (horizontal, 3-column)
   ============================================================ */
.elv-filter-bar {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  display: grid;
  grid-template-columns: 260px 1fr 360px;
  gap: 24px;
  align-items: start;
}

.elv-filter-bar__section { display: flex; flex-direction: column; gap: 8px; }

.elv-filter-bar__overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Category dropdown */
.elv-filter-bar__cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  background: var(--surface-1);
  border: 1px solid rgba(var(--fg-rgb), 0.10);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-standard);
  width: 100%;
  text-align: left;
}
.elv-filter-bar__cat-btn:hover { border-color: rgba(var(--fg-rgb), 0.24); }

.elv-filter-bar__cat-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-3);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 50;
  box-shadow: var(--shadow-pop);
}
.elv-filter-bar__cat-panel.is-open { display: block; }

.elv-filter-bar__cat-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--fg-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
.elv-filter-bar__cat-item:hover { background: rgba(var(--fg-rgb), 0.04); }
.elv-filter-bar__cat-item.is-active {
  background: rgba(247,183,3,0.06);
  color: var(--brand-yellow);
  font-weight: 600;
}

/* Condition chips (multi-select) */
.elv-filter-bar__conds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.elv-cond-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-1);
  border: 1px solid rgba(var(--fg-rgb), 0.10);
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}
.elv-cond-chip .elv-cond-chip__dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.elv-cond-chip.is-active {
  border-color: var(--hairline-yellow);
  background: rgba(247,183,3,0.06);
  color: var(--fg-1);
}
.elv-cond-chip--new .elv-cond-chip__dot    { background: var(--cond-new-fg); }
.elv-cond-chip--refurb .elv-cond-chip__dot { background: var(--cond-refurb-fg); }
.elv-cond-chip--tested .elv-cond-chip__dot { background: var(--cond-tested-fg); }

/* Price range */
.elv-filter-bar__price {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.elv-filter-bar__price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.elv-filter-bar__price-range {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}

.elv-filter-bar__price-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--brand-yellow);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.elv-filter-bar__slider-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.elv-filter-bar__slider-track {
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
}

.elv-filter-bar__slider-fill {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: var(--brand-yellow);
  pointer-events: none;
}

.elv-filter-bar__slider {
  position: absolute;
  width: 100%;
  top: 50%; transform: translateY(-50%);
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
}
.elv-filter-bar__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-yellow);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-standard);
}
.elv-filter-bar__slider::-webkit-slider-thumb:hover { box-shadow: var(--shadow-yellow-ring); }
.elv-filter-bar__slider::-moz-range-thumb {
  pointer-events: all;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-yellow);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1179px) {
  .elv-filter-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .elv-filter-bar__section:last-child { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .elv-filter-bar { grid-template-columns: 1fr; }
  .elv-filter-bar__section:last-child { grid-column: auto; }
}

/* ============================================================
   9. FILTER SIDEBAR (legacy — cart, my-orders)
   ============================================================ */
.elv-filter-sidebar {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  height: fit-content;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}

.elv-filter-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}

.elv-filter-sidebar__title {
  font-weight: 800;
  font-size: 18px;
  color: var(--fg-1);
  font-family: var(--font-display);
}

.elv-filter-sidebar__reset {
  font-size: 12px;
  color: var(--brand-yellow);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.elv-filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.elv-filter-group:last-child { border-bottom: none; }

.elv-filter-group__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-1);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.elv-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--fg-2);
}
.elv-filter-option:hover { color: var(--fg-1); }

.elv-filter-option__check {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(var(--fg-rgb), 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-standard);
}
.elv-filter-option__check.is-checked {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--fg-on-yellow);
}

.elv-filter-option__count {
  margin-left: auto;
  font-size: 11px;
  color: var(--fg-4);
}

/* ============================================================
   10. CATEGORY TILE ROW
   ============================================================ */
.elv-category-tiles {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.elv-category-tiles::-webkit-scrollbar { display: none; }

/* Layout: N tiles + trailing chevron tile */
.elv-category-tiles--6 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.elv-category-tiles--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.elv-category-tiles--4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.elv-category-tile {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  cursor: pointer;
  scroll-snap-align: start;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
  min-width: 0;
}
.elv-category-tile:hover { background: var(--surface-3); border-color: var(--hairline-strong); }

.elv-category-tile.is-active {
  border-color: var(--hairline-yellow);
  background: rgba(247,183,3,0.04);
}
.elv-category-tile.is-active .elv-category-tile__count { color: var(--brand-yellow); }

.elv-category-tile__icon {
  aspect-ratio: 5/3;
  background: radial-gradient(70% 70% at 50% 60%, var(--surface-3) 0%, var(--surface-1) 80%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
}
.elv-category-tile__icon img,
.elv-category-tile__icon svg { width: 32px; height: 32px; }

.elv-category-tile__name  { font-size: 13px; font-weight: 700; color: var(--fg-1); line-height: 1.3; }
.elv-category-tile__count { font-size: 11px; font-weight: 600; color: var(--fg-3); }

/* Trailing chevron tile */
.elv-category-tile--next {
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: rgba(var(--fg-rgb), 0.08);
}
.elv-category-tile--next svg { color: var(--brand-yellow); }

@media (max-width: 899px) {
  .elv-category-tiles--6 { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}
@media (max-width: 639px) {
  .elv-category-tiles--6 { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
}

/* ============================================================
   11. TRUST STRIP
   ============================================================ */
.elv-trust-strip {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.elv-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.elv-trust-item__body {
  min-width: 0;
}

.elv-trust-item__icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
}
.elv-trust-item__icon svg { width: 22px; height: 22px; }

.elv-trust-item__title { font-size: 13px; font-weight: 700; color: var(--fg-1); line-height: 1.3; }
.elv-trust-item__sub,
.elv-trust-item__text  { font-size: 11px; color: var(--fg-3); margin-top: 2px; line-height: 1.4; }

@media (min-width: 900px) {
  .elv-trust-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--sp-4) var(--sp-5);
    gap: 24px;
  }
  .elv-trust-item { padding-left: 24px; border-left: 1px solid var(--hairline); }
  .elv-trust-item:first-child { padding-left: 0; border-left: none; }
}

/* ============================================================
   12. STEPS — "Как это работает"
   ============================================================ */
.elv-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.elv-step {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: relative;
}

.elv-step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(247,183,3,0.14);
  color: var(--brand-yellow);
  border: 1px solid rgba(247,183,3,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}

.elv-step__title { font-weight: 700; font-size: 14px; color: var(--fg-1); line-height: 1.3; }
.elv-step__sub   { font-size: 12px; color: var(--fg-3); margin-top: 6px; line-height: 1.5; }

.elv-step__arrow {
  position: absolute;
  top: 28px;
  right: -14px;
  color: var(--brand-yellow);
  font-size: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 1px solid rgba(247,183,3,0.4);
}
.elv-step:last-child .elv-step__arrow { display: none; }

@media (max-width: 899px) {
  .elv-steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .elv-step__arrow { display: none; }
}
@media (max-width: 639px) {
  .elv-steps { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   13. FAQ ACCORDION
   ============================================================ */
.elv-faq {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.elv-faq-item {
  border-bottom: 1px solid var(--hairline);
}
.elv-faq-item:last-child { border-bottom: none; }

.elv-faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-1);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--dur-fast) var(--ease-standard);
}
.elv-faq-item__q:hover { background: rgba(var(--fg-rgb), 0.02); }
.elv-faq-item__q::marker, .elv-faq-item__q::-webkit-details-marker { display: none; }

.elv-faq-item__icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 6px;
  background: rgba(var(--fg-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  font-size: 16px;
  transition: transform var(--dur-base) var(--ease-emphasized),
              background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}

.elv-faq-item[open] { background: var(--surface-3); }
.elv-faq-item[open] .elv-faq-item__icon {
  background: rgba(247,183,3,0.14);
  color: var(--brand-yellow);
  transform: rotate(45deg);
}

.elv-faq-item__a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ============================================================
   14. TABS
   ============================================================ */
/* Pill tabs */
.elv-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.elv-tab {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}
.elv-tab:hover:not(.is-active) { background: rgba(var(--fg-rgb), 0.04); color: var(--fg-1); }
.elv-tab.is-active {
  color: var(--brand-yellow);
  border-color: rgba(247,183,3,0.55);
  background: rgba(247,183,3,0.06);
}

/* Underline tabs */
.elv-tabs--underline {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}
.elv-tabs--underline .elv-tab {
  padding: 12px 0;
  color: var(--fg-3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
}
.elv-tabs--underline .elv-tab:hover:not(.is-active) { color: var(--fg-2); }
.elv-tabs--underline .elv-tab.is-active {
  color: var(--fg-1);
  background: transparent;
  border-bottom-color: var(--brand-yellow);
}

/* Segmented / pill switcher */
.elv-tabs--seg {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
}
.elv-tabs--seg .elv-tab {
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  border: none;
  color: var(--fg-2);
}
.elv-tabs--seg .elv-tab.is-active {
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  border-color: transparent;
}

/* ============================================================
   15. OTP INPUT
   ============================================================ */
.elv-otp {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.elv-otp__title { font-weight: 700; font-size: 16px; color: var(--fg-1); }
.elv-otp__sub   { font-size: 13px; color: var(--fg-3); }

.elv-otp__cells {
  display: flex;
  gap: 10px;
}

.elv-otp__cell {
  width: 48px;
  height: 56px;
  border-radius: 10px;
  background: var(--surface-1);
  border: 1px solid rgba(var(--fg-rgb), 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg-1);
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.elv-otp__cell.is-active {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px var(--brand-yellow-ring);
}
.elv-otp__cell.is-filled { color: var(--fg-1); }

/* ============================================================
   16. TOAST
   ============================================================ */
.elv-toast-zone {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.elv-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1px solid rgba(247,183,3,0.4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  pointer-events: all;
  white-space: nowrap;
  animation: elv-toast-in var(--dur-slow) var(--ease-emphasized);
}
.elv-toast.is-leaving { animation: elv-toast-out var(--dur-base) var(--ease-standard) forwards; }

.elv-toast__icon { color: var(--brand-yellow); flex-shrink: 0; }
.elv-toast--success .elv-toast__icon { color: var(--success); }
.elv-toast--danger  .elv-toast__icon { color: var(--danger); }

@keyframes elv-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes elv-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ============================================================
   17. SKELETON + EMPTY STATE
   ============================================================ */
@keyframes elv-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.elv-skeleton {
  background: var(--surface-1);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--fg-rgb), 0.04) 40%,
    transparent 80%
  );
  background-size: 600px 100%;
  background-repeat: no-repeat;
  border-radius: 6px;
  animation: elv-shimmer 1400ms linear infinite;
}

.elv-skeleton-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.elv-skeleton-card__img  { aspect-ratio: 1/1; border-radius: 12px; }
.elv-skeleton-card__line { height: 14px; }

.elv-empty {
  background: var(--surface-2);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.elv-empty__icon { color: var(--fg-4); }
.elv-empty__title { font-weight: 700; font-size: 16px; color: var(--fg-1); margin: 0; }
.elv-empty__sub   { font-size: 13px; color: var(--fg-3); margin: 0; max-width: 320px; }

/* ============================================================
   18. CART LINE ITEM
   ============================================================ */
.elv-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.elv-cart-item:last-child { border-bottom: none; }

.elv-cart-item__img {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  overflow: hidden;
  flex-shrink: 0;
}
.elv-cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.elv-cart-item__name  { font-weight: 700; font-size: 15px; color: var(--fg-1); line-height: 1.3; }
.elv-cart-item__meta  { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.elv-cart-item__remove { font-size: 12px; color: var(--fg-4); cursor: pointer; margin-top: 6px; }
.elv-cart-item__remove:hover { color: var(--danger); }

/* Quantity stepper */
.elv-qty {
  display: flex;
  align-items: center;
  background: var(--surface-1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.elv-qty__btn {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-2);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-qty__btn:hover { color: var(--fg-1); }
.elv-qty__val {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}

.elv-cart-item__price {
  font-weight: 800;
  font-size: 18px;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 639px) {
  .elv-cart-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .elv-cart-item__qty   { grid-column: 2; }
  .elv-cart-item__price { grid-column: 2; }
}

/* ============================================================
   19. HERO BANNER
   ============================================================ */
.elv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-1) 100%);
}

.elv-hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.elv-hero__content {
  position: relative;
  z-index: 3;
  padding: 56px var(--gutter-d);
  max-width: 640px;
}

.elv-hero__overline {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-yellow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.elv-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin-bottom: 18px;
}
.elv-hero__title .accent { color: var(--brand-yellow); }

.elv-hero__desc {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 32px;
}

.elv-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.elv-hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.elv-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-2);
}
.elv-hero__trust-item::before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  background: var(--brand-yellow);
  mask: url('../icons/shield.svg') no-repeat center / contain;
  -webkit-mask: url('../icons/shield.svg') no-repeat center / contain;
}

.elv-hero__visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  pointer-events: none;
}
.elv-hero__visual-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.8) 20%, transparent 55%);
  z-index: 2;
}

@media (max-width: 1179px) {
  .elv-hero__visual { display: none; }
  .elv-hero__content { max-width: 100%; }
}
@media (max-width: 719px) {
  .elv-hero__inner { min-height: 630px; }
  .elv-hero__content { padding: 40px var(--gutter-m) 48px; }
  .elv-hero__trust { flex-direction: column; gap: 12px; }
}

/* ============================================================
   20. VIP MEMBERSHIP CARD (from design source)
   ============================================================ */
.elvaro-vip-card {
  --vc-bg-1:    #0A0805;
  --vc-bg-2:    #14100A;
  --vc-bg-3:    #1A140C;
  --vc-gold:    #E8B85F;
  --vc-gold-hi: #F5D283;
  --vc-gold-lo: #8C6A2A;
  --vc-edge:    rgba(232,184,95,0.55);
  --vc-radius:  16px;

  position: relative;
  display: none; /* shown ≥1180px (VIP block); see media query below */
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 240px;
  aspect-ratio: 1.6 / 1;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(232,184,95,0.32) 0%, transparent 55%),
    linear-gradient(135deg, #0F0E0C 0%, #1B150A 60%, #2A1F0E 100%);
  border: 1px solid rgba(232,184,95,0.40);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.85);
  font-family: var(--font-display);
  text-align: center;
  isolation: isolate;
  transform: rotate(-3deg);
  flex-shrink: 0;
}

.elvaro-vip-card::before,
.elvaro-vip-card::after {
  content: "";
  position: absolute;
  width: 38%; height: 60%;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(135deg,
      transparent 0, transparent 18%,
      var(--vc-gold-lo) 18%, var(--vc-gold) 20%,
      var(--vc-gold-hi) 21%, var(--vc-gold) 22%,
      var(--vc-gold-lo) 24%, transparent 24%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(232,184,95,0.3));
}
.elvaro-vip-card::before { top: 0; left: 0; }
.elvaro-vip-card::after  { bottom: 0; right: 0; transform: rotate(180deg); }

.elvaro-vip-card .vc-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--fg-rgb), 0.05) 0%, rgba(var(--fg-rgb), 0) 30%, rgba(var(--fg-rgb), 0) 70%, rgba(0,0,0,0.25) 100%);
  pointer-events: none; z-index: 2;
}
.elvaro-vip-card > *:not(.vc-sheen) { position: relative; z-index: 3; }

.elvaro-vip-card .vc-crown {
  width: clamp(26px, 11%, 44px); height: auto;
  color: var(--vc-gold);
  filter: drop-shadow(0 2px 6px rgba(232,184,95,0.45));
}

.elvaro-vip-card .vc-wordmark {
  font-weight: 800;
  font-size: clamp(26px, 13%, 56px);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(180deg, var(--vc-gold-hi) 0%, var(--vc-gold) 50%, var(--vc-gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.elvaro-vip-card .vc-tagline {
  font-weight: 700;
  font-size: clamp(10px, 4.2%, 16px);
  letter-spacing: 0.32em;
  color: var(--vc-gold);
  margin: 0;
  opacity: 0.95;
}

/* Sizes */
.elvaro-vip-card.vc-sm { max-width: 220px; --vc-radius: 12px; }
.elvaro-vip-card.vc-md { max-width: 360px; }
.elvaro-vip-card.vc-lg { max-width: 480px; }

/* Tilts */
.elvaro-vip-card.vc-tilt-l { transform: rotate(-6deg); }
.elvaro-vip-card.vc-tilt-r { transform: rotate(6deg); }

/* VIP block variant children (markup: inc/vip-page-blocks.php) */
.elvaro-vip-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-gold-hi);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.elvaro-vip-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--fg-1);
  letter-spacing: 0.04em;
}

.elvaro-vip-card__member {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--brand-gold-hi);
  letter-spacing: 0.10em;
  margin-top: 6px;
}

/* Card hidden below desktop (VIP block layout) */
@media (min-width: 1180px) {
  .elvaro-vip-card { display: flex; }
}

/* ============================================================
   21. PARCEL TERMINAL (from design source)
   ============================================================ */
.elvaro-pterm {
  --pt-bg-1:        #0B0A07;
  --pt-bg-2:        #15110A;
  --pt-bg-3:        #1A160F;
  --pt-door:        #1C1914;
  --pt-door-hi:     #28241D;
  --pt-door-lo:     #0E0C09;
  --pt-edge:        rgba(var(--fg-rgb), 0.06);
  --pt-edge-strong: rgba(var(--fg-rgb), 0.14);
  --pt-yellow:      #F7B703;
  --pt-yellow-hi:   #FFD24A;
  --pt-yellow-soft: rgba(247,183,3,0.18);
  --pt-text:        #FAFAFA;
  --pt-text-2:      rgba(var(--fg-rgb), 0.72);
  --pt-text-3:      rgba(var(--fg-rgb), 0.42);
  --pt-text-4:      rgba(var(--fg-rgb), 0.18);

  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 14px;
  display: block;
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 11;
  padding: 1.4em;
  border-radius: 1.2em;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(247,183,3,0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--pt-bg-2) 0%, var(--pt-bg-1) 100%);
  border: 1px solid var(--pt-edge);
  box-shadow:
    0 1px 0 0 rgba(var(--fg-rgb), 0.05) inset,
    0 36px 70px -22px rgba(0,0,0,0.9);
  overflow: hidden;
  isolation: isolate;
}

.elvaro-pterm::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -1.5em;
  height: 3em;
  background: radial-gradient(50% 100% at 50% 0%, rgba(247,183,3,0.25) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.elvaro-pterm > * { position: relative; z-index: 2; }

.elvaro-pterm .pt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.85em 1.1em;
  border-radius: 0.55em 0.55em 0 0;
  background:
    linear-gradient(180deg, rgba(var(--fg-rgb), 0.04) 0%, rgba(0,0,0,0.35) 100%),
    var(--pt-bg-3);
  border: 1px solid var(--pt-edge);
  border-bottom: none;
  position: relative;
}
.elvaro-pterm .pt-header::after {
  content: "";
  position: absolute;
  left: 1em; right: 1em; bottom: -0.18em;
  height: 0.18em;
  background: linear-gradient(90deg, transparent 0%, var(--pt-yellow) 30%, var(--pt-yellow-hi) 50%, var(--pt-yellow) 70%, transparent 100%);
  border-radius: 999px;
  filter: drop-shadow(0 0 0.4em rgba(247,183,3,0.6));
}

.elvaro-pterm .pt-wordmark {
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-weight: 800;
  font-size: 1.5em;
  letter-spacing: 0.04em;
  line-height: 1;
}
.elvaro-pterm .pt-wordmark .pt-1 { color: var(--pt-text); }
.elvaro-pterm .pt-wordmark .pt-2 { color: var(--pt-yellow); margin-left: 0.24em; }

.elvaro-pterm .pt-power {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7em;
  letter-spacing: 0.18em;
  color: var(--pt-text-3);
  text-transform: uppercase;
  padding: 0.4em 0.7em;
  border-radius: 0.3em;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--pt-edge);
}
.elvaro-pterm .pt-power i {
  width: 0.5em; height: 0.5em;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0.5em var(--success-soft);
  animation: pt-blink 2.4s ease-in-out infinite;
}
@keyframes pt-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 80%      { opacity: 0.35; }
}

.elvaro-pterm .pt-screen {
  margin: 0.7em auto 0;
  width: 38%;
  min-width: 11em;
  padding: 0.7em 0.9em;
  border-radius: 0.5em;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(247,183,3,0.10) 0%, transparent 70%),
    linear-gradient(180deg, #0A0D11 0%, #060809 100%);
  border: 1px solid rgba(var(--fg-rgb), 0.10);
  box-shadow: 0 0 1.2em rgba(247,183,3,0.10), 0 1px 0 0 rgba(var(--fg-rgb), 0.06) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
.elvaro-pterm .pt-screen .pt-screen-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6em;
  letter-spacing: 0.18em;
  color: var(--pt-text-3);
  text-transform: uppercase;
}
.elvaro-pterm .pt-pin { display: flex; gap: 0.5em; }
.elvaro-pterm .pt-pin i {
  width: 0.7em; height: 0.7em;
  border-radius: 999px;
  background: rgba(var(--fg-rgb), 0.08);
  border: 1px solid rgba(var(--fg-rgb), 0.14);
}
.elvaro-pterm .pt-pin i.on {
  background: var(--pt-yellow);
  border-color: var(--pt-yellow);
  box-shadow: 0 0 0.4em rgba(247,183,3,0.7);
}
.elvaro-pterm .pt-pin i.caret {
  background: transparent;
  border-color: rgba(247,183,3,0.45);
  animation: pt-caret 1s steps(1, end) infinite;
}
@keyframes pt-caret {
  0%, 50%   { background: var(--pt-yellow-soft); }
  51%, 100% { background: transparent; }
}

.elvaro-pterm .pt-pad {
  display: grid;
  grid-template-columns: repeat(3, 1.5em);
  gap: 0.25em;
  margin-top: 0.15em;
}
.elvaro-pterm .pt-pad .pt-key {
  height: 1.2em;
  border-radius: 0.25em;
  background: linear-gradient(180deg, #1A1F24 0%, #11151A 100%);
  border: 1px solid rgba(var(--fg-rgb), 0.10);
  box-shadow: 0 1px 0 0 rgba(var(--fg-rgb), 0.05) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--pt-text-2);
}
.elvaro-pterm .pt-pad .pt-key.is-press {
  background: var(--pt-yellow-soft);
  border-color: rgba(247,183,3,0.4);
  color: var(--pt-yellow);
  box-shadow: 0 0 0.4em rgba(247,183,3,0.35);
}
.elvaro-pterm .pt-pad .pt-key.pt-key-ok  { color: var(--pt-yellow); }
.elvaro-pterm .pt-pad .pt-key.pt-key-del { color: var(--pt-text-3); }

.elvaro-pterm .pt-bank {
  display: grid;
  grid-template-rows: 1.3fr 1fr 0.85fr;
  gap: 0.5em;
  margin-top: 0.5em;
  padding: 0.6em;
  border-radius: 0 0 0.55em 0.55em;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%),
    var(--pt-bg-1);
  border: 1px solid var(--pt-edge);
  border-top: none;
  flex: 1;
}

.elvaro-pterm .pt-row { display: grid; gap: 0.5em; }
.elvaro-pterm .pt-row.row-lg { grid-template-columns: repeat(3, 1fr); }
.elvaro-pterm .pt-row.row-md { grid-template-columns: repeat(5, 1fr); }
.elvaro-pterm .pt-row.row-sm { grid-template-columns: repeat(7, 1fr); }

.elvaro-pterm .pt-door {
  position: relative;
  border-radius: 0.35em;
  background: linear-gradient(180deg, var(--pt-door-hi) 0%, var(--pt-door) 40%, var(--pt-door-lo) 100%);
  border: 1px solid rgba(var(--fg-rgb), 0.05);
  box-shadow: 0 1px 0 0 rgba(var(--fg-rgb), 0.06) inset, 0 0 0 1px rgba(0,0,0,0.4);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.3em;
  padding: 0.5em 0.55em;
  overflow: hidden;
}

.elvaro-pterm .pt-door .pt-vent { display: flex; flex-direction: column; gap: 0.14em; }
.elvaro-pterm .pt-door .pt-vent i {
  display: block; height: 0.1em;
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
  box-shadow: 0 1px 0 0 rgba(var(--fg-rgb), 0.05);
}
.elvaro-pterm .pt-door .pt-vent i:nth-child(1) { width: 55%; }
.elvaro-pterm .pt-door .pt-vent i:nth-child(2) { width: 38%; }
.elvaro-pterm .pt-door .pt-vent i:nth-child(3) { width: 24%; }

.elvaro-pterm .pt-door .pt-handle {
  align-self: center;
  justify-self: end;
  width: 30%; height: 0.35em;
  border-radius: 0.5em;
  background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.22) 0%, rgba(var(--fg-rgb), 0.04) 100%);
  border: 1px solid rgba(0,0,0,0.45);
  box-shadow: 0 1px 0 0 rgba(var(--fg-rgb), 0.08) inset;
}

.elvaro-pterm .pt-door .pt-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35em;
  padding: 0.18em 0.4em;
  border-radius: 0.22em;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(var(--fg-rgb), 0.04);
}
.elvaro-pterm .pt-door .pt-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55em;
  letter-spacing: 0.06em;
  color: var(--pt-text-3);
  font-weight: 500;
}
.elvaro-pterm .pt-door .pt-led {
  width: 0.32em; height: 0.32em;
  border-radius: 999px;
  background: var(--pt-text-4);
  flex-shrink: 0;
}

.elvaro-pterm .pt-row.row-sm .pt-door { padding: 0.35em 0.4em; gap: 0.18em; }
.elvaro-pterm .pt-row.row-sm .pt-door .pt-handle { height: 0.25em; width: 36%; }
.elvaro-pterm .pt-row.row-sm .pt-door .pt-id     { font-size: 0.48em; }
.elvaro-pterm .pt-row.row-sm .pt-door .pt-led    { width: 0.26em; height: 0.26em; }
.elvaro-pterm .pt-row.row-sm .pt-door .pt-plate  { padding: 0.12em 0.3em; }
.elvaro-pterm .pt-row.row-lg .pt-door .pt-id     { font-size: 0.7em; }
.elvaro-pterm .pt-row.row-lg .pt-door .pt-led    { width: 0.42em; height: 0.42em; }
.elvaro-pterm .pt-row.row-lg .pt-door .pt-handle { width: 24%; height: 0.45em; }

.elvaro-pterm .pt-door.is-occupied .pt-led { background: rgba(var(--fg-rgb), 0.5); }

.elvaro-pterm .pt-door.is-active {
  background:
    radial-gradient(80% 100% at 50% 100%, rgba(247,183,3,0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--pt-door-hi) 0%, var(--pt-door) 40%, #1A1408 100%);
  border-color: rgba(247,183,3,0.5);
  box-shadow:
    0 0 0 1px rgba(247,183,3,0.12) inset,
    0 0 1.4em rgba(247,183,3,0.30),
    0 0 0.4em rgba(247,183,3,0.45);
}
.elvaro-pterm .pt-door.is-active .pt-handle {
  background: linear-gradient(180deg, var(--pt-yellow-hi) 0%, var(--pt-yellow) 100%);
  border-color: rgba(0,0,0,0.45);
  box-shadow: 0 0 0.4em rgba(247,183,3,0.55);
}
.elvaro-pterm .pt-door.is-active .pt-led {
  background: var(--pt-yellow);
  box-shadow: 0 0 0.5em rgba(247,183,3,0.95);
  animation: pt-pulse 1.6s ease-in-out infinite;
}
.elvaro-pterm .pt-door.is-active .pt-id { color: var(--pt-yellow); font-weight: 700; }
.elvaro-pterm .pt-door.is-active .pt-plate {
  background: rgba(0,0,0,0.7);
  border-color: rgba(247,183,3,0.4);
}
@keyframes pt-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

.elvaro-pterm.pt-sm { font-size: 9px;  max-width: 420px; }
.elvaro-pterm.pt-md { font-size: 14px; max-width: 820px; }
.elvaro-pterm.pt-lg { font-size: 18px; max-width: 1080px; }
/* NOTE: a ≤639px override (font-size 11px / max-width 100%) used to live here,
   but it was dead code — elvaro.css's later unconditioned copy of these
   declarations always won the cascade. Removed during dedupe to keep the
   effective styles identical. */

/* ============================================================
   22. MOBILE BOTTOM TAB BAR
   ============================================================ */
.elv-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--hairline);
  display: none; /* shown at ≤720px via media query below */
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 0 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
  .elv-tabbar { display: grid; }
}

.elv-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--fg-3);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-tabbar__item:hover,
.elv-tabbar__item.is-active { color: var(--brand-yellow); }

.elv-tabbar__icon {
  width: 20px; height: 20px;
  display: block;
}

/* ============================================================
   23. HEADER
   ============================================================ */

/* Utility strip */
.elv-topbar {
  display: none;
  background: var(--surface-1);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}
.elv-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px var(--gutter-m);
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
}
.elv-topbar__left  { display: flex; align-items: center; gap: 20px; }
.elv-topbar__right { display: flex; align-items: center; gap: 16px; }

.elv-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-topbar__item:hover { color: var(--fg-1); }
.elv-topbar__item svg { color: var(--brand-yellow); width: 14px; height: 14px; flex-shrink: 0; }

/* Language strip (desktop — topbar) */
.elv-lang-strip {
  display: flex;
  align-items: center;
  gap: 2px;
}
.elv-lang-strip__btn {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-lang-strip__btn:hover { color: var(--fg-1); }
.elv-lang-strip__btn.is-active { color: var(--brand-yellow); }
.elv-lang-strip__sep { color: var(--fg-4); font-size: 10px; }

/* Main header */
.elv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--dur-base) var(--ease-standard),
              backdrop-filter var(--dur-base) var(--ease-standard);
}
.elv-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Keep the sticky header clear of the fixed WP admin bar (admins only).
   Below 783px the admin bar is position:absolute and scrolls away, so no
   offset is needed there. 783/32px are WP core admin-bar values. The header
   keeps its normal z-index (100) so the admin bar and its drop-downs stay on
   top, and the topbar scrolls *under* the admin bar instead of over it. The
   WC Memberships banner is suppressed in functions.php. */
@media screen and (min-width: 783px) {
  body.admin-bar .elv-header { top: 32px; }
}

/* WC Memberships admin "restricted content" notice — the plugin outputs it at
   wp_footer with position:absolute; top:0 (overlays our header). We move the
   output to wp_body_open (functions.php) and drop the absolute positioning here
   so it flows at the very top, themed dark — coexisting with the topbar, header
   and WP admin bar instead of overlapping them. */
body .woocommerce.wc-memberships.admin-restricted-content-notice,
body.admin-bar .woocommerce.wc-memberships.admin-restricted-content-notice {
  position: static;
  top: auto;
  background: var(--surface-2);
  color: var(--fg-1);
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
  padding: var(--sp-3) var(--sp-4);
}
body .woocommerce.wc-memberships.admin-restricted-content-notice a { color: var(--brand-yellow); }

/* Subscriptions catalog empty-state (hero via Elvaro_Catalog_Heroes::render_subscription; grid reuses .elvaro-popular-grid) */
.elvaro-catalog-empty { color: var(--fg-3); font-size: var(--fs-body); padding: var(--sp-10) 0; }

/* ── Subscription plans HUB (/plans/ — design 05-subscriptions, block elvaro/page-plans) ── */
.elvaro-plans-hero { text-align: center; padding: var(--sp-2) 0 var(--sp-8); }
.elvaro-plans-hero__overline { display: inline-block; font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-yellow); }
.elvaro-plans-hero__title { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.02em; line-height: 1.05; margin: var(--sp-2) auto var(--sp-3); max-width: 720px; }
.elvaro-plans-hero__title span { color: var(--brand-yellow); }
.elvaro-plans-hero__sub { color: var(--fg-2); line-height: 1.6; max-width: 580px; margin: 0 auto; font-size: var(--fs-body-lg); }

.elvaro-plans-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); margin-top: var(--sp-8); }
@media (min-width: 900px) { .elvaro-plans-grid { grid-template-columns: repeat(3, 1fr); } }

.elvaro-plan-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-xl); padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-4); }

.elvaro-plan-card__icon { width: 56px; height: 56px; background: var(--brand-yellow-soft); color: var(--brand-yellow); border-radius: var(--radius-lg); display: grid; place-content: center; }
.elvaro-plan-card--green  .elvaro-plan-card__icon { background: var(--success-soft); color: var(--success); }
.elvaro-plan-card--orange .elvaro-plan-card__icon { background: var(--warning-soft); color: var(--warning); }
.elvaro-plan-card--gold   .elvaro-plan-card__icon { color: var(--brand-gold-hi); }

.elvaro-plan-card__overline { font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--success); }
.elvaro-plan-card--orange .elvaro-plan-card__overline { color: var(--warning); }
.elvaro-plan-card--gold   .elvaro-plan-card__overline { color: var(--brand-gold-hi); }
.elvaro-plan-card__title { font-size: var(--fs-h3); }
.elvaro-plan-card__desc { color: var(--fg-3); font-size: var(--fs-body-sm); }
.elvaro-plan-card__price { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 800; line-height: 1; color: var(--success); }
.elvaro-plan-card--orange .elvaro-plan-card__price { color: var(--warning); }
.elvaro-plan-card--gold   .elvaro-plan-card__price { color: var(--brand-gold-hi); }
.elvaro-plan-card__unit { font-size: var(--fs-body); color: var(--fg-3); font-weight: 500; }
.elvaro-plan-card__features { display: flex; flex-direction: column; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.elvaro-plan-card__features li { display: flex; gap: var(--sp-2); font-size: var(--fs-body-sm); color: var(--fg-2); }
.elvaro-plan-card__features li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; }
.elvaro-plan-card__cta { margin-top: auto; text-align: center; }

.elvaro-plans-section { margin-top: var(--sp-12); }
.elvaro-plans-section__head { text-align: center; margin-bottom: var(--sp-6); }
.elvaro-plans-section__head h2 { font-size: var(--fs-h2); }
.elvaro-plans-section__head p { color: var(--fg-3); margin-top: var(--sp-2); }

.elvaro-plans-compare { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.elvaro-plans-compare table { width: 100%; border-collapse: collapse; }
.elvaro-plans-compare th, .elvaro-plans-compare td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--hairline); font-size: var(--fs-body-sm); }
.elvaro-plans-compare th { background: var(--surface-3); font-weight: 700; text-transform: uppercase; font-size: var(--fs-caption); letter-spacing: 0.06em; color: var(--fg-3); }
.elvaro-plans-compare__c { text-align: center; }
.elvaro-plans-compare__tick { color: var(--success); font-weight: 800; }
.elvaro-plans-compare__dash { color: var(--fg-4); }

.elvaro-plans-section--faq { max-width: 760px; margin-left: auto; margin-right: auto; padding-bottom: var(--sp-16); }
.elvaro-plans-faq__title { text-align: center; margin-bottom: var(--sp-6); font-size: var(--fs-h2); }
.elvaro-plans-faq { display: flex; flex-direction: column; gap: var(--sp-2); }
.elvaro-plans-faq__item { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); }
/* core/details renders <summary> without a class — target it alongside the legacy __q class */
.elvaro-plans-faq__q,
.elvaro-plans-faq__item > summary { cursor: pointer; font-weight: 700; font-size: var(--fs-body); list-style: none; }
.elvaro-plans-faq__q::-webkit-details-marker,
.elvaro-plans-faq__item > summary::-webkit-details-marker { display: none; }
.elvaro-plans-faq__a { color: var(--fg-3); font-size: var(--fs-body-sm); margin-top: var(--sp-3); margin-bottom: 0; }

/* Static-block markup guards (classic theme): WP injects a
   .wp-block-group__inner-container div inside every wp:group at render time —
   make it layout-transparent so the grid/flex/gap rules on the outer wrappers
   keep applying to the real children. */
.elvaro-plans-page .wp-block-group__inner-container { display: contents; }
/* Guard: if core ever emits flow-layout margins (is-layout-flow > * + *),
   the gap-based containers must stay margin-free. */
.elvaro-plans-grid > * + *,
.elvaro-plan-card > * + *,
.elvaro-plans-faq > * + *,
.elvaro-plans-grid > .wp-block-group__inner-container > * + *,
.elvaro-plan-card > .wp-block-group__inner-container > * + *,
.elvaro-plans-faq > .wp-block-group__inner-container > * + * { margin-block-start: 0; }

.elv-header__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .elv-header__inner { gap: 24px; padding: 16px var(--gutter-m); }
}

/* Logo */
.elv-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.elv-logo:hover { opacity: 0.75; }
.elv-logo img,
.elv-logo svg { height: 24px; width: auto; }

/* Navigation */
.elv-nav {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.elv-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}
.elv-nav__link:hover { color: var(--fg-1); background: rgba(var(--fg-rgb), 0.04); }
.elv-nav__link.is-active {
  color: var(--brand-yellow);
  font-weight: 700;
}
.elv-nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -17px; left: 10px; right: 10px;
  height: 2px;
  background: var(--brand-yellow);
  border-radius: 1px;
}

/* Клубы dropdown */
.elv-nav__item { position: relative; }

.elv-nav__sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 260px;
  background: var(--surface-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
/* hover bridge — keeps dropdown open during cursor travel */
.elv-nav__sub::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

.elv-nav__item--subs.is-open .elv-nav__sub {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .elv-nav__item:hover .elv-nav__sub,
  .elv-nav__item:focus-within .elv-nav__sub {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
}

.elv-nav__sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--fg-2);
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.elv-nav__sub-item:hover { background: rgba(var(--fg-rgb), 0.04); color: var(--fg-1); }

.elv-nav__sub-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
}
.elv-nav__sub-icon svg { width: 16px; height: 16px; }

.elv-nav__sub-title { display: block; font-size: 14px; font-weight: 600; color: var(--fg-1); line-height: 1.2; }
.elv-nav__sub-desc  { display: block; font-size: 11px; color: var(--fg-3); margin-top: 2px; }

/* Header actions cluster */
.elv-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.elv-header__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  color: var(--fg-2);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}
.elv-header__action:hover { color: var(--fg-1); background: rgba(var(--fg-rgb), 0.04); }
.elv-header__action svg   { width: 20px; height: 20px; }

.elv-header__cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Mobile language dropdown */
.elv-lang-globe {
  display: flex;
  align-items: center;
  position: relative;
}
.elv-lang-globe__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
}
.elv-lang-globe__btn:hover { color: var(--fg-1); background: rgba(var(--fg-rgb), 0.04); }

.elv-lang-globe__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: var(--surface-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  display: none;
}
.elv-lang-globe__menu.is-open { display: block; }

.elv-lang-globe__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard);
}
.elv-lang-globe__option:hover { background: rgba(var(--fg-rgb), 0.04); }
.elv-lang-globe__option.is-active {
  color: var(--brand-yellow);
  font-weight: 700;
}
.elv-lang-globe__check { color: var(--brand-yellow); font-size: 12px; margin-left: auto; }

/* Search overlay */
.elv-search-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter-m);
  max-width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.elv-search-overlay.is-open { opacity: 1; pointer-events: all; }

.elv-search-overlay__input {
  flex: 1;
  background: var(--surface-1);
  border: 1.5px solid var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 15px;
  color: var(--fg-1);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-yellow-ring);
}
.elv-search-overlay__input::placeholder { color: var(--fg-4); }

.elv-search-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: none;
  border: 1px solid var(--hairline-strong);
  color: var(--fg-2);
  cursor: pointer;
  flex-shrink: 0;
}
.elv-search-overlay__close:hover { color: var(--fg-1); background: rgba(var(--fg-rgb), 0.04); }

/* Mobile burger */
.elv-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-standard);
}
.elv-burger:hover { background: rgba(var(--fg-rgb), 0.06); }
.elv-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg-1);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-standard),
              opacity var(--dur-base) var(--ease-standard);
}
.elv-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.elv-burger.is-open span:nth-child(2) { opacity: 0; }
.elv-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile off-canvas drawer */
.elv-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 86%;
  max-width: 360px;
  background: var(--bg);
  z-index: 300;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-emphasized);
  display: flex;
  flex-direction: column;
}
.elv-drawer.is-open { transform: translateX(0); }

.elv-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 299;
  display: none;
}
.elv-drawer-overlay.is-open { display: block; }

.elv-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter-m);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.elv-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: none;
  border: 1px solid var(--hairline-strong);
  color: var(--fg-2);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}
.elv-drawer__close:hover { color: var(--fg-1); background: rgba(var(--fg-rgb), 0.06); }
.elv-drawer__close svg { width: 16px; height: 16px; }

/* User callout in drawer */
.elv-drawer__user {
  margin: 16px var(--gutter-m);
  background: rgba(232,184,95,0.06);
  border: 1px solid rgba(232,184,95,0.25);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.elv-drawer__user:hover {
  background: rgba(232,184,95,0.10);
  border-color: rgba(232,184,95,0.4);
}
.elv-drawer__user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.elv-drawer__user-text { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.elv-drawer__user-sub  { font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* Nav list */
.elv-drawer__nav { padding: 8px 0; flex: 1; }

.elv-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--gutter-m);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.elv-drawer__link:hover { background: rgba(var(--fg-rgb), 0.03); }
.elv-drawer__link.is-active { color: var(--brand-yellow); }
.elv-drawer__link__chevron { margin-left: auto; color: var(--fg-4); }

.elv-drawer__divider {
  height: 1px;
  background: var(--hairline);
  margin: 8px var(--gutter-m);
}

.elv-drawer__section-label {
  padding: 8px var(--gutter-m) 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--fg-4);
}

/* Clubs expand group */
.elv-drawer__group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--gutter-m);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--dur-fast) var(--ease-standard);
}
.elv-drawer__group-toggle:hover { background: rgba(var(--fg-rgb), 0.03); }
.elv-drawer__group-toggle .chevron {
  margin-left: auto;
  color: var(--fg-4);
  transition: transform var(--dur-base) var(--ease-emphasized);
}
.elv-drawer__group-toggle.is-open .chevron { transform: rotate(90deg); }

.elv-drawer__group-items {
  display: none;
  padding: 4px 0;
  background: rgba(0,0,0,0.12);
}
.elv-drawer__group-items.is-open { display: block; }

.elv-drawer__sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--gutter-m) 10px 52px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-drawer__sub-item:hover { color: var(--fg-1); }
.elv-drawer__sub-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--brand-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
  flex-shrink: 0;
}
.elv-drawer__sub-icon svg { width: 12px; height: 12px; }

/* Drawer footer */
.elv-drawer__foot {
  padding: 16px var(--gutter-m);
  border-top: 1px solid var(--hairline);
  flex-shrink: 0;
}
.elv-drawer__lang-seg {
  display: flex;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}
.elv-drawer__lang-btn {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
}
.elv-drawer__lang-btn.is-active {
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
}

.elv-drawer__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}
.elv-drawer__phone:hover { background: rgba(var(--fg-rgb), 0.03); }

/* Mobile-first responsive header */
@media (min-width: 720px) {
  .elv-topbar { display: block; }
  .elv-nav { display: flex; }
  .elv-burger { display: none; }
  .elv-drawer { display: none !important; }
  .elv-drawer-overlay { display: none !important; }
  /* At narrow desktop the full language strip overflows — keep the compact globe instead */
  .elv-lang-strip { display: none; }
  .elv-topbar__inner,
  .elv-header__inner,
  .elv-search-overlay { padding-left: var(--gutter-t); padding-right: var(--gutter-t); }
}

@media (min-width: 1180px) {
  /* Wide enough for full strip — swap globe for strip */
  .elv-lang-globe { display: none; }
  .elv-lang-strip { display: flex; }
  .elv-topbar__inner,
  .elv-header__inner,
  .elv-search-overlay { padding-left: var(--gutter-d); padding-right: var(--gutter-d); }
}

/* Subscriptions dropdown button reset + chevron */
button.elv-nav__link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.elv-nav__link-chevron { transition: transform var(--dur-base) var(--ease-standard); }
.elv-nav__item--subs.is-open .elv-nav__link-chevron { transform: rotate(180deg); }
@media (min-width: 720px) {
  .elv-nav__item--subs:hover .elv-nav__link-chevron { transform: rotate(180deg); }
}

/* ============================================================
   24. FOOTER — mobile-first
   ============================================================ */
.elv-footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}

/* ---- Mobile CTA banner (hidden on desktop) ---- */
.elv-footer__cta {
  padding: 28px var(--gutter-m) 24px;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(247,183,3,0.10) 0%, transparent 60%),
    var(--bg);
}
.elv-footer__cta-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 8px;
  line-height: 1.15;
}
.elv-footer__cta-text {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0 0 16px;
  line-height: 1.55;
}
.elv-footer__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-yellow);
  color: var(--fg-on-yellow);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 0 0 rgba(var(--fg-rgb), 0.18) inset, 0 6px 14px -8px rgba(0,0,0,0.6);
}
.elv-footer__cta-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Main grid ---- */
.elv-footer__main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--gutter-m) var(--sp-5);
}

/* ---- Brand col ---- */
.elv-footer__brand { margin-bottom: var(--sp-5); }

.elv-footer__tagline {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 10px 0 18px;
}

.elv-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.elv-footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-footer__contact:hover { color: var(--fg-1); }
.elv-footer__contact svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--brand-yellow);
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.elv-footer__contact:hover svg { opacity: 1; }

/* Social tiles */
.elv-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.elv-footer__social-tile {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-standard),
              opacity var(--dur-fast) var(--ease-standard);
}
.elv-footer__social-tile:hover { transform: translateY(-2px); opacity: 0.88; }
.elv-footer__social-tile svg { width: 18px; height: 18px; }
.elv-footer__social-tile--fb  { background: #1877F2; }
.elv-footer__social-tile--ig  { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%); }
.elv-footer__social-tile--yt  { background: #FF0000; }
.elv-footer__social-tile--wa  { background: #25D366; }
.elv-footer__social-tile--tt  { background: #000; }

/* Desktop social (inside brand col) hidden on mobile */
.elv-footer__social--desktop { display: none; }

/* ---- Nav cols ---- */
.elv-footer__col { border-top: 1px solid var(--hairline); }

/* Mobile: show toggle, hide static title */
.elv-footer__col-title { display: none; }

.elv-footer__col-toggle {
  display: flex;
  width: 100%;
  background: none;
  border: none;
  padding: 16px var(--gutter-m);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--fg-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
}
.elv-footer__col-toggle .chevron {
  color: var(--fg-3);
  transition: transform var(--dur-base) var(--ease-emphasized),
              color var(--dur-fast) var(--ease-standard);
}
.elv-footer__col-toggle.is-open .chevron { transform: rotate(180deg); color: var(--brand-yellow); }

.elv-footer__col-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms var(--ease-standard);
}
.elv-footer__col-body.is-open { max-height: 400px; }

.elv-footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter-m) 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.elv-footer__col-links li { list-style: none; margin: 0; padding: 0; }
.elv-footer__col-links a,
.elv-footer__col-link {
  display: block;
  font-size: 14px;
  color: var(--fg-3);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-footer__col-links a:hover,
.elv-footer__col-link:hover { color: var(--brand-yellow); }

/* ---- Mobile-only sections (social, lang, payments) ---- */
.elv-footer__social-section,
.elv-footer__lang-row,
.elv-footer__pay-section {
  border-top: 1px solid var(--hairline);
  padding: 22px var(--gutter-m);
}

.elv-footer__section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 12px;
}

.elv-footer__social-section .elv-footer__social { flex-wrap: wrap; }
.elv-footer__social-section .elv-footer__social-tile { width: 44px; height: 44px; }

.elv-footer__lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.elv-footer__lang-row .elv-footer__section-label { margin-bottom: 0; }
.elv-footer__lang-pills { display: flex; gap: 6px; }
.elv-footer__lang-pill {
  min-width: 44px;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-standard);
}
.elv-footer__lang-pill:hover { color: var(--fg-1); border-color: var(--fg-3); }
.elv-footer__lang-pill.is-active { background: var(--brand-yellow); color: var(--fg-on-yellow); border-color: var(--brand-yellow); }

/* Payment pills */
.elv-footer__payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.elv-footer__pay-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  background: #fff;
  border-radius: 5px;
}
.elv-footer__pay-pill--dark { background: #000; }
.elv-footer__pay-pill svg { display: block; }
.elv-footer__pay-pill img { display: block; height: 18px; width: auto; }

/* ---- Trader identity (legal name / reg. no. / VAT no. / address) ---- */
.elv-footer__trader {
  border-top: 1px solid var(--hairline);
  padding: 16px var(--gutter-m) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--fg-4);
}
.elv-footer__trader-name { color: var(--fg-3, var(--fg-2)); font-weight: 600; }
.elv-footer__trader + .elv-footer__legal { border-top: none; }

/* ---- Legal rail ---- */
.elv-footer__legal {
  border-top: 1px solid var(--hairline);
  padding: 18px var(--gutter-m) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--fg-4);
  line-height: 1.6;
}
.elv-footer__copy { color: var(--fg-4); }

.elv-footer__legal-links,
.elv-footer__legal-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.elv-footer__legal-links li,
.elv-footer__legal-nav li { list-style: none; }
.elv-footer__legal-links a,
.elv-footer__legal-nav a,
.elv-footer__legal-link {
  color: var(--fg-3);
  text-decoration: none;
  font-size: 12px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.elv-footer__legal-links a:hover,
.elv-footer__legal-nav a:hover,
.elv-footer__legal-link:hover { color: var(--fg-2); }

/* Payment icons in legal rail — hidden on mobile, shown on desktop */
.elv-footer__payments--legal { display: none; }

/* ============================================================
   FOOTER — desktop breakpoints (mobile-first)
   ============================================================ */
@media (min-width: 640px) {
  /* Hide mobile-only blocks */
  .elv-footer__cta { display: none; }
  .elv-footer__social-section { display: none; }
  .elv-footer__lang-row { display: none; }
  .elv-footer__pay-section { display: none; }

  /* Main grid: 4 columns */
  .elv-footer__main {
    padding: 48px var(--gutter-t) var(--sp-6);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    align-items: start;
  }
  .elv-footer__brand { margin-bottom: 0; }
  .elv-footer__tagline { max-width: 240px; }

  /* Show desktop social inside brand col */
  .elv-footer__social--desktop { display: flex; }

  /* Nav cols: hide accordion, show static title */
  .elv-footer__col { border-top: none; }
  .elv-footer__col-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--fg-1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-family: var(--font-display);
  }
  .elv-footer__col-toggle { display: none; }
  .elv-footer__col-body { max-height: none; overflow: visible; }
  .elv-footer__col-links { padding: 0; }
  .elv-footer__col-links a,
  .elv-footer__col-link { font-size: 13px; padding: 5px 0; }

  /* Legal rail: horizontal */
  .elv-footer__legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: var(--sp-4) var(--gutter-t);
    flex-wrap: wrap;
  }
  .elv-footer__legal-links,
  .elv-footer__legal-nav { justify-content: flex-start; }

  /* Show payment icons in legal rail */
  .elv-footer__payments--legal { display: flex; }
}

@media (min-width: 900px) {
  .elv-footer__main { padding-left: var(--gutter-d); padding-right: var(--gutter-d); }
  .elv-footer__legal { padding-left: var(--gutter-d); padding-right: var(--gutter-d); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .elv-footer__main { grid-template-columns: 1fr 1fr; }
  .elv-footer__brand { grid-column: 1 / -1; }
}
