/* ============================================================
   发卡商城 style.css — 现代 SaaS 浅色风 · 主色紫 #6d5efc
   ============================================================ */
/* 跨页平滑过渡：点按钮/链接跳转时页面淡入切换，不再白屏"闪"一下
   （Chrome/Edge 等支持的浏览器自动生效，不支持的正常跳转，无副作用） */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0s; }
}

:root {
  --primary: #6d5efc;
  --primary-dark: #5143da;
  --primary-light: #eeebff;
  --bg: #f7f7fb;
  --card-bg: #ffffff;
  --text: #2b2d3a;
  --text-muted: #6a7086;
  --border: #e8eaf1;
  --danger: #f04a5e;
  --danger-bg: #ffe9ec;
  --success: #1fb981;
  --success-bg: #e4f8f0;
  --warn: #f0932b;
  --warn-bg: #fff3e0;
  --info: #3b82f6;
  --info-bg: #e7f0fe;
  --radius: 16px;
  --shadow: 0 8px 26px rgba(38, 33, 76, 0.07);
  --shadow-hover: 0 18px 38px rgba(38, 33, 76, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -8%, rgba(145, 132, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 96% 12%, rgba(99, 215, 196, 0.11), transparent 20rem),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* 标题排版刻度 */
h1 { font-size: 24px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
h2 { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 14px; }
h3 { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }

/* 品牌化选中文本 */
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-main { flex: 1; padding: 30px 0 56px; }

/* ---------- 导航栏 ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(224, 225, 237, 0.82);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 18px rgba(45, 35, 100, 0.05);
  backdrop-filter: blur(16px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand:hover { color: var(--primary); }
.brand-561 {
  min-width: 40px;
  height: 26px;
  padding: 0 7px;
  border-radius: 9px;
  background: linear-gradient(135deg, #8777ff 0%, #5b4ce5 58%, #3a32a8 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(91, 76, 229, .28), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-label { letter-spacing: -.35px; }
.brand:hover .brand-561 {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(91, 76, 229, .36), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8c7dff, #5b4ce5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(109, 94, 252, 0.5);
  transition: box-shadow 0.15s;
}
.brand-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}
.brand:hover .brand-dot { box-shadow: 0 4px 12px rgba(109, 94, 252, 0.7); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform .18s ease, opacity .18s ease;
}
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-links a {
  color: #565b70;
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links > a:not(.btn):hover { background: var(--primary-light); border-radius: 8px; }
.nav-links a.btn { color: #fff; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer p { margin: 2px 0; }
.footer a { color: var(--text-muted); transition: color 0.15s; }
.footer a:hover { color: var(--primary); }
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #eceef5;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: box-shadow .18s ease, background .18s ease, filter .18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(30, 32, 60, .08), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn:hover { filter: brightness(0.98); color: var(--text);
  box-shadow: 0 4px 10px rgba(30, 32, 60, .12), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:active { filter: brightness(0.96);
  box-shadow: inset 0 2px 5px rgba(30, 32, 60, .18); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.btn-primary {
  background: linear-gradient(135deg, #7f70ff, var(--primary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 94, 252, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #8b7bff, #6355f0); color: #fff; filter: none;
  box-shadow: 0 8px 20px rgba(109, 94, 252, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.btn-primary:active { filter: brightness(0.94);
  box-shadow: 0 2px 8px rgba(109, 94, 252, 0.4), inset 0 2px 5px rgba(60, 40, 150, 0.3); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); filter: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #d63a4d; color: #fff; filter: none; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #189c6c; color: #fff; filter: none; }

.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(229, 230, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* 不在这里对所有相邻卡片加外边距：商品网格中的卡片也是相邻兄弟，
   该规则会让第二张起产生错位。需要纵向堆叠时由页面容器显式控制间距。 */
.card-stack > .card + .card { margin-top: 20px; }
.card-body { padding: 22px; }
.card-body > :last-child { margin-bottom: 0; }
.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(118deg, #191735 0%, #292351 51%, #4e43a5 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(46, 35, 111, 0.22);
  padding: 48px 24px 42px;
  text-align: center;
  margin-bottom: 26px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -116px;
  top: -215px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 164, 255, 0.62) 0%, rgba(115, 96, 255, 0.13) 44%, transparent 71%);
}
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #ffffff, #d7d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}
.hero p {
  color: rgba(240, 239, 255, 0.76);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}
.hero::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a99fff, #65e4cc);
  margin: 18px auto 0;
}

