*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --line: #e7ebf3;
  --text: #111827;
  --muted: #667085;
  --accent: #0f62fe;
  --accent-dark: #0b1733;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(13, 24, 56, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1240px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code {
  background: #eef2f7;
  border-radius: 8px;
  padding: 2px 6px;
}
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(231,235,243,0.95);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #63a2ff, #0f62fe 60%, #062a7b 100%);
  color: #fff;
  flex: 0 0 44px;
}
.logo-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-text small {
  display: block;
  color: var(--muted);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.main-nav a:hover { background: #eff4ff; }
.cart-link {
  background: #111827;
  color: #fff !important;
}
.cart-link span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 48px;
  height: 48px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 999px;
}
.hero {
  padding: 22px 0 26px;
}
.hero-image-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eef2f7;
}
.hero-static-image {
  width: 100%;
  display: block;
}
.hero-hotspot {
  position: absolute;
  bottom: 88px;
  height: 78px;
  border-radius: 999px;
  z-index: 5;
}
.hero-hotspot-shop {
  left: 70px;
  width: 190px;
}
.hero-hotspot-brands {
  left: 275px;
  width: 255px;
}
.section {
  padding: 24px 0 48px;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-header h2,
.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}
.section-header p,
.page-header p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 58ch;
}
.page-shell {
  padding: 30px 0 58px;
}
.page-header {
  margin-bottom: 22px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.product-card,
.panel,
.brand-card,
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-card {
  overflow: hidden;
}
.product-card .product-media {
  border-radius: 18px;
  border: 1px solid var(--line);
}
.product-media {
  position: relative;
  height: 128px;
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17,24,39,0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.product-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
}
.product-brand {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 0.76rem;
}
.product-title {
  margin: 8px 0 10px;
  font-size: 1.18rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.product-title {
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-subtitle {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.quick-add-button {
  min-height: 48px;
}
.card-view-button {
  min-height: 48px;
  background: #eef4ff;
  color: #0f62fe;
}
.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.meta-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}
.meta-chip.accent {
  background: #eef4ff;
  color: #0f62fe;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.price {
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 22px;
  align-items: start;
}
.filter-panel,
.panel {
  padding: 20px;
}
.filter-panel h3,
.panel h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}
.filter-group {
  margin-bottom: 18px;
}
.filter-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.filter-panel input,
.filter-panel select,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.filter-panel input:focus,
.filter-panel select:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: #9fc0ff;
  box-shadow: 0 0 0 4px rgba(15,98,254,0.12);
}
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pagination a, .pagination span {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-weight: 700;
}
.pagination .active {
  background: #111827;
  color: #fff;
}
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
}
.gallery-panel,
.detail-panel {
  padding: 24px;
}
.gallery-main {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}
.thumb-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 8px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.spec-item {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  padding: 12px 14px;
  border-radius: 16px;
}
.spec-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th,
.cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 10px;
  vertical-align: top;
}
.cart-product {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cart-product img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
}
.qty-input {
  width: 84px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 22px;
  align-items: start;
}
.summary-box {
  padding: 20px;
  position: sticky;
  top: 100px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.summary-total {
  font-size: 1.2rem;
  font-weight: 900;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 400px;
  gap: 24px;
}
.checkout-form {
  display: grid;
  gap: 14px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.notice {
  padding: 14px 16px;
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  color: #123161;
  border-radius: 16px;
}
.empty-state {
  background: #fff;
  border: 1px dashed #cfd7e6;
  border-radius: 24px;
  text-align: center;
  padding: 42px 20px;
}
.site-footer {
  margin-top: 18px;
  background: linear-gradient(180deg, #182238 0%, #111827 100%);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.1fr .9fr;
  gap: 24px;
  padding: 38px 0 32px;
}
.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}
.footer-grid p,
.footer-grid a,
.footer-meta,
.footer-contact {
  color: rgba(255,255,255,0.78);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-contact {
  display: grid;
  gap: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.76);
}
@media (max-width: 1120px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-layout, .checkout-grid, .two-col, .catalog-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open { display: flex; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid, .field-grid, .spec-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 420px; }
  .hero-overlay-content { padding: 0 0 28px 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .hero-stage { min-height: 320px; }
  .hero-overlay-content { padding: 0 0 22px 18px; max-width: 90%; }
  .hero-content h1 { max-width: 8ch; }
  .card-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .price-row { flex-direction: column; align-items: start; }
  .cart-product { align-items: start; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; }
  .cart-table td { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

.quick-add-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1456d9;
  color: #fff;
  font-weight: 700;
}
.card-view-link {
  color: #1456d9;
  font-weight: 700;
  padding: 0 6px;
}
.product-card {
  padding: 10px;
}
.product-card .product-body {
  gap: 6px;
}
.product-card .product-brand {
  display: none;
}
.product-card .product-title {
  min-height: 2.2em;
  font-size: 1.05rem;
}
.product-card .product-subtitle {
  font-size: 0.9rem;
}
.product-card .product-media {
  height: 118px;
  margin: 4px 0 6px;
}
.product-card .price {
  font-size: 1.1rem;
}
.card-actions {
  grid-template-columns: 1fr auto;
}

.card-actions {
  display: flex;
  justify-content: flex-start;
}
