:root {
  --text: #121826;
  --muted: #4b5563;
  --line: #d8dee8;
  --soft: #eef1f6;
  --panel: #fff;
  --surface: #f5f3ef;
  --brand: #d91c24;
  --brand-hover: #b8141c;
  --brand-dark: #0f172a;
  --brand-glow: rgba(217, 28, 36, .18);
  --accent: #0d9488;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-orange: #ea580c;
  --gold: #d97706;
  --shadow: 0 16px 42px rgba(15, 23, 42, .12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, .08);
  --gradient-brand: linear-gradient(135deg, #d91c24 0%, #ea580c 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 48%, #2563eb 100%);
  --gradient-footer: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  --space-page: 36px;
  --space-section: 28px;
  --space-card: 20px;
  --space-inline: 16px;
  --space-compact: 12px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.utility-bar {
  min-height: 36px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: #e5e7eb;
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.utility-bar a {
  color: #f3f4f6;
}

.utility-bar a:hover {
  color: #fca5a5;
}

.utility-actions {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.plain-button,
.text-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.text-button {
  color: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 680px) auto;
  gap: 28px;
  align-items: center;
  min-height: 78px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 4px;
}

.header-actions,
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-controls {
  flex-wrap: wrap;
  gap: 14px 18px;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.icon-button:hover,
.segmented button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f5;
}

.cart-trigger span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.category-nav {
  display: flex;
  gap: 8px;
  padding: 12px 32px;
  overflow-x: auto;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.nav-link:hover {
  background: var(--soft);
  border-color: var(--line);
  color: var(--brand-dark);
}

.nav-link.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px var(--brand-glow);
}

main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 26px var(--space-page) 64px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--accent-blue);
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.catalog-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 104px;
  border-right: 2px solid var(--line);
  padding: 12px 28px 12px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(238, 241, 246, .5) 100%);
  border-radius: 0 12px 12px 0;
}

.filter-title,
.cart-head,
.toolbar,
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-title h2,
.cart-head h2 {
  font-size: 20px;
  margin: 0;
}

.filter-block {
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.filter-block h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  padding: 2px 0 2px 14px;
  border-left: 4px solid var(--brand);
}

.choice-list {
  display: grid;
  gap: 12px;
  color: #333;
  font-size: 14px;
}

.choice-list.compact {
  max-height: 250px;
  overflow: auto;
  padding: 8px 4px 8px 10px;
  margin-right: -2px;
  border-radius: 10px;
  background: rgba(248, 250, 252, .72);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .45) transparent;
}

.choice-list.compact::-webkit-scrollbar {
  width: 5px;
}

.choice-list.compact::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.choice-list.compact::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .38);
  border-radius: 999px;
}

.choice-list.compact::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, .52);
}

.choice-list label span {
  margin-left: auto;
  padding-left: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.choice-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.choice-list label:hover {
  background: rgba(238, 241, 246, .8);
}

.choice-list input {
  accent-color: var(--brand);
}

.catalog-main {
  min-width: 0;
}

.catalog-heading {
  margin-bottom: 20px;
  padding: 4px 2px 0;
}

.catalog-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.catalog-heading p {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 16px;
}

.toolbar {
  min-height: 58px;
  padding: 14px 6px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
}

select {
  min-height: 42px;
  min-width: 148px;
  padding: 0 46px 0 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: #222;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

select:hover {
  border-color: #b8c0cc;
}

select:focus {
  outline: 0;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.segmented {
  display: inline-flex;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
  gap: 2px;
  background: #fff;
}

.segmented button {
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #555;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--gradient-brand);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

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

.product-card {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-card:hover {
  border-color: rgba(217, 28, 36, .35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity .22s ease, transform .22s ease;
}

.product-image .hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-image img:first-child {
  transform: scale(1.035);
}

.product-card:hover .product-image .hover {
  opacity: 1;
}

.wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.wish.active {
  color: var(--brand);
  border-color: rgba(225, 39, 45, .35);
}

.product-info {
  padding: 18px var(--space-card) var(--space-card);
}

.product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
  max-height: 3em;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  word-break: break-word;
}

.price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

.sku {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.variant-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 26px;
  margin-top: 10px;
}

.variant-pill {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  background: rgba(238, 241, 246, .95);
}

.variant-pill.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  margin-top: 16px;
}

.add-button,
.checkout-button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px var(--brand-glow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.add-button:hover,
.checkout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(217, 28, 36, .28);
}

.detail-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--brand-dark);
  font-weight: 600;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.detail-button:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #eff6ff;
}

.product-grid.list .product-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
}

.product-grid.list .product-info {
  padding: 22px 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.pagination button.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 2px dashed #cfcfcf;
  color: var(--muted);
  border-radius: 12px;
  padding: 32px 24px;
}

.site-footer {
  border-top: 3px solid var(--brand);
  background: var(--gradient-footer);
  color: #fff;
}

.footer-grid strong {
  color: #fca5a5;
}

.footer-grid a {
  color: #e5e7eb;
}

.footer-grid a:hover {
  color: #fff;
}

.site-footer img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  display: block;
}

