/* ВелоДоступ Магазин — фирменный стиль (синхронизирован с проектом бронирования) */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap");

/* ============ Tokens ============ */
:root {
  --sky:        #1fa9dd;
  --sky-2:      #43bce6;
  --sky-soft:   #e6f4fa;
  --sky-softer: #f1f8fc;
  --navy:       #1f3f8c;
  --navy-2:     #2851a8;
  --navy-soft:  #e7ecf6;
  --bg:         #f6f8fb;
  --bg-2:       #eef3f8;
  --ink:        #2a3759;
  --ink-2:      #5a6890;
  --ink-3:      #9aa6c2;
  --ink-4:      #c5cdde;
  --line:       #e3eaf2;
  --line-2:     #ecf0f6;
  --paper:      #ffffff;
  --paper-soft: #fbfcfe;
  --accent:     #ffd23a;
  --success:    #2bb673;
  --success-soft: #e2f5ec;
  --warn:       #e8a027;
  --warn-soft:  #fdf2dd;
  --danger:     #d8434a;
  --danger-soft:#fbe5e7;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --shadow-1:   0 1px 2px rgba(21, 52, 122, 0.04), 0 2px 8px rgba(21, 52, 122, 0.05);
  --shadow-2:   0 2px 6px rgba(21, 52, 122, 0.06), 0 8px 24px rgba(21, 52, 122, 0.08);
  --shadow-pop: 0 12px 40px rgba(31, 169, 221, 0.18);

  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }
.text-link {
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.text-link:hover { color: var(--navy); }
.text-link-button { background: none; border: 0; padding: 0; cursor: pointer; }
.text-link-button.danger { color: var(--danger); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden, [hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.15;
}
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p  { margin: 0 0 12px; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; color: var(--navy); }

/* ============ Background orbs ============ */
.page-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.page-orb.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(31,169,221,0.18) 0%, transparent 70%);
  top: -220px; right: -180px;
}

/* ============ Shell ============ */
.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
}

/* ============ Topbar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  margin-top: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow .25s, border-color .25s;
}
.topbar:hover { box-shadow: var(--shadow-2); }

.topbar-menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, background .15s;
}
.topbar-menu-toggle:hover { border-color: var(--sky); background: var(--sky-soft); }
.topbar-menu-toggle__line {
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sky);
  flex: 0 0 44px;
  box-shadow: 0 2px 12px rgba(31,169,221,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); box-shadow: 0 4px 18px rgba(31,169,221,0.4); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-copy small {
  font-size: 11px; color: var(--ink-3); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-search-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.topbar-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.topbar-search-form input[type="search"]:focus {
  outline: 0;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(31,169,221,0.18);
  background: var(--paper);
}
.topbar-search-submit {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.catalog-dropdown { position: relative; flex-shrink: 0; }
.catalog-dropdown__summary {
  list-style: none;
  cursor: pointer;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  transition: border-color .15s, background .15s, color .15s;
}
.catalog-dropdown__summary:hover { border-color: var(--sky); color: var(--sky); }
.catalog-dropdown__summary::-webkit-details-marker { display: none; }
.catalog-dropdown__summary::after {
  content: '▾';
  font-size: 10px;
  color: var(--ink-3);
  transition: transform .2s ease;
}
.catalog-dropdown[open] .catalog-dropdown__summary {
  border-color: var(--sky);
  background: var(--sky-soft);
  color: var(--sky);
}
.catalog-dropdown[open] .catalog-dropdown__summary::after { transform: rotate(180deg); color: var(--sky); }
.catalog-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  z-index: 100;
  animation: dropdown-in .18s ease-out;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.catalog-dropdown__menu a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  transition: background .15s, color .15s, padding .15s;
}
.catalog-dropdown__menu a:hover { background: var(--bg-2); padding-left: 16px; }
.catalog-dropdown__menu a.is-active { background: var(--sky-soft); color: var(--sky); }

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.topbar-actions .account-site-icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 18px;
  color: #133b8a;
}

.topbar-actions .account-site-icon-button span {
  background: #0b5fff;
  box-shadow: 0 0 0 2px var(--paper);
}

.topbar-booking.button-primary {
  min-height: 44px;
  height: 44px;
  border-radius: 16px;
  padding: 10px 18px;
  background: #0b5fff;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(11, 95, 255, .22);
}

.topbar-booking.button-primary:hover,
.topbar-booking.button-primary:focus-visible {
  background: #0755e6;
  box-shadow: 0 16px 34px rgba(11, 95, 255, .28);
}

.account-site-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  border-radius: 16px;
  padding: 10px 16px;
  gap: 8px;
  border-color: rgba(11, 95, 255, .28);
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(11, 95, 255, .12);
}

.account-site-account-button:hover,
.account-site-account-button:focus-visible,
.account-site-account-button.is-active {
  border-color: var(--sky);
  background: #fff;
  color: var(--sky);
  box-shadow: 0 16px 34px rgba(11, 95, 255, .18);
}

.account-site-account-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-icon-button {
  display: inline-flex;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.topbar-icon-button:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-soft); transform: translateY(-1px); }
.topbar-icon-button:active { transform: translateY(0); }
.topbar-icon-button svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.topbar-cart-quick__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--sky);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.topbar-admin-mode-toggle {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-2);
  transition: all .15s;
}
.topbar-admin-mode-toggle:hover { border-color: var(--sky); color: var(--sky); }
.is-shop-admin-mode .topbar-admin-mode-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

.topbar-admin-orders-link { height: 42px; padding: 0 16px; font-size: 13px; }

.shop-admin-mode-only { display: none; }
.is-shop-admin-mode .shop-admin-mode-only { display: inline-flex; }

.topbar-admin-orders-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(255,255,255,0.25);
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

/* Mobile nav */
.mobile-nav-main { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 880px) {
  .topbar {
    position: relative;
    top: auto;
    grid-template-columns: auto 1fr auto;
    padding: 12px 14px;
  }
  .topbar-menu-toggle { display: flex; }
  .topbar-search {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 100vw);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 20px;
    transform: translateX(110%);
    transition: transform .25s ease;
    z-index: 200;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(21,52,122,0.15);
  }
  .topbar-search.is-open { transform: translateX(0); }
  .topbar-search-form { display: none; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 15px; }
  .mobile-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(14,27,61,0.4);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }
  .mobile-nav-main { display: block; }
  .mobile-nav-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
  }
  .mobile-nav-search-form input[type="search"] {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0 14px;
    font-size: 14px;
  }
  .mobile-nav-panels { overflow: hidden; }
  .mobile-nav-panels__track { display: flex; transition: transform .25s ease; }
  .mobile-nav-panels__track.is-categories { transform: translateX(-100%); }
  .mobile-nav-item--button { font-family: inherit; width: 100%; }
  body.mobile-menu-open { overflow: hidden; }
  .mobile-nav-panel {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav-panel:not(.is-active) { visibility: hidden; }
  .mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-2);
    border: 0;
    text-align: left;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
  }
  .mobile-nav-item.is-active { background: var(--sky-soft); color: var(--sky); }
  .mobile-nav-back {
    align-self: flex-start;
    border: 0; background: none;
    color: var(--sky);
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
  }
  .catalog-dropdown { display: none; }
}

/* ============ Page header / hero ============ */
.page-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-hero {
  padding: 36px 40px;
}
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.page-hero h1 .sky { color: var(--sky); }
.page-hero p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
}
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-label-light { background: rgba(255,255,255,0.18); color: #fff; }
.section-head__actions { display: flex; gap: 12px; align-items: center; }

.page-hero--admin {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  justify-content: space-between;
}
.page-hero-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Cards ============ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.card-soft {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.card-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--sky-softer) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
}

/* ============ Brand hero (used on storefront, category, cart, checkout, profile) ============ */
.brand-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% -10%, rgba(31,169,221,0.22) 0%, transparent 55%),
    radial-gradient(circle at 110% 110%, rgba(21,52,122,0.10) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, var(--sky-softer) 100%);
  border: 1px solid var(--line);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.brand-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: 80px;
  width: 4px; height: 200px;
  background: var(--sky);
  transform: rotate(20deg);
  opacity: 0.4;
  border-radius: 4px;
}
.brand-hero__copy { position: relative; z-index: 2; min-width: 0; }
.brand-hero__copy h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.brand-hero__copy h1 .sky { color: var(--sky); }
.brand-hero__copy p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 580px;
  line-height: 1.55;
}
.brand-hero--compact { padding: 28px 36px; }
.brand-hero--compact .brand-hero__copy h1 { font-size: 32px; }
.brand-hero--compact .brand-hero__copy p { font-size: 15px; }

