:root {
  --line: rgb(255 255 255 / 20%);
  --line-warm: rgb(248 229 65 / 42%);
  --text: #f7f8fb;
  --muted: #b8c0cc;
  --accent: #f8e541;
  --accent-dark: #e0cc20;
  --accent-soft: rgb(248 229 65 / 16%);
  --accent-focus: rgb(248 229 65 / 36%);
  --accent-contrast: #071735;
  --ok: #157347;
  --shadow-sm: 0 2px 10px rgb(0 0 0 / 34%);
  --shadow-md: 0 16px 42px rgb(0 0 0 / 42%);
  --side-gap: 18px;
  --cart-width: 285px;
  --topbar-height: 71px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgb(248 229 65 / 20%) 0, transparent 310px),
    linear-gradient(180deg, #22262e 0, #12151b 190px, #06070a 100%);
  color: var(--text);
  font-family: "Segoe UI", "Inter", "Roboto", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

html,
body,
#app {
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.mobile-only,
.mobile-actions,
.mobile-catalog-bar {
  display: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgb(30 34 42 / 96%) 0%, rgb(15 18 24 / 96%) 100%);
  border-color: var(--line);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.brand {
  min-width: 190px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.search {
  position: relative;
  display: flex;
  flex: 1;
  gap: 8px;
}

.search-icon {
  display: none;
}

.search input,
.field,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 6px;
  background: rgb(255 255 255 / 8%);
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.search input {
  font-weight: 700;
  text-transform: uppercase;
}

.field::placeholder,
.search input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.search-clear {
  display: none;
}

.search input:focus,
.field:focus,
textarea:focus {
  outline: none;
  background: rgb(255 255 255 / 12%);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-focus);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff06a 0%, var(--accent) 100%);
  color: var(--accent-contrast);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgb(248 229 65 / 24%);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  overflow: hidden;
}

.btn::after,
.add-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 34%) 36%, transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-90%);
  transition: opacity 0.18s ease, transform 0.4s ease;
}

.btn:hover,
.add-button:hover {
  background: linear-gradient(180deg, #ffe94f 0%, var(--accent-dark) 100%);
  box-shadow: 0 8px 18px rgb(224 204 32 / 28%);
  transform: translateY(-1px);
}

.btn:hover::after,
.add-button:hover::after {
  opacity: 1;
  transform: translateX(90%);
}

.btn:active,
.add-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgb(224 204 32 / 22%);
}

.btn.secondary {
  border: 1px solid rgb(255 255 255 / 24%);
  background: linear-gradient(180deg, rgb(255 255 255 / 12%) 0%, rgb(255 255 255 / 7%) 100%);
  color: var(--text);
  box-shadow: 0 6px 14px rgb(0 0 0 / 24%);
}

.btn.secondary:hover {
  border-color: rgb(248 229 65 / 62%);
  background: linear-gradient(180deg, rgb(248 229 65 / 18%) 0%, rgb(255 255 255 / 9%) 100%);
}

.cart-pulse {
  animation: cartPulse 0.46s ease-out;
}

.cart-total-flash {
  position: fixed;
  z-index: 90;
  display: flex;
  align-items: center;
  color: var(--accent);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  pointer-events: none;
  transform-origin: left center;
  animation: cartTotalFlash 0.46s ease-out both;
  filter: drop-shadow(0 0 10px rgb(248 229 65 / 62%));
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
    filter: none;
  }

  42% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgb(248 229 65 / 62%));
  }

  100% {
    transform: scale(1);
    filter: none;
  }
}

.layout {
  display: block;
  padding: calc(var(--topbar-height) + 16px) 319px 16px 234px;
}

.panel {
  background: linear-gradient(180deg, rgb(30 34 42 / 96%) 0%, rgb(15 18 24 / 96%) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.sidebar,
.cart {
  position: fixed;
  top: calc(var(--topbar-height) + 15px);
  bottom: 16px;
  max-height: none;
  overflow: auto;
}

.sidebar,
.cart,
.cart-items {
  scrollbar-width: thin;
  scrollbar-color: rgb(248 229 65 / 42%) #11141a;
}

.sidebar {
  left: var(--side-gap);
  width: 200px;
}

.cart {
  display: flex;
  flex-direction: column;
  right: var(--side-gap);
  width: var(--cart-width);
  padding-bottom: 0;
  z-index: 4;
  overflow: hidden;
}

.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  background:
    linear-gradient(135deg, rgb(248 229 65 / 10%), transparent 44%),
    linear-gradient(180deg, rgb(30 34 42 / 96%) 0%, rgb(15 18 24 / 96%) 100%);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.category {
  width: 100%;
  padding: 8px 11px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  transition: background 0.14s ease, color 0.14s ease, padding-left 0.14s ease;
}

.category:hover,
.category.active {
  background: rgb(248 229 65 / 14%);
}

.category.active {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}

.category:hover {
  padding-left: 14px;
}

.category-row {
  position: relative;
}

.category-select {
  padding-right: 34px;
}

.category-root .category-select {
  font-weight: 700;
}

.category-row.is-ancestor .category-select {
  color: var(--accent);
  font-weight: 700;
}

.category-children {
  margin-left: 12px;
  border-left: 1px solid var(--line);
}

.category-toggle {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  transform: translateY(-50%);
}

.category-toggle:hover {
  background: var(--accent-soft);
}

.category-select:focus-visible,
.category-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.category-toggle::before {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: transform 0.14s ease;
}

.category-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 7px;
}

.mobile-catalog-accordion {
  display: none;
}

.accordion-grid {
  display: grid;
  gap: 7px;
  overflow-anchor: auto;
}

.category-tile {
  width: 100%;
  grid-template-columns: 62px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 102px;
  color: var(--text);
  text-align: left;
}

.category-tile-mark {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgb(248 229 65 / 42%);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 22%), rgb(255 255 255 / 5%)),
    rgb(255 255 255 / 7%);
}

