:root {
  --bg: #eef6ff;
  --bg-strong: #d9ebff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #10263d;
  --muted: #607a95;
  --line: rgba(79, 132, 189, 0.17);
  --accent: #49a7ff;
  --accent-deep: #1667c7;
  --accent-soft: #d6ebff;
  --accent-ink: #0d4e99;
  --emerald: #1ca6a8;
  --shadow: 0 28px 80px rgba(71, 111, 154, 0.16);
  --shadow-soft: 0 24px 56px rgba(15, 37, 61, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Verdana", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.98), transparent 18%),
    radial-gradient(circle at 28% 8%, rgba(250, 253, 255, 0.95), transparent 14%),
    radial-gradient(circle at 74% 18%, rgba(147, 206, 255, 0.42), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.82), transparent 16%),
    linear-gradient(180deg, #f9fcff 0%, #edf6ff 38%, #ddeeff 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.hidden {
  display: none !important;
}

body.admin-route {
  background:
    radial-gradient(circle at top left, rgba(191, 226, 255, 0.7), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(99, 179, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #e8f4ff 100%);
}

body.admin-route .topbar,
body.admin-route main {
  display: none;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 40px;
}

.promo-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(99, 179, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 78, 153, 0.98), rgba(58, 152, 255, 0.94));
  box-shadow: 0 18px 44px rgba(49, 103, 160, 0.2);
  animation: fade-up 0.42s ease both;
}

.promo-strip__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  padding: 12px 22px;
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar,
.hero,
.catalog-controls,
.catalog,
.modal__dialog {
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 245, 255, 0.9)),
    linear-gradient(120deg, rgba(99, 179, 255, 0.08), transparent);
  box-shadow: 0 22px 50px rgba(129, 170, 211, 0.18);
  animation: fade-up 0.5s ease both;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
  padding: 10px 18px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(118, 162, 206, 0.14);
}

.topbar-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(118, 162, 206, 0.14);
}

.topbar-cart__label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-cart__count {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f3f7a, #2b7fd6 58%, #68c0ff);
  color: white;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(28, 91, 160, 0.24);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f3f7a, #2b7fd6 58%, #68c0ff);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 18px 34px rgba(28, 91, 160, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.topbar-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(28, 91, 160, 0.28);
  filter: saturate(1.06);
}

.topbar-popover {
  position: relative;
}

.topbar-popover__trigger {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(118, 162, 206, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.topbar-popover__trigger:hover,
.topbar-popover__trigger[aria-expanded="true"] {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8fcfff, var(--accent-deep));
  color: white;
  box-shadow: 0 16px 30px rgba(43, 127, 214, 0.22);
}

.topbar-popover__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, 82vw);
  padding: 16px 16px 18px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 255, 0.96));
  box-shadow: 0 24px 50px rgba(115, 158, 202, 0.22);
  animation: fade-up 0.22s ease both;
}

.topbar-popover__panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.topbar-popover__panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.topbar-popover__panel a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.topbar-popover__panel a:hover {
  text-decoration: underline;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__logo-link {
  display: block;
  width: 248px;
  max-width: 52vw;
  flex: 0 1 248px;
  text-decoration: none;
}

.brand__logo-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(22, 103, 199, 0.18));
}

.brand__copy {
  display: grid;
  gap: 4px;
}

.brand__eyebrow,
.hero__tag,
.section-heading__eyebrow,
.modal__eyebrow {
  margin: 0 0 6px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.brand h1,
.hero h2,
.section-heading h3,
.modal h3,
.admin-list__header h3 {
  margin: 0;
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
}

.brand h1 {
  font-size: 1.7rem;
  line-height: 0.95;
}

.brand__eyebrow {
  margin-bottom: 0;
  letter-spacing: 0.18em;
}

.telegram-link__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.telegram-link__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.telegram-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 20px 44px rgba(34, 158, 217, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: soft-pop 0.5s ease 0.2s both;
}

.telegram-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(34, 158, 217, 0.34);
}

.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ghost-button {
  border: 1px solid rgba(99, 179, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 245, 255, 0.84));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px rgba(126, 167, 210, 0.12);
}

.ghost-button--small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.primary-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f3f7a, #2b7fd6 56%, #64c0ff);
  color: white;
  box-shadow: 0 18px 38px rgba(22, 103, 199, 0.3);
}

.primary-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 48%);
  pointer-events: none;
}