.brand-hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  justify-content: center;
  min-width: 200px;
}
.brand-hero__stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-1);
}
.brand-hero__stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.brand-hero__stat strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-hero__stat--accent {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-2) 100%);
  border: 0;
  box-shadow: 0 6px 20px rgba(31,169,221,0.3);
}
.brand-hero__stat--accent span { color: rgba(255,255,255,0.82); }
.brand-hero__stat--accent strong { color: #fff; }

.brand-hero__cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Profile-flavoured hero (avatar + identity) */
.brand-hero--profile {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 32px 40px;
  align-items: center;
}
.brand-hero__avatar {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(31,169,221,0.35);
  position: relative;
  z-index: 2;
  flex: 0 0 84px;
}
.brand-hero__profile-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.brand-hero__profile-meta h1 {
  font-size: 30px;
  margin: 0;
}
.brand-hero__profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.brand-hero__profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.brand-hero__profile-chip svg { width: 13px; height: 13px; stroke: var(--sky); fill: none; stroke-width: 2; }
.brand-hero__profile-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Admin-flavoured hero */
.brand-hero--admin .brand-hero__copy h1 { font-size: clamp(26px, 3vw, 36px); }
.brand-hero--admin {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
}

@media (max-width: 880px) {
  .brand-hero, .brand-hero--profile, .brand-hero--admin {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .brand-hero__stats, .brand-hero__profile-actions { flex-direction: row; flex-wrap: wrap; }
  .brand-hero__profile-actions { width: 100%; }
}
.card-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border: 0;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-dark h1, .card-dark h2, .card-dark h3, .card-dark h4 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.82); }

/* ============ Buttons ============ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.button:active { transform: translateY(1px); }
.button-primary {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31,169,221,0.3);
}
.button-primary:hover { background: var(--sky-2); box-shadow: 0 6px 20px rgba(31,169,221,0.4); }
.button-secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--line);
}
.button-secondary:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-soft); }
.button-secondary.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.button-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}
.button-danger:hover { background: var(--danger); color: #fff; }
.button-compact { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.button[disabled], .button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ Forms ============ */
.checkout-form, .auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.checkout-form label, .auth-form label, .admin-inline-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkout-form label > span, .auth-form label > span, .admin-inline-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.checkout-form input:not([type="checkbox"]):not([type="radio"]),
.checkout-form select,
.checkout-form textarea,
.auth-form input,
.admin-inline-field input,
.admin-inline-field textarea,
.admin-inline-field select,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"],
select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(31,169,221,0.16);
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }

.admin-checkbox-field {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}
.admin-checkbox-field input { width: 18px; min-height: 18px; height: 18px; }

/* ============ Alerts ============ */
.alert-error, .alert-success, .alert-ok {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
}
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: rgba(216,67,74,0.2); }
.alert-success, .alert-ok { background: var(--success-soft); color: var(--success); border-color: rgba(43,182,115,0.2); }

/* ============ Sections ============ */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section-block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .section-block--split { grid-template-columns: 1fr; }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head h2 { margin: 6px 0 0; }
.section-head--panel { margin-bottom: 20px; }

.section-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.section-links-grid--two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.section-link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.section-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--sky);
}
.section-link-card h3 { margin: 0; }
.section-link-card .button { align-self: flex-start; margin-top: auto; }
.section-link-card.needs-attention {
  border-color: var(--warn);
  background: linear-gradient(135deg, var(--paper) 0%, var(--warn-soft) 100%);
}

.admin-account-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(49,167,212,0.10), rgba(255,255,255,0.88));
}
.admin-account-panel h3 { margin: 6px 0 6px; }
.admin-account-panel p {
  margin: 0 0 14px;
  color: var(--ink-3);
}
.admin-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Showcase / panels ============ */
.showcase-panel {
  padding: 28px;
}
.section-block--random-products { margin-top: 8px; }
.random-products__hint { color: var(--ink-3); font-size: 13px; }
.random-products__status { color: var(--ink-3); font-size: 14px; padding: 16px; }
.random-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ============ Carousel ============ */
.carousel { position: relative; }
.carousel--panel { padding: 0; }
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 3px; }
.carousel__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 20px;
  color: var(--navy);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
  transition: background .15s, color .15s;
}
.carousel__nav:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.carousel__nav--prev { left: -16px; transform: translateY(-50%); }
.carousel__nav--next { right: -16px; transform: translateY(-50%); }