.category-tile-mark::before {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  content: "";
  box-shadow: 0 8px 18px rgb(248 229 65 / 22%);
}

.category-tile-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.category-tile-info strong {
  font-size: 17px;
  line-height: 1.16;
}

.category-tile-info small {
  color: var(--muted);
  font-size: 12px;
}

.category-tile-arrow {
  justify-self: end;
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.66;
  transform: rotate(45deg);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.category-tile.active .category-tile-arrow {
  opacity: 1;
  transform: rotate(225deg);
}

.accordion-products {
  animation: accordionOpen 0.18s ease-out;
}

.subcategory-list {
  display: grid;
  gap: 5px;
  margin: -2px 0 5px;
  padding: 0 10px;
  animation: accordionOpen 0.18s ease-out;
}

.subcategory-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 7px;
  background: rgb(255 255 255 / 7%);
  color: var(--text);
  text-align: left;
}

.subcategory-tile span {
  overflow: hidden;
  font-size: 22px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subcategory-tile small {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 14px;
  background: rgb(248 229 65 / 18%);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.subcategory-tile.active {
  border-color: rgb(248 229 65 / 52%);
  background: rgb(248 229 65 / 13%);
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

@keyframes subcategoryPanelOpen {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

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

@keyframes subcategoryDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

@keyframes categoryArrowPop {
  0% {
    transform: rotate(0deg) scale(1);
  }

  45% {
    transform: rotate(90deg) scale(1.1);
  }

  100% {
    transform: rotate(180deg) scale(1);
  }
}



.card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: 1fr;
  grid-template-areas:
    "image info";
  column-gap: 10px;
  min-height: 102px;
  padding: 6px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 9%) 0%, transparent 42%),
    linear-gradient(180deg, #20242c 0%, #11141a 100%);
  border: 1px solid rgb(255 255 255 / 22%);
  color: var(--text);
  border-radius: 8px;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  isolation: isolate;
}

.card::before,
.cart-item::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 16%), transparent 34%),
    linear-gradient(315deg, rgb(7 23 53 / 3%), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.card:hover {
  background:
    linear-gradient(135deg, rgb(248 229 65 / 12%) 0%, transparent 42%),
    linear-gradient(180deg, #252a33 0%, #141820 100%);
  border-color: var(--line-warm);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card:hover::before,
.cart-item:hover::before {
  opacity: 1;
}

[data-product-card].in-cart {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(248 229 65 / 34%), var(--shadow-sm);
}

.thumb {
  grid-area: image;
  align-self: center;
  display: grid;
  place-items: center;
  width: 90px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 10%), transparent 44%),
    #f6f7f9;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%);
  padding: 0;
  cursor: zoom-in;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.22s ease;
}

[data-product-card]:hover .thumb img {
  transform: scale(1.025);
}

.image-preview-open {
  overflow: hidden;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(10px);
  animation: imagePreviewFade 0.18s ease-out both;
}

.image-preview-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(82.5vw, 682px);
  max-width: 82.5vw;
  max-height: 82.5vh;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border: 3px solid rgb(255 255 255 / 48%);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 10%) 0%, transparent 42%),
    linear-gradient(180deg, #252a33 0%, #11141a 100%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 56%);
  animation: imagePreviewZoom 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.image-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  background: #f6f7f9;
}

.image-preview-close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 18px rgb(0 0 0 / 30%);
}

@keyframes imagePreviewFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes imagePreviewZoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card-info {
  grid-area: info;
  min-width: 0;
  align-self: start;
  padding: 0 0 30px;
  min-height: 0;
}