.secondary-button {
  border: 1px solid rgba(36, 102, 178, 0.14);
  background: linear-gradient(135deg, #ffffff, #eef6ff 55%, #dceeff);
  color: var(--accent-ink);
  box-shadow: 0 16px 34px rgba(122, 169, 214, 0.16);
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.ghost-button:hover {
  border-color: rgba(22, 103, 199, 0.22);
  box-shadow: 0 12px 28px rgba(126, 167, 210, 0.18);
}

.primary-button:hover {
  box-shadow: 0 22px 42px rgba(22, 103, 199, 0.34);
  filter: saturate(1.05);
}

.secondary-button:hover {
  box-shadow: 0 18px 36px rgba(122, 169, 214, 0.22);
}

.hero {
  position: relative;
  display: block;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(73, 167, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 242, 255, 0.9)),
    linear-gradient(120deg, rgba(99, 179, 255, 0.08), transparent);
  box-shadow: 0 34px 86px rgba(90, 134, 180, 0.18);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -8%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -4% -34% auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 226, 255, 0.88), transparent 72%);
  pointer-events: none;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.hero__content {
  display: grid;
  align-content: start;
  position: relative;
  z-index: 1;
}

.admin-route-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(227, 242, 255, 0.92)),
    linear-gradient(120deg, rgba(99, 179, 255, 0.08), transparent);
  box-shadow: var(--shadow);
}

.hero h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  line-height: 0.9;
}

.hero__text {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.06rem;
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__actions .primary-button,
.hero__actions .ghost-button {
  text-decoration: none;
}

.hero__panel {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.hero__panel-card {
  padding: 18px 18px 20px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(13, 78, 153, 0.96), rgba(62, 164, 255, 0.9));
  color: white;
  box-shadow: 0 20px 48px rgba(44, 102, 164, 0.2);
}

.hero__panel-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__panel-card strong {
  display: block;
  color: white;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.hero__metrics article,
.search-card,
.catalog,
.category-filter,
.admin-item,
.admin-layout__editor,
.admin-layout__list {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__metrics article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero__metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
}

.hero__metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-controls {
  position: static;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 240, 255, 0.82));
  box-shadow: var(--shadow);
  animation: fade-up 0.58s ease both;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.trust-strip__card {
  padding: 20px;
  border: 1px solid rgba(99, 179, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(10, 16, 26, 0.98), rgba(18, 40, 67, 0.94));
  color: white;
  box-shadow: 0 22px 48px rgba(15, 31, 51, 0.18);
  animation: fade-up 0.64s ease both;
}

.trust-strip__card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(158, 208, 255, 0.8);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-strip__card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.trust-strip__card p {
  margin: 0;
  color: rgba(230, 239, 248, 0.78);
  line-height: 1.6;
}

.service-strip__card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(228, 242, 255, 0.86));
  box-shadow: 0 20px 44px rgba(121, 166, 211, 0.16);
  animation: fade-up 0.62s ease both;
}

.service-strip__card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-strip__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.service-strip__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-controls__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: stretch;
}

.search-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.sort-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.search-card__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.search-card__field {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-card__field input,
.sort-card select,
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.stack-form input[readonly] {
  opacity: 0.8;
  cursor: default;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(214, 236, 255, 0.86));
}

.catalog-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 179, 255, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.catalog-status strong {
  font-size: 0.96rem;
}

.catalog-status span {
  color: var(--muted);
  text-align: right;
  line-height: 1.55;
}

.filter-chip {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, #8fcfff, var(--accent-deep));
  color: white;
  box-shadow: 0 12px 28px rgba(43, 127, 214, 0.22);
}

.catalog {
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 245, 255, 0.86));
}

.compliance,
.legal-page {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 246, 255, 0.88));
  box-shadow: 0 20px 46px rgba(131, 172, 213, 0.14);
  animation: fade-up 0.66s ease both;
}

.compliance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.seller-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(99, 179, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px rgba(125, 167, 208, 0.12);
}

.info-card__label,
.seller-card__eyebrow,
.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card h4,
.seller-card h4,
.legal-page h1 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

.info-card p,
.seller-card p,
.legal-page p,
.legal-page li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.seller-card {
  margin-top: 18px;
}

.seller-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 18px;
}

.seller-card__grid a,
.site-footer__docs a,
.docs-links__item,
.legal-page a {
  color: var(--accent-deep);
  text-decoration: none;
}