/* ============ Product cards ============ */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--sky);
  box-shadow: var(--shadow-pop);
}
.product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f7fcff 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
  transition: transform .3s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.02); }
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex: 1;
}
.product-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.product-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.product-card__title:hover { color: var(--sky); }
.product-card__subtitle {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.45;
}
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}
.product-card__footer .price-box { min-width: 0; flex: 1 1 auto; }
.product-card__footer .button { flex-shrink: 0; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.availability {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}
.product-card-stock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}
.product-card-stock__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
}
.product-card-stock__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
}
.product-card-stock__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
}
.product-card-stock__point {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card-stock__qty {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--sky);
  white-space: nowrap;
}
.product-card-stock__item.is-empty,
.product-card-stock__item--more {
  color: var(--ink-3);
}
.product-card-stock__item.is-empty .product-card-stock__qty,
.product-card-stock__item--more .product-card-stock__qty {
  color: var(--ink-3);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-box strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.price-box span {
  text-decoration: line-through;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}
.price-box--large strong { font-size: 30px; }
.price-box--large span { font-size: 16px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list span {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.empty-card { text-align: center; padding: 48px 28px; }
.empty-card h2 { color: var(--navy); }

/* ============ Catalog / category ============ */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.catalog-toolbar label {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalog-toolbar label > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 1fr; }
}

.catalog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.catalog-sidebar-inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .catalog-sidebar-inline-fields { grid-template-columns: 1fr; }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ============ Product detail ============ */
.product-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; }
}
.product-hero__media {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.product-hero__details {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.spec-grid__item {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-grid__item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec-grid__item strong {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

/* ============ Spec list (product detail) — clean 2-col rows ============ */
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 18px;
}
.spec-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-list__row span {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.spec-list__row strong {
  font-size: 14px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: right;
}
@media (max-width: 720px) { .spec-list { grid-template-columns: 1fr; } }

.details-card {
  padding: 28px;
}

/* Product gallery & lightbox */
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
[data-product-gallery-thumb] {
  width: 64px; height: 64px;
  border-radius: 10px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  padding: 0;
}
[data-product-gallery-thumb] img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
[data-product-gallery-thumb].is-active { border-color: var(--sky); }

[data-product-lightbox] {
  position: fixed;
  inset: 0;
  background: rgba(14,27,61,0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-product-lightbox-dialog] {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
[data-product-lightbox-image] { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
[data-product-lightbox-close] {
  position: absolute;
  top: -50px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
}

/* ============ Cart / checkout ============ */
.cart-layout {
  align-items: flex-start;
}
.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.checkout-summary-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: 12px;
  align-items: center;
}
.checkout-summary-item strong {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}
.checkout-summary-item span {
  font-size: 13px;
  color: var(--ink-3);
}
.checkout-summary-item b {
  font-size: 15px;
  color: var(--navy);
  font-family: var(--font-display);
}

/* ============ Footer ============ */
.site-footer {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2860 100%);
  border-radius: var(--radius-xl);
  padding: 40px 44px 28px;
  color: rgba(255,255,255,0.86);
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(150px, .62fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: start;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,169,221,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  left: 44px; right: 44px; bottom: 18px;
  height: 1px;
  background: rgba(255,255,255,0.10);
}
@media (max-width: 880px) {
  .site-footer { grid-template-columns: 1fr; gap: 26px; padding: 32px 28px 22px; }
}

.footer-brand,
.footer-col,
.footer-meta {
  position: relative;
  z-index: 2;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: #fff;
  display: block;
  letter-spacing: -0.01em;
}
.footer-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.54);
  font-size: 12px;
  font-weight: 700;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 14px;
  max-width: 380px;
  line-height: 1.6;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.footer-contacts a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s;
}
.footer-contacts a:hover { color: var(--sky-2); }
.footer-contacts a svg {
  width: 14px; height: 14px;
  stroke: var(--sky-2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  transition: color .15s, padding .15s;
}
.footer-nav a:hover { color: #fff; padding-left: 4px; }

@media (max-width: 880px) {
  .footer-nav { align-items: flex-start; text-align: left; }
  .footer-nav a:hover { padding-left: 4px; }
}

.footer-legal-card {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.14);
}

.footer-legal-card p {
  max-width: 460px;
  margin: 0 0 12px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.55;
}

.footer-requisites {
  display: grid;
  gap: 8px;
  margin: 0;
}

.footer-requisites div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-requisites dt {
  color: rgba(255,255,255,0.44);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-requisites dd {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-legal-links a,
.footer-meta a {
  color: #fff;
  text-decoration: none;
}

.footer-legal-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 800;
}

.footer-legal-links a:hover {
  background: rgba(31,169,221,0.28);
}

@media (max-width: 880px) {
  .footer-legal-card {
    padding-left: 0;
    border-left: 0;
  }

  .footer-requisites div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.footer-meta {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

/* ============ Order alerts ============ */
.admin-order-alert, .customer-order-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffc107 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.customer-order-alert { background: linear-gradient(135deg, var(--sky-soft) 0%, var(--paper) 100%); border: 1px solid var(--sky); }
.admin-order-alert__link, .customer-order-alert__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: var(--navy);
}
.admin-order-alert__link strong { font-family: var(--font-display); font-size: 15px; }
.admin-order-alert__link small { font-size: 12px; color: rgba(14,27,61,0.7); }
.customer-order-alert__link strong { font-family: var(--font-display); font-size: 14px; }
.customer-order-alert__link small { font-size: 12px; color: var(--ink-3); }
.admin-order-alert__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.customer-order-alert__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--sky);
}
.admin-order-alert__close, .customer-order-alert__close {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.admin-order-alert__close:hover, .customer-order-alert__close:hover { background: rgba(0,0,0,0.08); }

/* ============ Admin specific ============ */
.admin-help-text {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 14px;
}
.admin-help-text:last-child { margin-bottom: 0; }

.admin-page-titlebar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-content-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.admin-content-toolbar--bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

.shop-admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.shop-admin-section-nav .button {
  min-width: 0;
  white-space: nowrap;
}
.shop-admin-section-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
}
.account-admin-panel .shop-admin-section-nav {
  justify-content: flex-start;
}
.shop-admin-page-header {
  grid-template-columns: minmax(0, 1fr) minmax(320px, auto);
  gap: 22px;
  min-height: 0;
}
.shop-admin-page-header__copy,
.shop-admin-page-header__nav {
  min-width: 0;
}
.shop-admin-page-header__copy h1 {
  margin-bottom: 10px;
}
.shop-admin-header-alert {
  margin: -12px 0 0;
}
.shop-admin-site-page .section-block,
.shop-admin-site-page .card,
.shop-admin-site-page form {
  min-width: 0;
  max-width: 100%;
}
.shop-admin-site-page .details-card,
.shop-admin-site-page .section-link-card,
.shop-admin-site-page .admin-order-card {
  border-color: rgba(191, 210, 231, .86);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-1);
}
.shop-admin-site-page .catalog-toolbar,
.shop-admin-site-page .admin-orders-filter,
.shop-admin-site-page .admin-content-toolbar {
  gap: 10px;
}
.shop-admin-site-page .admin-table-wrap {
  border-color: rgba(191, 210, 231, .86);
  border-radius: 18px;
  background: #fff;
}
.shop-admin-site-page .admin-table th {
  background: #f4f8ff;
  color: #52627d;
}

.admin-orders-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.admin-orders-summary > div {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-orders-summary span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.admin-orders-summary strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
}
.admin-orders-summary .is-hot {
  background: var(--warn-soft);
}
.admin-orders-summary .is-hot strong { color: var(--warn); }

.admin-orders-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-order-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-order-card.needs-attention { border-color: var(--warn); }
.admin-order-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.admin-order-action {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
  margin-top: 4px;
}
.admin-order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-order-badge {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--ink-2);
}
.admin-order-badge--payment { background: var(--sky-soft); color: var(--sky); }
.admin-order-badge--status.admin-order-badge--new { background: var(--warn-soft); color: var(--warn); }
.admin-order-badge--status.admin-order-badge--paid { background: var(--success-soft); color: var(--success); }
.admin-order-badge--status.admin-order-badge--ready { background: var(--success-soft); color: var(--success); }
.admin-order-badge--status.admin-order-badge--cancelled { background: var(--danger-soft); color: var(--danger); }
.admin-order-badge--status.admin-order-badge--given { background: var(--navy-soft); color: var(--navy); }

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.admin-inline-action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.admin-cancel-reason-field {
  display: none;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 240px;
}
.admin-cancel-reason-field.is-active { display: flex; }
.admin-cancel-reason-field span {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
}
.admin-cancel-reason-field textarea { font-size: 13px; }

/* Admin tables */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--paper);
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Auth card */
.auth-card { padding: 32px; }
.auth-card h2 { font-size: 24px; }

/* User table */
.admin-users-grid { gap: 24px; }
.admin-online-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.admin-online-list strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.admin-online-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.admin-online-row:last-child { border-bottom: 0; }
.admin-online-row > div { display: flex; flex-direction: column; gap: 2px; }
.admin-online-row b { font-size: 14px; color: var(--navy); font-weight: 600; }
.admin-online-row small { font-size: 12px; color: var(--ink-3); }
.admin-online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-4);
  margin-top: 8px;
  flex: 0 0 8px;
}
.admin-online-dot.is-online { background: var(--success); box-shadow: 0 0 0 3px rgba(43,182,115,0.18); }

.admin-role-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.admin-role-pill--admin { background: var(--accent); color: var(--navy); }

.admin-users-table__note {
  display: block;
  font-size: 11px;
  color: var(--sky);
  margin-top: 2px;
  font-weight: 600;
}

/* Analytics */
.admin-analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.admin-revenue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.admin-revenue-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-revenue-card span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.admin-revenue-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}
.admin-revenue-card small { font-size: 11px; color: var(--ink-3); }
.admin-revenue-card--main {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-2) 100%);
}
.admin-revenue-card--main span { color: rgba(255,255,255,0.8); }
.admin-revenue-card--main strong { color: #fff; font-size: 26px; }
.admin-revenue-card--main small { color: rgba(255,255,255,0.78); }
.admin-revenue-note {
  font-size: 13px;
  color: var(--ink-3);
  padding: 12px 14px;
  background: var(--warn-soft);
  border-radius: 12px;
  margin: 12px 0;
}
.admin-revenue-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
}
@media (max-width: 980px) { .admin-revenue-columns { grid-template-columns: 1fr; } }

/* Logs */
.admin-logs-shell .admin-page-titlebar { align-items: center; }
.admin-log-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.admin-log-kind {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}
.admin-log-message-cell strong { font-size: 14px; color: var(--navy); }
.admin-log-message-cell p { font-size: 12px; color: var(--ink-3); margin: 4px 0 0; }
.admin-log-details summary {
  font-size: 12px;
  color: var(--sky);
  cursor: pointer;
  margin-top: 6px;
}
.admin-log-details pre {
  font-size: 11px;
  background: var(--bg-2);
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 6px;
  white-space: pre-wrap;
  color: var(--ink-2);
}
.admin-log-status {
  font-family: var(--font-display);
  color: var(--navy);
}

/* Specs editor */
.admin-specs-hidden { position: absolute; opacity: 0; pointer-events: none; height: 0; }
.admin-specs-editor {
  background: transparent;
  padding: 0;
}
.admin-specs-editor__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-specs-editor__add {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--sky);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}
.admin-specs-editor__add:hover { background: var(--sky-2); }
.admin-specs-editor__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.admin-specs-editor__legend b {
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.admin-specs-editor__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  min-height: 60px;
  background: var(--bg-2);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}
.admin-specs-editor-block { padding: 24px; }
.admin-specs-editor-block--wide { padding: 24px; }

