/* Commercial storefront layer — Kolesoplus / Autoset inspired */

:root {
  --topbar-h: 2.35rem;
  --header-h: 4.1rem;
  --shell-max: 1480px;
  --shell-gutter: clamp(1.25rem, 4vw, 2.75rem);
  --bg: #f3f3f3;
  --radius-sm: 0.55rem;
  --radius: 0.85rem;
  --radius-lg: 1.15rem;
}

@media (max-width: 900px) {
  :root {
    --shell-gutter: clamp(1.25rem, 5.5vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  :root {
    --shell-gutter: 1.35rem;
  }
}

body {
  background: var(--bg);
}

/* Top utility bar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 55;
  height: var(--topbar-h);
  background: #111;
  color: rgba(247, 247, 245, 0.82);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 212, 0, 0.25);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-inner-menu {
  justify-content: flex-start;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.topbar-links .menu-link {
  color: rgba(247, 247, 245, 0.9);
  text-decoration: none;
  font: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-links .menu-link:hover {
  color: var(--signal);
}

.topbar-callback {
  color: #111;
  background: var(--signal);
  border: 0;
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-callback:hover {
  background: #ffe566;
  color: #111;
}

.topbar-links .menu-link-phone {
  gap: 0.45rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 999px;
  color: #fff;
}

.topbar-links .menu-link-phone:hover {
  border-color: var(--signal);
  background: rgba(255, 212, 0, 0.12);
  color: var(--signal);
}

.topbar-links .menu-link-phone-label {
  display: none;
}

.topbar-links .menu-link-fav {
  font-weight: 700;
}

.topbar-links .menu-link .nav-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: grid;
  place-items: center;
}

.topbar-links .menu-link .nav-icon svg {
  width: 100%;
  height: 100%;
}

.topbar-links .fav-badge {
  margin-left: 0.15rem;
}

body.has-topbar .site-header {
  top: var(--topbar-h);
}

body:not(.has-topbar) .site-header {
  top: 0;
}

body.has-topbar .hero-block,
body.has-topbar .hero,
body.has-topbar .detail {
  padding-top: calc(var(--header-h) + var(--topbar-h));
}

body:not(.has-topbar) .hero-block,
body:not(.has-topbar) .hero,
body:not(.has-topbar) .detail {
  padding-top: var(--header-h);
}

.header-actions {
  --header-btn-h: 2.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem 0.65rem;
  flex-shrink: 0;
  margin-left: 0;
}

.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.nav-mobile-extras {
  display: none;
}

.header-actions .menu-link,
.header-actions .header-cta,
.header-actions .header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: var(--header-btn-h);
  height: var(--header-btn-h);
  padding: 0 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.header-actions .menu-link {
  color: var(--ink-on-dark-muted);
  font-weight: 650;
}

.header-actions .menu-link:hover {
  color: var(--signal);
}

.header-actions .menu-link-phone {
  flex-direction: row;
  gap: 0.45rem;
  padding: 0 0.85rem;
  border: 1.5px solid rgba(255, 212, 0, 0.4);
  color: #fff;
}

.header-actions .menu-link-phone-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  text-align: left;
  gap: 0.05rem;
}

.header-actions .menu-link-phone-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 212, 0, 0.85);
}

.header-actions .menu-link-phone-num {
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
}

.header-actions .menu-link-phone:hover {
  border-color: var(--signal);
  background: rgba(255, 212, 0, 0.12);
}

.header-actions .menu-link-phone:hover .menu-link-phone-num {
  color: var(--signal);
}

.header-actions .menu-link-account.menu-link-accent,
.nav .menu-link-accent {
  padding: 0 0.9rem;
  border-radius: 999px;
  background: transparent;
  color: #fff !important;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.header-actions .menu-link-account.menu-link-accent {
  min-height: var(--header-btn-h);
  height: var(--header-btn-h);
}

.header-actions .menu-link-account.menu-link-accent:hover,
.nav .menu-link-accent:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff !important;
}

.header-actions .menu-link-account.menu-link-accent .nav-icon {
  color: #fff;
}

.header-actions .menu-link .nav-icon,
.header-actions .header-cta .nav-icon,
.header-actions .header-cart .nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.header-actions .menu-link .nav-icon svg,
.header-actions .header-cta .nav-icon svg,
.header-actions .header-cart .nav-icon svg {
  width: 100%;
  height: 100%;
}

.header-actions .header-cta {
  flex-shrink: 0;
  border: 1.5px solid var(--signal);
  padding: 0 0.95rem;
}

.header-actions .header-cart {
  color: var(--ink-on-dark-muted);
  border: 1.5px solid transparent;
  padding: 0 0.75rem;
}

.header-actions .header-cart:hover {
  color: var(--signal);
}

.nav .menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Header phone */
.header-phone {
  display: none;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}

.header-phone-label {
  font-size: 0.68rem;
  color: rgba(247, 247, 245, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-phone-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--signal);
}

@media (min-width: 1100px) {
  .header-phone {
    display: flex;
  }
}

.header-inner .header-cart {
  margin-left: 0.35rem;
}

/* Hero: shorter, more catalog-store */
.hero-slides {
  min-height: clamp(20rem, 42vw, 28rem);
  border-radius: 0 !important;
}

.hero-slide-copy {
  top: 50%;
  bottom: auto;
  max-width: 36rem;
}

.hero-brand {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  max-width: 18ch;
}

.hero-finder-bar {
  margin-top: -0.5rem;
  padding-bottom: 1.25rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 70%);
}

.hero-slider-nav {
  bottom: 5.5rem;
}

.finder-shell-bar {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.finder-shell-bar .finder-tabs {
  background: #0d0d0d;
}

.finder-shell-bar .finder-tab.is-active {
  background: #fff;
  color: #0d0d0d;
  font-weight: 700;
}

.finder-shell-bar .btn-primary {
  min-width: 14rem;
}

/* Trust strip — Autoset style */
.trust-strip {
  padding: 0 0 1.75rem;
  background: var(--bg);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 212, 0, 0.22);
  color: var(--signal-ink, #0d0d0d);
  flex-shrink: 0;
}

.trust-icon img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.trust-text {
  margin: 0;
  font-family: var(--font-body, inherit);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0;
}

.trust-value {
  font-weight: 700;
  color: var(--ink);
}

/* Promo banners */
.promos-banners {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.promo-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.promo-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.promo-card-media picture,
.promo-card-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.promo-card-media img {
  object-fit: cover;
}

.promo-card-media .promo-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

.promo-badge-inline {
  position: static;
  align-self: flex-start;
  margin: 1rem 1.15rem 0;
}

.promo-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  padding: 1.1rem 1.15rem 1.2rem;
}

.promo-card-body h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  padding-right: 0;
}

.promo-card-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.promo-card-cta {
  margin-top: auto;
  align-self: flex-start;
  min-width: 8.5rem;
}

/* Unified section “В каталог” CTA */
.section-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 2.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--signal);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.section-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.section-cta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-cta:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
  color: var(--signal-ink);
}