.seller-card__grid a:hover,
.site-footer__docs a:hover,
.docs-links__item:hover,
.legal-page a:hover {
  text-decoration: underline;
}

.docs-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.docs-links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.docs-links__item:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8fcfff, var(--accent-deep));
  color: white;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(43, 127, 214, 0.18);
}

.site-footer {
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(223, 240, 255, 0.84));
  box-shadow: 0 18px 44px rgba(131, 172, 213, 0.16);
  animation: fade-up 0.78s ease both;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.site-footer__docs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: soft-pop 0.45s ease both;
}

.site-footer__action:hover {
  transform: translateY(-1px);
}

.site-footer__action--phone {
  background: rgba(99, 179, 255, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(99, 179, 255, 0.18);
}

.site-footer__action--whatsapp {
  background: linear-gradient(135deg, #35c759, #1e9f43);
  color: white;
  box-shadow: 0 14px 30px rgba(30, 159, 67, 0.22);
}

.site-footer__action--telegram {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: white;
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.22);
}

.legal-page {
  max-width: 920px;
  margin-inline: auto;
}

.legal-page__lead {
  max-width: 70ch;
  margin-bottom: 22px !important;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading__summary {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.96));
  border: 1px solid rgba(99, 179, 255, 0.14);
  box-shadow: 0 28px 58px rgba(129, 168, 206, 0.16);
  opacity: 0;
  animation: fade-up 0.56s ease forwards;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:nth-child(2) {
  animation-delay: 0.06s;
}

.product-card:nth-child(3) {
  animation-delay: 0.12s;
}

.product-card:nth-child(4) {
  animation-delay: 0.18s;
}

.product-card:nth-child(5) {
  animation-delay: 0.24s;
}

.product-card:nth-child(6) {
  animation-delay: 0.3s;
}

.product-card:nth-child(n + 7) {
  animation-delay: 0.36s;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -20%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 226, 255, 0.8), transparent 70%);
  pointer-events: none;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 72%);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 127, 214, 0.22);
  box-shadow: 0 34px 68px rgba(104, 151, 198, 0.2);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(191, 226, 255, 0.56), rgba(255, 255, 255, 0.92));
}

.product-card__flag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b7fd6, #63b3ff);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(43, 127, 214, 0.24);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease, filter 0.35s ease;
}

.product-card__image-wrap:hover .product-card__image {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  gap: 0;
}

.product-card__meta,
.product-card__badges,
.admin-item__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-create-button {
  margin: 12px 0 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill--category {
  background: rgba(99, 179, 255, 0.14);
  color: var(--accent-deep);
}

.pill--flavor {
  background: rgba(49, 182, 199, 0.14);
  color: var(--emerald);
}

.product-card__title {
  margin: 12px 0 8px;
  font-size: 1.26rem;
  line-height: 1.06;
  color: #15324d;
}

.product-card__description,
.admin-item__description,
.modal__text,
.form-message,
.field-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card.is-description-expanded .product-card__description {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.product-card__toggle {
  align-self: flex-start;
  min-height: 34px;
  margin-top: 10px;
  padding-inline: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: 12px 0 0;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-indicator--available {
  background: rgba(49, 182, 199, 0.14);
  color: #13879a;
}

.stock-indicator--preorder {
  background: rgba(255, 177, 102, 0.18);
  color: #b46612;
}

.field-note {
  margin-top: -4px;
  font-size: 0.9rem;
}

.admin-item__warning {
  margin: 10px 0 0;
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.product-card__badges {
  margin-top: 16px;
  min-height: 34px;
  align-content: flex-start;
}

.product-card__badges:empty {
  min-height: 0;
  margin-top: 0;
}

.product-card__footer {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(99, 179, 255, 0.12);
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card__wa {
  text-decoration: none;
  color: var(--accent-deep);
}

.product-card__price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 179, 255, 0.14), rgba(255, 255, 255, 0.7));
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  color: var(--accent-deep);
}

.product-card__badges .pill {
  background: rgba(191, 226, 255, 0.52);
  color: var(--ink);
}

.empty-state {
  padding: 34px;
  margin-top: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 244, 255, 0.86));
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 10, 7, 0.48);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow-y: auto;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(73, 167, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(237, 247, 255, 0.97));
  border: 1px solid var(--line);
  box-shadow: 0 34px 100px rgba(117, 164, 209, 0.2);
}