[data-product-card] h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-description {
  display: -webkit-box;
  overflow: hidden;
  max-width: 78%;
  margin: 0 0 0;
  padding-right: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-price {
  position: absolute;
  left: 108px;
  right: 112px;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 31px;
  gap: 5px;
  margin-top: 0;
  min-width: 0;
  padding-right: 0;
}

.price {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.unit {
  color: var(--muted);
  font-size: 12px;
}

.card-action {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: auto;
  width: max-content;
  margin-top: 0;
  overflow: visible;
}

.add-button {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff06a 0%, var(--accent) 100%);
  color: var(--accent-contrast);
  box-shadow: 0 5px 12px rgb(248 229 65 / 24%);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  overflow: hidden;
}

.add-button span::before,
.add-button span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.add-button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qty {
  display: inline-grid;
  grid-template-columns: 31px 38px 31px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 4px;
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 1px 4px rgb(7 23 53 / 5%);
}

.qty button {
  background: rgb(255 255 255 / 8%);
  color: var(--text);
  font-size: 130%;
  line-height: 1;
  transition: background 0.14s ease;
}

[data-product-card] .qty button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

[data-product-card] .qty button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text);
  content: "";
  transform: translate(-50%, -50%);
}

[data-product-card] .qty button[data-inc]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 19px;
  border-radius: 999px;
  background: var(--text);
  content: "";
  transform: translate(-50%, -50%);
}

.qty button:hover {
  background: rgb(248 229 65 / 24%);
}

.qty input {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  padding: 0 3px;
  border: 0;
  background: rgb(255 255 255 / 8%);
  color: var(--text);
  text-align: center;
  font: inherit;
  font-size: calc(1em + 1px);
  font-weight: 500;
  appearance: textfield;
}

.qty input:focus-visible {
  position: relative;
  z-index: 1;
  outline: none;
  background: rgb(248 229 65 / 12%);
  box-shadow: inset 0 0 0 0.5px var(--accent);
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 88px;
  grid-template-areas:
    "image info info"
    "image sum qty";
  align-items: start;
  gap: 5px 7px;
  height: 76px;
  padding: 7px 8px;
  font-size: 11px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 9%) 0%, transparent 42%),
    linear-gradient(180deg, #20242c 0%, #11141a 100%);
  border-bottom: 1px solid;
  border-color: rgb(255 255 255 / 22%);
  transition: background 0.14s ease;
  isolation: isolate;
}

.cart-items {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.cart-item:hover {
  background:
    linear-gradient(135deg, rgb(248 229 65 / 12%) 0%, transparent 42%),
    linear-gradient(180deg, #252a33 0%, #141820 100%);
}

.cart-thumb {
  grid-area: image;
  align-self: center;
  display: grid;
  place-items: center;
  width: 55px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 10%), transparent 44%),
    #f6f7f9;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cart-item-info {
  grid-area: info;
  min-width: 0;
  padding-left: 10px;
  padding-right: 24px;
}

.cart-item-info strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: calc(1em + 1px);
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-item-sum {
  grid-area: sum;
  align-self: end;
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding-left: 10px;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

.cart-item-sum strong {
  font-size: 14px;
  font-weight: 800;
}

.cart-item-sum span {
  color: var(--muted);
  font-size: 9px;
}

.cart-item-sum small {
  display: inline;
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.cart-remove {
  position: absolute;
  top: 5px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 20px;
  padding: 0;
  border-radius: 6px;
  border-color: rgb(255 167 157 / 55%);
  background: rgb(95 27 23 / 48%);
  color: #d92d20;
  font-size: 18px;
  line-height: 1;
}

.cart-remove:hover {
  background: #eef1f4;
  color: #b42318;
}

.cart .qty {
  grid-area: qty;
  width: 76px;
  grid-template-columns: 22px 32px 22px;
  align-self: end;
  justify-self: end;
  margin-right: 0;
}

.cart .qty input {
  min-height: 22px;
  font-size: 12px;
}

.cart .qty button {
  font-size: 16px;
}

.cart-total {
  position: static;
  flex-shrink: 0;
  margin: 0 12px;
  z-index: 5;
  width: auto;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid;
  border-color: rgb(255 255 255 / 16%);
  background: linear-gradient(180deg, rgb(20 24 32 / 96%), rgb(9 11 16 / 98%));
  box-shadow: 0 -6px 16px rgb(7 23 53 / 5%);
  font-size: 15px;
  font-weight: 800;
}

.desktop-checkout-bar {
  position: static;
  flex-shrink: 0;
  margin: 0 12px;
  z-index: 5;
  width: auto;
  display: grid;
  gap: 6px;
  padding: 8px 12px 10px;
  border-top: 1px solid;
  border-color: rgb(255 255 255 / 16%);
  background: linear-gradient(180deg, rgb(20 24 32 / 96%), rgb(9 11 16 / 98%));
  box-shadow: 0 -6px 16px rgb(7 23 53 / 5%);
}

.desktop-checkout-bar .btn {
  min-height: 36px;
  font-size: 13px;
}

.checkout {
  display: grid;
  gap: 10px;
  padding: 12px;
  font-size: 13px;
}

/* Order submission feedback, shared by both checkout forms. */
.checkout-submit[aria-busy="true"] {
  background: linear-gradient(180deg, #f5e77a 0%, var(--accent) 100%);
  cursor: wait;
  transform: none;
  animation: checkout-press 0.14s ease-out;
}

.checkout-submit[aria-busy="true"]::after {
  opacity: 0;
}

.checkout-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 8px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: checkout-spin 0.75s linear infinite;
}

.checkout-submit[aria-busy="true"] .checkout-spinner {
  display: inline-block;
}

.checkout-wait {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-warm);
  border-radius: 6px;
  background: linear-gradient(110deg, rgb(248 229 65 / 12%), transparent 75%), #20252e;
  color: #fff09a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.checkout-wait::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgb(248 229 65 / 65%);
  vertical-align: 2px;
  content: "";
}

.checkout-wait.is-visible {
  opacity: 1;
  visibility: visible;
}

@keyframes checkout-press {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(0.97); }
}

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

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 62%);
}