/* ---------- 商品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--text);
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(133, 117, 255, 0.28);
  color: var(--text);
}
.product-card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: rgba(133, 117, 255, 0.34);
}
.product-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8e4ff, #faf9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
  object-fit: cover;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.045); }
.product-thumb--brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 18%, rgba(132, 116, 255, 0.16), transparent 40%),
    linear-gradient(135deg, #fbfbff, #f0effa);
}
.product-thumb--brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(27, 23, 65, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.product-thumb--brand .product-brand-logo {
  position: relative;
  z-index: 1;
  width: 66px !important;
  height: 66px !important;
  max-width: 66px;
  max-height: 66px;
  object-fit: contain !important;
  filter: none;
}
.product-card:hover .product-thumb--brand .product-brand-logo { transform: scale(1.06); }
.product-thumb--brand:has(img[src*="chatgpt"]),
.product-thumb--brand:has(img[src*="openai"]) {
  background: linear-gradient(135deg, #e8f8f3, #c8efe2);
}
.product-thumb--brand:has(img[src*="claude"]) {
  background: linear-gradient(135deg, #fff0e8, #f6d2bd);
}
.product-thumb--brand:has(img[src*="gemini"]) {
  background: linear-gradient(135deg, #edf2ff, #ddd1ff);
}
.product-thumb--brand:has(img[src*="google"]),
.product-thumb--brand:has(img[src*="gmail"]) {
  background: linear-gradient(135deg, #f7f9ff, #e6efff);
}
.product-thumb--brand:has(img[src*="grok"]),
.product-thumb--brand:has(img[src*="x.svg"]),
.product-thumb--brand:has(img[src*="x-hd"]),
.product-thumb--brand:has(img[src*="cursor"]) {
  background: linear-gradient(135deg, #f0f1f6, #d9dce8);
}
.product-thumb--brand:has(img[src*="outlook"]) {
  background: linear-gradient(135deg, #e8f3ff, #c9e5ff);
}
.product-thumb--brand:has(img[src*="perplexity"]) {
  background: linear-gradient(135deg, #e4fbfd, #bdeff3);
}
.product-thumb--brand:has(img[src*="telegram"]) {
  background: linear-gradient(135deg, #e5f5ff, #b8e1ff);
}
.product-thumb--brand:has(img[src*="apple"]) {
  background: linear-gradient(135deg, #f7f7f9, #e5e7ec);
}
.product-thumb--brand:has(img[src*="paypal"]) {
  background: linear-gradient(135deg, #eef6ff, #cfe6ff);
}
.product-thumb--brand:has(img[src*="kiro"]) {
  background: linear-gradient(135deg, #f3eeff, #d9c9ff);
}
.product-thumb--brand:has(img[src*="virtual-card"]) {
  background: linear-gradient(135deg, #eeecff, #cdd4ff);
}
.product-thumb--brand:has(img[src*="gift-card"]) {
  background: linear-gradient(135deg, #fff0f2, #ffd2dd);
}
.bestseller-logo--brand {
  object-fit: contain !important;
  padding: 5px;
  background: #fff;
  border: 1px solid rgba(225, 226, 237, 0.9);
}
.product-card .card-body,
.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 13px; font-weight: 500; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  background: #eceef5;
  color: #565b70;
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: #0b6e4d; }
.badge-danger { background: var(--danger-bg); color: #c22f42; }
.badge-warn { background: var(--warn-bg); color: #8a5200; }
.badge-muted { background: #eef0f6; color: var(--text-muted); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { font-variant-numeric: tabular-nums; }
.order-no, .table .mono {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 13px;
}
.table th {
  background: #f8f8fc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
}
.table tbody tr:hover { background: #f8f8fe; }
.table tbody tr:last-child td { border-bottom: none; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9dbe7;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.15);
}
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: #bfc2d3; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* 数量加减 */
.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcdfe8;
  border-radius: 10px;
  overflow: hidden;
}
.qty-box button {
  width: 36px;
  height: 38px;
  border: none;
  background: #f4f5fa;
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
}
.qty-box button:hover { background: var(--primary-light); color: var(--primary); }
.qty-box input {
  width: 56px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 15px;
  outline: none;
}