.modal__dialog--wide {
  width: min(1160px, 100%);
}

.viewer-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.viewer-gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(187, 222, 255, 0.6), rgba(255, 255, 255, 0.92));
  cursor: crosshair;
}

.viewer-gallery__main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.viewer-gallery__lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(20, 10, 5, 0.2);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.viewer-gallery__zoom {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.viewer-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.viewer-gallery__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(126, 167, 210, 0.14);
}

.viewer-gallery__thumb.is-active {
  border-color: rgba(22, 103, 199, 0.5);
  box-shadow: 0 0 0 2px rgba(73, 167, 255, 0.22);
}

.viewer-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewer-gallery__zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.viewer-gallery__zoom-head strong {
  font-size: 0.95rem;
}

.viewer-gallery__zoom-head span {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.viewer-gallery__zoom-preview {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(191, 226, 255, 0.56), rgba(255, 255, 255, 0.92));
}

.viewer-gallery__zoom-preview.is-active {
  box-shadow: inset 0 0 0 1px rgba(212, 101, 44, 0.12);
}

.viewer-gallery__zoom-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.08s linear;
}

.viewer-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.viewer-content__back {
  width: fit-content;
  min-width: 0;
  padding-inline: 16px;
}

.viewer-content__flavor {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.viewer-content__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.viewer-content__price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 78, 153, 0.96), rgba(73, 167, 255, 0.94));
  color: white;
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
  font-size: 2rem;
  box-shadow: 0 18px 40px rgba(35, 100, 166, 0.22);
}

.viewer-content__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(99, 179, 255, 0.12);
  color: var(--ink);
  font-size: 1.4rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tabs__button {
  min-height: 46px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 800;
}

