:root {
  --bg: #f3f5f9;
  --text: #101828;
  --muted: #6e7891;
  --line: #e5eaf3;
  --blue: #2274ec;
  --blue-dark: #145bc5;
  --green: #00cc66;
  --white: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: var(--white);
  border-color: var(--line);
  border-style: solid;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-width: 0 0 1px;
}

.header-inner,
.footer-inner {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 110px;
  height: 44px;
  min-width: 110px;
  overflow: hidden;
}

.brand img {
  width: 110px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.main-nav,
.footer-nav {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--text);
  font-size: 14px;
}

.footer-menu-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: #eef5ff;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}

.site-footer.is-menu-open .footer-nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  order: 3;
  padding: 8px 0 4px;
  font-size: 14px;
}

.site-footer.is-menu-open .footer-nav a {
  padding: 7px 0;
}

.header-actions > .menu-button {
  display: none;
}

.main-nav a,
.footer-nav a {
  padding: 6px 0;
}

.main-nav .active,
.footer-nav .active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  line-height: 42px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  transition: opacity 0.16s ease;
}

.search-form input:focus {
  outline: 0;
  outline-offset: 0;
}

.search-form.is-open input {
  opacity: 1;
  pointer-events: auto;
}

.ghost-button,
.menu-button,
.back-button,
.filter-trigger,
.cart-button,
.empty-state button,
.result-line button,
.reset-filters {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-button,
.menu-button,
.back-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  line-height: 1;
}

.ghost-button:hover,
.menu-button:hover,
.back-button:hover {
  background: #eef3fb;
}

.cart-toggle {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--blue);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.language-switch select {
  width: 58px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.filter-trigger > span:not([data-icon]),
.cart-button > span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  line-height: 1;
}

.cart-button > span {
  transform: translateY(-1px);
}

.cart-button svg {
  transform: translateY(-1px);
}

[data-icon] svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.close-filters svg,
.close-cart svg,
.remove-item svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  flex: 1 0 auto;
  padding: 18px 0 36px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs span:last-child {
  color: var(--text);
}

.catalog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.catalog-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 650;
}

.catalog-banner {
  width: 100%;
  height: 390px;
  margin-bottom: 24px;
  border-radius: 8px;
  background-color: #eef5ff;
  background-image: url("./assets/banners/catalog-banner-desktop.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.catalog-search-row {
  margin-bottom: 12px;
}

.catalog-heading {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
}

.catalog-search-row input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 52px;
}

.catalog-search-row input:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(34, 116, 236, 0.18);
}

.mobile-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.mobile-chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.filter-chip.is-active {
  color: var(--white);
  background: var(--blue);
}

.filter-chip-icon {
  width: 46px;
  padding: 0;
}

.filter-chip-icon span:not([data-icon]) {
  display: none;
}

.mobile-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.filter-trigger {
  min-height: 42px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 400;
  line-height: 20px;
}

.layout {
  display: grid;
  gap: 20px;
}

.products-area {
  min-width: 0;
  scroll-margin-top: 112px;
}

.filters-desktop {
  display: none;
}

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

.filter-head strong {
  display: none;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.reset-filters {
  min-height: 20px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 16px;
  line-height: 20px;
}

.close-filters {
  margin-left: auto;
}

.filter-list {
  display: grid;
  gap: 13px;
  margin-top: 13px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--text);
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
}

.check-row span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  line-height: 20px;
}

.check-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  margin: 0;
  accent-color: var(--blue);
  transform: translateY(0);
}

.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 20px;
}

.stock-row input {
  appearance: none;
  width: 38px;
  height: 20px;
  min-width: 38px;
  min-height: 20px;
  max-width: 38px;
  max-height: 20px;
  border-radius: 999px;
  border: 0;
  background: #c9d3e4;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
}

.stock-row input::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.stock-row input:checked {
  background: var(--blue);
}

.stock-row input:checked::after {
  transform: translateX(18px);
}

.result-line {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 48px;
  gap: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  cursor: pointer;
}

.promo-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.discount {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #dcebff;
  font-size: 12px;
  font-weight: 650;
}

.promo-row .discount,
.promo-row .discount-timer {
  position: static;
}

.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 138px;
  padding-top: 10px;
  margin-bottom: 24px;
}

.product-media img {
  width: min(100%, 218px);
  height: 154px;
  object-fit: contain;
  display: block;
}

.product-copy {
  display: grid;
  grid-template-rows: 48px 44px auto auto;
  align-content: start;
  gap: 6px;
  margin-bottom: 24px;
}