/* ---------- Alert / Flash ---------- */
.flash-area { max-width: 560px; margin: 0 auto 18px; }
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #12805a; border-color: #bfeedd; }
.alert-error { background: var(--danger-bg); color: #c22f42; border-color: #ffd0d7; }
.alert-info { background: var(--info-bg); color: #235faf; border-color: #c9ddfb; }

/* ---------- 分类 Tabs ---------- */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  color: #565b70;
  font-size: 14px;
  border: 1px solid rgba(229, 230, 240, 0.9);
  box-shadow: 0 2px 8px rgba(45, 35, 100, 0.04);
  transition: all 0.15s;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.is-active {
  background: linear-gradient(135deg, var(--primary), #8b7bff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 94, 252, 0.35);
}
.cat-tab__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ---------- 商城首页强化 ---------- */
.storefront-hero .badge {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.10);
  color: #f8f7ff;
  padding: 4px 11px;
  backdrop-filter: blur(8px);
}
.ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #f7f6ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-badge { display: inline-flex; align-items: center; gap: 6px; }
.service-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 0;
  padding: 11px 14px;
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  color: var(--text-muted);
  box-shadow: 0 4px 16px rgba(45,35,100,.035);
}
.service-notice__status {
  width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(31,185,129,.12);
}
.service-notice--preparing .service-notice__status { background: var(--warn); box-shadow: 0 0 0 4px rgba(240,147,43,.13); }
.service-notice__copy { min-width: 0; flex: 1; }
.service-notice strong { color: var(--text); font-size: 13px; margin-right: 8px; }
.service-notice__copy span { font-size: 13px; line-height: 1.55; }
.service-notice__link { flex: 0 0 auto; font-size: 13px; font-weight: 600; }
.sales-marquee__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.12);
}
.product-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: radial-gradient(circle at 72% 22%, rgba(135, 119, 255, .22), transparent 25%), linear-gradient(135deg, #f5f3ff, #edf5ff);
}
.product-fallback::after {
  content: "";
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(135deg, #7c6bff, #5143d8);
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 12px 26px rgba(79, 68, 205, .22);
}
.product-fallback--small { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; }
.product-fallback--small::after { width: 23px; height: 23px; border-radius: 8px; box-shadow: none; }
.product-trust-icon { display: grid; place-items: center; height: 28px; color: var(--primary); }
.product-thumb--brand:has(img[src*="dreamina-current"]) {
  background: radial-gradient(circle at 76% 20%, rgba(87, 113, 255, .28), transparent 28%), #11131d;
}
.product-thumb--brand:has(img[src*="dreamina-current"])::before {
  background: #181a27;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}
.product-thumb--brand img[src*="dreamina-current"] {
  object-fit: cover !important;
  object-position: left center;
}
.storefront-hero .form-input {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(13, 11, 36, 0.16);
}
.storefront-hero .btn-primary { min-width: 84px; }
.sales-marquee {
  box-shadow: 0 6px 18px rgba(45, 35, 100, 0.05);
}
.product-card .btn { min-height: 42px; }
.product-card .badge { letter-spacing: 0.01em; }
.footer {
  background: linear-gradient(180deg, #fff, #fafaff);
}
.help-card-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.help-card-link .card { height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.help-card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(133, 117, 255, 0.28);
}

/* ---------- Customer service ---------- */
.customer-service { position: fixed; right: 20px; bottom: 20px; z-index: 120; }
.customer-service__toggle {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff;
  background: linear-gradient(145deg, #776aff, #5847d8);
  box-shadow: 0 14px 30px rgba(72,58,184,.32), inset 0 1px rgba(255,255,255,.34);
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.customer-service__toggle:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(72,58,184,.38), inset 0 1px rgba(255,255,255,.34); }
.customer-service__toggle:focus-visible { outline: 3px solid rgba(109,94,252,.24); outline-offset: 3px; }
.customer-service__toggle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-service__panel {
  position: absolute; right: 0; bottom: 66px; width: min(324px, calc(100vw - 28px));
  overflow: hidden; border: 1px solid rgba(224,224,238,.9); border-radius: 22px;
  background: rgba(255,255,255,.94); box-shadow: 0 24px 64px rgba(38,34,75,.2);
  backdrop-filter: blur(22px) saturate(1.12); opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(.98); transform-origin: right bottom;
  pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.customer-service.is-open .customer-service__panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.customer-service.is-open .customer-service__toggle { transform: scale(.94); }
.customer-service__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; }
.customer-service__header strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.customer-service__header span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12.5px; }
.customer-service__close {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0;
  border-radius: 50%; color: #7d8192; background: #f4f4f8; font-size: 20px; cursor: pointer;
}
.customer-service__links { display: grid; gap: 9px; padding: 4px 13px 13px; }
.customer-channel {
  display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 13px;
  border: 1px solid #e7e8f0; border-radius: 16px; color: var(--text);
  background: linear-gradient(145deg, #fff, #f7f8fc);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.customer-channel:hover { color: var(--text); transform: translateX(2px); border-color: #d8d5f2; box-shadow: 0 9px 22px rgba(47,42,97,.08); }
.customer-channel--telegram { background: linear-gradient(145deg, #f7fcff, #edf8ff); }
.customer-channel__icon {
  display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto;
  border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(55,59,90,.07);
}
.customer-channel__icon img { width: 28px; height: 28px; object-fit: contain; }
.customer-channel__copy { min-width: 0; flex: 1; }
.customer-channel__copy strong { display: block; font-size: 14.5px; }
.customer-channel__copy small { display: block; max-width: 165px; margin-top: 2px; overflow: hidden; color: #777b8d; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.customer-channel__action {
  display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto;
  border-radius: 50%; color: #5b50d6; background: rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 1px rgba(85,73,203,.1);
}
.customer-channel__action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-service__help { padding: 7px 4px 2px; color: var(--text-muted); text-align: center; font-size: 11.5px; }
@media (max-width: 640px) {
  .customer-service { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .customer-service__panel { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-service__toggle, .customer-service__panel, .customer-channel { transition: none; }
}

/* ---------- Catalog availability ---------- */
.product-catalog--collapsed:not(.show-soldout) .product-card--soldout { display: none; }
.soldout-toggle-wrap { display: flex; justify-content: center; margin: 24px 0 4px; }
.soldout-toggle-wrap .btn { min-width: 210px; }

/* ---------- Secure order lookup ---------- */
.order-query-wrap { width: min(620px, 100%); margin: 42px auto 0; }
.order-query-card { overflow: hidden; }
.order-query-card .card-body { padding: clamp(24px, 5vw, 38px); }
.order-query-card h1 { margin: 0 0 7px; text-align: center; font-size: 25px; }
.order-query-card > .card-body > p { margin: 0 0 26px; text-align: center; }
.order-query-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #7c70ff, #5948db);
  box-shadow: 0 12px 26px rgba(89, 72, 219, .26);
}
.order-query-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-query-form { margin-top: 4px; }
.order-query-form .form-input { font-size: 16px; }
.order-query-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #e4e6f1;
  border-radius: 12px;
  background: #f8f9fd;
  color: #676c80;
  font-size: 12.5px;
  line-height: 1.65;
}
.order-query-note .ui-icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--primary); }
.order-query-help { margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.link-button { border: 0; padding: 0; background: none; color: var(--primary); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .order-query-wrap { margin-top: 20px; }
  .order-query-card .card-body { padding: 24px 18px; }
}

/* ---------- Recovered established components ---------- */

.help-card-link:hover .card { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(133, 117, 255, 0.28); }

.login-card, .auth-card { box-shadow: rgba(45, 35, 100, 0.12) 0px 18px 42px; }

.oq-wrap > .card:first-child { box-shadow: rgba(45, 35, 100, 0.12) 0px 18px 42px; }

.admin-wrap { display: flex; min-height: calc(-60px + 100vh); align-items: stretch; gap: 0px; margin: -28px -16px -48px; }

.admin-side { width: 210px; flex-shrink: 0; background: rgb(35, 37, 58); padding: 22px 12px; color: rgb(170, 170, 187); }

.admin-side .admin-side-title { color: rgb(255, 255, 255); font-size: 15px; font-weight: 700; padding: 0px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 12px; }

.admin-side a { display: block; padding: 10px 14px; border-radius: 10px; color: rgb(169, 173, 196); font-size: 14px; margin-bottom: 4px; transition: 0.15s; }

.admin-side a:hover { background: rgba(255, 255, 255, 0.06); color: rgb(255, 255, 255); }

.admin-side a.is-active { background: linear-gradient(135deg, var(--primary), #8b7bff); color: rgb(255, 255, 255); box-shadow: rgba(109, 94, 252, 0.4) 0px 4px 12px; }

.admin-content { flex: 1 1 0%; min-width: 0px; padding: 26px 28px 48px; }

.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

.admin-topbar h1, .admin-topbar h2 { font-size: 20px; font-weight: 700; margin-bottom: 0px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

.stat-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; position: relative; overflow: hidden; }

.stat-card::before { content: ""; position: absolute; left: 0px; top: 0px; bottom: 0px; width: 4px; background: linear-gradient(180deg, var(--primary), #9d8dff); }

.stat-num { font-size: clamp(20px, 2vw, 26px); font-weight: 800; color: var(--text); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.card-secret, .code-block { background: linear-gradient(135deg, rgb(247, 246, 255), rgb(241, 239, 255)); border: 1px dashed rgb(189, 181, 245); border-radius: 10px; padding: 12px 14px; font-family: SFMono-Regular, Consolas, "Courier New", monospace; font-size: 13px; word-break: break-all; white-space: pre-wrap; }

.text-muted { color: var(--text-muted); }

.text-center { text-align: center; }

.flex { display: flex; gap: 10px; }

.items-center { align-items: center; }

.justify-between { justify-content: space-between; }

.empty { text-align: center; color: var(--text-muted); padding: 56px 16px; font-size: 14px; }

.empty::before {
  content: "";
  display: block;
  width: 50px;
  height: 38px;
  margin: 0 auto 18px;
  border: 2px solid #9aa3b8;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff 0%, #f4f6fb 100%);
  box-shadow: inset 0 0 0 4px #fff, 0 8px 22px rgba(74, 85, 115, 0.12);
  transform: perspective(80px) rotateX(-3deg);
}

.empty--inline { padding: 24px 16px; }

.empty--inline::before { content: none; }

.mt-1 { margin-top: 8px; }

.mt-2 { margin-top: 16px; }

.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }

.mb-2 { margin-bottom: 16px; }

.mb-3 { margin-bottom: 24px; }

.page-title { font-size: 22px; font-weight: 700; margin-bottom: 18px; }

.narrow { max-width: 420px; margin: 0px auto; }

.page-narrow { max-width: 640px; margin: 16px auto 0px; }

.page-narrow--sm { max-width: 420px; }

.card-body > h1:first-child, .card-body > h2:first-child { letter-spacing: -0.02em; }

.card-body > h2:not(:first-child) { margin-top: 30px; }

.card-body > p + h2, .card-body > ol + h2 { margin-top: 30px; }

.card-body ol, .card-body ul { padding-left: 22px; }

.card-body li + li { margin-top: 8px; }

.table-wrap { border: 1px solid var(--border); border-radius: 12px; background: rgb(255, 255, 255); }

.pay-amount { font-size: 20px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }

@keyframes pulse { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.pulse { animation: 1.6s ease-in-out 0s infinite normal none running pulse; }

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: auto ease 0s 1 normal none running none; }
}

a:focus-visible, .btn:focus-visible, .cat-tab:focus-visible, .admin-side a:focus-visible, .qty-box button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.qty-box input:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }

@media (max-width: 768px) {
  .navbar-inner { height: auto; min-height: 60px; padding: 10px 0px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links { display: none; order: 3; width: 100%; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow); }
  .navbar.nav-open .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .nav-links a { padding: 9px 10px; border-radius: 8px; }
  .nav-links a.btn { justify-content: center; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 16px; }
  .form-input, .form-select, .form-textarea { font-size: 16px; }
  .btn-sm { min-height: 38px; padding: 8px 14px; }
  .cat-tab { padding: 9px 18px; }
  .admin-wrap { flex-direction: column; margin: -28px -16px -48px; }
  .admin-side { width: 100%; display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 10px 12px; scroll-padding-inline: 12px; mask-image: linear-gradient(to right, rgb(0, 0, 0) 85%, transparent); }
  .admin-side .admin-side-title { display: none; }
  .admin-side a { white-space: nowrap; margin-bottom: 0px; padding: 8px 12px; }
  .admin-content { padding: 18px 14px 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .table th, .table td { padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 640px) {
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-padding-inline: 8px; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; }
  .hero { padding: 36px 18px 32px; border-radius: 18px; }
  .hero h1 { font-size: 23px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-num { font-size: 21px; }
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0px !important; margin: -1px !important; overflow: hidden !important; clip: rect(0px, 0px, 0px, 0px) !important; white-space: nowrap !important; border: 0px !important; }

.storefront-hero { padding: 34px 24px 28px; margin-bottom: 22px; }

.storefront-hero h1 { font-size: 30px; letter-spacing: -0.4px; }

.storefront-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.storefront-brand__number {
  min-width: 72px;
  padding: 5px 12px 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9183ff 0%, #6f5ef6 58%, #4b3ccc 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: .72em;
  font-weight: 900;
  letter-spacing: 1.4px;
  line-height: 1.1;
  box-shadow: 0 10px 28px rgba(90, 70, 225, .38), inset 0 1px 0 rgba(255,255,255,.36);
}

.storefront-brand__word {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.hero-slogan { font-size: 16px !important; font-weight: 600; color: rgba(255,255,255,.88) !important; }
.hero-catalog-line { margin-top: 7px; color: rgba(232,230,255,.62); font-size: 12px; letter-spacing: .35px; }

.storefront-search { display: grid; grid-template-columns: minmax(0px, 1fr) auto; gap: 10px; width: min(620px, 100%); margin: 20px auto 0px; }

.storefront-search__field { display: flex; align-items: center; gap: 9px; min-width: 0px; padding: 0px 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; background: rgba(255, 255, 255, 0.97); color: rgb(119, 123, 145); box-shadow: rgba(13, 11, 36, 0.17) 0px 8px 22px; transition: box-shadow 0.18s, border-color 0.18s; }

.storefront-search__field:focus-within { border-color: rgba(151, 137, 255, 0.9); box-shadow: rgba(149, 134, 255, 0.23) 0px 0px 0px 3px, rgba(13, 11, 36, 0.17) 0px 8px 22px; }

.storefront-search__field input { width: 100%; min-width: 0px; min-height: 44px; border: 0px; outline: 0px; background: transparent; color: var(--text); font: inherit; }

.storefront-search .btn { min-width: 104px; min-height: 46px; }

.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.service-notice { margin-bottom: 12px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

.section-heading h2 { margin: 1px 0px 0px; font-size: 20px; }

.section-heading--compact { margin-bottom: 12px; }

.section-eyebrow { display: block; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }

.result-count { flex: 0 0 auto; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.catalog-controls { margin: 0px 0px 20px; }

.catalog-controls .cat-tabs { margin-bottom: 0px; }

.filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: -4px 0px 20px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.8); color: var(--text-muted); font-size: 13px; }

.filter-summary strong { color: var(--text); }

.filter-summary a { font-weight: 600; }

.bestseller-section { margin: 20px 0px 26px; }

.bestseller-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

.bestseller-card { display: flex; align-items: center; gap: 12px; min-width: 0px; padding: 12px 14px; color: var(--text); text-decoration: none; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }

.bestseller-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.bestseller-rank { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; background: rgb(129, 134, 154); color: rgb(255, 255, 255); font-size: 12px; font-weight: 800; }

.bestseller-rank--1 { background: var(--danger); }

.bestseller-rank--2 { background: var(--warn); }

.bestseller-rank--3 { background: var(--primary); }

.bestseller-logo { width: 44px; height: 44px; object-fit: cover; border-radius: 11px; flex: 0 0 auto; }

.bestseller-copy { min-width: 0px; flex: 1 1 0%; }

.bestseller-copy .product-title { display: block; white-space: nowrap; text-overflow: ellipsis; }

.bestseller-copy .text-muted { display: block; margin-top: 2px; font-size: 12px; }

.bestseller-card > .price { flex: 0 0 auto; }

.product-catalog { margin-top: 4px; }

.product-card { border: 1px solid rgba(229, 230, 240, 0.92); }

.product-stock-chip { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; background: rgba(30, 31, 42, 0.76); color: rgb(255, 255, 255); font-size: 11px; font-weight: 700; line-height: 1.6; backdrop-filter: blur(8px); }

.product-card--soldout .product-thumb::after { content: ""; position: absolute; inset: 0px; z-index: 2; pointer-events: none; background: rgba(255, 255, 255, 0.08); }

.product-card--soldout .product-brand-logo { opacity: 0.88; }

.product-description { display: -webkit-box; min-height: 40px; margin: 0px; overflow: hidden; color: var(--text-muted); font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }

.product-sales { color: var(--text-muted); font-size: 12px; }

.product-action { margin-top: auto; padding-top: 6px; }

.catalog-empty { padding: 54px 20px; }

.catalog-empty h2 { margin: 12px 0px 6px; font-size: 19px; }

.catalog-empty p { color: var(--text-muted); }

.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0px auto; border-radius: 16px; background: var(--primary-light); color: var(--primary); }

.empty-icon .ui-icon { width: 24px; height: 24px; }

.empty-actions { margin-top: 18px; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 14px 0px; color: var(--text-muted); font-size: 13px; }

.breadcrumb a { color: var(--text-muted); }

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb [aria-current="page"] { max-width: 48ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.product-layout { display: grid; grid-template-columns: minmax(0px, 1fr) minmax(330px, 0.96fr); gap: 22px; align-items: start; }

.product-summary-card, .purchase-card { min-width: 0px; }

.product-detail-title { margin-bottom: 8px; font-size: 23px; }
.product-detail-thumb { position: relative; overflow: hidden; }
.product-detail-thumb > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-delivery-note { margin-bottom: 12px; color: var(--text-muted); font-size: 13px; }

.product-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.product-trust-item { padding: 10px 6px; border: 1px solid rgb(235, 233, 255); border-radius: 11px; background: rgb(248, 247, 255); text-align: center; }

.purchase-card { position: sticky; top: 82px; box-shadow: rgba(45, 35, 100, 0.11) 0px 18px 42px; }
.mobile-purchase-bar { display: none; }

.purchase-title { margin-bottom: 14px; font-size: 19px; }
.purchase-title { scroll-margin-top: 84px; }

.product-detail-card { margin-top: 22px; }

.product-detail-heading { margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--primary); font-size: 17px; }

.product-detail-copy { color: rgb(69, 73, 91); font-size: 14.5px; line-height: 1.85; white-space: pre-line; }

.checkout-mode-notice { align-items: center; }
.checkout-mode-notice .ui-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.result-state-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%;
}
.result-state-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.result-state-icon--pending { background: #fff4e3; color: #d98a1f; }
.result-state-icon--success { background: #e6f7ee; color: #1a9e57; }
.result-state-icon--review { background: #fff4e3; color: #d98a1f; }
.result-state-icon--cancelled { background: #eef0f6; color: #7f8497; }

@media (max-width: 768px) {
  .storefront-hero { padding: 28px 18px 24px; }
  .storefront-hero h1 { font-size: 26px; }
  .service-notice { padding: 12px 13px; }
  .service-notice span { font-size: 13px; }
  .product-layout { grid-template-columns: 1fr; }
  .purchase-card { position: static; }
  .bestseller-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .product-page .page-main { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .product-page .customer-service { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mobile-purchase-bar {
    position: fixed; z-index: 110; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px max(16px, calc((100vw - 1120px) / 2)) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(224,225,237,.9); background: rgba(255,255,255,.94);
    box-shadow: 0 -12px 32px rgba(38,33,76,.1); backdrop-filter: blur(18px) saturate(1.15);
  }
  .mobile-purchase-bar__price { display: grid; line-height: 1.2; }
  .mobile-purchase-bar__price span { color: var(--text-muted); font-size: 11px; }
  .mobile-purchase-bar__price strong { margin-top: 3px; color: var(--primary); font-size: 20px; font-variant-numeric: tabular-nums; }
  .mobile-purchase-bar .btn { min-width: 132px; min-height: 44px; }
}

@media (max-width: 520px) {
  .storefront-brand { gap: 8px; }
  .storefront-brand__number { min-width: 62px; padding: 5px 10px; border-radius: 12px; }
  .hero-slogan { font-size: 14px !important; }
  .hero-catalog-line { font-size: 11px; }
  .storefront-search { grid-template-columns: minmax(0px, 1fr) auto; gap: 7px; }
  .storefront-search__field { padding: 0px 11px; }
  .storefront-search__field input { min-height: 42px; font-size: 14px; }
  .storefront-search .btn { min-width: 76px; min-height: 44px; padding-inline: 12px; }
  .hero-trust { gap: 6px; }
  .storefront-hero .badge { padding: 3px 8px; font-size: 11px; }
  .service-notice { align-items: flex-start; gap: 10px; }
  .service-notice__copy span { display: block; margin-top: 2px; }
  .service-notice__link { align-self: center; }
  .section-heading h2 { font-size: 18px; }
  .result-count { font-size: 12px; }
  .product-grid { gap: 10px; }
  .product-card .card-body { padding: 12px; gap: 7px; }
  .product-card .product-thumb { aspect-ratio: 1.35 / 1; }
  .product-card .product-title { font-size: 14px; }
  .product-card .price { font-size: 17px; }
  .product-card .badge { padding-inline: 7px; font-size: 10px; }
  .product-description { min-height: 36px; font-size: 12px; }
  .product-action .btn { min-height: 38px; padding: 8px; font-size: 13px; }
  .bestseller-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 1px 8px; }
  .bestseller-card { min-width: 270px; scroll-snap-align: start; }
  .product-trust-grid { gap: 6px; }
  .product-trust-item { padding-inline: 4px; font-size: 11px; }
}
