/* Shop pages — ФМ Форма */
.shop-main {
  min-height: 100vh;
  background: #141414;
  color: #f5f5f5;
  padding: 96px 0 64px;
}

.shop-main--warm {
  background: #ece8e2;
  color: #1f1f1f;
}

.shop-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.shop-crumb {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.5);
}

.shop-main--warm .shop-crumb { color: rgba(31, 31, 31, 0.5); }

.shop-crumb a:hover { text-decoration: underline; }

.shop-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.shop-lead {
  margin: 0 0 28px;
  max-width: 42ch;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.68);
}

.shop-main--warm .shop-lead { color: rgba(31, 31, 31, 0.72); }

.shop-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* hover → css/hover.css */

.shop-card img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: contain;
  object-position: center;
  background: #161616;
}

.shop-card-body {
  margin-top: auto;
  padding: 16px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.shop-card-body strong { font-size: 1.05rem; }
.shop-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* product */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.product-visual {
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.product-visual img {
  width: 100%;
  display: block;
}

.product-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.product-info .shop-price {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.product-old {
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 1rem;
}

.product-text {
  margin: 16px 0 22px;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.72);
  max-width: 36ch;
}

.size-row { display: flex; gap: 10px; margin: 10px 0 22px; }
.size-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.35); color: #fff; font-weight: 600;
}
.size-btn.is-active { background: #fff; color: #1a1a1a; }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.cta {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: #fff; color: #1a1a1a; font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cta:hover { transform: scale(1.03); }
.cta:active { transform: scale(0.98); }
.cta:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.cta.is-loading { opacity: 0.85; pointer-events: none; }

.cta-ghost {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: transparent; color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.28);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.cta-ghost:hover { background: rgba(255,255,255,0.08); }

.cta-fact {
  margin: 0 0 22px;
  font-size: 12px;
  color: rgba(245,245,245,0.55);
}

.pay-ship {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(245,245,245,0.85);
  text-decoration: none;
}
.badge-chip svg { flex-shrink: 0; }
.badge-chip:hover { background: rgba(255,255,255,0.1); }

.shop-main--warm .badge-chip {
  background: rgba(26,26,26,0.06);
  border-color: rgba(26,26,26,0.12);
  color: #1f1f1f;
}

/* cart / order */
.cart-list { display: grid; gap: 14px; margin-bottom: 28px; }
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #1c1c1c;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.cart-row img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 10px;
}
.cart-row h2 { margin: 0 0 4px; font-size: 1.05rem; }
.cart-row p { margin: 0; font-size: 0.88rem; color: rgba(245,245,245,0.55); }
.cart-empty {
  padding: 28px;
  border-radius: 14px;
  background: #1c1c1c;
  color: rgba(245,245,245,0.7);
}

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.shop-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: #1c1c1c;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.shop-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(245,245,245,0.7);
}

.shop-form input,
.shop-form select,
.shop-form textarea {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: #141414;
  color: #f5f5f5;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.shop-form input:focus,
.shop-form select:focus,
.shop-form textarea:focus {
  outline: 2px solid #b05010;
  outline-offset: 1px;
}

.shop-form .agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(245,245,245,0.75);
}
.shop-form .agree input {
  width: auto;
  margin-top: 3px;
}

.form-error {
  display: none;
  color: #ffb4a8;
  font-size: 0.86rem;
}
.form-error.is-on { display: block; }

.order-done {
  display: none;
  padding: 22px;
  border-radius: 14px;
  background: #1c1c1c;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.order-done.is-on { display: block; }
.order-done h2 { margin: 0 0 10px; font-size: 1.5rem; }
.order-done p { margin: 0 0 16px; color: rgba(245,245,245,0.7); line-height: 1.45; }
.order-done-links { display: flex; flex-wrap: wrap; gap: 10px; }

.shop-aside {
  padding: 20px;
  border-radius: 14px;
  background: #1c1c1c;
}
.shop-aside h2 { margin: 0 0 12px; font-size: 1.1rem; }
.shop-aside ul { margin: 0; padding-left: 18px; color: rgba(245,245,245,0.7); line-height: 1.5; }

.info-blocks { display: grid; gap: 14px; }
.info-block {
  padding: 20px 22px;
  border-radius: 14px;
  background: #1c1c1c;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.info-block h2 { margin: 0 0 8px; font-size: 1.15rem; }
.info-block p { margin: 0; color: rgba(245,245,245,0.68); line-height: 1.45; }

@media (max-width: 800px) {
  .product-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }
  .shop-grid-2 {
    /* на планшете ещё сетка; на 390 — лист в mobile.css */
    grid-template-columns: 1fr 1fr;
  }
  .cart-row {
    grid-template-columns: 72px 1fr;
  }
  .cart-row .shop-price { grid-column: 2; }
}

@media (max-width: 640px) {
  .shop-grid-2 {
    grid-template-columns: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card, .cta { transition: none !important; }
  .shop-card:hover { transform: none; }
}
