:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #1a1e25;
  --muted: #4b5563;
  --primary: #0f766e;
  --primary-dark: #0a5a54;
  --accent: #d6336c;
  --border: #e3e6ee;
  --shadow: 0 10px 30px rgba(23, 32, 90, 0.08);
  --sticky-header-offset: 110px;
  --store-btn-size-scale: 1;
  --store-btn-padding-y: .6rem;
  --store-btn-padding-x: .95rem;
  --store-btn-font-size: 1rem;
  --store-btn-min-height: 42px;
}
* { box-sizing: border-box; }
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 400px at 10% -10%, #ffe1ec 0%, transparent 45%),
    radial-gradient(1000px 300px at 90% -20%, #dcfce7 0%, transparent 40%),
    var(--bg);
}
.container { width: min(1240px, 94vw); margin: 0 auto; }

/* ------------------------------
   Admin Panel (/xkontrola)
------------------------------- */
.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.admin-app.admin-app--auth {
  grid-template-rows: 1fr;
}
body.is-admin-area {
  overflow-x: hidden;
}

.admin-topbar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 1400;
  display: grid;
  gap: 12px;
  padding: 10px 16px 12px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(15, 23, 42, .10);
  backdrop-filter: blur(10px);
}
.admin-topbar__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: #0b1220;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}
.admin-topbar__brandIcon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, .10);
  color: #0f766e;
  background: rgba(15, 118, 110, .10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-topbar__brandText {
  white-space: nowrap;
}
.admin-topbar__back {
  color: #0f766e;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.admin-topbar__back:hover { text-decoration: underline; }
.admin-topbar__right {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-topbar__iconBtn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: #0b1220;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.admin-topbar__iconBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, .18);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
}
.admin-topbar__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .35);
}
.admin-account {
  position: relative;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding-bottom: 2px;
}
.admin-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 8px;
  text-decoration: none;
  color: #0b1220;
  padding: 9px 12px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .11);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}
.admin-nav__item:hover {
  background: rgba(15,118,110,.08);
  border-color: rgba(15,118,110,.30);
  transform: translateY(-1px);
}
.admin-nav__item.is-active {
  background: rgba(15,118,110,.12);
  border-color: rgba(15,118,110,.42);
  color: #064e3b;
}

.admin-topnav {
  position: relative;
}
.admin-mobile-nav {
  display: none;
  gap: 7px;
}
.admin-mobile-nav__label {
  font-size: .8rem;
  font-weight: 700;
  color: #4b5563;
}
.admin-mobile-nav__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-mobile-nav__select {
  flex: 1 1 auto;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  color: #0b1220;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 10px;
}
.admin-mobile-nav__toggle {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  color: #0b1220;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-mobile-nav__toggle:hover {
  background: rgba(15,118,110,.08);
  border-color: rgba(15,118,110,.30);
}
.admin-topnav__group {
  position: relative;
  flex: 0 0 auto;
}
.admin-topnav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, .11);
  background: #fff;
  color: #0b1220;
  border-radius: 11px;
  padding: 9px 12px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}
.admin-topnav__trigger:hover {
  background: rgba(15,118,110,.08);
  border-color: rgba(15,118,110,.30);
  transform: translateY(-1px);
}
.admin-topnav__group.is-active .admin-topnav__trigger {
  background: rgba(15,118,110,.12);
  border-color: rgba(15,118,110,.42);
  color: #064e3b;
}
.admin-topnav__caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform .14s ease;
}
.admin-topnav__group.is-open .admin-topnav__caret {
  transform: rotate(225deg);
  margin-top: 1px;
}
.admin-topnav__submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: max-content;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  pointer-events: none;
  z-index: 1510;
}
.admin-topnav__submenu .admin-nav__item {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
}
.admin-topnav__group.is-open .admin-topnav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.admin-topnav__group:hover .admin-topnav__submenu,
.admin-topnav__group:focus-within .admin-topnav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-notif-panel {
  position: absolute;
  right: 14px;
  top: calc(100% + 8px);
  width: min(420px, 92vw);
  max-height: min(68vh, 560px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.22);
  overflow: hidden;
  z-index: 1500;
}
.admin-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
}
.admin-notif-panel__title {
  font-weight: 800;
  color: #0b1220;
}
.admin-notif-panel__action {
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: .86rem;
}
.admin-notif-panel__list {
  overflow: auto;
  max-height: min(62vh, 500px);
}
.admin-notif-item {
  display: block;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  text-decoration: none;
  color: #0b1220;
}
.admin-notif-item:hover {
  background: #f0fdf9;
}
.admin-notif-item__title {
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: 4px;
}
.admin-notif-item__body {
  color: #475569;
  font-size: .88rem;
  line-height: 1.25;
}
.admin-notif-item__meta {
  margin-top: 6px;
  color: #64748b;
  font-size: .74rem;
  display: flex;
  gap: 8px;
}
.admin-notif-item.is-unread .admin-notif-item__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  margin-right: 8px;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .35);
}
.admin-account-panel {
  position: absolute;
  right: 14px;
  top: calc(100% + 8px);
  width: min(320px, 92vw);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.22);
  overflow: hidden;
  z-index: 1510;
}
.admin-account-panel__head {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
}
.admin-account-panel__title {
  font-weight: 800;
  color: #0b1220;
}
.admin-account-panel__meta {
  font-size: .84rem;
  color: #64748b;
  overflow-wrap: anywhere;
}
.admin-account-panel__link {
  display: block;
  padding: 11px 12px;
  color: #0b1220;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  font-weight: 600;
}
.admin-account-panel__linkLabel {
  display: block;
}
.admin-account-panel__linkMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: .76rem;
  line-height: 1.25;
  color: #64748b;
  font-weight: 500;
  text-transform: lowercase;
}
.admin-account-panel__linkMeta--current {
  justify-content: space-between;
  text-transform: none;
  gap: 10px;
}
.admin-account-panel__currentLabel {
  color: #64748b;
  flex: 0 0 auto;
}
.admin-account-panel__currentValue {
  margin-left: auto;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.admin-account-panel__modeBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, .28);
  background: rgba(15, 118, 110, .08);
  color: #0f766e;
  font-weight: 700;
  text-transform: none;
}
.admin-account-panel__linkMeta--countries {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 1px;
}
.admin-account-panel__countryChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #f8fafc;
  color: #334155;
  text-transform: uppercase;
}
.admin-account-panel__countryFlag {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, .12);
}
.admin-account-panel__countryHint {
  color: #64748b;
}
.admin-account-panel__link:hover {
  background: #f0fdf9;
}
.admin-account-panel__logoutForm {
  padding: 10px;
}
.admin-account-panel__logoutBtn {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(239,68,68,.11);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,.34);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.admin-account-panel__logoutBtn:hover {
  background: rgba(239,68,68,.17);
}