/* Modal / picker */
.admin-editor-modal, .admin-picker {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-editor-modal__backdrop, .admin-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,27,61,0.5);
  backdrop-filter: blur(4px);
}
.admin-editor-modal__dialog, .admin-picker__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.admin-editor-modal__head, .admin-picker__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-picker__hint { color: var(--ink-3); font-size: 13px; }
.admin-picker__results {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.admin-picker__head-actions {
  display: flex;
  gap: 8px;
}

/* Carousel admin card extras */
.admin-carousel-card {
  position: relative;
}
.admin-carousel-card__remove {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  box-shadow: var(--shadow-1);
}
.admin-carousel-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.shop-admin-card-actions {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 10;
}
.admin-carousel-empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin-top: 10px;
}

.admin-content-subtitle { color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }
.admin-home-preview { margin-top: 14px; }
.admin-home-preview__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-seo-card { padding: 24px; margin-top: 14px; }
.admin-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 0;
}
.admin-advanced[open] summary { color: var(--sky); }

.admin-product-edit-state {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) { .admin-product-edit-state { grid-template-columns: 1fr; } }
.admin-product-edit-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) { .admin-product-edit-price-grid { grid-template-columns: 1fr; } }

.admin-product-images {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.admin-product-images__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}
.admin-product-images__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  min-height: 60px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--radius);
}

/* Body lock when lightbox open */
body.product-lightbox-open { overflow: hidden; }

/* SKU label */
.sku { font-size: 12px; color: var(--ink-3); }

/* ============ Page hero compact (category pages) ============ */
.page-hero--compact { padding: 18px 28px 20px; }
.page-hero--compact h1 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 4px; }
.page-hero--compact p { font-size: 14px; }

/* ============ Catalog layout grid — sidebar always on left, content on right ============ */
.catalog-layout-grid {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 20px;
  align-items: flex-start;
}

/* Loading state — dim main column only */
[data-catalog-root].is-loading { cursor: wait; }
[data-catalog-root].is-loading .catalog-main-column {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity .2s;
}

/* ============ Sidebar ============ */
.catalog-layout-grid .catalog-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
}
.catalog-layout-grid .catalog-sidebar::-webkit-scrollbar { width: 4px; }
.catalog-layout-grid .catalog-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.catalog-sidebar-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}
.catalog-sidebar-topline .section-label {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--navy);
  font-family: var(--font-display);
}

.catalog-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .14s, color .14s;
}
.catalog-sidebar-close:hover { border-color: var(--sky); color: var(--sky); }

.catalog-sidebar-form { display: flex; flex-direction: column; }

/* ============ Filter sections ============ */
.catalog-filter-group--section { border-bottom: 1px solid var(--line); }
.catalog-filter-group--section > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  user-select: none;
  gap: 8px;
  transition: background .12s;
}
.catalog-filter-group--section > summary:hover { background: var(--bg-2); }
.catalog-filter-group--section > summary::-webkit-details-marker { display: none; }
.catalog-filter-group--section > summary h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.catalog-filter-group--section > summary::after {
  content: '▾';
  font-size: 10px;
  color: var(--ink-3);
  transition: transform .15s;
  flex-shrink: 0;
}
.catalog-filter-group--section:not([open]) > summary::after { transform: rotate(-90deg); }

.catalog-filter-group--section > .catalog-category-module__groups,
.catalog-filter-group--section > label,
.catalog-filter-group--section > .catalog-sidebar-inline-fields,
.catalog-filter-group--section > .catalog-dynamic-filters {
  padding: 4px 20px 14px;
}
.catalog-filter-group--section > label { display: flex !important; flex-direction: column; gap: 5px; }
.catalog-filter-group--section > label > span { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }

/* ============ Category tree ============ */
.catalog-category-module__groups { display: flex; flex-direction: column; gap: 1px; }
.catalog-category-group { border-radius: 8px; }
.catalog-category-group > summary { list-style: none; cursor: pointer; }
.catalog-category-group > summary::-webkit-details-marker { display: none; }

.catalog-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: background .12s, color .12s;
  cursor: pointer;
}
.catalog-nav-link:hover { background: var(--bg-2); }
.catalog-nav-link.is-active,
.catalog-category-group.is-current > summary .catalog-nav-link,
.catalog-category-group--leaf.is-current .catalog-nav-link {
  background: var(--sky-soft);
  color: var(--sky);
}
.catalog-nav-link > span { flex: 1; min-width: 0; }
.catalog-nav-link > strong {
  font-size: 11px; font-weight: 700; color: var(--ink-4);
  background: var(--bg-2); padding: 2px 7px; border-radius: 10px; flex-shrink: 0;
}
.catalog-nav-link.is-active > strong,
.catalog-category-group.is-current > summary .catalog-nav-link > strong {
  background: rgba(31,169,221,0.14); color: var(--sky);
}

.catalog-category-group__list {
  list-style: none; margin: 2px 0 4px; padding: 0 0 0 12px;
  display: flex; flex-direction: column; gap: 1px;
}
.catalog-category-group__list li.is-active > a { background: var(--sky-soft); color: var(--sky); border-radius: 8px; }
.catalog-category-group__list a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; transition: background .12s, color .12s;
}
.catalog-category-group__list a:hover { background: var(--bg-2); color: var(--navy); }

/* ============ Checkboxes / radios in sidebar ============ */
.catalog-sidebar-checkbox {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 9px; padding: 4px 0; cursor: pointer;
}
.catalog-sidebar-checkbox input {
  width: 16px; min-height: 16px; height: 16px;
  border-radius: 4px; flex-shrink: 0; accent-color: var(--sky); margin: 0; padding: 0;
}
.catalog-sidebar-checkbox span { font-size: 13px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.catalog-filter-group__options { display: flex; flex-direction: column; }

/* ============ Dynamic filter items ============ */
.catalog-dynamic-filters { display: flex; flex-direction: column; }
.catalog-filter-dynamic-item { border-bottom: 1px solid var(--line-2); }
.catalog-filter-dynamic-item:last-child { border-bottom: 0; }
.catalog-filter-dynamic-item > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 0; cursor: pointer;
}
.catalog-filter-dynamic-item > summary::-webkit-details-marker { display: none; }
.catalog-filter-dynamic-item > summary h5 {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 5px;
}
.catalog-filter-dynamic-item > summary h5 small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.catalog-filter-dynamic-item > summary::after {
  content: '▾'; font-size: 10px; color: var(--ink-3); transition: transform .15s; flex-shrink: 0;
}
.catalog-filter-dynamic-item:not([open]) > summary::after { transform: rotate(-90deg); }
.catalog-filter-dynamic-item > .catalog-filter-group__options,
.catalog-filter-dynamic-item > .catalog-sidebar-inline-fields,
.catalog-filter-dynamic-item > label { padding-bottom: 8px; }

/* ============ Sidebar actions ============ */
.catalog-sidebar-actions {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 20px;
  border-top: 1px solid var(--line); flex-shrink: 0;
  position: sticky; bottom: 0; background: var(--paper); z-index: 2;
}
.catalog-sidebar-actions .button { flex: 1; width: 100%; white-space: normal; }

/* ============ Main column ============ */
.catalog-main-column { min-width: 0; display: flex; flex-direction: column; }
.catalog-results-stack { display: flex; flex-direction: column; padding: 0; }

.catalog-section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.catalog-section-head h2 { margin: 0; font-size: 18px; }
.catalog-section-head__actions { display: flex; gap: 8px; align-items: center; }
.catalog-filter-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm);
}
.catalog-filter-toggle svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

.catalog-selected-filters {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 24px; border-bottom: 1px solid var(--line);
}
.catalog-selected-filters__chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 100px; background: var(--sky-soft); border: 1px solid rgba(31,169,221,0.18);
  color: var(--sky); font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .12s;
}
.catalog-selected-filters__chip:hover { background: rgba(31,169,221,0.2); }
.catalog-selected-filters__chip > span:last-child { opacity: 0.7; font-size: 14px; line-height: 1; }
.catalog-selected-filters__reset {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 100px; text-decoration: none; font-size: 12px; font-weight: 600;
  color: var(--ink-3); border: 1px solid var(--line); transition: color .12s, border-color .12s;
}
.catalog-selected-filters__reset:hover { color: var(--danger); border-color: var(--danger); }

