:root {
  --bg: #e9f5ff;
  --bg-strong: #d8ecff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #f9fcff;
  --ink: #16304a;
  --muted: #67819b;
  --line: rgba(104, 157, 214, 0.18);
  --accent: #63b3ff;
  --accent-deep: #2b7fd6;
  --accent-soft: #bfe2ff;
  --emerald: #31b6c7;
  --shadow: 0 26px 60px rgba(81, 132, 179, 0.16);
  --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: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.92), transparent 14%),
    radial-gradient(circle at 74% 18%, rgba(191, 226, 255, 0.72), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.9), transparent 16%),
    linear-gradient(180deg, #f8fcff 0%, #ebf6ff 42%, #dcefff 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(43, 127, 214, 0.96), rgba(99, 179, 255, 0.92));
  box-shadow: 0 16px 36px rgba(74, 132, 197, 0.18);
  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-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__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9fd0ff, var(--accent-deep));
  color: white;
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__mark--image {
  overflow: hidden;
  padding: 0;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.brand__mark--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.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;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ghost-button {
  border: 1px solid rgba(99, 179, 255, 0.2);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.ghost-button--small {
  min-height: 40px;
  padding: 0 14px;
}

.primary-button {
  background: linear-gradient(135deg, #7ec4ff, var(--accent-deep));
  color: white;
  box-shadow: 0 16px 36px rgba(43, 127, 214, 0.24);
}

.secondary-button {
  background: linear-gradient(135deg, #ffffff, #dcefff);
  color: var(--accent-deep);
  box-shadow: 0 16px 34px rgba(122, 169, 214, 0.22);
}

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

.hero {
  position: relative;
  display: block;
  margin-bottom: 24px;
  padding: 34px;
  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);
  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__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(135deg, rgba(255, 255, 255, 0.92), rgba(214, 235, 255, 0.84));
  box-shadow: 0 18px 40px rgba(127, 171, 214, 0.16);
}

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

.hero__panel-card strong {
  display: block;
  color: var(--ink);
  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: sticky;
  top: 12px;
  z-index: 20;
  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;
}

.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);
}

.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));
}

.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.86), rgba(234, 246, 255, 0.84));
}

.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);
}

.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;
  border-radius: 20px;
  border: 1px solid rgba(99, 179, 255, 0.18);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  text-align: center;
  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;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  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;
}

.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;
}

.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__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  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;
}

.product-card__image-wrap:hover .product-card__image {
  transform: scale(1.06);
}

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

.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;
}

.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: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  margin-top: auto;
}

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

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

.product-card__price {
  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: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.96));
  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(191, 226, 255, 0.56), 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__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 {
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
  font-size: 2rem;
}

.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;
}

.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-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;
}

@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;
  }

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

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

  .compliance__grid,
  .docs-links,
  .seller-card__grid {
    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,
  .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-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__mark--image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 999px;
  }

  .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 {
    grid-template-columns: 1fr;
  }

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

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

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

  .product-card__body,
  .search-card,
  .category-filter {
    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;
  }

  .product-card__price {
    font-size: 1.24rem;
  }

  .secondary-button,
  .primary-button,
  .ghost-button {
    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%;
  }

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

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

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

  .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 {
    padding: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark--image {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .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,
  .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;
  }
}