.admin-content {
  grid-row: 2;
  padding: 22px 22px 40px;
  min-width: 0;
}
.admin-content.is-loading {
  opacity: .65;
  pointer-events: none;
  filter: grayscale(.06);
}
.admin-page {
  width: min(1240px, 100%);
  min-width: 0;
}
.admin-page__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-page__header h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.admin-page__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .16);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}
.admin-role-badge__icon {
  font-size: .72rem;
  line-height: 1;
}
.admin-role-badge--superadmin {
  color: #7f1d1d;
  border-color: rgba(220, 38, 38, .35);
  background: linear-gradient(180deg, rgba(254, 242, 242, .98), rgba(254, 226, 226, .92));
}
.admin-role-badge--admin {
  color: #0c4a6e;
  border-color: rgba(14, 165, 233, .32);
  background: linear-gradient(180deg, rgba(240, 249, 255, .98), rgba(224, 242, 254, .92));
}
.admin-panel {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.admin-h2 { margin: 0 0 10px 0; font-size: 1.1rem; }
.admin-alert {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.admin-alert--warn {
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.12);
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}
.admin-stat-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  background:
    radial-gradient(900px 280px at 0% -60%, rgba(22,163,74,.18) 0%, transparent 45%),
    linear-gradient(160deg, rgba(236,253,245,.88), rgba(255,255,255,.95));
  box-shadow: var(--shadow);
}
.admin-stat-card--sales {
  background:
    radial-gradient(900px 280px at 100% -50%, rgba(14,165,233,.20) 0%, transparent 44%),
    linear-gradient(160deg, rgba(239,246,255,.88), rgba(255,255,255,.95));
}
.admin-stat-card__kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f766e;
}
.admin-stat-card__value {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}
.admin-stat-card__meta {
  margin-top: 8px;
  color: #334155;
  font-size: .93rem;
}
.admin-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, .28);
  background: linear-gradient(180deg, rgba(240, 249, 255, .95), rgba(224, 242, 254, .9));
  color: #0c4a6e;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .01em;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease, color .12s ease;
}
.admin-stat-link::after {
  content: "↗";
  font-size: .78rem;
  opacity: .75;
}
.admin-stat-link:hover {
  transform: translateY(-1px);
  border-color: rgba(2, 132, 199, .46);
  background: linear-gradient(180deg, rgba(224, 242, 254, .96), rgba(186, 230, 253, .92));
  color: #075985;
}
.admin-stat-link:focus-visible {
  outline: 2px solid rgba(14, 165, 233, .45);
  outline-offset: 2px;
}
.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.admin-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,118,110,.35);
}
.admin-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(15,118,110,.20);
  background: linear-gradient(145deg, rgba(15,118,110,.18), rgba(20,184,166,.06));
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  flex: 0 0 auto;
}
.admin-card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.admin-card__content {
  min-width: 0;
}
.admin-card__kicker { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-card__title { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }
.admin-card__meta { margin-top: 6px; font-size: .92rem; }
.admin-online-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.admin-online-panel__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-online-window-input {
  width: 64px;
  min-width: 64px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
  font: inherit;
  line-height: 1.2;
}
.admin-online-window-input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, .45);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .16);
}
.admin-online-table {
  min-width: 860px;
}
.admin-online-table th:first-child,
.admin-online-country-cell {
  text-align: center;
  width: 118px;
}
.admin-online-table code {
  font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.admin-online-fit-one-line {
  white-space: nowrap;
}
.admin-online-path {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 220px;
}
.admin-online-path-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: #0b4a98;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid rgba(15, 79, 168, .22);
  border-bottom-color: rgba(15, 79, 168, .4);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(237, 245, 255, .94));
  padding: 3px 8px;
  box-shadow: 0 1px 2px rgba(15, 79, 168, .08);
  transition: color .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease, transform .14s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-online-path-link::after {
  content: "↗";
  font-size: .78rem;
  line-height: 1;
  opacity: .72;
  flex: 0 0 auto;
}
.admin-online-path-link:hover {
  color: #0b3c80;
  border-color: rgba(11, 60, 128, .45);
  background: linear-gradient(180deg, rgba(239, 248, 255, .98), rgba(223, 239, 255, .95));
  box-shadow: 0 3px 8px rgba(15, 79, 168, .16);
  transform: translateY(-1px);
}
.admin-online-path-link:focus-visible {
  outline: none;
  color: #0b3c80;
  border-color: rgba(11, 60, 128, .55);
  background: linear-gradient(180deg, rgba(233, 245, 255, .98), rgba(212, 233, 255, .95));
  box-shadow: 0 0 0 3px rgba(15, 79, 168, .2), 0 3px 8px rgba(15, 79, 168, .14);
}
.admin-online-id-badges {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.admin-online-flag-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  line-height: 1;
  font-size: .78rem;
}
.admin-online-flag {
  width: 20px;
  height: 14px;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, .18);
  box-shadow: 0 1px 2px rgba(2, 6, 23, .12);
  object-fit: cover;
  flex: 0 0 auto;
  cursor: help;
}
.admin-online-mini-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 2px;
  cursor: help;
}
.admin-online-empty {
  margin-top: 8px;
}
.admin-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  margin-top: 12px;
}
.admin-split > * {
  min-width: 0;
}
.admin-links { display: grid; gap: 10px; }
.admin-link {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,118,110,.08);
  border: 1px solid rgba(15,118,110,.22);
  color: #064e3b;
  text-decoration: none;
}
.admin-link:hover { background: rgba(15,118,110,.12); }
.admin-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 12px 0;
}
.admin-filters label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.admin-filters input, .admin-filters select {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}
.admin-form { display: grid; gap: 10px; }
.admin-form label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.admin-form input, .admin-form select, .admin-form textarea {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}
.admin-country-field {
  display: grid;
  gap: 6px;
}
.admin-country-field__label {
  font-size: .92rem;
  color: var(--muted);
}
.admin-country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.admin-form .admin-country-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 10px;
  background: rgba(248, 250, 252, .9);
  color: #0f172a;
  cursor: pointer;
}
.admin-country-item:hover {
  border-color: rgba(15, 118, 110, .45);
  background: rgba(240, 253, 250, .85);
}
.admin-form .admin-country-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.admin-country-item__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, .16);
  box-shadow: 0 1px 2px rgba(2, 6, 23, .12);
  object-fit: cover;
  flex: 0 0 auto;
}
.admin-country-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-country-item__code {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 700;
  color: #334155;
  background: rgba(148, 163, 184, .22);
  border-radius: 999px;
  padding: 2px 7px;
  flex: 0 0 auto;
}
.admin-admin-access-list {
  display: grid;
  gap: 12px;
}
.admin-admin-access-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
}
.admin-admin-access-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-admin-access-item__identity {
  display: grid;
  gap: 4px;
}
.admin-admin-access-item__role {
  min-width: 190px;
}
.admin-admin-access-item__permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-color-field__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-color-field input[type="color"] {
  width: 56px;
  min-width: 56px;
  height: 38px;
  padding: 4px;
}
.admin-color-preview {
  --preview-color: #0f766e;
  min-height: 38px;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.admin-color-preview__swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--preview-color);
  border: 1px solid rgba(15, 23, 42, .22);
  flex: none;
}
.admin-color-preview__example {
  font-size: .82rem;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-color-preview[data-color-kind="bg"] {
  background: var(--preview-color);
  border-color: rgba(15, 23, 42, .14);
}
.admin-color-preview[data-color-kind="bg"] .admin-color-preview__example {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #0f172a;
}
.admin-color-preview[data-color-kind="surface"] .admin-color-preview__example {
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--preview-color);
  border: 1px solid rgba(15, 23, 42, .12);
}
.admin-color-preview[data-color-kind="text"] .admin-color-preview__example {
  color: var(--preview-color);
  font-weight: 700;
}
.admin-color-preview[data-color-kind="muted"] .admin-color-preview__example {
  color: var(--preview-color);
}
.admin-color-preview[data-color-kind="primary"] .admin-color-preview__example,
.admin-color-preview[data-color-kind="primary_dark"] .admin-color-preview__example,
.admin-color-preview[data-color-kind="accent"] .admin-color-preview__example {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--preview-color);
  color: #fff;
  font-weight: 700;
}
.admin-color-preview[data-color-kind="border"] {
  box-shadow: inset 0 0 0 2px var(--preview-color);
}
.admin-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-form__actions { display: flex; align-items: flex-end; }
.admin-login-method-panel {
  display: grid;
  gap: 12px;
}
.admin-login-method-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-login-method-option {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: rgba(248, 250, 252, .95);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.admin-login-method-option:hover,
.admin-login-method-option:focus-visible {
  border-color: rgba(15, 118, 110, .35);
  background: rgba(240, 253, 250, .82);
  transform: translateY(-1px);
  outline: none;
}
.admin-login-method-option strong {
  font-size: .9rem;
  color: #0f172a;
  line-height: 1.2;
}
.admin-login-method-option span {
  font-size: .8rem;
  color: #475569;
  line-height: 1.25;
}
.admin-login-method-option.is-active {
  border-color: rgba(15, 118, 110, .45);
  background: rgba(240, 253, 250, .92);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, .12) inset;
}
.admin-login-method-option.is-active strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}
.admin-login-method-option.is-active strong::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: .74rem;
  line-height: 1;
  font-weight: 800;
  margin-top: 1px;
}
.admin-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.admin-settings-tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0b1220;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  padding: 10px 12px;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.admin-settings-tab:hover {
  background: rgba(15,118,110,.08);
  border-color: rgba(15,118,110,.30);
  transform: translateY(-1px);
}
.admin-settings-tab.is-active {
  background: rgba(15,118,110,.12);
  border-color: rgba(15,118,110,.42);
  color: #064e3b;
}
.admin-home-new-picker {
  display: grid;
  gap: 10px;
}
.admin-country-picker {
  display: grid;
  gap: 10px;
}
.admin-home-new-search-wrap {
  position: relative;
}
.admin-home-new-suggest {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  box-shadow: 0 20px 40px rgba(2, 6, 23, .14);
  max-height: 320px;
  overflow: auto;
  z-index: 25;
}
.admin-home-new-suggest-item {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: #0b1220;
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  transition: background-color .12s ease, border-color .12s ease;
}
.admin-home-new-suggest-item:hover,
.admin-home-new-suggest-item:focus-visible {
  background: rgba(15,118,110,.08);
  border-color: rgba(15,118,110,.30);
  outline: none;
}
.admin-home-new-suggest-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #f8fafc;
  object-fit: cover;
  object-position: center;
}
.admin-home-new-suggest-thumb.is-empty {
  opacity: 0;
}
.admin-home-new-suggest-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.admin-home-new-suggest-name {
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.26;
  overflow-wrap: anywhere;
}
.admin-home-new-suggest-meta {
  font-size: .82rem;
  color: #475569;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.admin-home-new-suggest-empty {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: .88rem;
}
.admin-home-new-list {
  display: grid;
  gap: 8px;
}
.admin-home-new-empty {
  margin: 0;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, .18);
  background: rgba(248, 250, 252, .9);
  color: #475569;
  padding: 10px 12px;
  font-size: .9rem;
}
.admin-home-new-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 260px) auto;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  padding: 10px 12px;
}
.admin-home-new-item__thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #f8fafc;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.admin-home-new-item__thumb-wrap.is-empty::before {
  content: "Brak zdjęcia";
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-home-new-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}
.admin-home-new-item__meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.admin-home-new-item__name {
  font-size: .93rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0b1220;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.admin-home-new-item__name:hover {
  text-decoration: underline;
}
.admin-home-new-item__meta strong {
  font-size: .93rem;
  line-height: 1.2;
}
.admin-home-new-item__meta span {
  font-size: .82rem;
  color: #475569;
  line-height: 1.2;
}
.admin-home-new-item__expires {
  min-width: 230px;
  display: grid;
  gap: 4px;
  font-size: .82rem;
  color: #475569;
}
.admin-home-new-item__expires input {
  width: 100%;
}
.admin-home-new-remove {
  flex: 0 0 auto;
}
.admin-country-suggest-item {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}
.admin-country-suggest-flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, .16);
  box-shadow: 0 1px 2px rgba(2, 6, 23, .12);
  object-fit: cover;
  background: #f8fafc;
  flex: 0 0 auto;
}
.admin-country-flag-placeholder {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  border: 1px dashed rgba(100, 116, 139, .55);
  background: rgba(226, 232, 240, .65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.admin-country-flag-placeholder::before {
  content: "?";
  font-size: .75rem;
  font-weight: 700;
  color: #475569;
}
.admin-country-selected-list {
  display: grid;
  gap: 8px;
}
.admin-country-selected-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  padding: 10px 12px;
}
.admin-country-selected-item__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-country-selected-item__remove {
  min-width: 92px;
}
.admin-country-remove-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin: 10px 0 12px;
  line-height: 1.35;
}
.admin-country-remove-message__flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, .16);
  box-shadow: 0 1px 2px rgba(2, 6, 23, .12);
  object-fit: cover;
  flex: 0 0 auto;
}
.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: #334155;
}
.admin-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.admin-shipping-icon-preview {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
.admin-shipping-icon-preview img,
.admin-shipping-icon-preview svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.admin-shipping-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-shipping-actions form {
  margin: 0;
}
.admin-table-wrap {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: auto;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.admin-table th, .admin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(227,230,238,.9);
  vertical-align: top;
  font-size: .93rem;
}
.admin-table th {
  text-align: left;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(245,246,250,.7);
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(15,23,42,.06);
}
.admin-pill__icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--status-dot, currentColor);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,.75);
  flex: 0 0 auto;
}
.admin-pill--pending { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.22); }
.admin-pill--processing { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.26); }
.admin-pill--sent { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.26); }
.admin-pill--failed { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.26); }
.admin-pill--order-default { --status-dot: #64748b; background: linear-gradient(180deg, rgba(241,245,249,.95), rgba(226,232,240,.92)); border-color: rgba(148,163,184,.38); color: #334155; }
.admin-pill--order-new { --status-dot: #2563eb; background: linear-gradient(180deg, rgba(239,246,255,.96), rgba(219,234,254,.92)); border-color: rgba(59,130,246,.34); color: #1e3a8a; }
.admin-pill--order-pending-payment { --status-dot: #d97706; background: linear-gradient(180deg, rgba(255,251,235,.96), rgba(254,243,199,.92)); border-color: rgba(245,158,11,.36); color: #92400e; }
.admin-pill--order-paid { --status-dot: #16a34a; background: linear-gradient(180deg, rgba(240,253,244,.96), rgba(220,252,231,.92)); border-color: rgba(34,197,94,.36); color: #14532d; }
.admin-pill--order-processing { --status-dot: #0284c7; background: linear-gradient(180deg, rgba(240,249,255,.96), rgba(224,242,254,.92)); border-color: rgba(14,165,233,.34); color: #0c4a6e; }
.admin-pill--order-completed { --status-dot: #059669; background: linear-gradient(180deg, rgba(236,253,245,.96), rgba(209,250,229,.92)); border-color: rgba(16,185,129,.34); color: #065f46; }
.admin-pill--order-shipped { --status-dot: #4f46e5; background: linear-gradient(180deg, rgba(238,242,255,.96), rgba(224,231,255,.92)); border-color: rgba(99,102,241,.34); color: #3730a3; }
.admin-pill--order-delivered { --status-dot: #15803d; background: linear-gradient(180deg, rgba(240,253,244,.98), rgba(220,252,231,.95)); border-color: rgba(22,163,74,.38); color: #14532d; }
.admin-pill--order-cancelled { --status-dot: #dc2626; background: linear-gradient(180deg, rgba(254,242,242,.96), rgba(254,226,226,.92)); border-color: rgba(239,68,68,.36); color: #7f1d1d; }
.admin-pill--order-refunded { --status-dot: #be185d; background: linear-gradient(180deg, rgba(253,242,248,.96), rgba(252,231,243,.92)); border-color: rgba(236,72,153,.34); color: #831843; }
.admin-pill--order-failed { --status-dot: #b91c1c; background: linear-gradient(180deg, rgba(254,242,242,.98), rgba(254,226,226,.95)); border-color: rgba(220,38,38,.38); color: #7f1d1d; }
.admin-orders-status-col {
  text-align: center !important;
  vertical-align: middle !important;
}
.admin-row--failed { background: rgba(254,226,226,.45); }
.admin-pagination { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.admin-details summary { cursor: pointer; color: #0f766e; margin-top: 6px; }
.admin-details pre {
  white-space: pre-wrap;
  background: rgba(15,118,110,.06);
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0 0;
  max-height: 220px;
  overflow: auto;
}
.admin-product-current {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.90);
}
.admin-product-current__thumb {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  background: linear-gradient(135deg, rgba(15,118,110,.08), rgba(0,185,159,.10));
  display: grid;
  place-items: center;
}
.admin-product-current__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.admin-product-current__placeholder {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.admin-product-current__meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.admin-product-current__label {
  font-size: .78rem;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-product-current__name {
  font-size: 1rem;
  line-height: 1.25;
  color: #0b1220;
  overflow-wrap: anywhere;
}
.admin-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}
.admin-image-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
}
.admin-image-card__thumb {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(135deg, rgba(15,118,110,.08), rgba(0,185,159,.10));
  display: grid;
  place-items: center;
}
.admin-image-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.admin-image-card__placeholder {
  color: var(--muted);
  font-size: .9rem;
}
.admin-image-card__body { display: grid; gap: 8px; }
.admin-image-card__primary {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #064e3b !important;
  font-weight: 600;
}
.admin-image-card__deleteRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-add-images {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.12);
}

@media (max-width: 980px) {
  .admin-topbar {
    padding: 10px 10px 12px;
  }
  .admin-topbar__shell {
    flex-wrap: wrap;
  }
  .admin-topbar__left {
    width: 100%;
    justify-content: space-between;
  }
  .admin-topbar__back {
    font-size: .84rem;
  }
  .admin-app.is-js .admin-mobile-nav {
    display: grid;
    order: 1;
  }
  .admin-mobile-nav__controls {
    width: 100%;
  }
  .admin-mobile-nav__toggle {
    min-width: 112px;
  }
  .admin-app.is-js .admin-topnav {
    display: none;
    width: 100%;
    order: 2;
  }
  .admin-app.is-js .admin-topnav.is-expanded {
    display: grid;
  }
  .admin-nav {
    gap: 8px;
    overflow: visible;
  }
  .admin-topnav > .admin-nav__item,
  .admin-topnav__group {
    width: 100%;
  }
  .admin-topnav__trigger {
    width: 100%;
    justify-content: space-between;
  }
  .admin-topnav__submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }
  .admin-topnav__group.is-open .admin-topnav__submenu {
    display: grid;
  }
  .admin-topnav__group:hover .admin-topnav__submenu,
  .admin-topnav__group:focus-within .admin-topnav__submenu {
    display: grid;
  }
  .admin-notif-panel,
  .admin-account-panel {
    right: 10px;
    width: min(360px, calc(100vw - 20px));
  }
  .admin-online-panel__meta {
    width: 100%;
    align-items: flex-start;
    gap: 6px;
  }
  .admin-online-table {
    min-width: 680px;
  }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
  .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-split { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-grid2, .admin-grid3 { grid-template-columns: 1fr; }
  .admin-login-method-preview { grid-template-columns: 1fr; }
  .admin-country-list { grid-template-columns: 1fr; }
  .admin-admin-access-item__permissions { grid-template-columns: 1fr; }
  .admin-color-field__row {
    flex-wrap: wrap;
  }
  .admin-color-preview {
    width: 100%;
  }
  .admin-product-current {
    align-items: flex-start;
  }
  .admin-product-current__thumb {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .admin-home-new-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-home-new-item__thumb-wrap {
    width: min(160px, 100%);
    height: 120px;
  }
  .admin-home-new-item__expires {
    min-width: 0;
    width: 100%;
  }
  .admin-home-new-remove {
    width: 100%;
  }
  .admin-country-selected-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-country-selected-item__remove {
    width: 100%;
  }
  .admin-country-remove-message {
    align-items: flex-start;
  }
  .admin-home-new-suggest-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }
  .admin-home-new-suggest-thumb {
    width: 42px;
    height: 42px;
  }
  .admin-images { grid-template-columns: 1fr; }
  .admin-image-card { grid-template-columns: 1fr; }
  .admin-image-card__thumb { width: 100%; height: 220px; }
}

/* Admin auth (login/reset) */
.admin-auth {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 26px 10px;
}
.admin-auth__card {
  width: min(560px, 100%);
  background: rgba(255,255,255,.90);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.admin-auth__header {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.admin-auth__title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.admin-auth__subtitle { margin: 0; }
.admin-auth .checkout-form {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.top-ribbon {
  background: #00b99f;
  color: #101010;
  font-size: .96rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.top-ribbon-inner {
  display: grid;
  grid-template-columns: 30% 40% 30%;
  align-items: center;
  gap: .8rem;
}
.top-ribbon-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: .35rem;
  min-width: 0;
}
.top-ribbon-center {
  text-align: center;
  color: #101010;
  font-weight: 600;
  white-space: normal;
  line-height: 1.28;
}
.top-ribbon-right {
  display: flex;
  justify-content: flex-end;
  padding-right: .35rem;
}
.top-ribbon-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.15;
}
.top-ribbon-link:hover { color: #000; }
.top-ribbon-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: transform .16s ease;
}
.top-ribbon-left .top-ribbon-link:hover .top-ribbon-icon-img {
  transform: scale(1.14);
}
.top-ribbon-right .top-ribbon-link:hover .top-ribbon-icon-img {
  transform: scale(1.14);
}
.top-ribbon-facebook {
  padding: .1rem .35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}
.top-ribbon-facebook-img {
  width: 22px;
  height: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .18s ease, background-color .18s ease, transform .22s ease, margin-bottom .22s ease;
}
.site-header.is-user-hidden {
  transform: translateY(calc(-100% - 8px));
  margin-bottom: calc(-1 * var(--site-header-height, 96px));
  box-shadow: none;
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
  transition: padding .18s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.brand-logo {
  max-height: 88px;
  width: auto;
  border-radius: 8px;
  border: 0;
  background: transparent;
  transition: max-height .18s ease, border-radius .18s ease;
}
.brand-name {
  color: #111827;
  font-weight: 800;
  font-size: 1.02rem;
}

.header-actions { display: flex; align-items: center; gap: .45rem; }
.header-icons {
  position: relative;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.mobile-brand-contacts {
  display: none;
}
.header-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-width: 86px;
  padding: .35rem .45rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: .74rem;
  cursor: pointer;
  transition: min-width .18s ease, padding .18s ease, font-size .18s ease;
}
.header-icon-btn:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}
.header-icon-btn.is-active {
  background: #e9fbf7;
  border-color: #11b59b;
  color: #0f766e;
  box-shadow: 0 0 0 1px rgba(17, 181, 155, 0.2);
}
.header-icon-btn.is-cart-bump {
  animation: cartIconBump .52s ease;
}
.header-icon-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: width .18s ease, height .18s ease;
}
.header-icon-svg {
  width: 32px;
  height: 32px;
  display: block;
  color: #0f766e;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: width .18s ease, height .18s ease;
}
.header-icon-btn:hover .header-icon-svg {
  color: #0d9488;
}
.header-icon-btn.is-active .header-icon-svg {
  color: #0f766e;
}
.header-collapse-toggle {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #d5dae3;
  background: rgba(255, 255, 255, .96);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .14);
  transition: transform .16s ease, background-color .16s ease, opacity .16s ease;
  opacity: 0;
  pointer-events: none;
}
.header-collapse-toggle:hover {
  transform: translateX(-50%) translateY(-1px);
  background: #fff;
}
.site-header.is-compact .header-collapse-toggle {
  opacity: 1;
  pointer-events: auto;
}
.site-header.is-user-hidden .header-collapse-toggle {
  opacity: 0;
  pointer-events: none;
}
.header-expand-toggle {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -94%);
  width: 42px;
  height: 24px;
  border-radius: 0 0 12px 12px;
  border: 1px solid #d5dae3;
  border-top: 0;
  background: rgba(255, 255, 255, .96);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .98rem;
  cursor: pointer;
  z-index: 26;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
  transition: transform .18s ease, opacity .18s ease;
}
html.header-is-hidden .header-expand-toggle {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.header-expand-toggle:hover {
  transform: translate(-50%, 2px);
}

@keyframes cartIconBump {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-2px) scale(1.08); }
  68% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

.cart-fly-image {
  position: fixed;
  z-index: 1320;
  pointer-events: none;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
  transition: transform .56s cubic-bezier(.2,.7,.2,1), opacity .56s ease, filter .56s ease;
  will-change: transform, opacity, filter;
}

.header-search-panel {
  display: flex;
  justify-content: center;
  margin: 0 auto .8rem;
}
.header-search-panel[hidden] {
  display: none !important;
}
.header-search-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: .6rem;
}
.header-search-input-wrap {
  position: relative;
}
.header-search-flyout-form {
  position: absolute;
  right: calc(100% + .35rem);
  top: 50%;
  transform: translateY(-50%) scale(.98);
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width .2s ease, opacity .2s ease, transform .2s ease;
  overflow: visible;
  z-index: 30;
}
.header-search-flyout-form.is-open {
  width: min(460px, 58vw);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.header-search-flyout-form .header-search-input-wrap {
  width: 100%;
}
.header-search-flyout-form #header-search-input {
  width: 100%;
  border-radius: 9px;
  border: 1px solid #d5dae3;
  background: #fff;
  height: 42px;
  padding: .6rem .72rem;
  box-shadow: var(--shadow);
}
.header-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 45;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.14);
  max-height: min(420px, 65vh);
  overflow-y: auto;
}
.header-search-suggest.is-scrollable {
  max-height: min(340px, 65vh);
}
.header-search-suggest-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .6rem;
  align-items: center;
  text-decoration: none;
  color: #111827;
  padding: .58rem .64rem;
  border-bottom: 1px solid #edf0f5;
  transition: background-color .14s ease;
}
.header-search-suggest-item:last-child {
  border-bottom: 0;
}
.header-search-suggest-item:hover,
.header-search-suggest-item.is-active {
  background: #f0fdf9;
}
.header-search-suggest-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef2f7;
}
.header-search-suggest-main {
  min-width: 0;
}
.header-search-suggest-name {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  margin-bottom: .14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-search-suggest-name mark {
  background: #fde68a;
  color: inherit;
  border-radius: 3px;
  padding: 0 .12em;
}
.header-search-suggest-category {
  font-size: .77rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-search-suggest-breadcrumb {
  margin-top: .08rem;
  font-size: .73rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-search-suggest-price {
  justify-self: end;
  font-size: .85rem;
  color: #0f766e;
  font-weight: 700;
  white-space: nowrap;
}
.header-search-suggest-empty {
  padding: .75rem .7rem;
  color: #6b7280;
  font-size: .84rem;
}

.site-header.is-compact {
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  padding-top: 5px;
}
.site-header.is-compact .header-main {
  padding: .32rem 0;
}
.site-header.is-compact .brand-logo {
  max-height: 52px;
  border-radius: 6px;
}
.site-header.is-compact .header-icon-btn {
  min-width: 68px;
  padding: .2rem .32rem;
  font-size: .66rem;
}
.site-header.is-compact .header-icon-btn img {
  width: 24px;
  height: 24px;
}
.site-header.is-compact .header-icon-svg {
  width: 24px;
  height: 24px;
}
.site-header.is-compact .nav {
  padding: 0 0 .45rem 0;
}
.site-header.is-compact .nav a {
  padding: .3rem .6rem;
  font-size: .84rem;
}
.site-header.is-compact .header-search-panel {
  justify-content: flex-end;
  margin: 0 auto .45rem;
}
.site-header.is-compact .header-search-inline {
  width: min(620px, 94vw);
}

.nav {
  display: flex;
  gap: .8rem;
  padding: 0 0 .85rem 0;
}
.nav a {
  text-decoration: none;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: .42rem .75rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
}

main.container { padding: 1rem 0 2rem; }
html {
  scroll-behavior: smooth;
}

.legal-page {
  margin: .35rem 0 1rem;
}
.legal-shell {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 100%);
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.legal-shell::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #0f766e 0%, #22c55e 45%, #06b6d4 100%);
}
.legal-content {
  padding: 1.15rem 1.2rem 1.3rem;
  color: #1f2937;
  line-height: 1.7;
}
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: #0f172a;
  line-height: 1.25;
}
.legal-content h1 {
  margin: .1rem 0 .85rem;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}
.legal-content h2 {
  margin: 1.2rem 0 .45rem;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .22rem;
}
.legal-content h3 {
  margin: .95rem 0 .3rem;
  font-size: 1.03rem;
}
.legal-content p {
  margin: .5rem 0 .78rem;
}
.legal-content ul,
.legal-content ol {
  margin: .35rem 0 .92rem 1.3rem;
}
.legal-content li {
  margin: .28rem 0;
}
.legal-content a {
  color: #0f766e;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 118, 110, .38);
}
.legal-content a:hover {
  color: #0a5a54;
  border-bottom-color: rgba(10, 90, 84, .55);
}
.legal-content [id] {
  scroll-margin-top: calc(var(--sticky-header-offset) + 56px);
}
#catalog-results,
#history-results {
  scroll-margin-top: calc(var(--sticky-header-offset) + 18px);
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: .8rem 0 1rem;
}
.legal-content th,
.legal-content td {
  border: 1px solid #e5e7eb;
  padding: .5rem .56rem;
  vertical-align: top;
}
.legal-content th {
  background: #f8fafc;
  font-weight: 700;
}
.legal-content blockquote {
  margin: .8rem 0;
  padding: .62rem .8rem;
  border-left: 4px solid #34d399;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 8px;
}

.legacy-slider {
  margin: .35rem 0 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7dbe6;
  box-shadow: var(--shadow);
  background: #f3f5fa;
}
.legacy-slider-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.legacy-slider-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}

.trust-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.trust-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .9rem;
  text-align: center;
}
.trust-box h3 { margin: .15rem 0 .2rem; font-size: 1rem; }
.trust-box p { margin: 0; color: var(--muted); font-size: .9rem; }
.trust-icon { width: 108px; height: 108px; object-fit: contain; }

.home-feature-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 0 0 1rem;
}
.home-feature-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.home-feature-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem .95rem;
  text-align: center;
  height: 100%;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.home-feature-link:hover .home-feature-box {
  transform: translateY(-2px);
  border-color: #9bdccf;
  box-shadow: 0 14px 26px rgba(16, 24, 40, 0.1);
}
.home-feature-image {
  display: block;
  width: 100%;
  max-width: 90%;
  height: 120px;
  margin: 0 auto .7rem;
  object-fit: contain;
}
.home-feature-box h3 {
  margin: 0 0 .5rem;
  font-size: .95rem;
  line-height: 1.28;
  letter-spacing: .02em;
  color: #111827;
}
.home-feature-box p {
  margin: 0;
  color: #4b5563;
  font-size: .9rem;
  line-height: 1.46;
}

.home-categories { margin-bottom: 1rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  margin-bottom: .7rem;
}
.favorites-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -.2rem 0 .75rem;
}
.favorites-empty-state {
  margin: .75rem 0 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
  text-align: center;
  color: #334155;
  font-size: 1.01rem;
}
.favorites-empty-state::before {
  content: none;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .65rem;
  overflow: visible;
}
.category-mobile-tree {
  display: none;
}
.category-mobile-details {
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #fff;
}
.category-mobile-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  cursor: pointer;
  padding: .72rem .8rem;
  font-weight: 650;
  color: #111827;
}
.category-mobile-summary::-webkit-details-marker {
  display: none;
}
.category-mobile-summary::after {
  content: "▾";
  color: #0f766e;
  font-weight: 800;
  font-size: .78rem;
  transition: transform .16s ease;
}
.category-mobile-details[open] > .category-mobile-summary::after {
  transform: rotate(180deg);
}
.category-mobile-panel {
  border-top: 1px solid #e6edf7;
  padding: .45rem;
  display: grid;
  gap: .35rem;
  background: #f8fafd;
}
.category-mobile-link {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  padding: .5rem .6rem;
  font-size: .88rem;
  line-height: 1.35;
}
.category-mobile-link--parent {
  font-weight: 700;
  border-color: #cde8df;
  background: #f0fdf8;
  color: #0f766e;
}
.category-mobile-level {
  display: grid;
  gap: .35rem;
}
.category-mobile-level--depth-1 .category-mobile-link:not(.category-mobile-link--parent) {
  background: #f9fbff;
  border-color: #dee7f3;
}
.category-mobile-level--depth-1 .category-mobile-details {
  background: #f9fbff;
  border-color: #dee7f3;
}
.category-mobile-level--depth-1 .category-mobile-details > .category-mobile-summary {
  background: #f3f7ff;
}
.category-mobile-level--depth-1 .category-mobile-details > .category-mobile-panel {
  background: #f6f9ff;
  border-top-color: #dfe8f5;
}
.category-mobile-level--depth-2 {
  padding-left: .42rem;
}
.category-mobile-level--depth-2 .category-mobile-link {
  background: #f8fafc;
  border-color: #dce5f1;
}
.category-mobile-level--depth-3,
.category-mobile-level--depth-4,
.category-mobile-level--depth-5 {
  padding-left: .62rem;
}
.category-mobile-level--depth-3 .category-mobile-link,
.category-mobile-level--depth-4 .category-mobile-link,
.category-mobile-level--depth-5 .category-mobile-link {
  background: #f1f5f9;
  border-color: #d7e0ec;
}
.category-mobile-level .category-mobile-link--parent {
  background: #f0fdf8;
  border-color: #cde8df;
  color: #0f766e;
}
.category-card-wrap {
  position: relative;
  overflow: visible;
}
.category-card {
  display: block;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  padding: .72rem .8rem;
  color: #111827;
  text-decoration: none;
  font-weight: 650;
}
.category-card:hover {
  border-color: #00b99f;
  background: #f2fffc;
}
.category-submenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  --submenu-shift-x: 0px;
  z-index: 1265;
  display: grid;
  gap: .3rem;
  padding: .55rem;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 28px rgba(15, 23, 42, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(-1 * var(--submenu-shift-x)), -4px);
  transition: opacity .16s ease, transform .16s ease;
}
.category-submenu:not(.is-multi),
.category-submenu-level:not(.is-multi) {
  min-width: 0;
  width: max-content;
  max-width: min(460px, 92vw);
}
.category-submenu:not(.is-multi) {
  display: grid;
  grid-template-columns: max-content;
  column-gap: 0;
  align-items: start;
}
.category-submenu:not(.is-multi) .category-submenu-item {
  grid-column: 1;
}
.category-submenu:not(.is-multi) .category-submenu-link,
.category-submenu-level:not(.is-multi) .category-submenu-link {
  width: 100%;
  box-sizing: border-box;
}
.category-submenu.is-multi {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, auto));
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 340px);
  column-gap: 0;
  row-gap: .3rem;
  align-content: start;
  min-width: 460px;
  max-width: min(620px, 92vw);
}
.category-card-wrap > .category-submenu.is-multi {
  grid-auto-columns: max-content;
  column-gap: .32rem;
  width: max-content;
  max-width: min(760px, 96vw);
  min-width: 0;
}
.category-submenu-level.is-multi {
  min-width: 460px;
  max-width: min(880px, 96vw);
}
.category-submenu-columns {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  width: max-content;
  max-width: 100%;
}
.category-submenu-column {
  display: grid;
  gap: .3rem;
  align-content: start;
  width: max-content;
}
.category-submenu.is-multi .category-submenu-item {
  width: max-content;
}
.category-card-wrap:hover .category-submenu,
.category-card-wrap:focus-within .category-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-1 * var(--submenu-shift-x)), 0);
}
.category-submenu-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #1f2937;
  font-size: .87rem;
  line-height: 1.35;
  padding: .42rem .62rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, .9);
}
.category-submenu-link > span:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}
.category-submenu-link:hover {
  color: #0f766e;
  border-color: rgba(15, 118, 110, .24);
  background: #effcf8;
}
.category-submenu-item:hover > .category-submenu-link,
.category-submenu-item:focus-within > .category-submenu-link {
  color: #0f766e;
  border-color: rgba(15, 118, 110, .24);
  background: #effcf8;
}
.category-submenu-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 0;
}
.category-submenu-item.has-children::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 10px;
  height: 100%;
}
.category-submenu-arrow {
  color: #0f766e;
  font-weight: 800;
}
.category-submenu-level {
  position: absolute;
  top: calc(-1 * var(--submenu-item-top, 0px));
  left: calc(100% - var(--submenu-overflow-shift, 0px));
  min-width: 240px;
  max-width: min(340px, 82vw);
  min-height: var(--submenu-item-bottom, 0px);
  z-index: 1270;
  display: grid;
  gap: .3rem;
  padding: .55rem;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 28px rgba(15, 23, 42, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-2px);
  transition: opacity .16s ease, transform .16s ease;
}
.category-submenu-level.is-open-left {
  left: auto;
  right: 100%;
}
.category-submenu-level:not(.is-multi) {
  display: grid;
  grid-template-columns: max-content;
  column-gap: 0;
  align-items: start;
}
.category-submenu-level:not(.is-multi) .category-submenu-title {
  grid-column: 1 / -1;
}
.category-submenu-level:not(.is-multi) .category-submenu-item {
  grid-column: 1;
}
.category-submenu-title {
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f766e;
  padding: .18rem .52rem .45rem;
  border-bottom: 1px solid rgba(15, 118, 110, .2);
  margin-bottom: .24rem;
}
.category-submenu-level::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 10px;
}
.category-submenu-level.is-open-left::before {
  left: auto;
  right: -10px;
}
.category-submenu-item.submenu-opens-left::after {
  right: auto;
  left: -8px;
}
.category-submenu-item:hover > .category-submenu-level,
.category-submenu-item:focus-within > .category-submenu-level {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

@media (min-width: 1600px) {
  .category-submenu.is-multi {
    grid-template-rows: repeat(10, minmax(0, auto));
  }
}

section h1, section h2 { margin: 0 0 .85rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.45rem .95rem .95rem;
  display: grid;
  gap: .72rem;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, opacity .22s ease, border-color .22s ease;
}
.catalog-card__new-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  z-index: 3;
  height: 1.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #ef4444;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.catalog-card__new-badge:hover,
.catalog-card__new-badge:focus,
.catalog-card__new-badge:active,
.catalog-card__new-badge:visited { text-decoration: none !important; color: #fff; }
.catalog-card__new-category {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  z-index: 2;
  height: 1.54rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .6rem;
  border-radius: 14px 14px 0 0;
  border-top: 1px solid #2fc8ab;
  border-bottom: 1px solid #2fc8ab;
  background: #43d9bc;
  color: #111827;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-card--with-category {
  padding-top: 3.1rem;
}
.catalog-card--new.catalog-card--with-category {
  padding-top: 4.65rem;
}
.catalog-card--new.catalog-card--with-category .catalog-card__new-badge {
  top: -1px;
  border-radius: 14px 14px 0 0;
}
.catalog-card--new.catalog-card--with-category .catalog-card__new-category {
  top: 1.62rem;
  border-radius: 0;
}
.catalog-card__new-category:hover {
  text-decoration: none;
  background: #34cfb1;
  color: #111827;
}
.catalog-card__new-category:visited,
.catalog-card__new-category:focus,
.catalog-card__new-category:active {
  color: #111827;
}
.js-product-card {
  cursor: pointer;
  /* Skip painting off-screen cards until they approach viewport. */
  content-visibility: auto;
  contain-intrinsic-size: 360px 420px;
}
.card.is-removing {
  pointer-events: none;
  transform: none;
  animation: favoriteRemove .28s ease forwards;
}
.card.is-restored {
  pointer-events: none;
  animation: favoriteRestore .7s ease;
}
.card:hover {
  transform: scale(1.02);
  border-color: #9bdccf;
  box-shadow: 0 14px 30px rgba(23, 32, 90, 0.14);
}
.card.is-focused-product-card {
  animation: focusProductCard 2.1s ease, focusBounceDouble .55s ease 2;
}

@keyframes favoriteRemove {
  0% {
    background: #fecaca;
    border-color: #f87171;
    opacity: 1;
  }
  45% {
    background: #fecaca;
    border-color: #f87171;
    opacity: 1;
  }
  100% {
    background: #fecaca;
    border-color: #f87171;
    opacity: 0;
  }
}

@keyframes focusProductCard {
  0% {
    border-color: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }
  45% {
    border-color: #16a34a;
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.15);
  }
  100% {
    border-color: var(--border);
    box-shadow: var(--shadow);
  }
}

@keyframes favoriteRestore {
  0% {
    background: #bbf7d0;
    border-color: #22c55e;
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.18);
  }
  100% {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow);
  }
}
.card h3 { margin: 0; font-size: 1rem; text-align: center; }
.card strong {
  justify-self: end;
  width: 100%;
  text-align: right;
  color: #00a88f;
  font-weight: 400;
}
.catalog-card__title-wrap {
  position: relative;
  min-height: 2.7em;
}
.catalog-card__title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: .01em;
  text-align: left;
  color: #0f172a;
  min-height: 2.7em;
  max-height: 2.7em;
  height: 2.7em;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: background-color .2s ease, padding .2s ease, box-shadow .2s ease;
}
.catalog-card__title:hover {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: auto;
  max-height: none;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe6f2;
  padding: .22rem .3rem;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  z-index: 40;
  animation: product-title-reveal .2s ease both;
}
@keyframes product-title-reveal {
  from {
    opacity: .25;
    transform: translateY(4px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.js-product-card .catalog-card__title,
.js-product-card h3 {
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.catalog-card__price {
  margin: .12rem 0 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .22rem;
  width: 100%;
  padding: .48rem .58rem;
  border-radius: 10px;
  border: 1px solid #c4f1e8;
  background: linear-gradient(180deg, #f2fffc 0%, #ecfdf9 100%);
  text-align: right;
}
.js-product-card .catalog-card__price-value,
.js-product-card .catalog-card__price-unit,
.js-product-card strong {
  font-family: "Verdana", "Tahoma", "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.catalog-card__price-value {
  color: #0f766e;
  font-weight: 400;
  font-size: .82rem;
  line-height: 1.1;
}
.catalog-card__price-unit {
  color: #0b6b61;
  font-weight: 400;
  font-size: .78rem;
  white-space: nowrap;
  opacity: .92;
}
.js-product-card strong {
  font-size: .82rem;
  font-weight: 400;
}
.btn.add-to-cart-btn {
  width: 100%;
  margin-top: .2rem;
  background: #0f766e;
  color: #ffffff;
  border: 1px solid #0b5f58;
  box-shadow: 0 6px 14px rgba(15, 118, 110, .24);
}
.btn.add-to-cart-btn::before {
  content: "";
  width: calc(14px * var(--store-btn-size-scale));
  height: calc(14px * var(--store-btn-size-scale));
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(14px * var(--store-btn-size-scale)) calc(14px * var(--store-btn-size-scale));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.35'/%3E%3Ccircle cx='17' cy='20' r='1.35'/%3E%3Cpath d='M2.8 4h2.2l2.15 10.05a1.9 1.9 0 0 0 1.86 1.5h7.58a1.9 1.9 0 0 0 1.84-1.44L20.15 8.1H7.1'/%3E%3Cpath d='M18 2.9v5.2'/%3E%3Cpath d='M15.4 5.5h5.2'/%3E%3C/svg%3E");
  margin-right: 0;
}
.add-to-cart-inline {
  width: auto;
  margin-left: 0;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .2rem;
}
.card-actions .btn.add-to-cart-btn {
  flex: 1 1 auto;
  width: auto;
  margin-top: 0;
}
.card-actions .btn.secondary.js-favorite-toggle {
  flex: 0 0 auto;
}
.btn.add-to-cart-btn:hover {
  background: #0b5f58;
  border-color: #094f4a;
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(11, 95, 88, .28);
}
.btn.add-to-cart-btn.is-loading {
  opacity: 1;
  cursor: wait;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
}
.btn.add-to-cart-btn.is-loading::before {
  content: none;
}
.btn.add-to-cart-btn.is-loading::after {
  content: "";
  position: static;
  width: calc(13px * var(--store-btn-size-scale));
  height: calc(13px * var(--store-btn-size-scale));
  margin: 0;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #ffffff;
  border-radius: 999px;
  transform: none;
  animation: btn-spin .7s linear infinite;
}
.btn.add-to-cart-btn.is-success {
  background: #166534;
  border-color: #14532d;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 101, 52, .24);
}
.btn.add-to-cart-btn.is-success:hover {
  background: #14532d;
  border-color: #134e2f;
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(20, 83, 45, .28);
}
.btn.add-to-cart-btn.is-success::before {
  content: "✓";
  width: auto;
  height: auto;
  display: inline-block;
  background: none;
  margin-right: 0;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
}
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.product-thumb {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  border: 0;
}
.product-main-image {
  width: min(100%, 480px);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 1.2rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
}
.product-media {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: .7rem;
  position: relative;
  overflow: visible;
}
.product-media .product-main-image {
  width: min(100%, 420px);
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}
.product-zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 2px solid rgba(14, 116, 144, .65);
  background: rgba(186, 230, 253, .22);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .16);
  pointer-events: none;
  display: none;
  z-index: 26;
}
.product-zoom-pane {
  position: absolute;
  top: 0;
  left: calc(100% + 14px);
  width: min(40vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid #d7dfec;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px rgba(2, 6, 23, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
  z-index: 25;
}
.product-zoom-pane.is-active {
  opacity: 1;
  position: fixed;
  z-index: 40;
}
.product-details {
  display: grid;
  gap: .7rem;
  align-content: start;
}
.product-title-row {
  display: block;
}
.product-title {
  margin: 0;
}
.product-view--admin {
  padding-bottom: 118px;
}
.product-admin-hidden-note {
  margin: 0;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, .28);
  background: rgba(254, 242, 242, .9);
  color: #991b1b;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.3;
}
.product-admin-hidden-link {
  display: inline-flex;
  margin-top: 8px;
  color: #7f1d1d;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.product-admin-hidden-link:hover,
.product-admin-hidden-link:focus-visible {
  color: #991b1b;
}
.product-admin-floating {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1600;
  width: min(900px, calc(100vw - 20px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .16);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 46px rgba(2, 6, 23, .22);
  padding: 9px 10px;
  box-sizing: border-box;
}
.product-admin-floating__desktop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-admin-floating__mobile {
  display: none;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.product-admin-mobile-select {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .2);
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 12px;
  box-sizing: border-box;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.product-admin-mobile-select:focus-visible {
  outline: none;
  border-color: rgba(13, 148, 136, .65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .22);
}
.product-admin-floating .btn {
  min-height: 42px;
  justify-content: center;
  align-items: center;
}
.product-admin-btn__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-admin-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.product-admin-btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-admin-floating__panel,
.product-admin-floating__edit {
  font-size: .85rem;
  font-weight: 700;
}
.btn.product-admin-visibility-btn {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}
.btn.product-admin-visibility-btn:hover {
  background: #be123c;
  border-color: #be123c;
}
.btn.product-admin-visibility-btn.is-hidden-product {
  background: #166534;
  border-color: #166534;
}
.btn.product-admin-visibility-btn.is-hidden-product:hover {
  background: #15803d;
  border-color: #15803d;
}
.btn.product-admin-new-btn {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.btn.product-admin-new-btn:hover {
  background: #0d5f59;
  border-color: #0d5f59;
}
.btn.product-admin-new-btn.is-marked-new {
  background: #9f1239;
  border-color: #9f1239;
}
.btn.product-admin-new-btn.is-marked-new:hover {
  background: #be123c;
  border-color: #be123c;
}
.product-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: .16rem .64rem;
  border-radius: 999px;
  border: 1px solid #ef4444;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.product-new-badge:hover,
.product-new-badge:focus,
.product-new-badge:active,
.product-new-badge:visited { text-decoration: none !important; color: #fff; }
.product-new-badge--modal {
  margin: 0 0 .46rem;
}
.product-category-line {
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .3rem;
  width: min(100%, 100%);
  padding: .16rem .58rem;
  background: #e6fffa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  color: #0f766e;
  font-size: .92rem;
  line-height: 1.35;
}
.product-category-line a {
  color: #0f766e;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 0 1 auto;
}
.product-category-line a:hover {
  text-decoration: underline;
}
.product-price {
  margin: 0;
  font-size: 1.28rem;
  color: #0f766e;
  font-weight: 700;
}
.product-buy-form {
  margin-top: .2rem;
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  flex-wrap: wrap;
}
.product-unit-inline {
  align-self: flex-end;
  margin-bottom: .08rem;
  padding: .48rem .62rem;
  border-radius: 9px;
  border: 1px solid #d5dae3;
  background: #f8fafc;
  color: #334155;
  font-size: .9rem;
  line-height: 1;
}
.product-favorite-block {
  display: inline-flex;
  flex-direction: column;
  align-self: flex-end;
  gap: .25rem;
}
.product-favorite-inline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
}
.product-favorite-text {
  display: inline-flex;
  align-items: center;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.2;
}
.product-favorite-check-link {
  font-size: .84rem;
  color: #0f766e;
  text-decoration: none;
  margin-left: 52px;
}
.product-favorite-check-link:hover {
  text-decoration: underline;
}
.product-favorite-check-link.pq-ask-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.product-question-toggle {
  margin-left: 0;
  margin-top: 20px;
  width: fit-content;
  border: 1px solid #cce6ff;
  background: linear-gradient(180deg, #f4f9ff 0%, #eaf3ff 100%);
  color: #1e3a5f;
  border-radius: 10px;
  padding: .42rem .62rem;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 14px rgba(30, 58, 95, .10);
}
.product-question-toggle:hover {
  background: linear-gradient(180deg, #eef6ff 0%, #e3efff 100%);
  border-color: #93c5fd;
}
.product-question-toggle.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, .22);
}
.product-question-toggle__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}
.product-question-toggle__text {
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
}

.pq-ask {
  margin-top: .65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .8rem;
}
.pq-form {
  display: grid;
  gap: .65rem;
}
.pq-form__label {
  display: grid;
  gap: .25rem;
  font-size: .92rem;
}
.pq-form__input {
  width: min(520px, 100%);
}
.pq-form__textarea {
  width: min(720px, 100%);
}
.pq-recaptcha-wrap {
  margin-top: .2rem;
}

.pq-thread {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.pq-product {
  display: flex;
  gap: .9rem;
  align-items: center;
}
.pq-product__img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
}
.pq-product__kicker {
  font-size: .85rem;
}
.pq-product__name a {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
}
.pq-product__name a:hover { text-decoration: underline; }
.pq-product__small code {
  font-size: .82rem;
}
.pq-messages {
  margin-top: .9rem;
  border-top: 1px solid var(--border);
  padding-top: .9rem;
  display: grid;
  gap: .6rem;
}
.pq-msg {
  display: flex;
}
.pq-msg.is-user { justify-content: flex-start; }
.pq-msg.is-admin { justify-content: flex-end; }
.pq-msg__bubble {
  max-width: min(720px, 92%);
  border-radius: 14px;
  padding: .62rem .72rem;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.pq-msg.is-admin .pq-msg__bubble {
  background: #e6fffa;
  border-color: #99f6e4;
}
.pq-msg__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pq-msg__time {
  margin-top: .28rem;
  font-size: .78rem;
  text-align: right;
}
.pq-compose {
  margin-top: .9rem;
  border-top: 1px dashed #d6dde8;
  padding-top: .9rem;
}
.product-qty-label {
  display: grid;
  gap: .25rem;
  min-width: 120px;
  font-size: .92rem;
}
.product-qty-label input {
  width: 120px;
}
.product-description {
  line-height: 1.6;
  color: #1f2937;
  padding: .2rem .2rem 0;
}
.product-description-fieldset {
  margin: 0;
  margin-top: .95rem;
  padding: .65rem .85rem .85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.product-description-fieldset > legend {
  padding: .16rem .58rem;
  font-weight: 700;
  color: #0f766e;
  font-size: .95rem;
  background: #e6fffa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
}
.product-description p {
  margin: 0 0 .65rem;
}
.product-description ul,
.product-description ol {
  margin: 0 0 .65rem 1.2rem;
}
.product-description img {
  max-width: 100%;
  height: auto;
}
.related-products-section {
  margin-top: 1.4rem;
}
.chip {
  position: absolute;
  top: .62rem;
  left: .62rem;
  right: .62rem;
  border-radius: 999px;
  border: 1px solid #2fc8ab;
  background: #43d9bc;
  color: #ffffff;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 400;
  text-align: center;
  padding: .22rem .52rem;
}
.chip:hover {
  background: #34cfb1;
  border-color: #25b99d;
  color: #ffffff;
  text-decoration: none;
}

.row { display: flex; }
.gap { gap: .7rem; }
.wrap { flex-wrap: wrap; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .42rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: calc(var(--store-btn-padding-y) * var(--store-btn-size-scale)) calc(var(--store-btn-padding-x) * var(--store-btn-size-scale));
  min-height: calc(var(--store-btn-min-height) * var(--store-btn-size-scale));
  font-size: calc(var(--store-btn-font-size) * var(--store-btn-size-scale));
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.btn::before,
.btn::after {
  flex: 0 0 auto;
}
.btn[hidden] {
  display: none !important;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #374151; }
.btn.danger { background: #b91c1c; }
.btn.secondary.is-active {
  background: #0f766e;
}
.btn-show-more::before {
  content: "+";
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}
.btn.secondary.js-favorite-toggle {
  position: relative;
  width: calc(46px * var(--store-btn-size-scale));
  min-width: calc(46px * var(--store-btn-size-scale));
  height: calc(46px * var(--store-btn-size-scale));
  padding: 0;
  border-radius: 999px;
  border: 1px solid #fbcfe8;
  background: #fff7fb;
  box-shadow: 0 4px 10px rgba(244, 114, 182, 0.14);
  color: transparent;
  font-size: 0;
  line-height: 0;
}
.btn.secondary.js-favorite-toggle::before {
  content: "❤";
  font-size: calc(1.22rem * var(--store-btn-size-scale));
  color: #f9a8d4;
  line-height: 1;
}
.btn.secondary.js-favorite-toggle.is-active::before {
  color: #dc2626;
}
.btn.secondary.js-favorite-toggle.is-active {
  border-color: #f87171;
  background: #fff0f3;
}
.btn.secondary.js-favorite-toggle.is-heartbeat::before {
  animation: heartDoubleBeat .72s ease;
}
.btn.secondary.js-favorite-toggle:hover {
  transform: translateY(-1px);
  background: #ffeef5;
  border-color: #fda4af;
  box-shadow: 0 6px 14px rgba(244, 114, 182, 0.2);
}
.btn.secondary.js-favorite-toggle.is-loading::after {
  content: "";
  position: absolute;
  inset: -2px;
  margin-left: 0;
  width: auto;
  height: auto;
  border-radius: 999px;
  border: 2px solid #fbcfe8;
  border-top-color: #ef4444;
  border-right-color: #ef4444;
  background: transparent;
  transform: none;
  animation: btn-spin .6s linear infinite;
}
.btn.secondary.js-favorite-toggle.is-loading::before {
  opacity: .35;
}
.btn.disabled { pointer-events: none; opacity: .55; }
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
}
.btn.is-loading::after {
  content: "";
  width: calc(13px * var(--store-btn-size-scale));
  height: calc(13px * var(--store-btn-size-scale));
  margin-left: 0;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 999px;
  display: inline-block;
  vertical-align: -2px;
  animation: btn-spin .7s linear infinite;
}

@keyframes heartDoubleBeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.22); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  62% { transform: scale(1); }
  100% { transform: scale(1); }
}

.flash { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 10px; }
.flash.success { background: #dcfce7; color: #14532d; }
.flash.error { background: #fee2e2; color: #7f1d1d; }

input, textarea, select {
  width: 100%;
  padding: .62rem .72rem;
  border-radius: 9px;
  border: 1px solid #d5dae3;
  background: #fff;
  font: inherit;
}
textarea { min-height: 100px; resize: vertical; }

.catalog-filters,
.checkout-form,
.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-bottom: .85rem;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  user-select: none;
}
.checkout-step__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
  flex: 0 0 auto;
}
.checkout-step__label {
  font-weight: 700;
  color: #111827;
  font-size: .95rem;
}
.checkout-step.is-active {
  border-color: rgba(5, 150, 105, .45);
  box-shadow: 0 10px 20px rgba(5, 150, 105, .10);
}
.checkout-step.is-active .checkout-step__num {
  background: rgba(5, 150, 105, .12);
  border-color: rgba(5, 150, 105, .25);
  color: #065f46;
}
.checkout-step.is-done .checkout-step__num {
  background: #dcfce7;
  border-color: rgba(5, 150, 105, .25);
  color: #065f46;
}

.checkout-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem;
  margin: 0;
  background: #fff;
}
.checkout-lines {
  display: grid;
  gap: .55rem;
  margin-bottom: .75rem;
}
.checkout-line {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .65rem .75rem;
  background: #fafafa;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .7rem;
  align-items: center;
}
.checkout-line__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  cursor: zoom-in;
}
.checkout-line__body { min-width: 0; }
.checkout-line__name {
  font-weight: 800;
  margin-bottom: .25rem;
  color: #111827;
}
.checkout-line__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .95rem;
}
.checkout-legend {
  background: rgba(5, 150, 105, .12);
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, .20);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
}
.checkout-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.checkout-grid3 { display: grid; grid-template-columns: 140px 1fr 220px; gap: .75rem; }
.checkout-delivery__label {
  font-weight: 700;
  color: #111827;
  font-size: .95rem;
  margin-bottom: .35rem;
}
.checkout-delivery {
  display: block;
  width: 100%;
}
.checkout-delivery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
.delivery-card {
  display: block;
  cursor: pointer;
  user-select: none;
}
.delivery-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.delivery-card__body {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .6rem;
  align-items: center;
  padding: .62rem .7rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.04);
}
.delivery-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 150, 105, .10);
  border: 1px solid rgba(5, 150, 105, .18);
  color: #065f46;
}
.delivery-card__icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.delivery-card__text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}
.delivery-card__name {
  font-weight: 800;
  color: #111827;
  font-size: .96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delivery-card__price {
  color: #065f46;
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
}
.delivery-card:hover .delivery-card__body {
  border-color: rgba(5, 150, 105, .42);
  box-shadow: 0 14px 26px rgba(5, 150, 105, .10);
  transform: translateY(-1px);
}
.delivery-card__input:checked + .delivery-card__body {
  border-color: rgba(5, 150, 105, .60);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .16), 0 16px 32px rgba(5, 150, 105, .12);
}
.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .95rem;
  color: #111827;
}
.checkout-terms input[type="checkbox"] { width: auto; margin-top: .22rem; }
.checkout-terms a { color: #111827; text-decoration: underline; text-underline-offset: 3px; }
.checkout-submit-box {
  margin-top: .5rem;
  margin-left: auto;
  width: min(100%, 560px);
  display: grid;
  gap: .55rem;
  justify-items: end;
}
.checkout-submit-box .checkout-terms {
  justify-content: flex-end;
  text-align: right;
}
.checkout-submit-box .muted {
  margin: 0;
  text-align: right;
}

.p24-handoff {
  display: flex;
  justify-content: center;
  margin: 1.1rem 0 .7rem;
}
.p24-handoff__card {
  width: min(100%, 760px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
  text-align: center;
}
.p24-handoff__card h1 {
  margin: 0 0 .55rem 0;
  font-size: 1.28rem;
  color: #0f172a;
}
.p24-handoff__lead {
  margin: 0 0 .45rem 0;
  color: #334155;
}
.p24-handoff__order {
  margin: 0 0 .7rem 0;
  color: #111827;
}
.p24-handoff__actions {
  margin: 0 0 .45rem 0;
}

.p24-return {
  display: flex;
  justify-content: center;
  margin: 1.1rem 0 .7rem;
}
.p24-return__card {
  width: min(100%, 760px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
  text-align: center;
}
.p24-return__card h1 {
  margin: 0 0 .55rem 0;
  font-size: 1.28rem;
  color: #0f172a;
}
.p24-return__notice {
  margin: 0 0 .72rem 0;
  padding: .72rem .88rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  text-align: center;
  max-width: 100%;
}
.p24-return__notice--paid {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #14532d;
}
.p24-return__notice--info {
  border: 1px solid #bae6fd;
  background: #e0f2fe;
  color: #0c4a6e;
}
.p24-return__icon {
  width: 1.86rem;
  height: 1.86rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}
.p24-return__notice-text {
  display: block;
}
.p24-return__notice-main {
  display: block;
  font-size: 1.24rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.38;
}
.p24-return__notice-sub {
  display: block;
  margin-top: .44rem;
  font-size: 1rem;
  line-height: 1.38;
}
.p24-return__notice-order {
  display: block;
  margin-top: .52rem;
  font-size: .98rem;
  line-height: 1.34;
}
.p24-return__info {
  margin: .05rem 0 .85rem 0;
  text-align: center;
}
.p24-return__pending {
  margin: 0 0 .72rem 0;
}
.p24-return__actions {
  margin: 0 0 .55rem 0;
}

.checkout-inpost__widget {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(2, 6, 23, .06);
  width: 100%;
  min-height: 760px;
  height: 760px;
}
.checkout-inpost__widget inpost-geowidget {
  width: 100%;
  display: block;
  min-height: 760px;
  height: 760px;
}
.checkout-inpost__loading {
  padding: .75rem .85rem;
  color: var(--muted);
  font-size: .95rem;
}
.checkout-inpost__selected {
  width: 100%;
  padding: .62rem .72rem;
  border-radius: 9px;
  border: 1px solid #d5dae3;
  background: #fff;
  font: inherit;
  min-height: 68px;
  resize: none;
}

.checkout-inpost {
  width: 100%;
  display: block;
  clear: both;
  margin-top: .75rem;
}

@media (max-width: 1024px) {
  .checkout-inpost__widget {
    min-height: 640px;
    height: 640px;
  }
  .checkout-inpost__widget inpost-geowidget {
    min-height: 640px;
    height: 640px;
  }
}

@media (max-width: 720px) {
  .checkout-steps { grid-template-columns: 1fr; }
  .checkout-grid2 { grid-template-columns: 1fr; }
  .checkout-grid3 { grid-template-columns: 1fr; }
  .checkout-submit-box {
    width: 100%;
  }
  .checkout-submit-box .btn {
    width: 100%;
    max-width: 420px;
  }
  .p24-handoff__card h1 {
    font-size: 1.16rem;
  }
  .p24-return__card h1 {
    font-size: 1.16rem;
  }
  .p24-return__notice {
    width: 100%;
    display: flex;
  }
  .p24-return__notice-main {
    font-size: 1.08rem;
  }
  .p24-return__notice-sub {
    font-size: .97rem;
  }
  .p24-return__notice-order {
    font-size: .95rem;
  }
  .checkout-inpost__widget {
    min-height: 560px;
    height: 560px;
  }
  .checkout-inpost__widget inpost-geowidget {
    min-height: 560px;
    height: 560px;
  }
  .category-grid {
    display: none;
  }
  .category-mobile-tree {
    display: grid;
    gap: .5rem;
  }
  .category-submenu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: .34rem;
  }
  .category-submenu-level {
    position: static;
    top: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    margin-top: .3rem;
    margin-left: .34rem;
  }
  .category-submenu:not(.is-multi),
  .category-submenu-level:not(.is-multi) {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .category-submenu-level:not(.is-multi) .category-submenu-title,
  .category-submenu-level:not(.is-multi) .category-submenu-item,
  .category-submenu:not(.is-multi) .category-submenu-item {
    grid-column: 1;
  }
  .category-submenu.is-multi,
  .category-submenu-level.is-multi {
    display: grid;
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    row-gap: .3rem;
    column-gap: 0;
    min-width: 0;
    max-width: 100%;
  }
  .category-submenu-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: .3rem;
    width: 100%;
  }
  .category-submenu-arrow {
    display: none;
  }
  .favorites-empty-state {
    padding: .88rem .8rem;
    font-size: .95rem;
  }
  .cart-empty-state {
    padding: 1rem .8rem .95rem;
  }
  .cart-empty-state__text {
    font-size: .96rem;
  }
}
.catalog-filters { padding: .8rem; margin-top: 10px; margin-bottom: .9rem; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; align-items: end; }
.filters-actions { display: flex; gap: .55rem; }

.table-wrap { overflow: auto; }
.history-subtitle {
  margin-top: -.25rem;
  margin-bottom: .85rem;
}
.history-table-wrap {
  border-radius: 14px;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}
.history-table th,
.history-table td {
  padding: .62rem .72rem;
  border-bottom: 1px solid #e8edf6;
  vertical-align: middle;
  text-align: left;
}
.history-product-link {
  color: inherit;
  text-decoration: none;
}
.history-product-link:hover {
  text-decoration: underline;
}
.history-product-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.history-product-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.history-product-image-link:hover .history-product-thumb {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.history-table th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #526176;
  background: #f8fbff;
}
.history-count {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  font-weight: 800;
  color: #0f766e;
  background: rgba(15, 118, 110, .11);
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 999px;
  padding: .18rem .5rem;
}
.history-flag {
  display: inline-block;
  min-width: 66px;
  text-align: center;
  font-weight: 700;
  border-radius: 999px;
  padding: .18rem .52rem;
  border: 1px solid #c7d2e3;
  color: #475569;
  background: #f8fafc;
}
.history-flag.is-yes {
  color: #065f46;
  border-color: rgba(5, 150, 105, .32);
  background: rgba(5, 150, 105, .14);
}
.history-flag.is-no {
  color: #64748b;
  border-color: rgba(148, 163, 184, .35);
  background: rgba(241, 245, 249, .8);
}
.cart-empty-state {
  margin: .75rem 0 1rem;
  padding: 1.2rem 1rem 1.15rem;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
  display: grid;
  justify-items: center;
  gap: .56rem;
  text-align: center;
}
.cart-empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, .12);
  border: 1px solid rgba(15, 118, 110, .28);
  color: #0f766e;
}
.cart-empty-state__icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-empty-state__text {
  margin: 0;
  color: #334155;
  font-size: 1.02rem;
}
.cart-empty-state__cta {
  margin-top: .15rem;
}
.cart-discount-panel {
  margin-top: .9rem;
  margin-bottom: .9rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: end;
}
.cart-discount-form {
  display: grid;
  grid-template-columns: minmax(180px, 360px) auto auto;
  gap: .55rem;
  align-items: center;
  width: fit-content;
  margin-left: auto;
}
.cart-discount-help {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: right;
}
.cart-discount-help code {
  background: #f3f4f6;
  border-radius: 5px;
  padding: .08rem .35rem;
}
.cart-discount-message {
  margin-top: .6rem;
  border-radius: 8px;
  padding: .52rem .68rem;
  font-size: .92rem;
  width: fit-content;
  margin-left: auto;
}
.cart-discount-message[hidden] {
  display: none !important;
}
.cart-discount-message.is-success {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: #dcfce7;
  color: #14532d;
}
.cart-discount-message.is-success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  flex: 0 0 auto;
}
.cart-discount-message.is-error {
  background: #fee2e2;
  color: #7f1d1d;
}
.cart-discount-active-info {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .55rem;
  border-radius: 8px;
  padding: .52rem .68rem;
  background: #ecfdf5;
  color: #065f46;
  font-size: .92rem;
  width: fit-content;
  margin-left: auto;
}
.cart-discount-active-info[hidden] {
  display: none !important;
}
.cart-discount-active-info::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  flex: 0 0 auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: .72rem; border-bottom: 1px solid var(--border); text-align: left; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cart-bulk-actions {
  margin-bottom: .65rem;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  position: sticky;
  top: var(--sticky-header-offset);
  z-index: 1080;
  width: fit-content;
  margin-left: auto;
  padding: .35rem .45rem;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  backdrop-filter: blur(2px);
}
.cart-bulk-actions.is-visible {
  display: flex;
}
.cart-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-size: .94rem;
}
.js-cart-select-all,
.cart-select-all-label input,
.cart-select-cell .js-cart-select {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1.2px solid #b7c2d3;
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.js-cart-select-all:hover,
.cart-select-all-label input:hover,
.cart-select-cell .js-cart-select:hover {
  border-color: #0f766e;
}
.js-cart-select-all:focus-visible,
.cart-select-all-label input:focus-visible,
.cart-select-cell .js-cart-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .2);
}
.js-cart-select-all:checked,
.cart-select-all-label input:checked,
.cart-select-cell .js-cart-select:checked {
  border-color: #0f766e;
  background-color: #0f766e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M3 8.2 6.2 11.2 13 4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.js-cart-select-all:active,
.cart-select-all-label input:active,
.cart-select-cell .js-cart-select:active {
  transform: scale(.96);
}
.cart-select-cell {
  width: 38px;
  text-align: center;
}
.cart-lp-cell {
  width: 44px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}
.js-cart-row td {
  transition: background-color .22s ease, opacity .28s ease, transform .28s ease;
  transform-origin: 50% 50%;
}
.js-cart-row:hover td {
  background: #fff7c7;
}
.js-cart-row.is-removing td {
  background: #fecaca;
  opacity: 0;
  transform: scaleY(0);
}
.js-cart-row.is-restored td {
  background: #bbf7d0;
}
.js-cart-row.is-focused-product-row td {
  animation: focusProductRow 2.1s ease;
}
.js-cart-row.is-focused-product-row {
  animation: focusBounceDouble .55s ease 2;
}

@keyframes focusProductRow {
  0% {
    background: #dcfce7;
  }
  45% {
    background: #bbf7d0;
  }
  100% {
    background: transparent;
  }
}

@keyframes focusBounceDouble {
  0% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.cart-qty-input {
  width: 79px;
  min-width: 79px;
}
.cart-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-unit {
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
}
.cart-product-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  transition: transform .16s ease, box-shadow .16s ease;
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
}
.cart-product-link {
  color: inherit;
  text-decoration: none;
}
.cart-product-link:hover {
  text-decoration: underline;
}
.cart-product-category {
  margin-top: .28rem;
  font-size: .82rem;
  color: var(--muted);
}
.cart-product-category-link {
  color: #0f766e;
  text-decoration: none;
}
.cart-product-category-link:hover {
  text-decoration: underline;
}
.cart-image-preview {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, .38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.cart-image-preview.is-visible {
  opacity: 1;
}
.cart-image-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
#cart-image-preview .cart-image-preview-content,
#history-image-preview .cart-image-preview-content {
  padding: .75rem .5rem;
}
#cart-image-preview .cart-image-preview-content {
  padding-top: 15px;
  padding-bottom: 15px;
}
#cart-image-preview .cart-image-preview-img {
  max-height: calc(100vh - 110px);
}
#history-image-preview .cart-image-preview-content {
  padding-top: 15px;
  padding-bottom: 15px;
}
#history-image-preview .cart-image-preview-img {
  max-height: calc(100vh - 110px);
}
#product-image-preview .cart-image-preview-content {
  padding: 1.1rem .65rem 1.05rem;
}
.cart-image-preview-img {
  width: auto;
  max-width: 96vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(2, 6, 23, .35);
  padding: .18rem;
}
#product-image-preview {
  pointer-events: none;
}
#product-image-preview.is-visible {
  pointer-events: auto;
}
#product-image-preview .product-preview-image-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#product-image-preview .cart-image-preview-img {
  display: block;
  cursor: default;
  max-height: 84vh;
}
#product-image-preview .cart-image-preview-name {
  margin-top: .62rem;
  margin-bottom: .62rem;
}
.product-preview-close {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 30px;
  min-height: 96px;
  padding: .5rem .24rem;
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(15, 118, 110, .28);
  background: rgba(233, 251, 247, .96);
  color: #0f766e;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .34rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.product-preview-close-icon {
  font-size: .86rem;
  line-height: 1;
}
.product-preview-close-label {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.product-preview-close:hover {
  background: #def7f0;
  border-color: rgba(15, 118, 110, .4);
  color: #115e59;
}
.cart-image-preview-name {
  display: block;
  color: #111;
  text-align: center;
  font-size: .98rem;
  font-weight: 600;
  margin-top: .48rem;
  margin-bottom: .36rem;
  max-width: min(96vw, 1600px);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 10px;
  padding: .46rem .8rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .28);
}