.product-copy h2 {
  min-height: 48px;
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-copy p {
  margin: 0;
  height: 44px;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 0;
}

.price-row strong {
  color: var(--blue);
  font-size: 19px;
  line-height: 1.2;
}

.price-row .old-price {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.price-row .discount {
  color: var(--blue);
  font-size: 12px;
  text-decoration: none;
}

.mini-price {
  margin-bottom: 0;
  min-height: 0;
}

.mini-price strong {
  font-size: 16px;
  line-height: 20px;
}

.discount-timer {
  min-height: 22px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #d92d20;
  background: #fff1f0;
  font-size: 13px;
  line-height: 18px;
}

.discount-timer.is-empty {
  display: none;
}

.cart-button {
  width: 100%;
  min-height: 40px;
  margin-top: 0;
  gap: 8px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-weight: 400;
  line-height: 20px;
}

.cart-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button:hover {
  background: var(--blue-dark);
}

.cart-button:disabled {
  cursor: not-allowed;
  background: #9aa7bd;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.36);
  cursor: pointer;
}

.mini-cart {
  position: absolute;
  right: 0;
  top: 0;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  box-shadow: -18px 0 38px rgba(16, 24, 40, 0.16);
}

.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mini-cart-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 650;
}

.mini-cart-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 2px;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mini-cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
}

.mini-cart-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.mini-cart-copy h3 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.mini-cart-copy strong {
  font-size: 16px;
  line-height: 20px;
}

.quantity-control {
  width: max-content;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.quantity-control button,
.remove-item,
.checkout-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quantity-control button {
  width: 32px;
  height: 32px;
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 20px;
}

.quantity-control button:disabled {
  cursor: not-allowed;
  color: #9aa7bd;
}

.quantity-control span {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  border-style: solid;
  border-width: 0 1px;
  font-size: 15px;
  line-height: 20px;
}

.remove-item {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #56627a;
  background: transparent;
}

.remove-item:hover {
  color: #e04444;
  background: #fff1f1;
}

.cart-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.cart-minimum {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  line-height: 24px;
}

.cart-total strong {
  color: var(--blue);
  font-size: 20px;
  line-height: 24px;
}

.checkout-button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 400;
  line-height: 20px;
}

.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: #eef5ff;
  cursor: pointer;
  font-weight: 400;
  line-height: 20px;
}

.checkout-button:disabled {
  cursor: not-allowed;
  color: #6e7891;
  background: #dfe5ef;
}

.cart-page {
  display: grid;
  gap: 16px;
}

.cart-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cart-page-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
}

.cart-page-head strong {
  color: var(--blue);
  font-size: 24px;
  line-height: 30px;
}

.cart-page-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.cart-page-items,
.cart-summary,
.order-form-section,
.order-success {
  border-radius: 8px;
  background: var(--white);
}

.cart-page-items {
  display: grid;
  gap: 0;
  padding: 4px 16px;
}

.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
}

.cart-line + .cart-line {
  border-top: 1px solid var(--line);
}

.cart-line img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.cart-line-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.cart-line-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.cart-line-copy strong {
  color: var(--blue);
  font-size: 18px;
  line-height: 22px;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.order-form-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  scroll-margin-top: 96px;
}

.order-form-section h2,
.order-success h1 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
}

.order-form-section p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.order-form {
  display: grid;
  gap: 10px;
}

.order-form-actions {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(150px, 220px);
  justify-content: space-between;
  gap: 12px;
}

.order-form-actions .checkout-button {
  width: 220px;
  max-width: 100%;
  justify-self: end;
  grid-column: auto;
}

.order-form-actions .secondary-button {
  width: 150px;
  max-width: 100%;
  justify-self: start;
}

.order-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  line-height: 44px;
}

.order-form input:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(34, 116, 236, 0.18);
}

.order-success {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 40px 16px;
  text-align: center;
}

.success-link {
  width: min(260px, 100%);
}

.admin-shell {
  display: grid;
  gap: 16px;
}

.admin-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.admin-list-panel,
.admin-form-panel {
  border-radius: 8px;
  background: var(--white);
}

.admin-list-panel {
  padding: 16px;
}

.admin-product-list {
  display: grid;
  gap: 8px;
}

.admin-product-button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
}

.admin-product-button.is-active {
  background: #eef5ff;
}

.admin-product-button img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  grid-row: span 2;
}

.admin-product-button span,
.admin-product-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-button strong {
  color: var(--blue);
}

.admin-form-panel {
  padding: 16px;
}

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

.admin-form {
  gap: 14px;
}