.section-band-blue .section-cta,
.section-band-navy .section-cta,
.section-band-ink .section-cta {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal);
}

/* Review scoreboard */
.review-scoreboard {
  text-align: right;
  min-width: 7rem;
}

.review-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--signal);
}

.review-score span {
  font-size: 1.1rem;
  color: rgba(247, 247, 245, 0.55);
  margin-left: 0.1rem;
}

.review-score-meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: rgba(247, 247, 245, 0.65);
}

.reviews-section .review-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-left: 4px solid var(--signal);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.reviews-section .review-top strong,
.reviews-section .review-text {
  color: var(--ink-on-dark);
}

.reviews-section .review-date,
.reviews-section .review-tire {
  color: rgba(247, 247, 245, 0.55);
}

.reviews-section .review-tire-link {
  color: var(--signal);
  border-bottom-color: rgba(255, 212, 0, 0.35);
}

.reviews-section .review-tire-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* CTA store panel */
.cta-section {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.cta-panel-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.15rem, 3vw, 2rem);
  background: linear-gradient(110deg, #111 0%, #1a1a1a 55%, #222 100%);
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  overflow: visible;
}

.cta-panel-store .cta-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cta-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.cta-panel-store h2 {
  margin: 0 0 0.4rem;
}

.cta-panel-store p {
  margin: 0;
  max-width: 48ch;
}