.auth-tabs__button.is-active {
  background: linear-gradient(135deg, #0f3f7a, #2b7fd6 58%, #68c0ff);
  color: white;
  box-shadow: 0 14px 28px rgba(28, 91, 160, 0.2);
}

.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form span {
  font-size: 0.92rem;
  font-weight: 700;
}

.stack-form textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.admin-layout__editor,
.admin-layout__list {
  min-height: 0;
  padding: 22px;
  border-radius: 28px;
}

.admin-items {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-height: 65vh;
  overflow: auto;
}

.admin-orders {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-orders-search {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
}

.admin-orders-search span {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-orders-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.admin-orders__empty {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.admin-order-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.admin-order-card__head,
.admin-order-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.admin-order-card__head-side,
.admin-order-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-order-card__head strong,
.admin-order-card__head p,
.admin-order-card__meta p,
.admin-order-card__items,
.admin-order-card__address {
  margin: 0;
}

.admin-order-card__head p,
.admin-order-card__meta p,
.admin-order-card__address {
  color: var(--muted);
}

.admin-order-card__total {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(73, 167, 255, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
}

.admin-order-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-order-card__status--new {
  background: rgba(255, 107, 107, 0.14);
  color: #c64848;
}

.admin-order-card__status--processed {
  background: rgba(91, 183, 124, 0.16);
  color: #2f8f53;
}

.admin-order-card__meta,
.admin-order-card__address,
.admin-order-card__items,
.admin-order-card__actions {
  margin-top: 12px;
}

.admin-order-card__items {
  padding-left: 18px;
  line-height: 1.7;
}

.admin-order-card__items span {
  color: var(--accent-deep);
}

.admin-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
}

.admin-item__image {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}

.admin-item__title,
.empty-state h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.admin-item__meta {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.checkout-zone {
  padding: 32px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(99, 179, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(10, 16, 26, 0.96), rgba(8, 13, 22, 0.98));
  box-shadow: var(--shadow-soft);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.cart-panel,
.checkout-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(8, 14, 24, 0.86);
}

.cart-panel__head,
.checkout-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(99, 179, 255, 0.12);
}

.cart-item__body {
  display: grid;
  gap: 6px;
}

.cart-item__body p,
.cart-item__body span {
  margin: 0;
  color: var(--muted);
}

.cart-item__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.cart-item__controls .ghost-button {
  min-width: 42px;
}

.cart-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(99, 179, 255, 0.12);
  display: grid;
  gap: 12px;
}

.cart-summary--accent {
  margin-top: 16px;
  padding: 18px;
  border-top: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.customer-auth-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.customer-auth-banner.is-authorized {
  border-color: rgba(91, 183, 124, 0.28);
  background: rgba(91, 183, 124, 0.1);
}

.customer-auth-banner h4,
.customer-auth-banner__text {
  margin: 0;
}

.customer-auth-banner__text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.customer-auth-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-orders {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.account-orders__empty {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

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

.account-order-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.account-order-card__head,
.account-order-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-order-card__head strong,
.account-order-card__head p,
.account-order-card__items {
  margin: 0;
}

.account-order-card__head p,
.account-order-card__meta {
  color: var(--muted);
}

.account-order-card__total {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(73, 167, 255, 0.16);
  color: #dff1ff;
  font-weight: 800;
}

.account-order-card__meta {
  margin-top: 12px;
  font-size: 0.9rem;
}

.account-order-card__items {
  margin-top: 12px;
  padding-left: 18px;
  color: #eef7ff;
  line-height: 1.7;
}

.account-order-card__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.account-order-card__item + .account-order-card__item {
  margin-top: 10px;
}

.account-order-card__item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.account-order-card__item strong,
.account-order-card__item p {
  margin: 0;
}

.account-order-card__item p {
  color: var(--muted);
}

.account-order-card__items span {
  color: var(--muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-grid label:last-child {
  grid-column: 1 / -1;
}

.checkout-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

.checkout-fieldset legend {
  margin-bottom: 12px;
  font-weight: 700;
}

.choice-card {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.choice-card input {
  margin-top: 2px;
}

.choice-card span {
  display: grid;
  gap: 4px;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.55;
}

.split-callout {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 183, 124, 0.24);
  background: rgba(91, 183, 124, 0.1);
}

.split-callout strong,
.split-callout p {
  margin: 0;
}

.split-callout p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-status {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(99, 179, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-status strong {
  display: block;
  margin-bottom: 10px;
}

.checkout-status__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-status__list li + li {
  margin-top: 6px;
}

.consent-check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.consent-check input {
  margin-top: 4px;
}

.checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.product-card__cart {
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
}

.product-card__checkout {
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  text-decoration: none;
}

.product-card__wa,
.product-card__details {
  width: 100%;
  justify-content: center;
}

.product-card__cart[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.cart-button {
  position: relative;
  overflow: hidden;
  gap: 10px;
  padding: 12px 18px;
  min-width: 0;
}

.cart-button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -38%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-18deg);
  transition: transform 0.34s ease;
}

.cart-button--wide {
  width: 100%;
}

.cart-button__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  flex: 0 0 28px;
}

.cart-button__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.cart-button__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.cart-button__count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(14, 66, 128, 0.22);
}

.product-card__cart[disabled] .cart-button__icon,
#viewerAddToCartButton[disabled] .cart-button__icon {
  background: rgba(255, 255, 255, 0.12);
}

.cart-button:hover::after {
  transform: translateX(220%) skewX(-18deg);
}

@media (max-width: 1280px) {
  .page-shell {
    width: min(100% - 28px, 1240px);
  }
}

@media (max-width: 1080px) {
  .hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .catalog-controls__top {
    grid-template-columns: 1fr;
  }

  .hero__layout {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

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

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

  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .compliance__grid,
  .docs-links,
  .seller-card__grid,
  .trust-strip,
  .checkout-layout,
  .checkout-grid,
  .checkout-actions {
    grid-template-columns: 1fr 1fr;
  }

  .viewer-gallery__zoom-head span {
    text-align: left;
  }

  .hero h2 {
    max-width: none;
  }

  .admin-route-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding: 12px 0 88px;
  }

  .catalog-controls {
    position: static;
    top: auto;
  }

  .topbar,
  .hero,
  .admin-route-hero,
  .catalog-controls,
  .compliance,
  .checkout-zone,
  .catalog,
  .modal__dialog {
    padding: 16px;
  }

  .topbar,
  .section-heading,
  .search-card__field,
  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar-popover__trigger {
    width: 100%;
  }

  .topbar-link {
    width: 100%;
    justify-content: center;
  }

  .topbar-auth,
  .topbar-cart {
    width: 100%;
  }

  .topbar-popover__panel {
    left: 0;
    right: auto;
    width: min(100%, 320px);
  }

  .product-card__actions {
    width: 100%;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    border-radius: 24px;
  }

  .brand {
    align-items: center;
    gap: 14px;
  }

  .brand__logo-link {
    width: 192px;
    flex-basis: 192px;
  }

  .brand__copy {
    min-width: 0;
  }

  .brand h1 {
    font-size: 1.2rem;
  }

  .brand__eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .compliance__grid,
  .docs-links,
  .seller-card__grid,
  .trust-strip,
  .checkout-layout,
  .checkout-grid,
  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .hero__text,
  .section-heading__summary,
  .catalog-status span {
    max-width: none;
    text-align: left;
  }

  .catalog-status {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-card__body,
  .search-card,
  .category-filter,
  .cart-panel,
  .checkout-panel {
    padding: 16px;
  }

  .telegram-float {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
    min-height: 52px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .search-card__field input,
  .stack-form input,
  .stack-form select,
  .stack-form textarea {
    padding: 14px;
  }

  .category-filter {
    flex-wrap: nowrap;
    margin-inline: -2px;
    padding: 6px 2px 10px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    justify-content: center;
  }

  .product-card__meta {
    gap: 8px;
  }

  .product-card__title {
    font-size: 1.08rem;
  }

  .product-card__description {
    line-height: 1.55;
  }

  .product-card__footer {
    margin-top: 18px;
    gap: 12px;
  }

  .product-card__actions {
    grid-template-columns: 1fr;
  }

  .product-card__price {
    width: 100%;
    justify-content: center;
    font-size: 1.24rem;
  }

  .cart-button {
    justify-content: center;
  }

  .secondary-button,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .site-footer__action,
  .docs-links__item,
  .topbar-link {
    width: 100%;
  }

  .empty-state {
    padding: 22px 16px;
  }

  .modal {
    padding: 0;
    align-items: stretch;
  }

  .modal__backdrop {
    display: none;
  }

  .modal__dialog,
  .modal__dialog--wide {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    padding: 18px 16px 28px;
    border-radius: 0;
  }

  .modal__close {
    top: 10px;
    right: 10px;
  }

  .admin-layout__editor,
  .admin-layout__list {
    padding: 16px;
    border-radius: 20px;
  }

  .admin-items {
    max-height: none;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-item__image {
    width: 100%;
    height: 180px;
  }

  .form-actions,
  .admin-item__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions > *,
  .admin-item__actions > * {
    width: 100%;
  }

  .cart-panel__head,
  .checkout-panel__head,
  .checkout-badges {
    align-items: stretch;
    justify-content: flex-start;
  }

  .customer-auth-banner {
    grid-template-columns: 1fr;
  }

  .customer-auth-banner__actions {
    justify-content: stretch;
  }

  .account-order-card__head,
  .account-order-card__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item__controls {
    width: 100%;
    justify-content: space-between;
  }

  .choice-card {
    padding: 14px;
  }

  .checkout-status,
  .split-callout,
  .cart-summary--accent {
    padding: 14px;
  }

  .admin-route-hero {
    border-radius: 22px;
  }

  .viewer-gallery__main {
    border-radius: 22px;
  }

  .viewer-gallery__zoom {
    padding: 12px;
    border-radius: 20px;
  }

  .viewer-gallery__thumbs,
  .viewer-content__actions {
    grid-template-columns: 1fr;
  }

  .viewer-gallery__zoom-head {
    align-items: start;
    flex-direction: column;
  }

  .viewer-gallery__lens {
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 16px, 1240px);
  }

  .topbar,
  .admin-route-hero,
  .compliance,
  .catalog-controls,
  .catalog,
  .checkout-zone {
    padding: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo-link {
    width: 160px;
    flex-basis: 160px;
  }

  .brand h1 {
    font-size: 1.08rem;
  }

  .brand__eyebrow,
  .hero__tag,
  .modal__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .search-card,
  .product-card__body,
  .cart-panel,
  .checkout-panel,
  .admin-layout__editor,
  .admin-layout__list {
    padding: 14px;
  }

  .search-card__field {
    gap: 10px;
  }

  .viewer-gallery__main img,
  .viewer-gallery__zoom-preview {
    aspect-ratio: 1 / 1;
  }

  .viewer-content__price {
    font-size: 1.65rem;
  }

  .viewer-content__back {
    width: 100%;
  }

  .admin-item__image {
    height: 160px;
  }

  .telegram-float span:last-child {
    font-size: 0.9rem;
  }

  .topbar__actions {
    grid-template-columns: 1fr;
  }

  .cart-summary__row {
    align-items: start;
  }

  .cart-item__controls .ghost-button {
    min-width: 52px;
  }
}
