* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --shop-text: #071226;
  --shop-muted: #5c6678;
  --shop-soft: #eef2f7;
  --shop-border: #dde3ec;
  --shop-surface: #ffffff;
  --shop-accent: #ec4899;
  --shop-accent-dark: #be286e;
  --shop-green: #16a34a;
  --shop-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--shop-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.shop-header,
.shop-footer {
  width: min(100% - 28px, 920px);
  margin: 0 auto;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.shop-logo {
  color: var(--shop-text);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.shop-nav,
.shop-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.shop-nav a,
.shop-footer a {
  color: var(--shop-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.shop-nav a:hover,
.shop-footer a:hover {
  color: var(--shop-text);
}

.shop-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 12px 14px 44px;
}

.shop-catalog-page {
  padding-top: 0;
}

.shop-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  color: var(--shop-text);
  background: var(--shop-surface);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.shop-catalog-hero,
.shop-product-hero,
.shop-details,
.shop-order,
.shop-doc article,
.shop-state {
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow);
}

.shop-catalog-hero {
  padding: 28px;
  border-radius: 10px;
}

.shop-catalog-hero h1,
.shop-catalog-hero p,
.shop-product-summary h1,
.shop-details h2,
.shop-details p,
.shop-order h2,
.shop-card h2,
.shop-card p,
.shop-doc h1,
.shop-doc h2,
.shop-doc p {
  margin: 0;
}

.shop-eyebrow {
  margin: 0 0 10px;
  color: var(--shop-accent);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-catalog-hero h1,
.shop-product-summary h1,
.shop-doc h1 {
  max-width: 680px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  font-weight: 950;
}

.shop-catalog-hero p:not(.shop-eyebrow) {
  max-width: 660px;
  margin-top: 12px;
  color: var(--shop-muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.shop-catalog {
  margin-top: 22px;
}

.shop-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: var(--shop-surface);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.07);
}

.shop-card-media {
  display: block;
  overflow: hidden;
  background: var(--shop-soft);
}

.shop-card-media img,
.shop-card-media .shop-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
}

.shop-card-media img {
  object-fit: cover;
}

.shop-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.shop-card-badge {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #9d174d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 950;
}

.shop-card h2 {
  font-size: 19px;
  line-height: 1.12;
  font-weight: 950;
}

.shop-card p {
  min-height: 42px;
  overflow: hidden;
  color: var(--shop-muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-card-footer strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.shop-card-footer a,
.shop-card-action,
.shop-buy-link,
.shop-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--shop-accent);
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.shop-card-action {
  color: var(--shop-text);
  background: #eef2f7;
  cursor: pointer;
}

.shop-card-footer a:hover,
.shop-buy-link:hover,
.shop-submit:hover {
  background: var(--shop-accent-dark);
}

.shop-product {
  display: grid;
  gap: 18px;
  width: min(100%, 860px);
  margin: 0 auto;
}

.shop-product-hero {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border-radius: 10px;
}

.shop-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--shop-soft);
}

.shop-media img,
.shop-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

.shop-media img {
  object-fit: cover;
}

.shop-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #6b778c;
  background: linear-gradient(135deg, #eef3f9, #f9fafb);
  font-size: 18px;
  font-weight: 950;
}

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

.shop-preview-note {
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
}

.shop-price {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.shop-buy-link {
  margin-top: 20px;
  min-width: 170px;
}

.shop-details,
.shop-order {
  border-radius: 10px;
  padding: 22px;
}

.shop-details h2,
.shop-order h2,
.shop-doc h2 {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 950;
}

.shop-details p {
  max-width: 720px;
  margin-top: 12px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.55;
}

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

.shop-order > div,
.shop-order .shop-consent,
.shop-submit,
.shop-status {
  grid-column: 1 / -1;
}

.shop-order label {
  display: grid;
  gap: 7px;
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 850;
}

.shop-order input,
.shop-order textarea {
  width: 100%;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  color: var(--shop-text);
  background: #fff;
  outline: none;
}

.shop-order input {
  min-height: 46px;
  padding: 0 13px;
}

.shop-order textarea {
  min-height: 98px;
  resize: vertical;
  padding: 13px;
}

.shop-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px 10px;
  color: var(--shop-muted);
  font-size: 14px;
  line-height: 1.35;
}

.shop-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.shop-consent a {
  color: var(--shop-accent-dark);
  font-weight: 900;
}

.shop-submit {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}

.shop-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.shop-status {
  min-height: 20px;
  color: var(--shop-muted);
  font-size: 14px;
  font-weight: 800;
}

.shop-status.is-success {
  color: var(--shop-green);
}

.shop-status.is-error {
  color: #e11d48;
}

.shop-state {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: 10px;
  color: var(--shop-muted);
  font-weight: 850;
  text-align: center;
}

.shop-state strong {
  color: var(--shop-text);
  font-size: 20px;
}

.shop-doc article {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 10px;
}

.shop-doc h2 {
  margin-top: 10px;
}

.shop-doc p {
  max-width: 760px;
  color: #243044;
  font-size: 16px;
  line-height: 1.55;
}

.shop-seller-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.shop-seller-details div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: #f8fafc;
}

.shop-seller-details dt,
.shop-seller-details dd {
  margin: 0;
}

.shop-seller-details dt {
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 900;
}

.shop-seller-details dd {
  color: var(--shop-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.shop-footer {
  justify-content: center;
  padding: 0 14px 34px;
}

@media (max-width: 760px) {
  .shop-catalog-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .shop-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .shop-page {
    padding: 8px 10px 34px;
  }

  .shop-catalog-hero,
  .shop-product-hero,
  .shop-details,
  .shop-order,
  .shop-doc article {
    padding: 18px;
  }

  .shop-catalog-hero h1,
  .shop-product-summary h1,
  .shop-doc h1 {
    font-size: 34px;
  }

  .shop-catalog-grid,
  .shop-order {
    grid-template-columns: 1fr;
  }

  .shop-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-card-footer a {
    width: 100%;
  }

  .shop-price {
    font-size: 30px;
  }
}