.cta-panel-store .cta-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}

.cta-panel-store .cta-actions .btn {
  white-space: nowrap;
}

/* Sharper commercial product tiles */
.section-band-light {
  background: #fafafa;
}

.section-band-blue {
  background: #efefef;
}

.tire-item {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: none;
}

.tire-item:hover {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Brands strip cleaner */
.brand-strip {
  gap: 0.75rem;
}

.brand-logo-link {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius) !important;
}

@media (max-width: 960px) {
  .trust-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-item:nth-child(3) {
    border-right: 0;
  }

  .promos-banners {
    grid-template-columns: 1fr;
  }

  .cta-panel-store {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-panel-store .cta-actions {
    width: 100%;
  }

  .cta-panel-store .cta-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .header-actions .menu-link-phone-label {
    display: none;
  }

  .header-actions .menu-link-phone {
    padding: 0.35rem 0.55rem;
  }

  .header-actions .menu-link-account .menu-link-text {
    display: none;
  }

  .header-actions .menu-link-fav .menu-link-text {
    display: none;
  }

  .header-actions-desktop {
    display: none;
  }

  .header-inner {
    position: relative;
    gap: 0.55rem;
  }

  .header-search-bar {
    display: none;
  }

  .header-actions {
    gap: 0;
    margin-left: auto;
    z-index: 2;
  }

  .header-actions .header-cart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin: 0;
    padding: 0 1.2rem;
    width: auto;
    min-width: 3.55rem;
    min-height: 3.05rem;
    height: 3.05rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--signal, #f5c518);
    color: #111;
    font-size: 0 !important;
    line-height: 0;
    box-shadow:
      0 0 0 3px rgba(245, 197, 24, 0.35),
      0 8px 22px rgba(0, 0, 0, 0.45);
  }

  .header-actions .header-cart:hover,
  .header-actions .header-cart:focus-visible {
    color: #111;
    filter: brightness(1.06);
    box-shadow:
      0 0 0 3px rgba(245, 197, 24, 0.5),
      0 10px 26px rgba(0, 0, 0, 0.5);
  }

  .header-actions .header-cart .nav-icon {
    width: 1.7rem;
    height: 1.7rem;
    color: #111;
  }

  .header-actions .header-cart .cart-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.4rem;
    background: #111;
    color: var(--signal, #f5c518);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .header-actions .header-cart .cart-badge:not([hidden]) {
    animation: cart-badge-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .logo-img {
    height: 2rem;
  }

  .nav-toggle {
    flex-shrink: 0;
    display: inline-flex;
  }

  /* Topbar links move into the hamburger drawer on mobile */
  .topbar {
    display: none;
  }

  body.has-topbar .site-header {
    top: 0;
  }

  body.has-topbar .hero-block,
  body.has-topbar .hero,
  body.has-topbar .detail {
    padding-top: var(--header-h);
  }

  .site-header.is-open .nav {
    max-height: calc(100dvh - var(--header-h) - 0.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
  }

  .site-header.is-open .header-search-in-nav {
    display: flex;
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0.35rem 0 0.85rem;
    gap: 0.5rem;
  }

  .site-header.is-open .header-search-in-nav .header-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.95rem;
    min-height: 2.75rem;
    height: 2.75rem;
  }

  .site-header.is-open .header-search-in-nav .header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.9rem;
  }

  .site-header.is-open .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(245, 245, 243, 0.12);
  }

  .site-header.is-open .nav-mobile-extras .menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.75rem;
    height: auto;
    padding: 0.85rem 0;
    border: 0;
    border-bottom: 1px solid rgba(245, 245, 243, 0.1);
    border-radius: 0;
    background: transparent;
    color: var(--ink-on-dark, #f5f5f3);
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
  }

  .site-header.is-open .nav-mobile-extras .menu-link-text {
    display: inline;
  }

  .site-header.is-open .nav-mobile-extras .nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 1.65rem 0 1.75rem;
    padding: 1.05rem 1.2rem;
    min-height: 3.25rem;
    height: auto;
    border: 0;
    border-radius: 999px;
    background: var(--signal, #f5c518);
    color: #111;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
  }

  .site-header.is-open .nav-mobile-extras .nav-mobile-cta:hover {
    filter: brightness(1.05);
  }

  .site-header.is-open .nav-mobile-extras .nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .site-header.is-open .nav-mobile-extras .nav-icon svg {
    width: 100%;
    height: 100%;
  }

  .site-header.is-open .nav-mobile-topbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(245, 245, 243, 0.12);
  }

  .site-header.is-open .nav-mobile-topbar .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(245, 245, 243, 0.1);
    color: rgba(247, 247, 245, 0.82);
    font-size: 0.92rem;
    font-weight: 550;
    text-decoration: none;
  }

  .flash-stack {
    top: calc(var(--header-h) + 0.65rem);
  }

  .detail {
    padding-top: var(--header-h);
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    justify-content: flex-start;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .trust-item {
    border-right: 0;
    padding: 0.55rem 0.35rem;
    background: #f7f7f7;
    border-radius: var(--radius-sm);
  }
}