.footer-grid {
  max-width: 1460px;
  margin: 0 auto;
  padding: 36px var(--space-page) 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer-grid p {
  margin: 10px 0 0;
  color: #cfcfcf;
  line-height: 1.7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.detail-main-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 2px solid var(--line);
  border-radius: 14px;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
}

.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.thumb-row button {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.detail-category {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(238, 241, 246, .95);
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.detail-price {
  margin-top: 18px;
  color: var(--brand);
  font-size: 32px;
  font-weight: 800;
}

.spec-list {
  margin: 22px 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
}

.variant-section h2,
.description-section h2,
.related-section h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.detail-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 4px 2px 4px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .45) transparent;
}

.detail-variants::-webkit-scrollbar {
  width: 5px;
}

.detail-variants::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.detail-variants::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .38);
  border-radius: 999px;
}

.detail-variants::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, .52);
}

.detail-variants button {
  min-height: 58px;
  display: grid;
  gap: 4px;
  justify-items: start;
  border: 1px solid rgba(216, 222, 232, .95);
  border-radius: 10px;
  background: #fafbfc;
  padding: 12px 16px;
  text-align: left;
  color: #334155;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.detail-variants button:not(.disabled):hover {
  border-color: rgba(148, 163, 184, .85);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.detail-variants button.disabled {
  color: #8a8a8a;
  background: #f8f8f8;
}

.detail-variants strong {
  color: var(--brand);
  font-size: 14px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.detail-button.wide {
  min-height: 42px;
}

.description-section,
.related-section,
.empty-detail,
.simple-page {
  margin-top: 42px;
}

.simple-page {
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.simple-page h1 {
  margin: 0;
  padding: 32px 36px;
  font-size: clamp(28px, 4vw, 38px);
  color: #fff;
  background: var(--gradient-hero);
}

.description-section,
.related-section,
.empty-detail {
  border-top: 2px solid var(--line);
  padding: 28px 4px 0;
}

.detail-info {
  padding: 4px 2px 0;
}

.description-section p,
.simple-page p,
.muted {
  color: var(--muted);
  line-height: 1.8;
}

.simple-page p {
  padding: 0 36px;
  margin: 18px 0 0;
}

.simple-page p:last-child {
  padding-bottom: 32px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px var(--brand-glow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.primary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(217, 28, 36, .28);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
}

.secondary-link:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
}

.text-link {
  color: var(--accent-blue);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f6f6f6;
}

.related-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
  max-height: 3em;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.related-card span {
  color: var(--brand);
  font-weight: 800;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, .36);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 50px rgba(0, 0, 0, .14);
  transform: translateX(104%);
  transition: transform .22s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-items {
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0;
  margin: 20px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  max-height: 68px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-line-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}

.cart-line strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  max-height: 2.7em;
  font-weight: 600;
}

.cart-line-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-line-remove {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  padding: 0;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.cart-line-remove:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f5;
}

.cart-line-remove svg {
  width: 16px;
  height: 16px;
}

.cart-items .cart-empty {
  min-height: 140px;
  margin: 12px 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.home-main {
  padding-top: 28px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 28px;
  padding: 36px;
  border-radius: 20px;
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.home-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 28, 36, .35) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.home-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
}

.home-hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.75;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-stat-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.hero-stat-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.hero-stat-card span {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.hero-stat-card.accent-red {
  border-left: 4px solid var(--brand);
}

.hero-stat-card.accent-teal {
  border-left: 4px solid #2dd4bf;
}

.hero-stat-card.accent-gold {
  border-left: 4px solid #fbbf24;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.promo-card {
  padding: 24px 28px;
  border-radius: 16px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.promo-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.promo-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.6;
}

.promo-card a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.promo-card a:hover {
  background: rgba(255, 255, 255, .28);
}

.promo-red {
  background: linear-gradient(135deg, #d91c24 0%, #be123c 100%);
}

.promo-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.promo-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.section-block {
  margin-top: 34px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--brand-dark);
}

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

.category-tile {
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  border-radius: 16px;
  border: 2px solid transparent;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong {
  font-size: 18px;
  line-height: 1.35;
}

.category-tile span:last-child {
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
}

.tile-red {
  background: linear-gradient(145deg, #dc2626 0%, #991b1b 100%);
}

.tile-blue {
  background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
}

.tile-teal {
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
}

.tile-purple {
  background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
}

.tile-gold {
  background: linear-gradient(145deg, #d97706 0%, #b45309 100%);
}

.tile-dark {
  background: linear-gradient(145deg, #0f172a 0%, #334155 100%);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 28px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.trust-red {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 28, 36, .15);
}

.trust-teal {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .15);
}

.trust-blue {
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.trust-gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, .15);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.trust-item a {
  color: var(--accent-blue);
  font-weight: 600;
}

.trust-item a:hover {
  color: var(--brand);
}

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

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .utility-bar {
    padding: 0 18px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 18px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .category-nav {
    padding: 10px 18px;
  }

  main {
    padding: 20px 22px 48px;
  }

  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
    position: static;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 20px 22px;
  }

  .filters.open {
    display: block;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 4px;
  }

  .toolbar-controls {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .simple-page h1 {
    padding: 24px 22px;
  }

  .simple-page p {
    padding: 0 22px;
  }

  .simple-page p:last-child {
    padding-bottom: 24px;
  }

  .footer-grid {
    padding: 28px 22px 32px;
  }

  .promo-strip {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .utility-actions {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

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

  .catalog-heading {
    align-items: flex-start;
  }

  .catalog-heading h1 {
    font-size: 32px;
  }

  .product-grid,
  .product-grid.list {
    grid-template-columns: 1fr;
  }

  .product-grid.list .product-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-variants,
  .detail-actions,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.chat-widget > * {
  pointer-events: auto;
}

.chat-teaser {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: min(360px, calc(100vw - 44px));
  transition: opacity .22s ease, transform .22s ease;
}

.chat-widget.is-open .chat-teaser {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.chat-teaser-bubble {
  position: relative;
  padding: 12px 16px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
  max-width: 260px;
  animation: chatTeaserIn .35s ease;
}

.chat-teaser-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: rotate(-45deg);
}

.chat-launcher {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 28px var(--brand-glow);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 28, 36, .28);
}

.chat-launcher svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.chat-launcher-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.chat-panel {
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-widget.is-open .chat-panel {
  display: flex;
  animation: chatPanelIn .24s ease;
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--gradient-hero);
  color: #fff;
}

.chat-panel-head strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.chat-panel-head span {
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}

.chat-panel-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-panel-close:hover {
  background: rgba(255, 255, 255, .18);
}

.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .45) transparent;
}

.chat-msg {
  display: flex;
}

.chat-msg-bot {
  justify-content: flex-start;
}

.chat-msg-user {
  justify-content: flex-end;
}

.chat-msg-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-msg-bot .chat-msg-bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg-user .chat-msg-bubble {
  background: var(--gradient-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: #fff;
}

.chat-quick button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.chat-quick button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f5;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-form input {
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.chat-form input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.chat-form button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@keyframes chatTeaserIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-teaser-bubble {
    max-width: 200px;
    font-size: 12px;
    padding: 10px 12px;
  }

  .chat-launcher {
    width: 52px;
    height: 52px;
  }

  .chat-panel {
    width: calc(100vw - 28px);
    height: min(68vh, 520px);
  }
}