.order-modal-form {
  position: relative;
  width: min(420px, 100%);
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 8%) 0%, transparent 42%),
    linear-gradient(180deg, #252a33 0%, #11141a 100%);
  color: var(--text);
  box-shadow: 0 24px 56px rgb(0 0 0 / 56%);
}

.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  font-size: 17px;
}

.order-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  background: rgb(255 255 255 / 10%);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.mobile-cart-bar,
.mobile-checkout-submit {
  background: linear-gradient(180deg, rgb(30 34 42 / 96%) 0%, rgb(15 18 24 / 96%) 100%);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.mobile-cart-bar,
.mobile-checkout,
.mobile-cart-page-head {
  display: none;
}

.empty,
.status {
  padding: 28px;
  background: rgb(20 24 32 / 88%);
  border-color: var(--line);
  color: var(--text);
  text-align: center;
}

.success {
  color: var(--ok);
  font-weight: 700;
}

.order-success-modal,
.remove-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.order-success-modal {
  background: rgb(7 23 53 / 32%);
}

.remove-confirm-modal {
  background: rgb(0 0 0 / 62%);
}

.order-success-card,
.remove-confirm-card {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgb(248 229 65 / 8%) 0%, transparent 42%),
    linear-gradient(180deg, #252a33 0%, #11141a 100%);
  color: var(--text);
  box-shadow: 0 24px 56px rgb(0 0 0 / 56%);
  text-align: center;
}

.order-success-card strong,
.remove-confirm-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.order-success-card p,
.remove-confirm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.order-success-card small {
  color: var(--muted);
  font-size: 13px;
}

.order-success-card .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.remove-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.remove-confirm-actions .btn {
  min-height: 42px;
}

.btn.danger {
  background: linear-gradient(180deg, #ff6f61, #e44235);
  color: #fff;
  box-shadow: 0 10px 22px rgb(228 66 53 / 22%);
}

@media (min-width: 761px) and (max-width: 1100px) {
  .layout {
    padding: calc(var(--topbar-height) + 14px) 274px 14px 184px;
  }

  :root {
    --side-gap: 12px;
    --cart-width: 250px;
  }

  .sidebar {
    left: var(--side-gap);
    width: 160px;
  }

  .cart {
    right: var(--side-gap);
    width: var(--cart-width);
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .desktop-cart-total,
  .desktop-checkout-bar {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .brand {
    min-width: 160px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 94px;
  }

  body {
    background:
      radial-gradient(circle at 16% -6%, rgb(248 229 65 / 22%) 0, transparent 250px),
      linear-gradient(180deg, #242831 0, #11141a 150px, #050608 100%);
  }

  .desktop-only,
  .brand span {
    display: none;
  }

  .mobile-only,
  .mobile-actions {
    display: flex;
  }

  .topbar {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 7px 10px;
    align-items: center;
    padding: 8px 13px 7px;
    min-height: var(--topbar-height);
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .mobile-topbar-hidden .topbar {
    transform: translateY(calc(-1 * var(--topbar-height)));
    box-shadow: none;
  }

  .topbar::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(248 229 65 / 70%), transparent);
    content: "";
  }

  .brand {
    min-width: 0;
    align-self: center;
  }

  .brand strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-actions {
    align-items: center;
    align-self: center;
    gap: 8px;
  }

  .icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--text);
    transition: transform 0.14s ease, background 0.14s ease;
  }

  .icon-button:active {
    transform: scale(0.94);
    background: var(--accent-soft);
  }

  .hamburger,
  .user-icon,
  .cart-icon,
  .search-icon {
    display: block;
    background: currentColor;
  }

  .hamburger {
    width: 26px;
    height: 26px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%206h16'/%3E%3Cpath%20d='M4%2012h16'/%3E%3Cpath%20d='M4%2018h16'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%206h16'/%3E%3Cpath%20d='M4%2012h16'/%3E%3Cpath%20d='M4%2018h16'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .hamburger::before,
  .hamburger::after {
    content: none;
  }

  .user-icon {
    width: 27px;
    height: 27px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .user-icon::before {
    content: "";
    display: none;
  }

  .user-icon::after {
    content: "";
    display: none;
  }

  .cart-icon {
    width: 28px;
    height: 28px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='8'%20cy='21'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='21'%20r='1'/%3E%3Cpath%20d='M2.05%202.05h2l2.66%2012.42a2%202%200%200%200%202%201.58h9.78a2%202%200%200%200%201.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='8'%20cy='21'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='21'%20r='1'/%3E%3Cpath%20d='M2.05%202.05h2l2.66%2012.42a2%202%200%200%200%202%201.58h9.78a2%202%200%200%200%201.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .cart-icon::before {
    content: "";
    display: none;
  }

  .cart-icon::after {
    content: "";
    display: none;
  }

  .cart-badge {
    position: absolute;
    right: 1px;
    top: 2px;
    display: inline-grid;
    place-items: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 10px;
    line-height: 15px;
  }

  .search {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 22px;
    height: 22px;
    color: var(--muted);
    transform: translateY(-50%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.15'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m21%2021-4.34-4.34'/%3E%3Ccircle%20cx='11'%20cy='11'%20r='8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.15'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m21%2021-4.34-4.34'/%3E%3Ccircle%20cx='11'%20cy='11'%20r='8'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .search-icon::after {
    content: "";
    display: none;
  }

  .search input {
    min-height: 34px;
    padding: 7px 10px 7px 40px;
    border-radius: 8px;
    font-size: 17px;
  }

  .search.has-search-value input,
  .search input:not(:placeholder-shown) {
    padding-right: 40px;
  }

  .search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgb(248 229 65 / 58%);
    border-radius: 50%;
    background:
      linear-gradient(180deg, rgb(248 229 65 / 96%), rgb(224 204 32 / 96%));
    box-shadow: 0 2px 8px rgb(248 229 65 / 22%);
    transform: translateY(-50%);
    touch-action: manipulation;
  }

  .search.has-search-value .search-clear,
  .search input:not(:placeholder-shown) ~ .search-clear {
    display: inline-flex;
  }

  .search-clear::before,
  .search-clear::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-contrast);
  }

  .search-clear::before {
    transform: rotate(45deg);
  }

  .search-clear::after {
    transform: rotate(-45deg);
  }

  .search-clear:active {
    box-shadow: 0 0 0 2px rgb(248 229 65 / 24%);
  }

  .search input::placeholder {
    text-transform: none;
  }

  .search input:focus::placeholder {
    color: transparent;
  }

  .search-submit {
    display: none;
  }

  .layout {
    display: block;
    padding: var(--topbar-height) 0 0;
  }

  .desktop-catalog-products {
    display: none;
  }


  .sidebar {
    display: none;
    position: fixed;
    inset: var(--topbar-height) 0 auto 0;
    width: auto;
    z-index: 6;
    max-height: calc(100vh - var(--topbar-height));
    border-radius: 0;
    border-width: 1px 0;
  }

  .sidebar .panel-head {
    padding: 13px 16px;
    font-size: 15px;
  }

  .sidebar .mobile-menu-head {
    display: block;
  }

  .sidebar .category {
    padding: 11px 15px;
    font-size: 16px;
    line-height: 1.25;
  }

  .sidebar .mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-weight: 800;
    text-decoration: none;
  }

  .sidebar .mobile-menu-link.disabled {
    cursor: default;
    opacity: 0.55;
  }

  .sidebar .category:hover {
    padding-left: 18px;
  }

  .categories-open .sidebar {
    display: block;
  }

  .catalog {
    margin: 0;
  }

  .cart {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    width: auto;
    z-index: 35;
    margin: 0;
    padding-bottom: 0;
    height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    background:
      radial-gradient(circle at 16% 0%, rgb(248 229 65 / 15%) 0, transparent 240px),
      #fff;
    box-shadow: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cart::before,
  .cart.checkout-open::before {
    position: fixed;
    top: 58px;
    right: 0;
    left: 0;
    height: 120px;
    background: linear-gradient(180deg, rgb(248 229 65 / 10%), transparent);
    content: "";
    pointer-events: none;
  }

  .cart .empty {
    margin: 0 8px;
  }

  .cart > .panel-head {
    display: none;
  }

  .mobile-cart-page-head {
    position: sticky;
    top: 0;
    z-index: 36;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    background: linear-gradient(180deg, #242831 0%, #12151b 100%);
    color: var(--text);
    box-shadow: 0 4px 14px rgb(7 23 53 / 6%);
    backdrop-filter: blur(12px);
  }

  .mobile-cart-page-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
  }

  .cart-total,
  .desktop-cart-total,
  .desktop-checkout-bar,
  .order-modal {
    display: none;
  }

  .mobile-cart-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 11px;
    align-items: center;
    padding: 11px 13px calc(11px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgb(24 28 36 / 94%) 0%, rgb(8 10 14 / 98%) 100%);
    border-top-color: rgb(255 255 255 / 14%);
    backdrop-filter: blur(12px);
  }

  .mobile-cart-bar::before,
  .mobile-checkout-submit::before {
    position: absolute;
    top: 0;
    right: 13px;
    left: 13px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(248 229 65 / 75%), transparent);
    content: "";
  }

  .mobile-cart-summary {
    min-width: 0;
  }

  .mobile-cart-summary strong {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
  }

  .mobile-cart-summary span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.15;
  }

  .mobile-cart-bar .btn {
    min-height: 45px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-catalog-bar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 35;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 60px;
    padding: 9px 133px 9px 10px;
    border: 1px solid rgb(234 223 186 / 85%);
    border-radius: 12px;
    background: linear-gradient(180deg, rgb(24 28 36 / 94%) 0%, rgb(8 10 14 / 98%) 100%);
    border-top-color: rgb(255 255 255 / 14%);
    box-shadow: 0 10px 28px rgb(7 23 53 / 14%);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: left 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), padding-right 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), gap 0.22s ease;
  }

  .mobile-catalog-bar::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(248 229 65 / 80%), transparent);
    content: "";
    transition: opacity 0.18s ease;
  }

  .mobile-catalog-summary {
    min-width: 0;
    max-width: 240px;
    overflow: hidden;
    transition: max-width 0.2s ease, opacity 0.18s ease, transform 0.2s ease;
  }

  .mobile-catalog-summary strong {
    display: block;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 900;
  }

  .mobile-catalog-summary span {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-catalog-bar .btn {
    position: absolute;
    top: 9px;
    right: 10px;
    bottom: 9px;
    width: 114px;
    min-height: 40px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    touch-action: manipulation;
  }

  .mobile-catalog-bar-compact .mobile-catalog-bar {
    left: calc(100% - 144px);
    gap: 0;
    padding-right: 10px;
  }

  .mobile-catalog-bar-compact .mobile-catalog-summary {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  .cart-open .mobile-catalog-bar,
  .categories-open .mobile-catalog-bar {
    display: none;
  }

  .cart.checkout-open {
    inset: 0;
    padding-bottom: 78px;
    max-height: none;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background:
      radial-gradient(circle at 16% 0%, rgb(248 229 65 / 15%) 0, transparent 240px),
      #fff;
    -webkit-overflow-scrolling: touch;
  }

  .cart.checkout-open .panel-head,
  .cart.checkout-open .mobile-cart-page-head,
  .cart.checkout-open .cart-items,
  .cart.checkout-open .cart-item,
  .cart.checkout-open .mobile-cart-bar,
  .cart.checkout-open .empty {
    display: none;
  }

  .cart-open .cart:not(.checkout-open) .mobile-cart-bar {
    display: grid;
  }

  .cart-open .cart:not(.checkout-open) .cart-items {
    flex: 1;
    min-height: 0;
    padding-top: 2px;
    padding-bottom: 78px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart.checkout-open .mobile-checkout {
    display: block;
    min-height: 100dvh;
  }

  .mobile-checkout-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    background: linear-gradient(180deg, rgb(36 40 49 / 98%) 0%, rgb(18 21 27 / 98%) 100%);
    color: var(--text);
    box-shadow: 0 6px 20px rgb(0 0 0 / 34%);
    backdrop-filter: blur(12px);
  }

  .mobile-checkout-head h2,
  .mobile-checkout h1 {
    color: var(--text);
  }

  .mobile-checkout-head h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 900;
  }

  .mobile-back {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-back::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 9px auto 0;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    transform: rotate(45deg);
  }

  .mobile-checkout h1 {
    margin: 14px 16px 22px;
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
    text-transform: none;
  }

  .mobile-checkout h1::after {
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 10px;
    border-radius: 10px;
    background: var(--accent);
    content: "";
  }

  .mobile-checkout-form {
    display: grid;
    gap: 18px;
    padding: 0 16px 88px;
  }

  .mobile-checkout-form label {
    display: grid;
    gap: 6px;
    font-size: 18px;
    line-height: 1.15;
  }

  .mobile-checkout-form em {
    color: #e0003c;
    font-style: normal;
  }

  .mobile-checkout-form .field,
  .mobile-checkout-form textarea {
    min-height: 44px;
    border-radius: 12px;
    font-size: 16px;
  }

  .mobile-checkout-form textarea {
    min-height: 86px;
  }

  .mobile-checkout-form small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
  }

  .mobile-checkout-submit {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgb(24 28 36 / 94%) 0%, rgb(8 10 14 / 98%) 100%);
    border-top-color: rgb(255 255 255 / 14%);
    backdrop-filter: blur(12px);
  }

  .mobile-checkout-submit .btn {
    width: min(100%, 310px);
    min-height: 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-checkout-submit .checkout-wait {
    top: auto;
    bottom: env(safe-area-inset-bottom);
    padding: 0;
    border: 0;
    background: none;
    font-size: 11px;
    line-height: 12px;
    white-space: nowrap;
  }

  .cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .cart-open .cart {
    display: flex;
    overflow-y: hidden;
  }

  .cart-open .cart.checkout-open {
    display: block;
    overflow-y: auto;
  }

  .catalog-head {
    display: none;
  }

  h1 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5px;
    padding: 0 6px 66px;
  }

  .card {
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 8px;
    height: 104px;
    min-height: 104px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 7px;
    background:
      linear-gradient(135deg, rgb(248 229 65 / 10%) 0%, transparent 45%),
      linear-gradient(180deg, #242831 0%, #11141a 100%);
  }

  .card:active {
    transform: none;
  }

  .thumb {
    height: auto;
    transform: translateX(-2px);
  }

  .card-info {
    padding: 0;
  }

  [data-product-card] h2 {
    position: absolute;
    top: 4px;
    left: 108px;
    right: 10px;
    min-height: 40px;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.18;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-description {
    position: absolute;
    top: 46px;
    left: 108px;
    right: 24px;
    font-size: 12px;
    line-height: 1.18;
    -webkit-line-clamp: 1;
  }

  .card-price {
    right: 132px;
    bottom: 7px;
    gap: 7px;
    height: 33px;
  }

  .price {
    font-size: 20px;
  }

  .unit {
    font-size: 14px;
  }

  .card-action {
    bottom: 5px;
    margin: 0;
  }

  .add-button {
    width: 33px;
    height: 33px;
    border-radius: 7px;
  }

  .add-button span::before,
  .add-button span::after {
    width: 21px;
    height: 2px;
  }

  .qty {
    grid-template-columns: 32px 42px 32px;
  }

  [data-product-card] .qty input {
    min-height: 31px;
  }

  .cart-item {
    grid-template-columns: 75px minmax(0, 1fr) 92px;
    height: 84px;
    margin: 0 7px 2.1px;
    padding-left: 5px;
    font-size: 14px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgb(7 23 53 / 6%);
    background:
      linear-gradient(135deg, rgb(248 229 65 / 10%) 0%, transparent 45%),
      linear-gradient(180deg, #242831 0%, #11141a 100%);
  }

  .qty button,
  .add-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .cart-item-info {
    padding-left: 7px;
  }

  /* НАСТРОЙКА СУММЫ В МОБИЛЬНОЙ КОРЗИНЕ: left двигает вправо/влево, bottom вверх/вниз */
  .cart-item-sum {
    position: absolute;
    left: 7px;
    right: auto;
    bottom: -3px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 4px;
    width: auto;
    max-width: none;
    height: auto;
    padding-left: 0;
    margin-bottom: 0;
  }

  .cart-remove {
    top: auto;
    right: 133px;
    bottom: 13px;
    height: 18px;
    border: 1px solid rgb(255 167 157 / 55%);
    border-radius: 3px;
    background-image:
      linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
      linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
    color: #e06f66;
    font-size: 0;
    line-height: 0;
  }

  .cart-remove::before,
  .cart-remove::after {
    content: none;
  }

  .cart-thumb {
    width: 74px;
  }

  .cart-item-sum strong {
    order: 2;
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.1;
  }

  .cart-item-sum small {
    order: 1;
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
  }

  .cart-item-sum span {
    order: 3;
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
    line-height: 1.1;
  }

  .cart .qty {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 92px;
    grid-template-columns: 26px 40px 26px;
    border-radius: 3px;
  }

  .cart .qty input {
    min-height: 26px;
    font-size: 17px;
    transform: scale(0.82);
    transform-origin: center;
  }

  .cart .qty button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  .cart .qty button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--text);
    transform: translate(-50%, -50%);
  }

  .cart .qty button[data-cart-inc]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5px;
    height: 12px;
    border-radius: 1px;
    background: var(--text);
    transform: translate(-50%, -50%);
  }

  .cart .qty button:focus-visible,
  .cart .qty input:focus-visible {
    outline: 1px solid var(--accent-focus);
    outline-offset: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.checkout-spinner),
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  /* Keep the small functional progress indicator readable, with slower motion. */
  .checkout-spinner {
    animation-duration: 2.4s;
  }
}