.flash-stack {
  top: calc(var(--header-h) + var(--topbar-h) + 0.65rem);
}

@media (max-width: 900px) {
  .flash-stack {
    top: calc(var(--header-h) + 0.65rem);
  }
}

/* Kolesoplus-like product tile */
.tire-grid {
  gap: 2.75rem 1rem;
}

@media (min-width: 1280px) {
  .tire-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 0.85rem;
  }

  .section-head {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 520px) {
  .tire-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .tire-item-body {
    padding: 0.95rem 0.95rem 1.65rem;
  }
}

.tire-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 0.75rem !important;
  background: #fff;
  box-shadow: none;
  overflow: visible !important;
  transform: none !important;
  position: relative;
}

.tire-item:hover {
  border-color: rgba(0, 0, 0, 0.22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
  transform: none !important;
}

.tire-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 0.85rem 0.85rem 1.85rem;
  overflow: hidden;
  border-radius: inherit;
}

.tire-visual-link,
.tire-title-link,
.tire-brand-link {
  color: inherit;
  text-decoration: none;
}

.tire-title-link:hover,
.tire-brand-link:hover {
  color: var(--accent, #c9a227);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tire-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem !important;
  background: #fff;
  border: 0;
  overflow: hidden;
}

.tire-visual.has-photo picture,
.tire-visual.has-photo img {
  position: absolute !important;
  inset: 0.55rem !important;
  width: calc(100% - 1.1rem) !important;
  height: calc(100% - 1.1rem) !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
}

.tire-visual.has-photo img {
  object-fit: contain !important;
  object-position: center !important;
}

.tire-visual.has-photo picture img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
}