.catalog-results-surface { padding: 20px 24px; }
.catalog-grid--surface { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.catalog-empty-state { text-align: center; padding: 40px 24px; }

/* ============ Preview popup (desktop "Show N items" floater) ============ */
.catalog-filter-preview-popover {
  position: fixed; z-index: 80;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 12px; height: 40px; padding: 0 16px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-2);
  transition: background .14s, transform .1s; white-space: nowrap;
}
.catalog-filter-preview-popover:hover { background: var(--sky); transform: translateY(-1px); }
.catalog-filter-preview-popover.is-loading { opacity: 0.6; cursor: not-allowed; }
.catalog-filter-preview-popover::before {
  content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-right: 8px solid var(--navy);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.catalog-filter-preview-popover.is-flipped::before {
  left: auto; right: -8px; border-left: 8px solid var(--navy); border-right: none;
}

/* ============ Filter overlay (mobile backdrop) ============ */
.catalog-filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(14,27,61,0.38); z-index: 89;
}
.catalog-filter-overlay.is-open { display: block; }
html.catalog-filters-open,
body.catalog-filters-open { overflow: hidden; }

/* ============ Catalog: tablet / mobile ============ */
@media (max-width: 980px) {
  .catalog-layout-grid { grid-template-columns: 1fr; }

  /* Sidebar becomes a slide-in drawer from the right */
  .catalog-layout-grid .catalog-sidebar {
    position: fixed; inset: 0 0 0 auto;
    width: min(310px, 90vw); max-height: 100dvh;
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: none; scrollbar-color: transparent transparent;
    background: var(--paper); z-index: 110;
    transform: translateX(110%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -6px 0 32px rgba(21,52,122,0.18);
    padding: 0; border: none;
  }
  .catalog-layout-grid .catalog-sidebar::-webkit-scrollbar { display: none; }
  .catalog-layout-grid .catalog-sidebar.is-open { transform: translateX(0); }

  .catalog-sidebar-close { display: none; }
  .catalog-filter-toggle { display: inline-flex; }

  .catalog-section-head { padding: 14px 16px; }
  .catalog-selected-filters { padding: 8px 16px; }
  .catalog-results-surface { padding: 14px 16px; }
  .catalog-grid--surface {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* ============ Mobile improvements (general) ============ */
@media (max-width: 880px) {
  .topbar-menu-toggle { display: none !important; }
  .site-shell { padding: 0 16px 80px; }
  .page-hero { padding: 24px 22px; }
  .page-hero--compact { padding: 14px 18px 16px; }
  .card-soft { padding: 20px 18px; }
  .section-block { gap: 16px; }
  .brand-hero { padding: 24px 22px; }
  .brand-hero--compact { padding: 20px 22px; }
}

@media (max-width: 600px) {
  .site-shell { padding: 0 12px 32px; gap: 12px; }
  .product-card__text { display: none; }
  .product-card__actions { flex-direction: column; gap: 6px; }
  .product-card__actions .button { width: 100%; justify-content: center; }
  .product-hero__details { padding: 20px 18px; }
  .product-hero__media { padding: 16px; }
  .brand-hero { padding: 20px 18px; }
  .brand-hero__copy h1 { font-size: 26px; }
  .catalog-grid--surface { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .page-hero--compact { padding: 12px 16px 14px; }
}

/* ============ Sidebar search field ============ */
.catalog-sidebar-search {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.catalog-sidebar-search input[type="search"] {
  width: 100%; box-sizing: border-box;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cloud);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s;
}
.catalog-sidebar-search input[type="search"]:focus {
  border-color: var(--sky);
}

/* ============ Bottom navigation bar (mobile) ============ */
.bottom-nav {
  display: none;
}
@media (max-width: 880px) {
  .bottom-nav {
    display: flex;
    position: fixed; inset: auto 0 0 0;
    z-index: 100;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 24px rgba(21,52,122,0.10);
    align-items: center;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    transition: transform .22s cubic-bezier(.4,0,.2,1);
  }
  .bottom-nav.is-hidden {
    transform: translateY(110%);
  }
  .bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    flex: 1; min-width: 0;
    background: none; border: none; cursor: pointer;
    padding: 6px 8px;
    color: var(--ink-2);
    font-size: 12px; font-weight: 500; font-family: inherit;
    text-decoration: none;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__item:hover,
  .bottom-nav__item.is-active { color: var(--sky); }
  .bottom-nav__item svg {
    width: 24px; height: 24px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .bottom-nav__badge {
    position: absolute; top: -2px; right: -4px;
    background: var(--sky); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    padding: 2px 4px; border-radius: 8px;
    min-width: 16px; text-align: center;
    display: none;
  }
  .bottom-nav__icon-wrap {
    position: relative; display: flex;
  }
  .bottom-nav__badge.is-visible { display: block; }
}

/* ============ Mobile search overlay ============ */
.mobile-search-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(14,27,61,0.45);
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
.mobile-search-overlay.is-open { display: flex; }
.mobile-search-overlay__box {
  width: min(480px, 92vw);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; gap: 8px; align-items: center;
  box-shadow: 0 8px 40px rgba(21,52,122,0.18);
}
.mobile-search-overlay__box input[type="search"] {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cloud);
  color: var(--ink);
  font-size: 15px; font-family: inherit;
  outline: none;
}
.mobile-search-overlay__box input[type="search"]:focus { border-color: var(--sky); }
.mobile-search-overlay__box button[type="submit"] { white-space: nowrap; }

/* ============================================================
   NEW DESIGN ELEMENTS — hero, categories, features, auth, motion
   ============================================================ */

/* ---------- Reveal-on-load animation (used on cards) ---------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: reveal-up .55s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ---------- Animated background orbs (page-wide) ---------- */
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -25px) scale(1.06); }
  100% { transform: translate(0, 0) scale(1); }
}
.page-orb { animation: orb-drift 18s ease-in-out infinite; }

/* ---------- Hero on /shop/ home ---------- */
.shop-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a3d8e 0%, #15347a 45%, #0f2860 100%);
  color: #fff;
  padding: 56px 56px 60px;
  isolation: isolate;
  box-shadow: 0 18px 60px rgba(21,52,122,0.25);
}
.shop-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shop-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
}
.shop-hero__orb--1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(31,169,221,0.55), transparent 70%);
  top: -80px; right: -60px;
  animation: orb-drift 14s ease-in-out infinite;
}
.shop-hero__orb--2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,210,58,0.25), transparent 70%);
  bottom: -100px; left: 30%;
  animation: orb-drift 18s ease-in-out infinite reverse;
}
.shop-hero__orb--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(67,188,230,0.4), transparent 70%);
  top: 30%; left: -50px;
  animation: orb-drift 16s ease-in-out infinite;
}
.shop-hero__bike {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  max-width: 45%;
  height: auto;
  fill: none;
  stroke: rgba(255,255,255,0.18);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 0;
  pointer-events: none;
}
.shop-hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.shop-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}
.shop-hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky-2);
  box-shadow: 0 0 0 4px rgba(67,188,230,0.25);
  animation: hero-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(67,188,230,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(67,188,230,0.05); }
}
.shop-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.shop-hero__lead {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 540px;
}
.shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.shop-hero__cta {
  height: 54px;
  padding: 0 27px;
  font-size: 15.5px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.shop-hero__cta:hover { background: var(--accent); color: var(--navy); box-shadow: 0 8px 26px rgba(255,210,58,0.35); }
.shop-hero__cta-arrow { transition: transform .2s ease; }
.shop-hero__cta:hover .shop-hero__cta-arrow { transform: translateX(4px); }
.shop-hero__cta-scroll:hover .shop-hero__cta-arrow--down { transform: translateY(3px); }
.shop-hero__cta-secondary {
  height: 52px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.shop-hero__cta-secondary:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.45); color: #fff; }
.shop-hero__stats {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.shop-hero__stats li { display: flex; flex-direction: column; }
.shop-hero__stats strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.shop-hero__stats span {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0;
  font-weight: 500;
}

@media (max-width: 880px) {
  .shop-hero { padding: 36px 24px 32px; }
  .shop-hero__bike { display: none; }
  .shop-hero__cta { height: 48px; }
  .shop-hero__cta-secondary { height: 46px; }
  .shop-hero__stats { gap: 20px; }
  .shop-hero__stats strong { font-size: 22px; }
}

/* ---------- Category cards row ---------- */
.shop-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shop-category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  isolation: isolate;
}
.shop-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sky-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.shop-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--sky);
}
.shop-category-card:hover::before { opacity: 1; }
.shop-category-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--sky-soft);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .25s ease, color .25s ease;
}
.shop-category-card__icon svg {
  width: 32px; height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-category-card:hover .shop-category-card__icon {
  background: var(--sky);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.shop-category-card--parts .shop-category-card__icon { background: rgba(255,210,58,0.18); color: #b88a00; }
.shop-category-card--parts:hover .shop-category-card__icon { background: var(--accent); color: var(--navy); }
.shop-category-card--accessories .shop-category-card__icon { background: rgba(43,182,115,0.14); color: var(--success); }
.shop-category-card--accessories:hover .shop-category-card__icon { background: var(--success); color: #fff; }
.shop-category-card--tools .shop-category-card__icon { background: rgba(232,160,39,0.16); color: var(--warn); }
.shop-category-card--tools:hover .shop-category-card__icon { background: var(--warn); color: #fff; }
.shop-category-card__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.shop-category-card__copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.shop-category-card__copy small { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.shop-category-card__arrow {
  font-size: 18px;
  color: var(--ink-3);
  transition: transform .2s ease, color .2s ease;
  flex-shrink: 0;
}
.shop-category-card:hover .shop-category-card__arrow { color: var(--sky); transform: translateX(4px); }

@media (max-width: 1080px) {
  .shop-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-categories { grid-template-columns: 1fr; }
}

/* ---------- Features row ---------- */
.shop-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shop-feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.shop-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--sky-soft); }
.shop-feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sky-soft);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.shop-feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-feature__icon--garage { background: rgba(43,182,115,0.14); color: var(--success); }
.shop-feature__icon--service { background: rgba(232,160,39,0.16); color: var(--warn); }
.shop-feature__icon--prices { background: rgba(255,210,58,0.18); color: #b88a00; }
.shop-feature strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.shop-feature p { color: var(--ink-2); font-size: 13px; margin: 0; line-height: 1.5; }

@media (max-width: 1080px) {
  .shop-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-features { grid-template-columns: 1fr; }
}

/* ---------- Section head subtitle ---------- */
.section-head__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- Auth pages (login / register) — split layout ---------- */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}
.auth-card { display: flex; flex-direction: column; }
.auth-card--form { padding: 36px 36px 32px; gap: 6px; }
.auth-card__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--sky-soft);
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.auth-card__eyebrow--light { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.auth-card--form h2 { font-size: 28px; margin: 0 0 8px; }
.auth-card__lead { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; }
.auth-form { gap: 12px; }
.auth-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.auth-form label { gap: 6px !important; }
.auth-form label > span { font-size: 13px !important; color: var(--ink-2) !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none; }
.auth-form input {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper-soft);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-form input:focus {
  outline: 0;
  border-color: var(--sky);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(31,169,221,0.16);
}
.auth-form input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 11px 14px;
}
.auth-consent {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px !important;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sky-softer);
}
.auth-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--sky);
}
.auth-consent span {
  font-size: 13px !important;
  line-height: 1.45;
}
.auth-card__submit {
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-card__submit span:last-child { transition: transform .2s ease; }
.auth-card__submit:hover span:last-child { transform: translateX(4px); }
.auth-card__switch { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }

.auth-card--side {
  position: relative;
  overflow: hidden;
  padding: 40px 36px;
  isolation: isolate;
}
.auth-card__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.auth-card__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.auth-card__bg-orb--1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(31,169,221,0.55), transparent 70%);
  top: -80px; right: -60px;
  animation: orb-drift 16s ease-in-out infinite;
}
.auth-card__bg-orb--2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,210,58,0.18), transparent 70%);
  bottom: -60px; left: -40px;
  animation: orb-drift 20s ease-in-out infinite reverse;
}
.auth-card__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.auth-card--side h2 { font-size: 32px; color: #fff; line-height: 1.1; margin: 0 0 8px; }
.auth-card__h-accent { color: var(--accent); }
.auth-perks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-perks__item { display: flex; gap: 14px; align-items: flex-start; }
.auth-perks__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.auth-perks__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-perks__item strong { display: block; color: #fff; font-family: var(--font-display); font-size: 15px; margin-bottom: 2px; letter-spacing: -0.01em; }
.auth-perks__item span { display: block; color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.4; }

.auth-card--support .auth-card__content { gap: 14px; }
.auth-card__support-lead {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
  line-height: 1.45;
}
.auth-support {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-support li {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.auth-support strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.auth-support span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.4;
}
.auth-support__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.auth-support__button {
  min-width: 220px;
  border: 0;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(10, 18, 42, 0.25);
}
.auth-support__button:hover {
  background: var(--accent);
  color: var(--navy);
}
.auth-support__link {
  color: #fff !important;
  text-decoration-color: rgba(255,255,255,0.55);
}
.auth-support__link:hover {
  color: var(--accent) !important;
  text-decoration-color: var(--accent);
}

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-card--side { order: -1; padding: 28px 24px; }
  .auth-card--side h2 { font-size: 24px; }
  .auth-card--form { padding: 28px 24px; }
  .auth-support__button { width: 100%; min-width: 0; }
  .auth-form__grid { grid-template-columns: 1fr; }
}

.account-profile__head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.account-profile__photo {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--sky-soft);
  flex: 0 0 82px;
}

.account-profile__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

/* ---------- Product card lift on hover ---------- */
.product-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--sky-soft);
}

