﻿:root {
  --shop-ink: #2a1854;
  --shop-muted: #766555;
  --shop-line: #ead8b8;
  --shop-surface: #fffaf0;
  --shop-canvas: #fff2d2;
  --shop-cyan: #178ed9;
  --shop-cyan-bright: #49dcff;
  --shop-gold: #ffd34d;
}

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

.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 {
  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: #5f4d43;
  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: #fff0c3;
  color: #715532;
  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: block;
}

.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 {
  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(4, 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(73, 220, 255, 0.22), 0 12px 28px rgba(42, 24, 84, 0.12);
}

.shop-product-card__visual {
  display: grid;
  min-width: 0;
  place-items: center;
  background: #eef2f4;
  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-direct-order {
  display: none;
}

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

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

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

}

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

  .shop-banner {
    height: 300px;
  }

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

}

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

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

}

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