.tire-meta {
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.tire-brand {
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}

.brand-hero-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-hero-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.entity-desc-band {
  width: 100%;
  margin: 0;
  padding: 2.25rem 0;
  background:
    linear-gradient(90deg, rgba(245, 197, 24, 0.28), rgba(245, 197, 24, 0.08) 45%, #f7f7f5 100%);
  color: #1a1a1a;
  border-top: 3px solid var(--signal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.entity-desc-band-inner {
  display: grid;
  gap: 1.5rem;
}

.entity-desc-band-inner.has-media {
  grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}

.model-hero-media {
  margin: 0;
}

.model-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  background: #fff;
}

.entity-description {
  margin: 0;
  max-width: none;
  width: 100%;
  line-height: 1.65;
  font-size: 1.05rem;
  color: inherit;
}

.entity-description a {
  color: #0d0d0d;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.entity-description p:first-child {
  margin-top: 0;
}

.entity-description p:last-child {
  margin-bottom: 0;
}

.entity-description h2,
.entity-description h3,
.entity-description h4 {
  color: #0d0d0d;
  margin: 0 0 0.65rem;
}

@media (max-width: 800px) {
  .entity-desc-band {
    padding: 1.75rem 0;
  }

  .entity-desc-band-inner.has-media {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .model-hero-media {
    max-width: 22rem;
  }
}

.results-count {
  margin: 0 0 1rem;
}

.tire-sku {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  line-height: 1.3;
}

.tire-sku span {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.tire-model {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.detail-info h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tire-size-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
}

.tire-size {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ink);
}

.tire-indexes {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.tire-spec {
  margin: 0;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.tire-perks {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0.55rem 0 0;
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tire-perk {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.45rem;
  align-items: start;
}

.tire-perk-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--blue);
  margin-top: 0.1rem;
}

.tire-perk-icon svg {
  width: 100%;
  height: 100%;
}

.tire-perk-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--ink-muted);
}

.tire-perk-text strong {
  color: var(--ink);
  font-weight: 700;
}

.tire-perk-text em {
  font-style: normal;
  color: var(--ink-muted);
}

.tire-buy-row {
  margin-top: 0.55rem;
}

.tire-price-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.5rem;
  background: linear-gradient(135deg, #fff8d6 0%, #ffe566 55%, #ffd400 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 4px solid #0d0d0d;
  border-radius: 0.55rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tire-price-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.55);
}

.tire-price-value {
  font-family: var(--font-display);
  font-size: 2.05rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #0d0d0d;
}

.detail-price-tag {
  margin: 0;
  padding: 0.7rem 1.05rem 0.65rem;
}

.detail-price-tag .tire-price-value {
  font-size: 2.45rem;
}

.tire-price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem;
  background: linear-gradient(135deg, #fff8d6 0%, #ffe566 55%, #ffd400 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 4px solid #0d0d0d;
  border-radius: 0.55rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tire-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}

.price-old {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(13, 13, 13, 0.55);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: #0d0d0d;
  color: var(--signal, #f5c518);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.detail-price-stack {
  padding: 0.7rem 1.05rem 0.65rem;
}

.detail-price-stack .tire-price-value {
  font-size: 2.45rem;
}

/* Favorite heart on cards */
.fav-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #888;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}

.fav-btn:hover {
  color: #e53935;
  transform: scale(1.06);
}

.fav-btn.is-active {
  color: #e53935;
  background: #fff;
  border-color: rgba(229, 57, 53, 0.35);
}

.fav-btn.is-active .fav-btn-icon svg path {
  fill: currentColor;
}

.fav-btn-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
}

.fav-btn-icon svg {
  width: 100%;
  height: 100%;
}

.fav-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fav-btn-detail.is-active {
  color: #e53935;
  border-color: rgba(229, 57, 53, 0.35);
}

.fav-btn-detail.is-active .fav-btn-icon svg path {
  fill: currentColor;
}

.header-fav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-on-dark-muted);
}

.header-fav:hover {
  color: var(--signal);
}

.fav-badge {
  background: #e53935;
  color: #fff;
}

/* Promo cards — image / text / CTA (legacy photo-overlay styles removed) */
.promo-card .promo-badge {
  background: var(--signal);
  color: var(--signal-ink);
}

.tire-cart-form {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: 80%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  transform: translate(-50%, 50%);
}

.detail-cart-form .tire-cart-btn,
.tire-item .tire-cart-btn,
.tire-cart-btn-order {
  width: auto;
}

.detail-cart-form .tire-cart-btn {
  min-width: 10.5rem !important;
  width: auto !important;
  transform: skewX(-20deg) !important;
}

.detail-cart-form .tire-cart-btn .tire-cart-icon,
.detail-cart-form .tire-cart-btn .tire-cart-label {
  display: inline-flex;
  transform: skewX(20deg);
  transform-origin: center center;
}

