:root {
  --shop-ink: #15191f;
  --shop-muted: #68717d;
  --shop-line: #dce2e8;
  --shop-surface: #ffffff;
  --shop-canvas: #ffffff;
  --shop-cyan: #007f96;
  --shop-cyan-bright: #00cce5;
  --shop-gold: #f0b429;
}

.shop-product-page {
  --max: 1280px;
  min-width: 320px;
  background: var(--shop-canvas);
  color: var(--shop-ink);
}

.shop-product-page button,
.shop-product-page input {
  letter-spacing: 0;
}

.shop-main {
  min-height: 100vh;
  padding-top: var(--nav-h, 72px);
}

.shop-banner {
  position: relative;
  isolation: isolate;
  height: 390px;
  overflow: hidden;
  background: #171a20;
  color: #fff;
}

.shop-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.shop-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.62) 42%, rgba(8, 10, 14, 0.12) 78%);
}

.shop-banner__content {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.shop-banner__content p,
.shop-catalog__heading p,
.shop-order__heading p {
  margin: 0 0 8px;
  color: var(--shop-cyan-bright);
  font-family: var(--font-display, sans-serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.shop-banner__content h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display, sans-serif);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.shop-banner__content > span {
  max-width: 500px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.shop-market {
  padding: 34px 0 72px;
}

.shop-category-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shop-category {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background: var(--shop-surface);
  color: #414953;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.shop-category span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 4px;
  background: #edf1f4;
  color: #59636f;
  font-size: 12px;
}

.shop-category:hover,
.shop-category:focus-visible {
  border-color: var(--shop-cyan);
  color: var(--shop-cyan);
  outline: none;
}

.shop-category.is-active {
  border-color: var(--shop-ink);
  background: var(--shop-ink);
  color: #fff;
}

.shop-category.is-active span {
  background: var(--shop-gold);
  color: #241b08;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 26px;
  align-items: start;
}

.shop-catalog {
  min-width: 0;
}

.shop-catalog__heading {
  display: flex;
  min-height: 58px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.shop-catalog__heading p {
  color: var(--shop-cyan);
}

.shop-catalog__heading h2,
.shop-order__heading h2 {
  margin: 0;
  color: var(--shop-ink);
  font-family: var(--font-display, sans-serif);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.shop-catalog__heading > span {
  color: var(--shop-muted);
  font-size: 14px;
  white-space: nowrap;
}

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

.shop-product-card {
  display: grid;
  min-width: 0;
  min-height: 322px;
  grid-template-rows: 174px 1fr;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: var(--shop-surface);
  color: var(--shop-ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(21, 25, 31, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-product-card[hidden] {
  display: none;
}

.shop-product-card:hover,
.shop-product-card:focus-visible {
  border-color: #99a5b0;
  outline: none;
  box-shadow: 0 12px 28px rgba(21, 25, 31, 0.11);
  transform: translateY(-2px);
}

.shop-product-card.is-selected {
  border-color: var(--shop-cyan);
  box-shadow: 0 0 0 2px rgba(0, 127, 150, 0.14), 0 12px 28px rgba(21, 25, 31, 0.1);
}

.shop-product-card__visual {
  display: grid;
  min-width: 0;
  place-items: center;
  background: #f8fafb;
  border-bottom: 1px solid var(--shop-line);
}

.shop-product-card__visual img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.shop-product-card:hover .shop-product-card__visual img,
.shop-product-card.is-selected .shop-product-card__visual img {
  transform: scale(1.04);
}

.shop-product-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px;
}

.shop-product-card__category {
  margin-bottom: 5px;
  color: var(--shop-cyan);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.shop-product-card__body > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #242a31;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.shop-product-card__meta b {
  color: #a05c00;
  font-size: 19px;
  line-height: 1;
}

.shop-product-card__meta small {
  color: var(--shop-muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

.shop-empty {
  display: grid;
  min-height: 230px;
  padding: 32px;
  place-content: center;
  border: 1px dashed #b8c1ca;
  border-radius: 8px;
  background: var(--shop-surface);
  text-align: center;
}

.shop-empty[hidden] {
  display: none;
}

.shop-empty strong {
  color: var(--shop-ink);
  font-size: 18px;
}

.shop-empty span {
  margin-top: 6px;
  color: var(--shop-muted);
  font-size: 14px;
}

.shop-order {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 18px);
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: var(--shop-surface);
  color: var(--shop-ink);
  box-shadow: 0 14px 34px rgba(21, 25, 31, 0.08);
}

.shop-order__heading {
  padding: 22px 24px 19px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-order__heading h2 {
  color: var(--shop-ink);
  font-size: 21px;
}

.shop-order form {
  padding: 22px 24px 24px;
}

.shop-order__product {
  display: grid;
  min-height: 96px;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.shop-order__product img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  background: #f0f3f5;
  object-fit: contain;
}

.shop-order__product > div {
  min-width: 0;
}

.shop-order__product span,
.shop-order__product small {
  display: block;
  color: var(--shop-cyan);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.shop-order__product strong {
  display: block;
  margin: 6px 0 7px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.shop-order__product small {
  color: var(--shop-muted);
  font-weight: 600;
  text-transform: none;
}

.shop-order__row,
.shop-order__quantity,
.shop-order__total {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--shop-line);
}

.shop-order__row span,
.shop-order__quantity label,
.shop-order__total span,
.shop-order__field label {
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 700;
}

.shop-order__row strong {
  color: var(--shop-gold);
  font-size: 17px;
}

.shop-order__row .shop-order__delivery {
  color: var(--shop-cyan);
  font-size: 13px;
  text-align: right;
}

.shop-order__notice {
  margin: 0;
  padding: 11px 12px;
  border-top: 1px solid var(--shop-line);
  color: var(--shop-muted);
  font-size: 12px;
  line-height: 1.55;
}

.shop-order__notice[hidden] {
  display: none;
}

.shop-stepper {
  display: grid;
  width: 126px;
  height: 36px;
  grid-template-columns: 36px 54px 36px;
  overflow: hidden;
  border: 1px solid #c9d2da;
  border-radius: 5px;
}

.shop-stepper button,
.shop-stepper input {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--shop-ink);
  text-align: center;
}

.shop-stepper button {
  font-size: 20px;
  line-height: 1;
}

.shop-stepper button:hover:not(:disabled),
.shop-stepper button:focus-visible {
  background: rgba(0, 204, 229, 0.16);
  outline: none;
}

.shop-stepper button:disabled {
  cursor: default;
  opacity: 0.35;
}

.shop-stepper input {
  border-right: 1px solid #dce2e8;
  border-left: 1px solid #dce2e8;
  font-size: 14px;
  font-weight: 800;
  appearance: textfield;
}

.shop-stepper input::-webkit-inner-spin-button,
.shop-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.shop-order__field {
  padding: 15px 0 17px;
  border-top: 1px solid var(--shop-line);
}

.shop-order__field label {
  display: block;
  margin-bottom: 8px;
}

.shop-order__field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c9d2da;
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: var(--shop-ink);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-order__field input::placeholder {
  color: #8a949e;
}

.shop-order__field input:focus {
  border-color: var(--shop-cyan-bright);
  box-shadow: 0 0 0 3px rgba(0, 204, 229, 0.14);
}

.shop-order__field input[aria-invalid="true"] {
  border-color: #ff7474;
}

.shop-order__error {
  display: block;
  margin-top: 7px;
  color: #ff9a9a;
  font-size: 12px;
  line-height: 1.4;
}

.shop-order__error[hidden] {
  display: none;
}

.shop-order__total {
  min-height: 62px;
}

.shop-order__total strong {
  color: var(--shop-gold);
  font-size: 25px;
  line-height: 1;
}

.shop-checkout {
  width: 100%;
  min-height: 50px;
  margin-top: 9px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--shop-gold);
  color: #211a0b;
  font-family: var(--font-display, sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.shop-checkout:hover:not(:disabled),
.shop-checkout:focus-visible {
  background: #ffd05a;
  outline: none;
  transform: translateY(-1px);
}

.shop-checkout:disabled {
  cursor: default;
  opacity: 0.45;
}

.shop-order__status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #ff9a9a;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 1120px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

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

@media (max-width: 840px) {
  .shop-banner {
    height: 340px;
  }

  .shop-banner__content h1 {
    font-size: 39px;
  }

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

  .shop-order {
    position: static;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .shop-main {
    padding-top: var(--nav-h, 60px);
  }

  .shop-banner {
    height: 300px;
  }

  .shop-banner__overlay {
    background: rgba(8, 10, 14, 0.61);
  }

  .shop-banner__content h1 {
    font-size: 32px;
  }

  .shop-banner__content > span {
    max-width: 320px;
    font-size: 16px;
  }

  .shop-market {
    padding: 24px 0 48px;
  }

  .shop-category-bar {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-bottom: 20px;
    padding-right: 12px;
  }

  .shop-category {
    min-height: 40px;
    padding: 0 13px;
  }

  .shop-catalog__heading {
    min-height: 50px;
  }

  .shop-catalog__heading h2 {
    font-size: 21px;
  }

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

  .shop-product-card {
    min-height: 138px;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: 138px;
  }

  .shop-product-card__visual {
    border-right: 1px solid var(--shop-line);
    border-bottom: 0;
  }

  .shop-product-card__visual img {
    width: 116px;
    height: 116px;
  }

  .shop-product-card__body {
    padding: 14px;
  }

  .shop-product-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 8px;
  }

  .shop-product-card__meta small {
    text-align: left;
  }

  .shop-order__heading,
  .shop-order form {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 380px) {
  .shop-product-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .shop-product-card__visual img {
    width: 98px;
    height: 98px;
  }

  .shop-order__product {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .shop-order__product img {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-product-card,
  .shop-product-card__visual img,
  .shop-checkout {
    transition: none;
  }
}