.admin-form-heading {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}


.admin-form label span,
.admin-tags legend {
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="datetime-local"],
.admin-form textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="datetime-local"] {
  height: 44px;
  padding: 0 12px;
  line-height: 44px;
}

.admin-form textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.admin-translate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 2px;
}

.admin-translate-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.admin-translate-button {
  width: max-content;
  min-width: 210px;
  white-space: nowrap;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(34, 116, 236, 0.18);
}

.admin-form-grid,
.admin-images {
  display: grid;
  gap: 10px;
}

.admin-stock-row {
  align-content: end;
}

.admin-stock-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.admin-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
}

.admin-tags legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.admin-tags label {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 18px;
}

.admin-tags input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

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

.admin-preview-item {
  position: relative;
  min-width: 0;
}

.admin-preview img,
.admin-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
}

.admin-preview-item button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: #d92d20;
  cursor: pointer;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}

.admin-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16, 24, 40, 0.52);
}

.age-gate-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}

.age-gate-dialog h2,
.age-gate-dialog p {
  margin: 0;
}

.age-gate-dialog h2 {
  color: var(--text);
  font-size: 28px;
  line-height: 34px;
}

.age-gate-dialog p {
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.product-detail {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.product-page-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.product-gallery,
.product-info-panel,
.recommendations-section {
  border-radius: 8px;
  background: var(--white);
}

.product-gallery {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.gallery-main,
.gallery-thumbs button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.gallery-main {
  width: 100%;
  min-height: 280px;
  border-radius: 8px;
}

.gallery-main img {
  width: min(100%, 360px);
  height: 260px;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-thumbs button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 8px;
}

.gallery-thumbs button.is-active {
  background: #eef5ff;
}

.gallery-thumbs img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.product-info-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.product-info-panel h1 {
  margin: 0;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
}

.detail-discount-inline {
  position: static;
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 18px;
  text-decoration: none;
}

.detail-price {
  margin-bottom: 0;
}

.detail-price strong {
  font-size: 24px;
  line-height: 28px;
}

.detail-description {
  display: grid;
  gap: 10px;
}

.recommendations-section h2 {
  margin: 0;
  font-size: 22px;
  line-height: 26px;
  font-weight: 650;
}

.detail-description p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.detail-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 20px;
}

.delivery-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #eef5ff;
}

.delivery-box h2 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 650;
}

.delivery-row {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: end;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 20px;
}

.delivery-row i {
  display: block;
  min-width: 24px;
  height: 1px;
  border-bottom: 1px dotted #8aa4cb;
  transform: translateY(-4px);
}

.delivery-row strong {
  font-weight: 600;
}

.delivery-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.stock-status {
  margin: 0;
  color: var(--green);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.reserve-note {
  display: grid;
  gap: 14px;
}

.reserve-note p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.text-button {
  width: max-content;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.detail-cart-button {
  min-height: 46px;
}

.detail-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.detail-cart-row:has(.detail-remove-button) {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.detail-remove-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 6px;
  background: #eef5ff;
  color: var(--blue);
}

.detail-actions {
  display: grid;
  gap: 10px;
}

.detail-secondary-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recommendations-section {
  display: grid;
  gap: 16px;
  padding: 18px 0 0;
  background: transparent;
}

.recommendation-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(272px, calc(100vw - 32px));
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.recommendation-card {
  scroll-snap-align: start;
  height: 100%;
}

.recommendation-card .product-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommendation-card .product-copy p {
  height: 44px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommendation-card .cart-button {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
}

.description-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.reserve-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.description-backdrop,
.reserve-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.36);
  cursor: pointer;
}

.description-dialog,
.reserve-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100% - 32px));
  max-height: min(80vh, 620px);
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
}

.description-dialog p,
.reserve-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.reserve-dialog strong {
  font-size: 18px;
  line-height: 22px;
}

.reserve-form {
  display: grid;
  gap: 10px;
}

.reserve-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  line-height: 44px;
}

.reserve-form input:focus {
  outline: 0;
  outline-offset: 0;
}

.close-description svg,
.close-reserve svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.filter-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.35);
}

.filters-mobile {
  position: absolute;
  inset: auto 0 0;
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: 22px 20px 28px;
  border-radius: 16px 16px 0 0;
  background: var(--white);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}