.tire-cart-btn,
.tire-cart-btn-order {
  width: 100% !important;
  min-height: 2.45rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.35rem !important;
  clip-path: none !important;
  transform: skewX(-20deg) !important;
  transform-origin: center center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
  font-size: 0.84rem !important;
  font-weight: 700;
}

/* Надписи и иконки без наклона */
.tire-item .tire-cart-btn .tire-cart-icon,
.tire-item .tire-cart-btn .tire-cart-label,
.detail-cart-form .tire-cart-btn .tire-cart-icon,
.detail-cart-form .tire-cart-btn .tire-cart-label {
  display: inline-flex;
  transform: skewX(20deg);
  transform-origin: center center;
}

.detail-cart-form .tire-cart-btn {
  width: auto !important;
  min-width: 10.5rem !important;
}

.tire-item .tire-cart-btn.is-added,
.tire-item .tire-cart-btn.is-added:hover {
  transform: skewX(-20deg) !important;
  clip-path: none !important;
}

.tire-cart-btn-order {
  display: inline-flex;
  align-items: center;
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  margin: 0;
  transform: skewX(-20deg) !important;
  background: #111;
  color: var(--signal);
  text-decoration: none;
}

.tire-cart-btn-order:hover {
  background: #222;
  color: var(--signal);
  transform: skewX(-20deg) !important;
}

/* Multi-select catalog filters */
.filter-group {
  margin: 0;
  padding: 0 0 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-group legend {
  padding: 0.55rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.filter-checks {
  display: grid;
  gap: 0.2rem;
  max-height: 11rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.filter-checks-scroll {
  max-height: 14rem;
}

.filter-check {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.28rem 0.2rem;
  font-size: 0.86rem;
  cursor: pointer;
  border-radius: 0.35rem;
}

.filter-check:hover {
  background: rgba(0, 0, 0, 0.04);
}

.filter-check input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--blue);
  cursor: pointer;
}

.filter-check input:disabled + span {
  opacity: 0.4;
}

.filter-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.catalog-filters form {
  gap: 0.65rem;
}

.catalog-filters .filters-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.catalog-filters-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.catalog-filters-toolbar .filters-title {
  margin: 0;
}

.catalog-filters-close,
.catalog-filters-fab,
.catalog-filters-backdrop {
  display: none;
}

.catalog-filters-actions {
  display: grid;
  gap: 0.55rem;
}

.detail {
  padding-top: calc(var(--header-h) + var(--topbar-h));
}

.page-hero,
.page-hero-compact,
.account-hero {
  padding-top: calc(var(--header-h) + var(--topbar-h) + 2.75rem);
  padding-bottom: 2.25rem;
  background: var(--signal) !important;
  color: #0d0d0d !important;
}

body:not(.has-topbar) .page-hero,
body:not(.has-topbar) .page-hero-compact,
body:not(.has-topbar) .account-hero {
  padding-top: calc(var(--header-h) + 2.75rem);
}

.page-hero h1,
.page-hero-compact h1,
.account-hero h1 {
  color: #0d0d0d !important;
}

.page-hero p,
.page-hero-compact p,
.account-hero p {
  color: rgba(13, 13, 13, 0.72) !important;
}

@media (max-width: 900px) {
  body.has-topbar .page-hero,
  body.has-topbar .page-hero-compact,
  body.has-topbar .account-hero,
  body:not(.has-topbar) .page-hero,
  body:not(.has-topbar) .page-hero-compact,
  body:not(.has-topbar) .account-hero {
    padding-top: calc(var(--header-h) + 2.75rem);
    padding-bottom: 2rem;
  }
}

.catalog-filters {
  top: calc(var(--header-h) + var(--topbar-h) + 1rem);
}

@media (max-width: 900px) {
  .detail {
    padding-top: var(--header-h);
  }

  .catalog-filters {
    top: calc(var(--header-h) + 1rem);
  }
}

/* Mobile catalog filters sheet handled in storefront.css @media 900px */

/* Account cabinet */
.account-section {
  padding-top: 1.5rem;
}

.account-hero {
  width: 100%;
  margin: 0;
}

.account-hero .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.65);
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(13, 13, 13, 0.12);
}