/* ---------- Button micro-press feel + shimmer for primary ---------- */
.button-primary {
  position: relative;
  overflow: hidden;
}
.button-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.button-primary:hover::after { left: 130%; }

/* ---------- Account pages: storefront-aligned cabinet ---------- */
.brand-hero--account {
  align-items: stretch;
}

.account-hero-stats {
  min-width: 260px;
}

.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: start;
}

.account-auth-layout--register {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr);
}

.account-auth-card {
  padding: 32px;
}

.account-auth-card__head {
  max-width: 560px;
}

.account-auth-card__head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.account-auth-card__head p {
  font-size: 14px;
  color: var(--ink-2);
}

.account-auth-form {
  margin-top: 18px;
}

.account-auth-guide {
  display: grid;
  gap: 14px;
}

.account-guide-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}

.account-guide-card--featured {
  background:
    linear-gradient(135deg, rgba(31,169,221,.12), rgba(255,255,255,.94));
  border-color: rgba(31,169,221,.26);
}

.account-guide-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  background: var(--sky-soft);
  border: 1px solid rgba(31,169,221,.18);
}

.account-guide-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-guide-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.account-guide-card span {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.account-profile-hero__photo {
  object-fit: cover;
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.account-dashboard-card {
  padding: 28px;
}

.account-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-admin-panel {
  display: grid;
  gap: 14px;
}

.account-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.account-order-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
}

.account-order-card span,
.account-order-card p {
  color: var(--ink-2);
  font-size: 13px;
}

.account-order-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.account-order-card__total {
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.account-empty {
  align-items: flex-start;
}

@media (max-width: 980px) {
  .account-auth-layout,
  .account-auth-layout--register,
  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .account-auth-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .account-auth-card,
  .account-dashboard-card {
    padding: 22px;
  }

  .account-auth-guide {
    grid-template-columns: 1fr;
  }

  .account-guide-card,
  .account-order-card {
    grid-template-columns: 1fr;
  }

  .account-guide-card__icon {
    width: 42px;
    height: 42px;
  }

  .account-spec-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero--profile .brand-hero__avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 28px;
  }
}


/* ---------- Shop contacts (points + phone) on home ---------- */
.shop-contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.shop-contacts__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.shop-contacts__intro h2 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); }
.shop-contacts__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2860 100%);
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(21,52,122,0.22);
  transition: transform .2s ease, box-shadow .25s ease;
  flex-shrink: 0;
}
.shop-contacts__phone:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(21,52,122,0.32); }
.shop-contacts__phone-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shop-contacts__phone-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-contacts__phone-copy { display: flex; flex-direction: column; line-height: 1.2; }
.shop-contacts__phone-copy small { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 500; }
.shop-contacts__phone-copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 2px;
  color: #fff;
}