.checkout-form { display: grid; gap: .75rem; padding: .9rem; }
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  align-items: start;
}
.auth-grid .checkout-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.auth-grid h2 {
  margin: 0 0 .3rem;
  font-size: 1.08rem;
}
.login-notice {
  margin-bottom: .85rem;
  padding: .72rem .86rem;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  background: #e0f2fe;
  color: #0c4a6e;
}
.auth-inline-feedback {
  margin: -.05rem 0 .15rem;
  padding: .62rem .74rem;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  background: #e0f2fe;
  color: #0c4a6e;
  font-size: .95rem;
  line-height: 1.35;
  white-space: pre-line;
}
.auth-inline-feedback.is-error {
  border-color: #fecaca;
  background: #fee2e2;
  color: #7f1d1d;
}
.auth-inline-feedback.is-success {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #14532d;
}
.order-pending-message {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.order-pending-message__icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0ea5e9;
  color: #fff;
  font-size: .82rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(14, 165, 233, .28);
}
.order-paid-message {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.order-paid-message__icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff;
  font-size: .82rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .32);
}
.order-resume-product-link {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.order-resume-product-link:hover,
.order-resume-product-link:focus-visible {
  color: #0b5e58;
  border-bottom-color: rgba(15, 118, 110, .46);
}
.auth-recaptcha-wrap {
  margin: .15rem 0 .2rem;
}
.auth-forgot-password {
  margin: .12rem 0 0;
}
.auth-forgot-password__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .62rem;
  border-radius: 9px;
  border: 1px solid rgba(15, 118, 110, .22);
  background: rgba(20, 184, 166, .08);
  color: #0f766e;
  font-size: .93rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.auth-forgot-password__link::before {
  content: "↻";
  line-height: 1;
  font-size: .9rem;
}
.auth-forgot-password__link:hover {
  background: rgba(20, 184, 166, .14);
  border-color: rgba(15, 118, 110, .35);
  color: #115e59;
  transform: translateY(-1px);
}
.auth-register-note {
  margin: .14rem 0 0;
  padding: .66rem .76rem;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ecfeff 100%);
  color: #0c4a6e;
  font-size: .93rem;
  line-height: 1.45;
}
.auth-register-note__line {
  display: block;
  position: relative;
  padding-left: 1.3rem;
}
.auth-register-note__line + .auth-register-note__line {
  margin-top: .2rem;
}
.auth-register-note__line::before {
  position: absolute;
  left: 0;
  top: .02rem;
  font-size: .9rem;
  line-height: 1;
}
.auth-register-note__line--activation::before {
  content: "✅";
}
.auth-register-note__line--password::before {
  content: "🔐";
}
.auth-terms {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem;
  align-items: center;
  margin: .05rem 0 .08rem;
  font-size: .92rem;
  line-height: 1.4;
  color: #111827;
}
.auth-terms__input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1.2px solid #b7c2d3;
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.auth-terms__input:hover {
  border-color: #0f766e;
}
.auth-terms__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .2);
}
.auth-terms__input:checked {
  border-color: #0f766e;
  background-color: #0f766e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M3 8.2 6.2 11.2 13 4.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.auth-terms__input:active {
  transform: scale(.96);
}
.auth-terms a {
  color: #0f766e;
  text-underline-offset: 3px;
}
.auth-terms a:hover {
  color: #115e59;
}
.password-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .48rem;
  align-items: center;
}
.password-toggle-btn {
  width: auto;
  min-width: 68px;
  padding: .56rem .72rem;
  border-radius: 9px;
  border: 1px solid #d5dae3;
  background: #f8fafc;
  color: #1f2937;
  cursor: pointer;
  font: inherit;
}
.password-toggle-btn:hover {
  background: #f1f5f9;
}
.caps-lock-warning {
  margin-top: -.2rem;
  color: #b91c1c;
  font-size: .93rem;
}
.cart-summary-actions {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
}
.cart-checkout-form {
  margin: 0;
}
.cart-min-order-alert {
  margin: 0;
  max-width: 560px;
  padding: .62rem .78rem;
  border-radius: 10px;
  border: 1px solid #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  font-size: .94rem;
  line-height: 1.45;
  text-align: right;
}
.cart-min-order-alert strong {
  color: #c2410c;
}
.js-cart-checkout-btn[disabled],
.js-cart-checkout-btn[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.total {
  margin: 0;
  font-size: 1.08rem;
  text-align: right;
}
.catalog-results-head {
  margin-top: .2rem;
  margin-bottom: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.catalog-results-head .muted {
  margin: 0;
}
.pager {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.pager-top {
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
}
.pager-bottom {
  justify-content: center;
}
.pager-pages {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.pager-link,
.pager-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .55rem;
  border-radius: 8px;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
}
.pager-link:hover,
.pager-nav:hover {
  background: #f8fafc;
  border-color: #c7d0dd;
}
.pager-link.is-active {
  background: #e9fbf7;
  border-color: #11b59b;
  color: #0f766e;
}
.pager-dots {
  color: #64748b;
  padding: 0 .18rem;
}
.pager-meta {
  color: #64748b;
  font-size: .88rem;
  margin-left: .2rem;
}
.pager .disabled {
  pointer-events: none;
  opacity: 1;
  color: #475569;
  border-color: #cbd5e1;
  background: #f3f4f6;
}
.muted { color: var(--muted); }

.theme-toggle-btn .theme-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.theme-toggle-btn,
#theme-toggle {
  display: none !important;
}
.theme-toggle-btn .theme-icon-moon {
  display: none;
}
html.theme-dark .theme-toggle-btn .theme-icon-sun {
  display: none;
}
html.theme-dark .theme-toggle-btn .theme-icon-moon {
  display: inline;
}

html.theme-dark {
  --bg: #0b1220;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --primary: #1fa78f;
  --primary-dark: #178672;
  --border: #2b3647;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html.theme-dark body {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(28, 38, 61, 0.9) 0%, transparent 45%),
    radial-gradient(1000px 300px at 90% -20%, rgba(9, 58, 54, 0.8) 0%, transparent 40%),
    var(--bg);
}
html.theme-dark .top-ribbon {
  background: #0f766e;
  color: #e6f7f4;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
html.theme-dark .top-ribbon-link,
html.theme-dark .top-ribbon-center {
  color: #ecfeff;
}
html.theme-dark .top-ribbon-link:hover {
  color: #ffffff;
}
html.theme-dark .top-ribbon-facebook {
  background: rgba(15, 23, 42, 0.35);
}
html.theme-dark .site-header {
  background: rgba(9, 14, 24, 0.92);
  border-bottom-color: var(--border);
}
html.theme-dark .header-collapse-toggle,
html.theme-dark .header-expand-toggle {
  background: rgba(15, 23, 42, .95);
  border-color: #334155;
  color: #e5e7eb;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .4);
}
html.theme-dark .header-icon-btn {
  background: #0f172a;
  border-color: #334155;
  color: #e5e7eb;
}
html.theme-dark .header-icon-svg {
  color: #34d399;
}
html.theme-dark .header-icon-btn:hover {
  background: #1e293b;
  border-color: #475569;
}
html.theme-dark .header-icon-btn.is-active {
  background: #113a36;
  border-color: #1fa78f;
  color: #b7fff2;
}
html.theme-dark .header-search-flyout-form #header-search-input,
html.theme-dark .header-search-suggest {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #334155;
}
html.theme-dark .header-search-suggest-item {
  color: #e5e7eb;
  border-bottom-color: #283346;
}
html.theme-dark .header-search-suggest-item:hover,
html.theme-dark .header-search-suggest-item.is-active {
  background: #10282c;
}
html.theme-dark .header-search-suggest-name,
html.theme-dark .header-search-suggest-price {
  color: #e5e7eb;
}
html.theme-dark .header-search-suggest-category,
html.theme-dark .header-search-suggest-empty {
  color: #9aa4b2;
}
html.theme-dark .card,
html.theme-dark .catalog-filters,
html.theme-dark .checkout-form,
html.theme-dark .table-wrap,
html.theme-dark .cart-discount-panel,
html.theme-dark .site-footer,
html.theme-dark .product-layout,
html.theme-dark .product-description-fieldset,
html.theme-dark .cart-modal-dialog,
html.theme-dark .cookie-consent-content {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
html.theme-dark .catalog-card__title {
  color: #f1f5f9;
}
html.theme-dark .catalog-card__title:hover {
  background: linear-gradient(180deg, #18253a 0%, #152033 100%);
  border-color: #2f4463;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}
html.theme-dark .product-question-toggle {
  background: linear-gradient(180deg, #12233a 0%, #13253e 100%);
  border-color: #2f4463;
  color: #dbeafe;
}
html.theme-dark .product-question-toggle:hover {
  background: linear-gradient(180deg, #153051 0%, #17345a 100%);
  border-color: #3b82f6;
}
html.theme-dark .product-question-toggle__icon {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: #bfdbfe;
}
html.theme-dark .product-zoom-lens {
  border-color: rgba(125, 211, 252, .75);
  background: rgba(30, 58, 138, .24);
}
html.theme-dark .product-zoom-pane {
  background-color: #0f172a;
  border-color: #334155;
  box-shadow: 0 18px 34px rgba(2, 6, 23, .5);
}
html.theme-dark .product-preview-close {
  background: rgba(13, 148, 136, .24);
  border-color: rgba(94, 234, 212, .35);
  color: #ccfbf1;
}
html.theme-dark .catalog-card__price {
  background: linear-gradient(180deg, #0f2f33 0%, #0d272a 100%);
  border-color: #215d57;
}
html.theme-dark .catalog-card__price-value {
  color: #99f6e4;
}
html.theme-dark .catalog-card__price-unit {
  color: #ccfbf1;
}
html.theme-dark .category-card {
  background: #111f33;
  border-color: #314056;
  color: #e5e7eb;
}
html.theme-dark .category-card:hover {
  background: #13393d;
  border-color: #1fa78f;
}
html.theme-dark .category-submenu {
  border-color: #334155;
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 16px 30px rgba(2, 6, 23, .45);
}
html.theme-dark .category-submenu-link {
  color: #e5e7eb;
  background: rgba(30, 41, 59, .85);
}
html.theme-dark .category-submenu-link:hover {
  color: #99f6e4;
  border-color: rgba(20, 184, 166, .45);
  background: rgba(13, 148, 136, .2);
}
html.theme-dark .category-submenu-item:hover > .category-submenu-link,
html.theme-dark .category-submenu-item:focus-within > .category-submenu-link {
  color: #99f6e4;
  border-color: rgba(20, 184, 166, .45);
  background: rgba(13, 148, 136, .2);
}
html.theme-dark .category-submenu-arrow {
  color: #99f6e4;
}
html.theme-dark .category-submenu-level {
  border-color: #334155;
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 16px 30px rgba(2, 6, 23, .45);
}
html.theme-dark .category-submenu-title {
  color: #99f6e4;
  border-bottom-color: rgba(20, 184, 166, .35);
}
html.theme-dark .footer_naglowek,
html.theme-dark .footer_copyright,
html.theme-dark .footer_linki,
html.theme-dark .footer_linki > a {
  color: #d1d5db;
}
html.theme-dark .site-footer {
  background:
    radial-gradient(900px 240px at 8% -20%, rgba(56, 189, 248, .14) 0%, transparent 52%),
    radial-gradient(760px 210px at 92% -16%, rgba(45, 212, 191, .12) 0%, transparent 54%),
    #0b1322;
  border-top-color: #2d3a4c;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, .15), 0 -16px 42px rgba(2, 6, 23, .35);
}
html.theme-dark .site-footer::before {
  background: linear-gradient(90deg, #22d3ee 0%, #34d399 35%, #10b981 68%, #14b8a6 100%);
}
html.theme-dark .footer_box {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .24);
  box-shadow: 0 18px 34px rgba(2, 6, 23, .4);
}
html.theme-dark .footer_naglowek .footer-icon {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
  color: #a7f3d0;
}
html.theme-dark .footer-link .footer-icon {
  border-color: #334155;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #a7f3d0;
}
html.theme-dark .footer_linia {
  border-bottom-color: rgba(148, 163, 184, .45);
}
html.theme-dark .footer_linki > a:hover,
html.theme-dark .footer_copyright > a:hover {
  color: #a7f3d0;
}
html.theme-dark th,
html.theme-dark td {
  border-bottom-color: #2d3a4c;
}
html.theme-dark .history-table th,
html.theme-dark .history-table td {
  border-bottom-color: #2d3a4c;
}
html.theme-dark .history-table th {
  background: #0f172a;
  color: #9fb0c8;
}
html.theme-dark .history-count {
  color: #99f6e4;
  border-color: rgba(45, 212, 191, .4);
  background: rgba(20, 184, 166, .16);
}
html.theme-dark .history-flag {
  border-color: #374151;
  color: #cbd5e1;
  background: #0f172a;
}
html.theme-dark .history-flag.is-yes {
  border-color: rgba(16, 185, 129, .45);
  color: #a7f3d0;
  background: rgba(16, 185, 129, .16);
}
html.theme-dark .history-flag.is-no {
  border-color: rgba(148, 163, 184, .35);
  color: #94a3b8;
  background: rgba(30, 41, 59, .8);
}
html.theme-dark .auth-forgot-password__link {
  color: #7ee6d8;
  border-color: rgba(45, 212, 191, .3);
  background: rgba(13, 148, 136, .16);
}
html.theme-dark .auth-forgot-password__link:hover {
  color: #ccfbf1;
  border-color: rgba(94, 234, 212, .42);
  background: rgba(13, 148, 136, .24);
}
html.theme-dark .auth-register-note {
  color: #b8f4ff;
  border-color: rgba(56, 189, 248, .38);
  background: linear-gradient(180deg, rgba(8, 47, 73, .68) 0%, rgba(6, 78, 59, .52) 100%);
}
html.theme-dark .auth-terms {
  color: #dbe6f5;
}
html.theme-dark .auth-terms__input {
  background: #0f172a;
  border-color: #4b5563;
}
html.theme-dark .auth-terms__input:hover {
  border-color: #34d399;
}
html.theme-dark .auth-terms__input:checked {
  border-color: #10b981;
  background-color: #10b981;
}
html.theme-dark .auth-terms a {
  color: #7ee6d8;
}
html.theme-dark .auth-terms a:hover {
  color: #ccfbf1;
}
html.theme-dark .js-cart-select-all,
html.theme-dark .cart-select-all-label input,
html.theme-dark .cart-select-cell .js-cart-select {
  background: #0f172a;
  border-color: #4b5563;
}
html.theme-dark .js-cart-select-all:hover,
html.theme-dark .cart-select-all-label input:hover,
html.theme-dark .cart-select-cell .js-cart-select:hover {
  border-color: #34d399;
}
html.theme-dark .js-cart-select-all:checked,
html.theme-dark .cart-select-all-label input:checked,
html.theme-dark .cart-select-cell .js-cart-select:checked {
  border-color: #10b981;
  background-color: #10b981;
}
html.theme-dark .favorites-empty-state {
  background: linear-gradient(180deg, #152033 0%, #101b2d 100%);
  border-color: #2f4463;
  box-shadow: 0 18px 34px rgba(2, 6, 23, .45);
  color: #cbd5e1;
}
html.theme-dark .cart-empty-state {
  background: linear-gradient(180deg, #152033 0%, #101b2d 100%);
  border-color: #2f4463;
  box-shadow: 0 18px 34px rgba(2, 6, 23, .45);
}
html.theme-dark .cart-empty-state__icon {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .28);
  color: #4ade80;
}
html.theme-dark .cart-empty-state__text {
  color: #cbd5e1;
}
html.theme-dark .cart-min-order-alert {
  background: linear-gradient(180deg, #3a2314 0%, #2b1d13 100%);
  border-color: #9a3412;
  color: #fed7aa;
}
html.theme-dark .cart-min-order-alert strong {
  color: #fdba74;
}
html.theme-dark .history-product-thumb {
  background: #0f172a;
  border-color: #334155;
}
html.theme-dark .history-product-image-link:hover .history-product-thumb {
  box-shadow: 0 10px 22px rgba(2, 6, 23, .45);
}
html.theme-dark .js-cart-row:hover td {
  background: #2a2f17;
}
html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #334155;
}
html.theme-dark .product-description {
  color: #d1d5db;
}
html.theme-dark a {
  color: #5eead4;
}
html.theme-dark .cart-product-link,
html.theme-dark .cart-product-category-link,
html.theme-dark .product-category-line a,
html.theme-dark .chip {
  color: #eafffb;
}
html.theme-dark .legal-shell {
  background: linear-gradient(180deg, rgba(15,23,42,.9) 0%, rgba(15,23,42,.82) 100%);
  border-color: #334155;
  box-shadow: 0 20px 40px rgba(2, 6, 23, .42);
}
html.theme-dark .legal-content {
  color: #cbd5e1;
}
html.theme-dark .legal-content h1,
html.theme-dark .legal-content h2,
html.theme-dark .legal-content h3 {
  color: #f8fafc;
}
html.theme-dark .legal-content h2 {
  border-bottom-color: #334155;
}
html.theme-dark .legal-content a {
  color: #5eead4;
  border-bottom-color: rgba(94, 234, 212, .42);
}
html.theme-dark .legal-content a:hover {
  color: #99f6e4;
  border-bottom-color: rgba(153, 246, 228, .6);
}
html.theme-dark .legal-content th,
html.theme-dark .legal-content td {
  border-color: #334155;
}
html.theme-dark .legal-content th {
  background: #0b1220;
}
html.theme-dark .legal-content blockquote {
  background: rgba(16, 185, 129, .12);
  color: #a7f3d0;
  border-left-color: #10b981;
}
html.theme-dark .pager-link,
html.theme-dark .pager-nav {
  background: #0f172a;
  border-color: #334155;
  color: #dbeafe;
}
html.theme-dark .pager-link:hover,
html.theme-dark .pager-nav:hover {
  background: #1e293b;
  border-color: #475569;
}
html.theme-dark .pager-link.is-active {
  background: #113a36;
  border-color: #1fa78f;
  color: #b7fff2;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #dbe3ef;
  padding: 0 0 .8rem 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 230px at 6% -20%, rgba(34, 197, 94, .12) 0%, transparent 55%),
    radial-gradient(780px 220px at 96% -18%, rgba(14, 165, 233, .12) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 68%, #f1f5fb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 -16px 40px rgba(15, 23, 42, .12);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9 0%, #14b8a6 32%, #10b981 64%, #0f766e 100%);
  background-size: 260% 100%;
  animation: footerFlow 7.5s linear infinite;
  opacity: .95;
}

@keyframes footerFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::before {
    animation: none;
  }
}
.footer_container {
  display: grid;
  align-content: start;
  width: min(1240px, 94vw);
  margin: 0 auto;
}
.footer_container:first-child {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 14px;
}
.footer_box {
  width: auto;
  text-align: center;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  padding: 14px 14px 13px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
}
.footer_naglowek {
  font-weight: 800;
  color: #111827;
  margin-bottom: 9px;
  letter-spacing: .04em;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
}
.footer-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.footer-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer_naglowek .footer-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.footer_naglowek--company .footer-icon {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
  color: #92400e;
}
.footer_naglowek--contact .footer-icon {
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #34d399;
  color: #065f46;
}
.footer_naglowek--info .footer-icon {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #60a5fa;
  color: #1e40af;
}
.footer_naglowek--account .footer-icon {
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%);
  border-color: #a78bfa;
  color: #5b21b6;
}
.footer_linia {
  margin: 0 auto 11px auto;
  border-bottom: 1px solid #bcc7d6;
  width: min(130px, 68%);
}
.footer_linki {
  color: #374151;
  line-height: 1.58;
  font-size: .92rem;
}
.footer_linki > a {
  text-decoration: none;
  line-height: 1.95;
  text-align: center;
  color: #374151;
  border-bottom: 1px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
}
.footer-link .footer-icon {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  color: #0f766e;
  padding: 2px;
}
.footer_linki > a:hover {
  text-decoration: none;
  color: #0f766e;
  border-color: rgba(15, 118, 110, .45);
}
.footer-strong {
  font-weight: 700;
}
.footer_copyright {
  border-top: 1px solid #dbe3ef;
  padding: 18px 0 16px 0;
  text-align: center;
  color: #334155;
  width: 100%;
  font-size: .9rem;
}
.footer_copyright > a {
  color: #0f766e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.footer_copyright > a:hover {
  color: #0b5a53;
  border-color: rgba(15, 118, 110, .35);
}

.contact-fab {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1100;
}
body.has-cookie-consent .contact-fab {
  bottom: 108px;
}
.contact-fab-toggle {
  width: 58px;
  height: 58px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
  cursor: pointer;
}
.contact-fab-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.contact-fab-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
  transition: transform .18s ease, opacity .14s ease;
  transform-origin: center;
}
.contact-fab-menu {
  position: absolute;
  right: 43px;
  bottom: 62px;
  display: grid;
  gap: .42rem;
  width: 196px;
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  padding: .52rem;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.contact-fab-menu[hidden] {
  display: none !important;
}
.contact-fab.is-open .contact-fab-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.contact-fab.is-open .contact-fab-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.contact-fab.is-open .contact-fab-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.contact-fab.is-open .contact-fab-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.contact-fab-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: #0f172a;
  padding: .4rem .5rem;
  border-radius: 8px;
}
.contact-fab-link:hover {
  background: #f0fffb;
  color: #0f766e;
}
.contact-fab-action {
  border: 0;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.contact-fab-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.contact-fab-action-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8fff7;
  color: #0f766e;
  font-weight: 700;
}

.fb-slide-widget {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1160;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.fb-slide-toggle {
  pointer-events: auto;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: #0f5dbf;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  width: 42px;
  min-height: 116px;
  padding: .5rem .32rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 93, 191, .34);
  transform: translateX(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fb-slide-widget:not(.is-open) .fb-slide-toggle:hover,
.fb-slide-widget:not(.is-open) .fb-slide-toggle:focus-visible {
  transform: translateX(-8px);
  box-shadow: 0 14px 28px rgba(15, 93, 191, .42);
}
.fb-slide-toggle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.fb-slide-toggle span {
  font-size: .72rem;
  font-weight: 600;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .04em;
}
.fb-slide-panel {
  pointer-events: auto;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(16px);
  transition: width .22s ease, opacity .22s ease, transform .22s ease;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .22);
}
.fb-slide-panel iframe {
  display: block;
  border-radius: 12px 0 0 12px;
  background: #fff;
}
.fb-slide-widget.is-open .fb-slide-panel {
  width: min(340px, 92vw);
  opacity: 1;
  transform: translateX(0);
}
.admin-slide-widget {
  position: fixed;
  top: calc(50% - 150px);
  right: 0;
  transform: translateY(-50%);
  z-index: 1155;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.admin-slide-toggle {
  pointer-events: auto;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: #0f766e;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  width: 42px;
  min-height: 126px;
  padding: .5rem .32rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .34);
  transform: translateX(0);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.admin-slide-widget:hover .admin-slide-toggle,
.admin-slide-toggle:focus-visible {
  transform: translateX(-8px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, .42);
}
.admin-slide-toggle span {
  font-size: .72rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .04em;
}
.fb-context-menu {
  position: fixed;
  z-index: 1315;
  min-width: 188px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .2);
  padding: 6px;
}
.fb-context-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f2937;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.fb-context-menu__item:hover,
.fb-context-menu__item:focus-visible {
  background: #f3f4f6;
}

.home-autoload-stop {
  position: fixed;
  top: calc(var(--sticky-header-offset) + 10px);
  right: 12px;
  z-index: 1125;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}
.home-autoload-stop[hidden] {
  display: none !important;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  /* Prevent "ghost clicks" during fade-out or when hidden but still in DOM for transition */
  pointer-events: none;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: .62rem;
  background: #0ca678;
  color: #ffffff;
  border-radius: 12px;
  padding: .62rem .78rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
  z-index: 1260;
  transition: opacity .18s ease, transform .18s ease;
}
.cart-toast.is-error {
  background: #b91c1c;
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cart-toast-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
}
.cart-toast-image {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,.22);
}
.cart-toast-content {
  min-width: 0;
}
.cart-toast-title {
  font-size: .74rem;
  line-height: 1.2;
}
.cart-toast-name {
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(420px, 74vw);
}
.admin-app .cart-toast-name .admin-toast-highlight {
  display: inline-block;
  margin-top: .28rem;
  padding: .16rem .5rem;
  border-radius: 8px;
  background: #111827;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: .01em;
}
.cart-toast-action {
  margin-top: .42rem;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.16);
  color: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .52rem;
  cursor: pointer;
}
.cart-toast-action:hover {
  background: rgba(255,255,255,.26);
}

.cart-toast-fly-ghost {
  position: fixed;
  z-index: 1320;
  pointer-events: none;
  margin: 0;
  transition: transform .72s cubic-bezier(.2,.72,.2,1), opacity .72s ease;
  will-change: transform, opacity;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}
#product-visibility-modal {
  z-index: 1700;
}
.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
}
.cart-modal-dialog {
  position: relative;
  margin: min(18vh, 120px) auto 0;
  width: min(460px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .24);
  padding: 1rem;
}
.cart-modal-dialog h3 {
  margin: 0 0 .4rem;
}
.cart-modal-dialog p {
  margin: 0 0 .9rem;
  color: var(--muted);
}
.btn.js-product-visibility-confirm.is-destructive {
  background: #b91c1c;
}
.btn.js-product-visibility-confirm.is-destructive:hover {
  background: #991b1b;
}
.cart-modal-product {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}
.cart-modal-product-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.cart-modal-product-name {
  font-weight: 600;
}
#pq-auth-modal .btn {
  font-size: .82rem;
  padding: .5rem .72rem;
}

.cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1250;
  pointer-events: none;
}
.cookie-consent-content {
  margin: 0 auto;
  width: min(980px, 100%);
  background: linear-gradient(180deg, #f7fffa 0%, #eefcf4 100%);
  color: #1f2937;
  border: 1px solid #b7e4c7;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
  padding: .78rem .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  pointer-events: auto;
}
.cookie-consent-text {
  font-size: .9rem;
  line-height: 1.4;
}
.cookie-consent-icon {
  display: inline-block;
  margin-right: .42rem;
  font-size: 1.02rem;
  vertical-align: -1px;
}
.cookie-consent-text a {
  color: #0f766e;
  text-decoration: underline;
}
.cookie-consent-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 48px;
  padding: .72rem 1rem;
  font-size: .95rem;
}

@media (max-width: 980px) {
  .top-ribbon-inner {
    grid-template-columns: 1fr;
    gap: .35rem;
    text-align: center;
  }
  .top-ribbon-center { white-space: normal; }
  .header-main {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .brand { justify-content: center; }
  .header-actions { justify-content: center; }
  .trust-boxes { grid-template-columns: 1fr; }
  .home-feature-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-content {
    padding: .95rem .9rem 1.05rem;
  }
  .legal-content h1 {
    margin-bottom: .65rem;
  }
  .footer_container:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 26px;
    padding-bottom: 10px;
  }
  .footer_box {
    min-height: 100%;
  }
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-btn {
    width: 100%;
  }
  .product-view--admin {
    padding-bottom: 112px;
  }
  .product-admin-floating {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: max(0px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px 14px 0 0;
    padding: 8px calc(10px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    z-index: 1720;
  }
  .product-admin-floating__desktop {
    display: none !important;
  }
  .product-admin-floating__mobile {
    display: flex !important;
    width: 100%;
  }
  .product-admin-mobile-select {
    width: 100%;
  }
  .fb-slide-widget {
    top: auto;
    bottom: 112px;
    transform: none;
  }
}

@media (min-width: 981px) {
  .card-actions .btn.add-to-cart-btn {
    font-size: .88rem;
  }
}

@media (max-width: 760px) {
  .catalog-card__new-badge {
    height: auto;
    min-height: 2.2rem;
    padding: .32rem .62rem;
    font-size: .78rem;
    line-height: 1.12;
    touch-action: manipulation;
  }
  .catalog-card__new-category {
    height: auto;
    min-height: 2.2rem;
    padding: .32rem .62rem;
    font-size: .78rem;
    line-height: 1.12;
    touch-action: manipulation;
  }
  .catalog-card--with-category {
    padding-top: 3.8rem;
  }
  .catalog-card--new.catalog-card--with-category {
    padding-top: 5.35rem;
  }
  .catalog-card--new.catalog-card--with-category .catalog-card__new-category {
    top: 2.2rem;
  }
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-forgot-password__link {
    width: 100%;
    justify-content: center;
  }
  .product-layout {
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: .75rem;
  }
  .product-view--admin {
    padding-bottom: 112px;
  }
  .product-admin-floating {
    gap: 0;
  }
  .product-buy-form {
    justify-content: space-between;
  }
  .product-qty-label {
    min-width: 96px;
  }
  .product-qty-label input {
    width: 96px;
  }
  .top-ribbon-left,
  .top-ribbon-right {
    display: none;
  }
  .top-ribbon-center {
    white-space: normal;
    text-align: center;
  }
  .mobile-brand-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
  }
  .site-header.is-compact .mobile-brand-contacts {
    display: none;
  }
  .mobile-brand-contacts .top-ribbon-link {
    font-size: .88rem;
    color: #111827;
  }
  .header-icons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: .32rem;
    position: relative;
  }
  .header-search-flyout-form {
    right: 0;
    left: 0;
    top: calc(100% + 8px);
    transform: translateY(-6px) scale(.99);
    width: 100%;
  }
  .header-search-flyout-form.is-open {
    width: 100%;
    transform: translateY(0) scale(1);
  }
  .header-search-flyout-form #header-search-input {
    height: 44px;
    font-size: .95rem;
  }
  .header-icon-btn {
    min-width: 0;
    width: 100%;
    padding: .28rem .16rem;
    font-size: .7rem;
    gap: .18rem;
  }
  .header-icon-btn img {
    width: 26px;
    height: 26px;
  }
  .header-icon-svg {
    width: 26px;
    height: 26px;
  }
  .header-collapse-toggle {
    width: 34px;
    height: 19px;
    bottom: -11px;
    font-size: .9rem;
  }
  .header-expand-toggle {
    width: 38px;
    height: 22px;
    font-size: .92rem;
  }
  .header-search-suggest-item {
    grid-template-columns: 42px 1fr;
  }
  .header-search-suggest-thumb {
    width: 42px;
    height: 42px;
  }
  .header-search-suggest-price {
    grid-column: 2;
    justify-self: start;
    margin-top: .1rem;
  }
  .nav { flex-wrap: wrap; gap: .5rem; }
  .filters-actions { flex-direction: column; }
  .cart-discount-form {
    grid-template-columns: 1fr;
  }
  .section-head { flex-direction: column; align-items: stretch; }
  .home-feature-boxes { grid-template-columns: 1fr; }
  .footer_container {
    width: min(460px, 94vw);
  }
  .footer_container:first-child {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 8px;
  }
  .footer_box {
    width: 100%;
    margin-bottom: 0;
    padding: 12px 12px 11px;
  }
  .footer_copyright {
    padding: 12px 0 10px 0;
    font-size: .84rem;
  }
  .cart-toast {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    transform: translateY(14px);
  }
  .cart-toast.is-visible {
    transform: translateY(0);
  }
  .cart-toast-name {
    max-width: none;
  }
  .contact-fab {
    right: 8px;
    left: auto;
    bottom: 10px;
  }
  body.has-cookie-consent .contact-fab {
    bottom: 138px;
  }
  .contact-fab-toggle {
    width: 60px;
    height: 60px;
  }
  .contact-fab-menu {
    right: 47px;
    left: auto;
    bottom: 64px;
    width: min(220px, 78vw);
  }
  .fb-slide-widget {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: 0;
    left: auto;
  }
  .fb-slide-toggle {
    padding: .44rem .52rem;
  }
  .admin-slide-widget {
    /* Keep the admin tab below the Facebook tab on phones with a visible gap. */
    top: calc(50% + 76px);
    bottom: auto;
    right: 0;
    left: auto;
    transform: none;
  }
  .admin-slide-toggle {
    min-height: 118px;
    padding: .44rem .52rem;
  }
  .fb-slide-widget.is-open .fb-slide-panel {
    width: min(320px, 96vw);
  }
  .cart-modal-dialog {
    margin-top: 12vh;
    width: min(96vw, 520px);
  }
}