.account-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.account-nav a.is-active {
  color: #0d0d0d;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 0.15rem;
}

.account-logout-form {
  display: inline;
  margin: 0;
}

.account-logout-form button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-dim);
  cursor: pointer;
}

.account-logout-form button:hover {
  color: var(--ink);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.account-stat {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.1);
  padding: 1rem 1.1rem;
}

.account-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-bottom: 0.35rem;
}

.account-stat strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-panel {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.1);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.account-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.account-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.account-panel-head h2 {
  margin: 0;
}

.account-dl {
  margin: 0 0 1rem;
}

.account-dl > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
}

.account-dl dt {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.account-dl dd {
  margin: 0;
  font-weight: 600;
}

.account-orders,
.account-order-list {
  display: grid;
  gap: 0.75rem;
}

.account-order {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.account-order-card {
  border: 1px solid rgba(13, 13, 13, 0.12);
  background: #fff;
  overflow: hidden;
}

.account-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.account-order-summary::-webkit-details-marker {
  display: none;
}

.account-order-summary:hover {
  background: #f7f7f7;
}

.account-order-summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  min-width: 0;
}

.account-order-number {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.account-order-summary-side {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.account-order-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.55;
}

.account-order-card[open] .account-order-chevron {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.account-order-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.account-order-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.85rem;
  border: 1px solid rgba(13, 13, 13, 0.1);
}

.account-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 36rem;
}

.account-order-table th,
.account-order-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.account-order-table thead th {
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-order-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.account-order-table tbody tr:hover {
  background: rgba(255, 212, 0, 0.12);
}

.account-order-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.account-order-title a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.account-order-title a:hover {
  color: #c45a00;
  text-decoration: underline;
}

.account-order-table tfoot td {
  border-bottom: 0;
  background: #fff8cc;
  font-weight: 600;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.account-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0;
}

.account-order-meta-grid > div {
  display: grid;
  gap: 0.15rem;
}

.account-order-meta-grid dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.account-order-meta-grid dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.account-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.account-order-actions .btn {
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
}

.account-order-meta,
.account-status {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-weight: 500;
}

.account-status {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(13, 13, 13, 0.14);
  background: #f3f3f3;
  color: #222;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.account-status.status-new {
  background: #fff3c4;
  border-color: #e6c200;
}

.account-status.status-confirmed {
  background: #e3f2fd;
  border-color: #90caf9;
}

.account-status.status-shipped {
  background: #e8f5e9;
  border-color: #81c784;
}

.account-status.status-done {
  background: #e8f5e9;
  border-color: #43a047;
  color: #1b5e20;
}

.account-status.status-cancelled {
  background: #fce4ec;
  border-color: #ef9a9a;
  color: #b71c1c;
}

.account-order-total {
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .account-order-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-order-summary-side {
    width: 100%;
    justify-content: space-between;
  }

  .account-order-table {
    min-width: 0;
  }

  .account-order-table thead {
    display: none;
  }

  .account-order-table,
  .account-order-table tbody,
  .account-order-table tr,
  .account-order-table td {
    display: block;
    width: 100%;
  }

  .account-order-table tr {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(13, 13, 13, 0.1);
  }

  .account-order-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    border: 0;
    text-align: right;
  }

  .account-order-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--ink-dim);
    text-align: left;
  }

  .account-order-table td.num {
    text-align: right;
  }

  .account-order-table tfoot td {
    background: transparent;
  }

  .account-order-table tfoot td:first-child {
    display: none;
  }
}

.account-empty,
.account-note,
.account-auth-switch {
  color: var(--ink-dim);
}

.account-auth {
  max-width: 28rem;
}