.shop-contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.shop-point {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  overflow: hidden;
  isolation: isolate;
}
.shop-point::before {
  content: '';
  position: absolute;
  inset: -2px -2px auto auto;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(31,169,221,0.12), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.shop-point:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--sky-soft); }
.shop-point:hover::before { opacity: 1; }
.shop-point__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--sky-soft);
  color: var(--sky);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.shop-point__name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}
.shop-point__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-point__rows li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.shop-point__row-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--bg-2);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.shop-point__row-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-point__phone-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.shop-point__phone-link:hover { color: var(--sky); }
.shop-point__route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.shop-point__route:hover { background: var(--sky); color: #fff; transform: translateX(2px); }
.shop-point__route span:last-child { transition: transform .2s ease; }
.shop-point__route:hover span:last-child { transform: translateX(3px); }

@media (max-width: 880px) {
  .shop-contacts__intro {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .shop-contacts__phone {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }
  .shop-contacts__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .shop-point { padding: 18px 18px 16px; gap: 10px; }
  .shop-point__name { font-size: 16px; }
  .shop-point__rows li { font-size: 13px; }
}

/* ---------- Shop admin: points editor ---------- */
.shop-points-admin-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.shop-points-admin__list { display: flex; flex-direction: column; gap: 14px; }
.shop-points-admin__item { padding: 18px 20px 20px; }
.shop-points-admin__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.shop-points-admin__head strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.shop-points-admin__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}
.shop-points-admin__grid label { display: flex; flex-direction: column; gap: 5px; }
.shop-points-admin__grid label > span {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0;
}
.shop-points-admin__grid input {
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper-soft);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.shop-points-admin__grid input:focus {
  outline: 0;
  border-color: var(--sky);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(31,169,221,0.16);
}
.shop-points-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.shop-points-admin__hint {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13px;
}

@media (max-width: 720px) {
  .shop-points-admin__grid { grid-template-columns: 1fr; }
  .shop-points-admin__actions { flex-direction: column; align-items: stretch; }
  .shop-points-admin__actions .button { width: 100%; }
}

/* ─────────── Brand switcher (header dropdown to Booking / Shop / Repair) ─────────── */
.brand-switcher {
  position: relative;
  display: inline-block;
  min-width: 0;
}
.brand-switcher > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.brand-switcher > summary::-webkit-details-marker { display: none; }
.brand-switcher > summary::marker { display: none; content: ""; }
.brand--switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 4px 4px;
  border-radius: 14px;
  transition: background .15s ease, box-shadow .15s ease;
}
.brand--switcher:hover {
  background: var(--sky-soft);
}
.brand-switcher[open] > .brand--switcher {
  background: var(--sky-soft);
  box-shadow: 0 4px 18px rgba(31, 169, 221, 0.18);
}
.brand-switcher__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  margin-left: 2px;
  transition: transform .18s ease, color .18s ease;
}
.brand-switcher[open] > .brand--switcher .brand-switcher__caret {
  transform: rotate(180deg);
  color: var(--sky);
}
.brand-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 600;
  min-width: 280px;
  max-width: 320px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 27, 61, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: brand-switcher-pop .14s ease-out;
}
@keyframes brand-switcher-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brand-switcher__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.brand-switcher__item:hover {
  background: var(--sky-soft);
}
.brand-switcher__item.is-current {
  background: var(--sky-soft);
}
.brand-switcher__item.is-current strong { color: var(--sky); }
.brand-switcher__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
}
.brand-switcher__icon svg { width: 22px; height: 22px; }
.brand-switcher__icon--booking { background: var(--sky-soft); color: var(--sky); }
.brand-switcher__icon--shop    { background: rgba(21, 52, 122, 0.08); color: var(--navy); }
.brand-switcher__icon--repair  { background: #fff4dd; color: #c47a00; }
.brand-switcher__copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-switcher__copy strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.brand-switcher__copy small {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Slight tweaks for the inner brand-mark hover when inside switcher */
.brand--switcher:hover .brand-mark {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 4px 18px rgba(31, 169, 221, 0.4);
}

@media (max-width: 720px) {
  .brand-switcher__menu {
    left: -4px;
    min-width: 240px;
  }
  .brand-switcher__caret { display: none; }
}

/* ─────────── Unified brand label ─────────── */
.brand-copy strong .brand-copy__light { color: var(--sky); font-weight: 600; }
.brand--switcher .brand-copy strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand--switcher .brand-copy small {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ============ Наличие по точкам (товары) ============ */
.product-stock-points {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper, #fff);
}
.product-stock-points__title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.product-stock-points__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-stock-points__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}
.product-stock-points__qty {
  font-weight: 700;
  color: var(--sky);
  white-space: nowrap;
}
.product-stock-points__item.is-empty {
  color: var(--ink-3);
}
.product-stock-points__item.is-empty .product-stock-points__qty {
  color: var(--ink-3);
  font-weight: 600;
}

/* ---------- Account pages: main-site visual system ---------- */
body.account-site-page {
  --sky: #0b5fff;
  --sky-2: #3b82f6;
  --sky-soft: #eaf2ff;
  --sky-softer: #f4f8ff;
  --navy: #133b8a;
  --navy-2: #111827;
  --bg: #f6f8fb;
  --ink: #10213d;
  --ink-2: #60708e;
  --ink-3: #91a0b8;
  --line: #dce7f2;
  --line-2: #edf3f9;
  --paper: #ffffff;
  --paper-soft: #fbfdff;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow-1: 0 18px 50px rgba(21, 52, 122, .12);
  --shadow-2: 0 24px 70px rgba(11, 95, 255, .16);
  background: var(--bg);
  color: var(--ink);
}

body.account-site-page::before {
  content: "";
  position: fixed;
  right: max(-260px, -11vw);
  bottom: max(-240px, -11vw);
  width: min(760px, 70vw);
  height: min(960px, 82vh);
  background: url("/static/img/velodostup_biker_watermark.png") center / contain no-repeat;
  opacity: .105;
  pointer-events: none;
  z-index: 0;
}

body.account-site-page .page-orb,
body.account-site-page .mobile-nav-overlay,
body.account-site-page .bottom-nav,
body.account-site-page .mobile-search-overlay {
  display: none !important;
}

body.account-site-page h1,
body.account-site-page h2,
body.account-site-page h3,
body.account-site-page h4 {
  color: var(--navy-2);
  letter-spacing: 0;
}

body.account-site-page .site-shell {
  max-width: none;
  padding: 0;
  gap: 0;
}

.account-site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(246, 248, 251, .88);
  border-bottom: 1px solid rgba(220, 231, 242, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.account-site-header__inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 156px;
  text-decoration: none;
  flex: 0 0 auto;
}

.account-site-brand img {
  width: auto;
  height: 42px;
}

.account-site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 2px;
  overflow: hidden;
}

.account-site-nav a {
  color: var(--ink-2);
  border-radius: 18px;
  padding: 9px 10px;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

.account-site-nav a:hover,
.account-site-nav a:focus-visible,
.account-site-nav a.is-active {
  color: var(--navy);
  background: var(--sky-soft);
  outline: none;
}

.account-site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.account-site-icon-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.account-site-icon-button:hover,
.account-site-icon-button:focus-visible {
  border-color: var(--sky);
  box-shadow: 0 8px 22px rgba(31, 169, 221, .16);
  transform: translateY(-1px);
  outline: none;
}

.account-site-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-site-icon-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sky);
  font-size: 12px;
  font-weight: 850;
}

body.account-site-page .button {
  min-height: 42px;
  border-radius: 16px;
  padding: 10px 15px;
  font-weight: 800;
}

body.account-site-page .button-primary {
  background: var(--sky);
  box-shadow: 0 12px 28px rgba(11, 95, 255, .22);
}

body.account-site-page .button-primary:hover,
body.account-site-page .button-primary:focus-visible {
  background: #0755e6;
  box-shadow: 0 16px 34px rgba(11, 95, 255, .28);
}

body.account-site-page .button-secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--line);
}

body.account-site-page .page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
  gap: 28px;
}

.account-site-hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: 44px;
  align-items: center;
  min-height: 520px;
}

.account-site-hero--auth {
  min-height: 0;
  grid-template-columns: minmax(0, 780px);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(11, 95, 255, .14), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(234,242,255,.92));
  box-shadow: var(--shadow-1);
}