/* Odoo price dark visual pass */

.cart {
  background: linear-gradient(180deg, rgb(30 34 42 / 96%) 0%, rgb(15 18 24 / 96%) 100%);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 760px) {

  .cart.checkout-open {
    background:
      radial-gradient(circle at 16% -6%, rgb(248 229 65 / 20%) 0, transparent 260px),
      linear-gradient(180deg, #242831 0, #11141a 150px, #050608 100%) !important;
    color: var(--text);
  }

  .cart.checkout-open .mobile-checkout {
    background: transparent;
    color: var(--text);
  }

}

/* Mobile catalog accordion */
@media (max-width: 760px) {
  .category-tile.card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 16px;
    height: 94px;
    min-height: 94px;
    padding: 11px 12px 11px 18px;
    color: var(--text);
    text-align: left;
  }

  .category-tile .category-tile-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-color: rgb(248 229 65 / 44%);
    background:
      radial-gradient(circle at 30% 22%, rgb(248 229 65 / 24%), transparent 38%),
      rgb(255 255 255 / 7%);
    color: var(--accent);
  }

  .category-tile .category-tile-mark::before {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .category-tile .category-tile-mark svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
  }

  .category-tile .category-tile-info {
    position: static;
    align-self: center;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 0;
  }

  .category-tile .category-tile-info strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.16;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .category-tile .category-tile-info small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
  }

  .category-tile .category-tile-arrow {
    align-self: center;
    justify-self: end;
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    outline: 1.5px solid rgb(248 229 65 / 58%);
    outline-offset: 3px;
    background: var(--accent);
    color: var(--accent-contrast);
    opacity: 1;
    box-shadow: 0 8px 18px rgb(248 229 65 / 18%);
    transform: none;
  }

  .category-tile .category-tile-arrow::before,
  .category-tile .category-tile-arrow::after {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
  }

  .category-tile .category-tile-arrow::after {
    transform: rotate(90deg);
  }

  .category-tile.active .category-tile-arrow {
    animation: categoryArrowPop 0.42s cubic-bezier(0.18, 0.82, 0.22, 1) both;
  }

  .category-tile.active .category-tile-arrow::after {
    opacity: 0;
    transform: rotate(90deg) scaleY(0.2);
  }

  .subcategory-list {
    gap: 4px;
    margin: -2px 2px 6px;
    padding: 0 8px;
    animation: subcategoryPanelOpen 0.22s ease-out both;
  }

  .subcategory-tile {
    grid-template-columns: 31px minmax(0, 1fr) 38px;
    min-height: 56px;
    padding: 11px 12px;
    border-radius: 6px;
    animation: subcategoryDrop 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .subcategory-tile:nth-child(1) { animation-delay: 0ms; }
  .subcategory-tile:nth-child(2) { animation-delay: 55ms; }
  .subcategory-tile:nth-child(3) { animation-delay: 110ms; }
  .subcategory-tile:nth-child(4) { animation-delay: 165ms; }
  .subcategory-tile:nth-child(5) { animation-delay: 220ms; }
  .subcategory-tile:nth-child(6) { animation-delay: 275ms; }
  .subcategory-tile:nth-child(n + 7) { animation-delay: 330ms; }

  .subcategory-tile span {
    font-size: 21px;
  }

  .subcategory-tile > small {
    width: 31px;
    min-width: 31px;
    height: 31px;
    margin: 0;
    border: 1px solid rgb(248 229 65 / 28%);
    border-radius: 7px;
    background: rgb(248 229 65 / 7%);
    color: rgb(248 229 65 / 82%);
  }

  .subcategory-tile i {
    position: relative;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    outline: 1.25px solid rgb(248 229 65 / 54%);
    outline-offset: 2px;
    background: var(--accent);
    box-shadow: 0 5px 12px rgb(248 229 65 / 15%);
  }

  .subcategory-tile i::before,
  .subcategory-tile i::after {
    position: absolute;
    width: 15.5px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--accent-contrast);
    content: "";
  }

  .subcategory-tile i::after {
    height: 15.5px;
    width: 1.5px;
  }

  .subcategory-tile.active i {
    animation: categoryArrowPop 0.42s cubic-bezier(0.18, 0.82, 0.22, 1) both;
  }

  .subcategory-tile.active i::after {
    opacity: 0;
    transform: scaleY(0.2);
  }

  .mobile-catalog-accordion {
    display: block;
    padding-top: 4px;
  }

  .accordion-grid {
    gap: 6px;
    padding: 0 8px 116px;
  }

  .accordion-products .grid {
    padding: 0;
  }

  .mobile-catalog-accordion.search-results-open .grid {
    padding-top: 4px;
    padding-bottom: 116px;
  }

  .accordion-products {
    margin: -2px -10px 5px;
  }
}