.account-form {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.account-form-wide {
  max-width: 32rem;
}

.account-form .btn {
  justify-self: start;
}

.header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  color: var(--ink-on-dark-muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.header-account .nav-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
}

.header-account .nav-icon svg {
  width: 100%;
  height: 100%;
}

.header-account:hover {
  color: var(--signal);
  border-color: var(--signal);
}

@media (max-width: 640px) {
  .header-account {
    width: 2rem;
    height: 2rem;
  }
}

.product-reviews {
  padding-top: 0.5rem;
}

.product-reviews .review-card {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-left: 4px solid var(--signal);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.product-reviews .review-card:hover {
  border-color: rgba(13, 13, 13, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.product-reviews-list {
  margin-bottom: 1.5rem;
}

.product-review-form-wrap {
  max-width: 36rem;
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.1);
  padding: 1.15rem 1.25rem;
}

.product-review-form-wrap h3 {
  margin: 0 0 0.85rem;
}

.product-review-form {
  display: grid;
  gap: 0.75rem;
}

.product-review-form .btn {
  justify-self: start;
}

.review-date {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

@media (max-width: 640px) {
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile catalog filters sheet */
@media (max-width: 900px) {
  .catalog-section {
    padding-bottom: 5.5rem;
  }

  .catalog-filters-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    position: fixed;
    top: auto;
    right: auto;
    left: 50%;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 55;
    width: auto;
    max-width: calc(100vw - 2rem);
    min-width: 11rem;
    height: auto;
    padding: 0.85rem 1.35rem;
    border: 0;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
  }

  .catalog-filters-fab:hover {
    background: #222;
  }

  .catalog-filters-fab-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
  }

  .catalog-filters-fab-icon svg {
    width: 100%;
    height: 100%;
  }

  .catalog-filters-fab-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    display: inline-grid;
    place-items: center;
    background: var(--signal);
    color: #111;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 999px;
  }

  .catalog-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .catalog-filters {
    position: fixed;
    inset: 0;
    z-index: 65;
    top: auto;
    pointer-events: none;
    visibility: hidden;
  }

  .catalog-filters-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 42rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-top: 3px solid var(--signal);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
  }

  .catalog-filters-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 0.95rem 1.1rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  }

  .catalog-filters-close {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(13, 13, 13, 0.14);
    background: #f5f5f5;
    color: #111;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  .catalog-filters form {
    flex: 1;
    overflow: auto;
    padding: 0.85rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
    border: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-filters-actions {
    position: sticky;
    bottom: 0;
    padding-top: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  }

  body.filters-open {
    overflow: hidden;
  }

  body.filters-open .catalog-filters {
    visibility: visible;
  }

  body.filters-open .catalog-filters-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.filters-open .catalog-filters-sheet {
    transform: translateY(0);
  }

  body.filters-open .catalog-filters-fab {
    visibility: hidden;
    pointer-events: none;
  }
}

/* Header + page search */
.header-search {
  --header-btn-h: 2.45rem;
  flex: 1 1 11rem;
  min-width: 0;
  max-width: 20rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-search-in-nav {
  display: none;
}

.header-search-label {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
}

.header-search-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--ink-on-dark-muted, rgba(255, 255, 255, 0.55));
  pointer-events: none;
  display: grid;
  place-items: center;
}

.header-search-icon svg {
  width: 100%;
  height: 100%;
}

.header-search-input {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--header-btn-h);
  height: var(--header-btn-h);
  padding: 0 0.85rem 0 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.header-search-input:focus {
  border-color: var(--signal, #f5c518);
  background: rgba(255, 255, 255, 0.12);
}

.header-search-btn {
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: var(--header-btn-h);
  height: var(--header-btn-h);
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--signal, #f5c518);
  color: var(--signal-ink, #1a1a1a);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.header-search-btn:hover {
  filter: brightness(1.05);
}

.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.search-page-field {
  flex: 1 1 16rem;
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.search-page-label {
  font-size: 0.85rem;
  font-weight: 650;
}

.search-results-count {
  margin: 0 0 1rem;
}

@media (max-width: 900px) {
  .header-search-bar {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .header-search-bar .header-search-btn {
    display: none;
  }
}

@keyframes cart-badge-pop {
  0% {
    transform: scale(0.55);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-actions .header-cart .cart-badge:not([hidden]) {
    animation: none;
  }
}