.account-site-hero--auth .account-site-hero__content {
  max-width: 760px;
}

.account-site-hero--auth h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.account-site-hero--profile {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(235,244,255,.92));
  box-shadow: var(--shadow-1);
}

.account-site-hero__content {
  min-width: 0;
}

.account-site-eyebrow,
.account-site-page .auth-card__eyebrow,
.account-site-page .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--sky);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.account-site-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #12a86b;
}

.account-site-hero h1 {
  max-width: 650px;
  margin: 0 0 18px;
  font-size: 58px;
  line-height: 1.04;
  font-weight: 800;
}

.account-site-hero p {
  max-width: 560px;
  margin: 0;
  color: #213b66;
  font-size: 19px;
  line-height: 1.55;
}

.account-site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.account-site-hero__media {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 72% 10%, rgba(11, 95, 255, .12), transparent 42%),
    #eef5ff;
  box-shadow: var(--shadow-2);
}

.account-site-hero__media img {
  width: 100%;
  aspect-ratio: 1280 / 511;
  object-fit: contain;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(21, 52, 122, .14);
}

.account-site-hero__cards {
  display: grid;
  gap: 16px;
  align-items: stretch;
  justify-content: stretch;
}

.account-service-card {
  min-height: 178px;
  border: 1px solid rgba(191, 210, 231, .86);
  border-radius: 24px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(17, 24, 39, .14);
  transition: transform .18s ease, box-shadow .18s ease;
}

.account-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(11, 95, 255, .04));
  pointer-events: none;
}

.account-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.account-service-card--repair::after {
  background-image: url("/static/img/02_remont_block.png");
  background-position: left center;
}

.account-service-card--rent::after {
  background-image: url("/static/img/03_prokat_block.png");
  background-position: left center;
}

.account-service-card--parts::after {
  background-image: url("/static/img/04_magazin_block.png");
  background-position: left center;
}

.account-service-card > * {
  position: relative;
  z-index: 2;
}

.account-service-card span {
  display: none;
}

.account-service-card strong {
  display: none;
}

.account-service-card small {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(11, 95, 255, .94);
  box-shadow: 0 12px 28px rgba(11, 95, 255, .26);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
}

.account-service-card:hover,
.account-service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 78px rgba(11, 95, 255, .2);
  outline: none;
}

.account-site-card,
.account-site-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-1);
}

.account-site-card {
  padding: 34px;
}

.account-site-panel {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(234,242,255,.96));
}

.account-site-panel__head h2,
.account-auth-card__head h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.14;
}

.account-site-panel__head p,
.account-auth-card__head p {
  color: var(--ink-2);
  font-size: 15px;
}

.account-auth-layout--site {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  gap: 24px;
  align-items: stretch;
}

.account-auth-layout--site.account-auth-layout--register {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
}

.account-site-page .account-auth-form {
  margin-top: 22px;
  gap: 16px;
}

.account-site-page .auth-form label > span {
  color: #24436e !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.account-site-page .auth-form input {
  min-height: 50px;
  border-radius: 14px;
  background: #fff;
}

.account-site-page .auth-form input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
}

.account-site-page .auth-card__submit {
  min-height: 54px;
  width: 100%;
  margin-top: 2px;
}

.account-site-page .auth-card__switch {
  margin-top: 18px;
  color: var(--ink-2);
}

.account-site-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.account-site-page .account-guide-card {
  grid-template-columns: 46px minmax(0, 1fr);
  border-color: rgba(191, 210, 231, .86);
  border-radius: 18px;
  box-shadow: none;
  background: rgba(255,255,255,.78);
}

.account-site-page .account-guide-card__icon {
  color: var(--sky);
  background: var(--sky-soft);
  border-color: rgba(11, 95, 255, .18);
}

.account-site-page .account-guide-card strong {
  color: var(--navy-2);
  letter-spacing: 0;
}

.account-profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.account-profile-identity__photo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--sky-soft);
  box-shadow: 0 14px 34px rgba(21, 52, 122, .14);
}

.account-profile-identity__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
}

.account-profile-identity__content {
  min-width: 0;
}

.account-profile-identity__content h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.08;
}

.account-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.account-profile-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(191, 210, 231, .86);
  border-radius: 999px;
  background: #fff;
  color: #24436e;
  font-weight: 750;
}

.account-profile-chips svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.account-dashboard--site {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.account-site-page .account-dashboard-card {
  padding: 30px;
}

.account-site-page .spec-grid__item,
.account-site-page .account-order-card {
  border-color: rgba(191, 210, 231, .86);
  border-radius: 18px;
  background: #fbfdff;
}

.account-site-page .account-order-card {
  padding: 18px;
}

.account-site-page .admin-account-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(191, 210, 231, .86);
  background: linear-gradient(135deg, #fff, var(--sky-soft));
}

body.account-site-page .site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 36px;
  border-radius: 24px;
}

@media (max-width: 1120px) {
  .account-site-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .account-site-booking {
    display: none;
  }

  .topbar-booking {
    display: inline-flex;
  }
}

@media (max-width: 880px) {
  .topbar-account-button {
    display: none;
  }

  .topbar-booking {
    display: none;
  }
}

@media (max-width: 980px) {
  .account-site-nav {
    display: none;
  }

  .account-site-brand {
    min-width: 0;
  }

  .account-site-hero,
  .account-auth-layout--site,
  .account-auth-layout--site.account-auth-layout--register,
  .account-dashboard--site {
    grid-template-columns: 1fr;
  }

  .account-site-hero {
    min-height: 0;
    padding-top: 8px;
  }

  .account-site-hero__media {
    padding: 22px;
  }

  .account-site-hero__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-service-card {
    min-height: 230px;
  }

  .account-site-hero--profile {
    align-items: flex-start;
  }

  .account-profile-actions {
    justify-content: flex-start;
  }

  .shop-admin-page-header {
    grid-template-columns: 1fr;
  }

  .shop-admin-section-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .account-site-header__inner,
  body.account-site-page .page-main,
  body.account-site-page .site-footer {
    width: min(100% - 24px, 1240px);
  }

  .account-site-header__inner {
    min-height: 66px;
  }

  .account-site-brand img {
    height: 34px;
  }

  .account-site-icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .account-site-account-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 16px;
  }

  .account-site-account-button span {
    display: none;
  }

  body.account-site-page .page-main {
    padding: 26px 0 38px;
  }

  .account-site-hero h1 {
    font-size: 36px;
  }

  .account-site-hero p {
    font-size: 16px;
  }

  .account-site-hero__actions,
  .account-profile-actions {
    width: 100%;
  }

  .account-site-hero__actions .button,
  .account-profile-actions .button {
    width: 100%;
  }

  .account-site-hero__media,
  .account-site-card,
  .account-site-panel,
  .account-site-hero--profile {
    padding: 22px;
    border-radius: 22px;
  }

  .account-site-hero__media img {
    border-radius: 18px;
  }

  .account-site-hero__cards {
    grid-template-columns: 1fr;
  }

  .account-service-card {
    min-height: 200px;
  }

  .account-site-panel__head h2,
  .account-auth-card__head h2 {
    font-size: 25px;
  }

  .account-profile-identity {
    align-items: flex-start;
    gap: 16px;
  }

  .account-profile-identity__photo {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
    border-radius: 20px;
  }

  .account-profile-identity__content h1 {
    font-size: 30px;
  }

  .shop-admin-section-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .shop-admin-section-nav .button {
    width: 100%;
    padding-inline: 10px;
  }

  .shop-admin-site-page .admin-content-toolbar .button,
  .shop-admin-site-page .admin-orders-filter .button {
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .account-site-header__actions {
    gap: 8px;
  }

  .account-site-hero h1 {
    font-size: 32px;
  }

  .account-site-hero__media {
    padding: 12px;
  }

  .account-service-card {
    min-height: 188px;
    padding: 16px;
    border-radius: 20px;
  }

  .account-service-card strong {
    font-size: 23px;
  }

  .account-site-page .account-guide-card {
    grid-template-columns: 1fr;
  }

  .account-profile-identity {
    flex-direction: column;
  }

  .shop-admin-section-nav {
    grid-template-columns: 1fr;
  }

  .shop-admin-site-page .admin-content-toolbar .button {
    width: 100%;
  }
}