.page-loader {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.page-loader img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.empty-state h2 {
  margin: 0;
  font-size: 22px;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.telegram-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 400;
  line-height: 20px;
}

.site-footer {
  flex: 0 0 auto;
  border-width: 1px 0 0;
}

.footer-inner {
  flex-wrap: nowrap;
  padding: 12px 0;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

@media (max-width: 559px) {
  .catalog-banner {
    height: min(390px, calc((100vw - 32px) * 0.72));
    margin-bottom: 14px;
    background-image: url("./assets/banners/catalog-banner-mobile.png");
  }

  .catalog-search-row {
    position: sticky;
    top: 72px;
    z-index: 18;
    padding: 8px 0 6px;
    margin-bottom: 0;
    background: var(--bg);
  }

  .catalog-search-row input {
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 48px;
  }

  .mobile-chip-row {
    position: sticky;
    top: 134px;
    z-index: 18;
    padding: 6px 0 10px;
    margin-bottom: 10px;
    background: var(--bg);
  }

  .mini-cart {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: 88vh;
    padding: 20px 16px 18px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 38px rgba(16, 24, 40, 0.16);
  }

  .mini-cart-list {
    scrollbar-width: none;
  }

  .mini-cart-list::-webkit-scrollbar {
    display: none;
  }

  .mini-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 40px;
  }

  .mini-cart-item img {
    width: 64px;
    height: 64px;
  }

  .products-area {
    scroll-margin-top: 156px;
  }

  .description-dialog,
  .reserve-dialog {
    inset: auto 0 0;
    left: 0;
    top: auto;
    width: 100%;
    max-height: 82vh;
    padding: 20px 16px 24px;
    border-radius: 16px 16px 0 0;
    transform: none;
    box-shadow: 0 -18px 38px rgba(16, 24, 40, 0.16);
  }

  .admin-translate-row {
    display: grid;
    justify-items: start;
  }

  .admin-translate-button {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 560px) {
  .shell {
    width: min(100% - 48px, 1200px);
  }

  .catalog-banner {
    background-image: url("./assets/banners/catalog-banner-tablet.png");
  }

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

  .recommendation-grid {
    gap: 14px;
  }

  .catalog-title h1 {
    font-size: 36px;
  }
}

@media (min-width: 768px) {
  .search-form {
    position: relative;
  }

  .search-form input {
    position: static;
    width: 0;
    height: 40px;
    padding: 0;
    border-width: 0;
    line-height: 40px;
    box-shadow: none;
    transition: width 0.16s ease, padding 0.16s ease, border-width 0.16s ease, opacity 0.16s ease;
  }

  .search-form.is-open input {
    width: 220px;
    padding: 0 12px;
    border-width: 1px;
  }

  .main-nav,
  .footer-nav {
    display: flex;
  }

  .footer-nav {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .footer-menu-button {
    display: none;
  }

  .header-inner,
  .footer-inner {
    min-height: 78px;
  }

  .page {
    padding-top: 26px;
  }

  .mobile-filter-bar {
    display: none;
  }

  .mobile-chip-row {
    display: none;
  }

  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .filters-desktop {
    display: block;
    position: sticky;
    top: 102px;
    max-height: calc(100vh - 122px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
  }

  .filters-desktop::-webkit-scrollbar {
    display: none;
  }

  .result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
  }

  .product-page-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 20px;
  }

  .cart-page-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
  }

  .order-form-section {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    padding: 18px;
  }

  .cart-page-layout.is-form-step .order-form-section {
    grid-row: 1;
  }

  .cart-summary {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

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

  .order-form .checkout-button {
    grid-column: 1 / -1;
  }

  .order-form-actions {
    grid-column: 1 / -1;
  }

  .order-form-actions .checkout-button {
    grid-column: auto;
  }

  .admin-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
  }

  .admin-list-panel {
    position: sticky;
    top: 102px;
  }

  .admin-form-panel {
    padding: 20px;
  }

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

  .product-info-panel {
    position: sticky;
    top: 102px;
  }
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
  }

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

  .recommendation-grid {
    gap: 14px;
  }

  .product-page-layout {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 24px;
  }

  .cart-page-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
  }

  .product-card {
    padding: 14px;
  }

  .product-media {
    min-height: 160px;
  }

  .product-media img {
    width: min(100%, 238px);
    height: 176px;
  }

  .gallery-main {
    min-height: 480px;
  }

  .gallery-main img {
    height: 420px;
  }
}

@media (min-width: 1280px) {
  .shell {
    width: min(100% - 64px, 1200px);
  }

  .catalog-banner {
    background-image: url("./assets/banners/catalog-banner-desktop.png");
  }

  .main-nav,
  .footer-nav {
    gap: 24px;
  }

  .layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
  }

  .product-grid {
    gap: 16px;
  }
}
