/* ── Shop: auth, cart, checkout, account ───────────────────
   Единая стилистика с shop-catalog.css
   Переменные: --hub-*, --mm-*, --brand-* из shop-catalog.css
   ──────────────────────────────────────────────────────── */

/* ── Auth pages (standalone, no base_shop) ─── */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sh-auth-page {
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Мягкий сетчатый фон — как у витрины */
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(255,69,33,0.05) 0%, transparent 60%),
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 44%, rgba(255,255,255,0.88) 100%),
    linear-gradient(180deg, #f6f7fa 0%, #eef0f5 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hub-text, #1e2026);
  padding: 20px 16px 32px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sh-auth-top-brand {
  width: min(460px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

/* Карточка: всегда с видимыми полями по бокам */
.sh-auth-card {
  /* на большом экране ≤460px; на маленьком — ширина минус 32px отступа */
  width: min(460px, calc(100% - 32px));
  max-width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.06),
    0 4px 16px rgba(15,23,42,0.07),
    0 20px 48px rgba(15,23,42,0.07);
  overflow: hidden; /* шапка вписывается в скруглённые углы */
  box-sizing: border-box;
}

/* ── Шапка карточки — белая, крупный логотип ─── */
.sh-auth-head {
  padding: 28px 28px 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f0f1f5;
}
.sh-auth-head-logo {
  flex-shrink: 0;
  width: 60px; height: 60px;
}
.sh-auth-head-logo img {
  width: 60px; height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.13));
}
.sh-auth-head-text {}
.sh-auth-head-brand {
  font-family: 'Exo 2', 'Inter', sans-serif;
  font-size: 28px; font-weight: 900; font-style: italic;
  line-height: 1; color: #2c3441;
  letter-spacing: -0.01em;
}
.sh-auth-head-brand .gsm { color: var(--mm-orange, #ff4521); }
.sh-auth-head-brand .hub { color: #2c3441; font-style: normal; }
.sh-auth-head-tagline {
  font-size: 12px; font-weight: 500; color: #6b7280;
  letter-spacing: 0.02em; margin-top: 4px;
}

/* Login page tune: larger centered brand block */
.sh-auth-page--login .sh-auth-head {
  justify-content: center;
  text-align: left;
  gap: 18px;
}
.sh-auth-page--login .sh-auth-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sh-auth-page--register .sh-auth-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sh-auth-page--login .sh-auth-head-logo {
  width: 78px;
  height: 78px;
}
.sh-auth-page--login .sh-auth-head-logo img {
  width: 78px;
  height: 78px;
}
.sh-auth-page--register .sh-auth-head-logo,
.sh-auth-page--register .sh-auth-head-logo img {
  width: 78px;
  height: 78px;
}

/* ── Тело карточки ─── */
.sh-auth-body {
  padding: 28px 28px 28px;
}
.sh-auth-title {
  font-size: 19px; font-weight: 700; margin: 0 0 5px; text-align: left;
  letter-spacing: -0.01em;
  color: var(--hub-text, #1e2026);
}
.sh-auth-page--login .sh-auth-title,
.sh-auth-page--login .sh-auth-subtitle {
  text-align: center;
}
.sh-auth-page--register .sh-auth-title,
.sh-auth-page--register .sh-auth-subtitle {
  text-align: center;
}
.sh-auth-page--verify .sh-auth-title,
.sh-auth-page--verify .sh-auth-subtitle {
  text-align: center;
}
.sh-auth-page--verify .sh-auth-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sh-auth-page--verify .sh-auth-head-logo,
.sh-auth-page--verify .sh-auth-head-logo img {
  width: 78px;
  height: 78px;
}
.sh-auth-page--verify .sh-auth-subtitle--email {
  margin-top: -10px;
  margin-bottom: 6px;
  color: #4b5563;
  font-size: 12px;
}
.sh-auth-page--verify .sh-auth-subtitle--email strong {
  color: #1f2937;
  font-weight: 700;
}
.sh-auth-page--verify .sh-auth-subtitle--hint {
  margin: 0 0 16px;
  font-size: 12px;
  color: #6b7280;
}
.sh-auth-subtitle--under-input {
  margin: 10px 2px 0;
  font-size: 7px !important;
  font-weight: 300 !important;
  color: #b4bcc9 !important;
  line-height: 1.2 !important;
  letter-spacing: 0;
  text-align: left;
}
.sh-auth-subtitle {
  font-size: 13px; color: #64748b; margin: 0 0 22px; text-align: left; line-height: 1.5;
}

.sh-auth-links {
  text-align: center; margin-top: 16px; font-size: 13px;
}

/* ── Form elements ─── */
.sh-form-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #94a3b8;
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f7;
}
.sh-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sh-req { color: var(--mm-orange, #ff4521); font-weight: 700; }
.sh-form-group { margin-bottom: 14px; }
.sh-form-label {
  display: block; font-size: 13px; font-weight: 600; color: #374151;
  margin-bottom: 5px;
}
.sh-form-input {
  width: 100%; padding: 10px 14px; font-size: 15px;
  border: 1.5px solid var(--hub-line, #d1d5db);
  border-radius: var(--hub-radius-sm, 10px);
  background: #fff; color: var(--hub-text, #1e2026); outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
  box-sizing: border-box;
  font-family: inherit;
}
.sh-form-input:focus {
  border-color: var(--mm-orange, #ff4521);
  box-shadow: 0 0 0 3px rgba(255,69,33,0.1);
}
.sh-form-input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.sh-form-error { font-size: 12px; color: #ef4444; margin-top: 4px; }

/* ── Buttons ─── */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 12px 20px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  border: none; border-radius: var(--hub-radius-sm, 10px); cursor: pointer;
  transition: background 0.16s, transform 0.1s, box-shadow 0.16s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.sh-btn:active { transform: scale(0.98); }
.sh-btn-primary {
  /* Графитовый с диагональными полосами — как кнопка «Каталог» в шапке */
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgba(255,255,255,0.055) 14px,
      rgba(255,255,255,0.055) 28px
    ),
    linear-gradient(155deg, #64748b 0%, #3d4a5c 45%, #1e293b 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(30,41,59,0.28);
}
.sh-btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 16px rgba(30,41,59,0.36);
}
.sh-btn-secondary {
  background: #f1f3f7; color: #374151;
}
.sh-btn-secondary:hover { background: #e5e7ec; }
.sh-btn-outline {
  background: transparent; border: 1.5px solid var(--hub-line, #d1d5db); color: #374151;
}
.sh-btn-outline:hover { border-color: var(--mm-orange, #ff4521); color: var(--mm-orange, #ff4521); }

/* ── 6-digit code inputs ─── */
.sh-code-inputs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 20px;
}
.sh-code-input {
  width: 48px; height: 56px; text-align: center;
  font-size: 24px; font-weight: 700;
  border: 1.5px solid var(--hub-line, #d1d5db);
  border-radius: var(--hub-radius-sm, 10px);
  outline: none; background: #fff;
  transition: border-color 0.16s, box-shadow 0.16s;
  font-family: inherit;
}
.sh-code-input:focus {
  border-color: var(--mm-orange, #ff4521);
  box-shadow: 0 0 0 3px rgba(255,69,33,0.1);
}

.sh-auth-links {
  text-align: center; margin-top: 16px; font-size: 13px;
}
.sh-auth-links a {
  color: var(--mm-orange, #ff4521); text-decoration: none; font-weight: 600;
}
.sh-auth-links a:hover { text-decoration: underline; }
.sh-auth-links-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sh-auth-link-form {
  margin: 0;
}
.sh-auth-link-btn {
  border: none;
  background: transparent;
  color: var(--mm-orange, #ff4521);
  font-weight: 600;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.sh-auth-link-btn:hover { text-decoration: underline; }

/* ── Alerts ─── */
.sh-alert {
  padding: 10px 14px; border-radius: var(--hub-radius-sm, 10px);
  font-size: 13px; font-weight: 500; margin-bottom: 12px;
}
.sh-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.sh-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.sh-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sh-auth-page--verify .sh-alert-success {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.sh-toast-stack {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(560px, calc(100% - 28px));
  pointer-events: none;
}
.sh-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #3f4b61;
  background: linear-gradient(155deg, #4b5a74 0%, #2d384d 45%, #1b2435 100%);
  color: #f3f7ff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.26);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.sh-toast.is-visible { opacity: 1; transform: translateY(0); }
.sh-toast.is-hiding { opacity: 0; transform: translateY(-8px); }
.sh-toast-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.sh-toast-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.sh-toast-close:hover { background: rgba(255,255,255,0.18); }
.sh-auth-footer {
  margin-top: 20px; font-size: 11px; color: #9ca3af; text-align: center;
}
.sh-messages-wrap {
  max-width: 600px; margin: 12px auto; padding: 0 16px;
}

/* ── Cart page ─── */
.sh-page-wrap {
  width: min(var(--hub-content-max, 1488px), calc(100% - 28px));
  margin: 0 auto; padding: 28px 0 44px;
  min-height: calc(100vh - 84px);
}
.sh-page-wrap--account {
  width: min(var(--hub-content-max, 1488px), calc(100% - 32px));
}
.sh-page-title {
  font-size: 24px; font-weight: 700; margin: 0 0 20px;
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.02em; color: var(--hub-text, #1e2026);
}
.sh-cart-empty {
  text-align: center; padding: 60px 20px;
  color: #6b7280; font-size: 15px;
}
.sh-cart-empty svg {
  width: 64px; height: 64px; color: #d1d5db; margin-bottom: 16px;
}
.sh-cart-card {
  background: #fff; border: 1px solid var(--hub-line, #e5e7eb);
  border-radius: var(--hub-radius-md, 14px);
  overflow: hidden;
}
.sh-cart-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
}
.sh-cart-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: #6b7280;
  padding: 10px 16px; border-bottom: 1px solid #e5e7eb;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: #fafbfc;
}
.sh-cart-table td {
  padding: 14px 16px; border-bottom: 1px solid #f3f4f6;
  vertical-align: middle; font-size: 14px;
}
.sh-cart-table tbody tr:last-child td { border-bottom: none; }
.sh-cart-product {
  display: flex; align-items: center; gap: 12px;
}
.sh-cart-product-img {
  width: 56px; height: 56px; border-radius: 10px;
  object-fit: contain; background: #f8f9fc; flex-shrink: 0;
}
.sh-cart-product-name {
  font-weight: 600; color: var(--hub-text, #1e2026); line-height: 1.35;
}
.sh-cart-qty {
  display: inline-flex; align-items: center;
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
}
.sh-cart-qty button {
  width: 36px; height: 36px; border: none; background: #f9fafb;
  font-size: 18px; cursor: pointer; color: #374151;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
  font-family: inherit;
}
.sh-cart-qty button:hover { background: #f1f3f7; }
.sh-cart-qty-val {
  width: 36px; text-align: center; font-size: 14px; font-weight: 600;
  border: none; background: transparent; color: var(--hub-text, #1e2026);
}
.sh-cart-remove {
  border: none; background: none; color: #9ca3af; cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.sh-cart-remove:hover { color: #ef4444; background: #fef2f2; }
.sh-cart-summary {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 20px; margin-top: 16px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--hub-line, #e5e7eb);
  border-radius: var(--hub-radius-md, 14px);
}
.sh-cart-total {
  font-size: 20px; font-weight: 700; color: var(--hub-text, #1e2026);
}

/* ── Account pages ─── */
.sh-account-layout {
  display: flex; gap: 28px; min-height: calc(100vh - 200px);
}
.sh-account-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  height: fit-content;
}
.sh-account-nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sh-account-nav li { margin: 0; }
.sh-account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--hub-radius-sm, 10px);
  font-size: 14px; font-weight: 500; color: #374151;
  text-decoration: none; transition: background 0.14s, color 0.14s;
}
.sh-account-nav a:hover { background: rgba(15,23,42,0.04); }
.sh-account-nav a.active {
  background: rgba(255,69,33,0.08); color: var(--mm-orange, #ff4521); font-weight: 600;
}
.sh-account-nav svg {
  width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.8;
}
.sh-account-content {
  flex: 1; min-width: 0; padding: 4px 0;
}
.sh-account-header { margin-bottom: 24px; }
.sh-account-header h1 {
  margin: 0 0 4px; font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
}
.sh-account-header p {
  margin: 0; font-size: 14px; color: #6b7280;
}
.sh-account-section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1e2026;
}
.sh-account-empty {
  text-align: center;
  padding: 42px 18px;
  color: #6b7280;
  border: 1px dashed #dbe1ea;
  border-radius: 14px;
  background: #fafbfc;
}
.sh-account-empty svg {
  color: #c8cfda;
  margin-bottom: 12px;
}
.sh-account-empty p {
  font-size: 15px;
  margin: 0 0 10px;
}
.sh-account-empty-btn {
  width: auto;
  display: inline-flex;
  padding: 10px 24px;
  font-size: 14px;
}
.sh-account-content--profile {
  max-width: 560px;
}
.sh-profile-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}
.sh-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sh-form-input--readonly {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* ── Order cards ─── */
.sh-orders-list {
  display: flex; flex-direction: column; gap: 10px;
}
.sh-order-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  background: #fff; border: 1px solid var(--hub-line, #e5e7eb);
  border-radius: var(--hub-radius-md, 14px);
  text-decoration: none; color: inherit;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.sh-order-card:hover {
  box-shadow: var(--hub-shadow, 0 8px 22px rgba(22,24,32,0.08));
  border-color: var(--hub-line-strong, #b9bac2);
}
.sh-order-num { font-size: 15px; font-weight: 700; color: var(--hub-text, #1e2026); }
.sh-order-date { font-size: 12px; color: #6b7280; margin-top: 2px; }
.sh-order-total { font-size: 16px; font-weight: 700; white-space: nowrap; }
.sh-order-status {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.sh-status-new { background: #eff6ff; color: #1d4ed8; }
.sh-status-confirmed { background: #f0fdf4; color: #15803d; }
.sh-status-processing { background: #fffbeb; color: #92400e; }
.sh-status-shipped { background: #faf5ff; color: #7c3aed; }
.sh-status-delivered { background: #f0fdf4; color: #059669; }
.sh-status-cancelled { background: #fef2f2; color: #b91c1c; }

/* ── Order detail ─── */
.sh-order-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.sh-order-detail-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1b2330;
}
.sh-order-detail-date {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}
.sh-order-detail-items {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-order-detail-item {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  padding: 10px;
  background: #fbfcff;
}
.sh-order-detail-item-img,
.sh-order-detail-item-ph {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #e8ecf4;
  background: #f2f5fb;
  object-fit: cover;
}
.sh-order-detail-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #1d2638;
  line-height: 1.3;
  margin-bottom: 4px;
}
.sh-order-detail-item-meta {
  font-size: 13px;
  color: #5f687a;
}
.sh-order-detail-item-sum {
  font-size: 18px;
  font-weight: 800;
  color: #14213a;
  white-space: nowrap;
}
.sh-order-detail-total {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: baseline;
  padding: 8px 4px 0;
  font-size: 16px;
  color: #4b5563;
}
.sh-order-detail-total strong {
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #111d35;
}
.sh-detail-card {
  background: #fff; border: 1px solid var(--hub-line, #e5e7eb);
  border-radius: var(--hub-radius-md, 14px);
  overflow: hidden;
}
.sh-order-items-table {
  width: 100%; border-collapse: collapse;
}
.sh-order-items-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: #6b7280;
  padding: 10px 16px; border-bottom: 2px solid #e5e7eb;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: #fafbfc;
}
.sh-order-items-table td {
  padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.sh-order-items-table tfoot td {
  font-weight: 700; border-top: 2px solid #e5e7eb; background: #fafbfc;
}
.sh-comment-block {
  padding: 14px 16px; border-radius: var(--hub-radius-sm, 10px);
  margin-top: 16px;
}
.sh-comment-block--customer { background: #f8f9fc; }
.sh-comment-block--admin { background: #eff6ff; }
.sh-comment-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 4px;
}
.sh-comment-text { font-size: 14px; color: #111827; }
.sh-comment-block--customer .sh-comment-label { color: #6b7280; }
.sh-comment-block--admin .sh-comment-label { color: #1d4ed8; }
.sh-order-back-wrap { margin-top: 24px; }
.sh-order-back-btn {
  width: auto;
  display: inline-flex;
  padding: 10px 20px;
  font-size: 14px;
}

/* ── Add-to-cart button on product cards ─── */
.sh-add-cart-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px; margin-top: 6px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--hub-radius-sm, 10px); cursor: pointer;
  background: var(--brand-red-gradient, linear-gradient(155deg, #ff6a4d 0%, #ff4521 52%, #e63d1c 100%));
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,69,33,0.2);
  transition: box-shadow 0.16s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}
.sh-add-cart-btn:hover { box-shadow: 0 4px 14px rgba(255,69,33,0.3); }
.sh-add-cart-btn:active { transform: scale(0.97); }
.sh-add-cart-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Mobile bottom badge ─── */
.sh-bottom-badge {
  position: absolute;
  top: 2px; right: 8px;
  min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px;
  background: var(--mm-orange, #ff4521); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}

/* ────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────── */

/* ── Very narrow: form row stacks ─── */
@media (max-width: 360px) {
  .sh-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Small screens: auth cards ─── */
@media (max-width: 480px) {
  .sh-auth-page { padding: 16px 12px 28px; }
  /* Карточка ещё уже на маленьких экранах — гарантируем поля */
  .sh-auth-card {
    width: min(460px, calc(100% - 24px));
    border-radius: 18px;
  }
  .sh-auth-head { padding: 20px 20px 18px; gap: 12px; }
  .sh-auth-head-logo { width: 50px; height: 50px; }
  .sh-auth-head-logo img { width: 50px; height: 50px; }
  .sh-auth-head-brand { font-size: 24px; }
  .sh-auth-head-tagline { font-size: 11px; }
  .sh-auth-body { padding: 20px 20px 22px; }
  .sh-auth-title { font-size: 17px; }
  .sh-code-input { width: 40px; height: 48px; font-size: 20px; }
  .sh-code-inputs { gap: 6px; }

  .sh-auth-page--login .sh-auth-head {
    justify-content: center;
    text-align: left;
    gap: 12px;
  }
  .sh-auth-page--login .sh-auth-head-text {
    align-items: flex-start;
  }
  .sh-auth-page--register .sh-auth-head-text {
    align-items: flex-start;
  }
  .sh-auth-page--verify .sh-auth-head-text {
    align-items: flex-start;
  }
  .sh-auth-page--login .sh-auth-head-logo,
  .sh-auth-page--login .sh-auth-head-logo img {
    width: 64px;
    height: 64px;
  }
  .sh-auth-page--register .sh-auth-head-logo,
  .sh-auth-page--register .sh-auth-head-logo img {
    width: 64px;
    height: 64px;
  }
  .sh-auth-page--verify .sh-auth-head-logo,
  .sh-auth-page--verify .sh-auth-head-logo img {
    width: 64px;
    height: 64px;
  }
  .sh-auth-top-brand {
    gap: 12px;
    margin-bottom: 10px;
  }
}

/* ── Tablet & below ─── */
@media (max-width: 980px) {
  .sh-page-wrap {
    width: calc(100% - 16px);
    padding-top: 14px;
    padding-bottom: 148px;
  }
  .sh-page-wrap--account {
    width: calc(100% - 20px);
  }
  .sh-page-title { font-size: 20px; margin-bottom: 14px; }
}

/* ── Mobile: cart ─── */
@media (max-width: 640px) {
  .sh-cart-table thead { display: none; }
  .sh-cart-table, .sh-cart-table tbody { display: block; width: 100%; }
  .sh-cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
  }
  .sh-cart-table td {
    display: contents;
    padding: 0; border: none;
  }
  .sh-cart-product { grid-column: 1 / -1; }
  .sh-cart-summary {
    flex-direction: column; text-align: center; gap: 12px;
    padding: 16px;
  }
  .sh-cart-summary .sh-btn { width: 100%; }
}

/* ── Mobile: account layout ─── */
@media (max-width: 768px) {
  .sh-page-wrap--account {
    width: min(560px, calc(100% - 24px));
    padding-top: 10px;
  }
  .sh-account-layout { flex-direction: column; gap: 0; }
  .sh-account-sidebar {
    width: 100%; padding: 8px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--hub-line, #e5e7eb);
    overflow: hidden;
  }
  .sh-account-nav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px 8px;
  }
  .sh-account-nav::-webkit-scrollbar { display: none; }
  .sh-account-nav a {
    white-space: nowrap; padding: 8px 14px; font-size: 13px;
    border-radius: 10px; flex-shrink: 0;
    background: #f3f4f6;
  }
  .sh-account-nav a.active { background: rgba(255,69,33,0.08); }
  .sh-account-nav svg { width: 16px; height: 16px; }
  .sh-account-content {
    padding: 14px 6px 0;
    max-width: 560px;
    margin: 0 auto;
  }
  .sh-order-detail-title { font-size: 32px; }
  .sh-order-detail-item {
    grid-template-columns: 56px minmax(0,1fr);
    gap: 10px;
  }
  .sh-order-detail-item-img,
  .sh-order-detail-item-ph {
    width: 56px;
    height: 56px;
  }
  .sh-order-detail-item-sum {
    grid-column: 2;
    font-size: 17px;
  }
  .sh-order-detail-total {
    justify-content: space-between;
    padding: 8px 2px 0;
  }
  .sh-order-detail-total strong { font-size: 30px; }
  .sh-account-header h1 { font-size: 20px; }
  .sh-account-header { margin-bottom: 14px; }
  .sh-account-header p { font-size: 13px; }
  .sh-account-section-title { font-size: 17px; }
  .sh-account-empty {
    padding: 30px 12px;
    border-radius: 12px;
  }
  .sh-account-empty-btn {
    width: 100%;
    justify-content: center;
  }
  .sh-profile-card {
    padding: 12px;
    border-radius: 12px;
  }
  .sh-profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Order cards stack */
  .sh-order-card {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 14px 16px;
  }
  .sh-order-status { grid-column: 1 / -1; justify-self: start; }
  .sh-order-total { text-align: right; }

  /* Order detail table */
  .sh-order-items-table thead { display: none; }
  .sh-order-items-table, .sh-order-items-table tbody { display: block; }
  .sh-order-items-table tr {
    display: flex; flex-wrap: wrap; gap: 4px 12px;
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
  }
  .sh-order-items-table td { padding: 0; border: none; }
  .sh-order-items-table td:first-child {
    width: 100%; font-weight: 600;
  }
  .sh-order-items-table tfoot tr {
    justify-content: flex-end; border-top: 2px solid #e5e7eb;
    background: #fafbfc;
  }
}

/* ── Mobile: checkout ─── */
@media (max-width: 640px) {
  .sh-toast-stack {
    top: 78px;
    width: calc(100% - 16px);
  }
  .sh-toast {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .sh-toast-text { font-size: 13px; }
  .sh-checkout-actions {
    flex-direction: column;
  }
  .sh-checkout-actions .sh-btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   CART DRAWER
   ════════════════════════════════════════════════════════════ */

/* Lock scroll when drawer is open */
body.sh-drawer-lock { overflow: hidden; }

/* Overlay */
.sh-cart-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.sh-cart-overlay.open {
  opacity: 1; pointer-events: auto;
}

/* Drawer panel */
.sh-cart-drawer {
  position: fixed; z-index: 901;
  background: #fff;
  display: flex; flex-direction: column;
  transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.36, 1);
}

/* Desktop: slide from right */
@media (min-width: 641px) {
  .sh-cart-drawer {
    top: 0; right: 0; bottom: 0;
    width: 400px; max-width: calc(100vw - 48px);
    border-radius: 20px 0 0 20px;
    box-shadow: -10px 0 50px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
  }
  .sh-cart-drawer.open { transform: translateX(0); }
}

/* Mobile: slide from bottom */
@media (max-width: 640px) {
  .sh-cart-drawer {
    left: 0; right: 0; bottom: 0;
    max-height: 86dvh;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 50px rgba(15, 23, 42, 0.2);
    transform: translateY(100%);
  }
  .sh-cart-drawer.open { transform: translateY(0); }
}

/* Drawer handle (mobile hint) */
.sh-cart-drawer::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 40px; height: 4px; border-radius: 2px;
  background: #e0e3e9;
  margin: 10px auto 0;
}
@media (min-width: 641px) {
  .sh-cart-drawer::before { display: none; }
}

/* Drawer header — white */
.sh-cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f1f3f7;
}

.sh-cart-drawer-head-left {
  display: flex; align-items: center; gap: 10px;
}

.sh-cart-drawer-title {
  font-size: 17px; font-weight: 700; color: #1e2026;
  font-family: 'Inter', 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.sh-cart-drawer-count {
  background: var(--mm-orange, #ff4521); color: #fff;
  font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; line-height: 1;
}

.sh-cart-drawer-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f3f4f6; border: none; cursor: pointer;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.sh-cart-drawer-close:hover { background: #e9ebef; color: #374151; }

/* Drawer body — scrollable */
.sh-cart-drawer-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Drawer footer */
.sh-cart-drawer-foot {
  padding: 14px 20px 20px;
  border-top: 1px solid #f1f3f7;
  flex-shrink: 0;
  background: #fff;
}

.sh-cart-drawer-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px; font-size: 14px; color: #6b7280;
}

.sh-cart-drawer-total {
  font-size: 22px; font-weight: 800; color: #1e2026;
  font-feature-settings: 'tnum';
}

/* Checkout button in drawer — orange gradient */
.sh-btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  background: linear-gradient(155deg, #ff6a4d 0%, #ff4521 52%, #e63d1c 100%);
  color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 69, 33, 0.3);
  transition: box-shadow 0.2s, filter 0.2s;
}
.sh-btn-checkout:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(255, 69, 33, 0.42);
  color: #fff;
}

/* Drawer items */
.sh-drawer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s;
}
.sh-drawer-item:hover { background: #fafbfc; }

.sh-drawer-item-img {
  width: 54px; height: 54px; border-radius: 10px;
  object-fit: contain; background: #f6f7fb; flex-shrink: 0;
  border: 1px solid #eef0f5;
}
.sh-drawer-item-img--ph {
  background: linear-gradient(135deg, #f2f3f7 0%, #e8ebf2 100%);
}

.sh-drawer-item-info { flex: 1; min-width: 0; }

.sh-drawer-item-name {
  font-size: 13px; font-weight: 600; color: #1e2026;
  line-height: 1.35; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-drawer-item-price {
  font-size: 14px; font-weight: 700; color: var(--mm-orange, #ff4521);
}

/* Drawer item qty stepper */
.sh-drawer-item-qty {
  display: flex; align-items: center;
  border: 1.5px solid #e5e7eb; border-radius: 10px; overflow: hidden;
  flex-shrink: 0;
}

.sh-drawer-item-qty .sh-stepper-btn {
  width: 32px; height: 32px; border: none;
  background: #f9fafb; color: #374151;
  font-size: 17px; font-weight: 500; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sh-drawer-item-qty .sh-stepper-btn:hover { background: #f1f3f7; }

.sh-drawer-item-qty .sh-stepper-val {
  min-width: 28px; text-align: center;
  font-size: 14px; font-weight: 700; color: #1e2026;
  padding: 0 2px;
}

/* Remove button */
.sh-drawer-remove {
  border: none; background: none; color: #c4c9d4; cursor: pointer;
  font-size: 22px; line-height: 1; padding: 4px 6px; border-radius: 8px;
  transition: color 0.15s, background 0.15s; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.sh-drawer-remove:hover { color: #ef4444; background: #fef2f2; }

/* Empty state */
.sh-drawer-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 24px; text-align: center; color: #6b7280;
}
.sh-drawer-empty svg {
  width: 60px; height: 60px; color: #d1d5db; margin-bottom: 16px;
}
.sh-drawer-empty p {
  font-size: 15px; font-weight: 500; margin: 0 0 20px;
}
.sh-drawer-empty a {
  display: inline-flex; padding: 10px 24px;
  background: #f1f3f7; color: #374151; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.15s;
}
.sh-drawer-empty a:hover { background: #e5e7ec; }

/* ════════════════════════════════════════════════════════════
   PRODUCT CARD — qty stepper (replaces form after add)
   ════════════════════════════════════════════════════════════ */

.sh-card-cart { width: 100%; margin-top: 8px; }

.sh-card-add { display: flex; }
.sh-card-add .sh-add-cart-btn { width: 100%; }

.sh-card-stepper {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--mm-orange, #ff4521);
  border-radius: 10px; overflow: hidden;
  background: #fff; height: 36px;
}
.sh-card-stepper .sh-stepper-btn {
  flex: 0 0 36px;
  border: none; background: transparent;
  color: var(--mm-orange, #ff4521);
  font-size: 20px; font-weight: 600; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sh-card-stepper .sh-stepper-btn:hover {
  background: rgba(255, 69, 33, 0.07);
}
.sh-card-stepper .sh-stepper-val {
  flex: 1; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--mm-orange, #ff4521);
  line-height: 34px; border-left: 1.5px solid var(--mm-orange, #ff4521);
  border-right: 1.5px solid var(--mm-orange, #ff4521);
}

/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ════════════════════════════════════════════════════════════ */

.sh-prod-main {
  width: min(var(--hub-content-max, 1488px), calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

@media (max-width: 980px) {
  .sh-prod-main {
    width: calc(100% - 16px);
    padding-top: 14px;
    padding-bottom: 80px;
  }
}

/* ── Hero layout ── */
.sh-prod-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .sh-prod-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Gallery ── */
.sh-prod-gallery { position: relative; }

.sh-prod-img-wrap {
  background: #f8f9fb;
  border-radius: 20px;
  border: 1px solid #eef0f5;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}

.sh-prod-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
}

.sh-prod-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #c8cdd8;
}
.sh-prod-img-ph svg { width: 80px; height: 80px; }

/* ── Info panel ── */
.sh-prod-info {
  display: flex; flex-direction: column; gap: 16px;
}

.sh-prod-title {
  font-size: 22px; font-weight: 800; color: #1e2026;
  line-height: 1.3; letter-spacing: -0.02em;
  margin: 0;
}
@media (max-width: 640px) {
  .sh-prod-title { font-size: 18px; }
}

/* Price */
.sh-prod-price-block { display: flex; align-items: baseline; gap: 10px; }

.sh-prod-price {
  font-size: 34px; font-weight: 800;
  color: #1e2026; letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
@media (max-width: 640px) {
  .sh-prod-price { font-size: 28px; }
}

.sh-prod-price-empty {
  font-size: 15px; color: #9ca3af; font-style: italic;
}

/* Meta */
.sh-prod-meta {
  display: flex; flex-direction: column; gap: 6px;
  background: #f8f9fb; border-radius: 12px;
  padding: 12px 14px;
}

.sh-prod-meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}

.sh-prod-meta-label {
  color: #9ca3af; min-width: 80px; flex-shrink: 0;
}

.sh-prod-meta-val {
  color: #374151; font-weight: 600;
}

.sh-prod-group-link {
  color: var(--mm-orange, #ff4521); text-decoration: none;
  font-weight: 600;
}
.sh-prod-group-link:hover { text-decoration: underline; }

/* Cart block */
.sh-prod-cart-block {
  display: flex; gap: 10px; align-items: stretch;
}

.sh-prod-qty-wrap {
  display: flex; align-items: stretch;
  border: 1.5px solid #e5e7eb; border-radius: 14px; overflow: hidden;
  flex-shrink: 0; height: 50px;
}

.sh-prod-qty-btn {
  width: 42px; border: none; background: #f9fafb; color: #374151;
  font-size: 20px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.sh-prod-qty-btn:hover { background: #f1f3f7; }

.sh-prod-qty-input {
  width: 46px; text-align: center; border: none;
  border-left: 1.5px solid #e5e7eb; border-right: 1.5px solid #e5e7eb;
  font-size: 15px; font-weight: 700; color: #1e2026;
  font-family: inherit; outline: none; background: #fff;
  -moz-appearance: textfield;
}
.sh-prod-qty-input::-webkit-outer-spin-button,
.sh-prod-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Add button */
.sh-prod-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px;
  background: linear-gradient(155deg, #ff6a4d 0%, #ff4521 52%, #e63d1c 100%);
  color: #fff; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 69, 33, 0.28);
  transition: box-shadow 0.2s, filter 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sh-prod-add-btn:hover { filter: brightness(1.06); box-shadow: 0 6px 24px rgba(255, 69, 33, 0.4); }

/* Unavailable notice */
.sh-prod-unavailable {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; border-radius: 12px;
  background: #f8f9fb; color: #6b7280;
  font-size: 14px; font-weight: 500;
}

/* ── Tabs ── */
.sh-prod-tabs-section {
  background: #fff; border-radius: 20px;
  border: 1px solid #eef0f5;
  overflow: hidden;
  margin-bottom: 40px;
}

.sh-prod-tabs {
  display: flex; border-bottom: 1px solid #eef0f5;
  padding: 0 4px;
}

.sh-prod-tab {
  padding: 14px 20px; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #6b7280;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.sh-prod-tab:hover { color: #374151; }
.sh-prod-tab.active { color: var(--mm-orange, #ff4521); border-bottom-color: var(--mm-orange, #ff4521); }

.sh-prod-tab-panel { display: none; padding: 24px; }
.sh-prod-tab-panel.active { display: block; }

.sh-prod-description, .sh-prod-chars {
  font-size: 14px; line-height: 1.75; color: #374151;
}
.sh-prod-description p, .sh-prod-chars p { margin: 0 0 12px; }
.sh-prod-description p:last-child, .sh-prod-chars p:last-child { margin: 0; }

/* ── Related products ── */
.sh-prod-related { margin-bottom: 40px; }

.sh-prod-related-title {
  font-size: 20px; font-weight: 800; color: #1e2026;
  letter-spacing: -0.01em; margin: 0 0 20px;
}

.sh-prod-related-grid { }

.sh-product-card-link {
  display: block; text-decoration: none; color: inherit;
}

.sh-prod-card-name-link {
  display: block; text-decoration: none; color: inherit;
  transition: color 0.15s;
}
.sh-prod-card-name-link:hover { color: var(--mm-orange, #ff4521); }

/* Badge on bottom nav cart icon */
.sh-bottom-link { position: relative; }
.sh-bottom-badge {
  position: absolute; top: 2px; right: 12px;
  background: var(--mm-orange, #ff4521); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(255, 69, 33, 0.35);
}