@media (max-width: 760px) {
  .accordion-products [data-product-card] {
    border-color: var(--line);
    background:
      linear-gradient(135deg, rgb(248 229 65 / 5%) 0%, transparent 38%),
      linear-gradient(180deg, rgb(30 34 42 / 78%) 0%, rgb(15 18 24 / 78%) 100%);
    box-shadow: 0 1px 7px rgb(0 0 0 / 14%);
    animation: productDrop 0.48s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  }

  .accordion-products [data-product-card]:nth-child(1) { animation-delay: 0ms; }
  .accordion-products [data-product-card]:nth-child(2) { animation-delay: 80ms; }
  .accordion-products [data-product-card]:nth-child(3) { animation-delay: 160ms; }
  .accordion-products [data-product-card]:nth-child(4) { animation-delay: 240ms; }
  .accordion-products [data-product-card]:nth-child(5) { animation-delay: 320ms; }
  .accordion-products [data-product-card]:nth-child(6) { animation-delay: 400ms; }
  .accordion-products [data-product-card]:nth-child(n + 7) { animation-delay: 480ms; }


}

@keyframes cartTotalFlash {
  0% {
    opacity: 0.96;
    transform: scale(1);
  }

  42% {
    opacity: 1;
    transform: scale(1.16);
  }

  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes productDrop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }

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

@media (min-width: 761px) {
  .desktop-catalog-products {
    display: block;
  }
}

