:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-soft: #edf2f7;
  --text: #101828;
  --muted: #667085;
  --line: #d8dee8;
  --accent: #ff6a00;
  --accent-dark: #d94b00;
  --accent-soft: rgba(255, 106, 0, 0.1);
  --brand: #131a28;
  --success: #15803d;
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 26px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.1), transparent 24%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
}

.panel {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(249, 251, 253, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.brand-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.brand-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.search-wrap {
  display: block;
}

.search-label {
  display: none;
}

.search-input {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.nav-chip {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-chip-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(255, 106, 0, 0.18);
}

.hero {
  padding: 28px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.hero-copy,
.hero-side {
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.catalog-head h2 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p,
.hero-side p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(255, 106, 0, 0.24);
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--line);
}

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

.hero-stat {
  padding: 18px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.95);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-side h2 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.1;
}

.hero-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-list li {
  padding: 16px 18px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 18px;
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

.catalog {
  padding: 10px 0 48px;
}

.hidden {
  display: none;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.catalog-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.catalog-meta {
  display: grid;
  gap: 14px;
  min-width: min(100%, 360px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, #27344d 100%);
  color: #fff;
}

.results-note {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.home-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.home-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 250px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.16), transparent 30%),
    linear-gradient(145deg, #edf2f8 0%, #dfe7f1 100%);
}

.home-card-media img {
  height: 100%;
  object-fit: cover;
}

.home-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.home-card-body {
  display: grid;
  gap: 10px;
}

.home-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-card-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.home-card-price {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 900;
}

.home-card-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-card-actions {
  display: flex;
  gap: 10px;
}

.view-btn {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #27344d 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.quick-order-btn {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.details-page {
  padding: 0 0 48px;
}

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

.back-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.details-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.product-detail-wrap {
  display: grid;
  gap: 22px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.product-media {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.thumbnail-strip {
  display: grid;
  gap: 10px;
}

.thumbnail-btn {
  padding: 0;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
  border-color: rgba(255, 106, 0, 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.thumbnail-btn img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.main-image-wrap {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.18), transparent 28%),
    linear-gradient(145deg, #edf2f8 0%, #dfe7f1 100%);
}

.main-image {
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.product-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.product-head {
  display: grid;
  gap: 8px;
}

.product-head-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.product-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.product-price {
  white-space: nowrap;
  font-size: 30px;
  font-weight: 900;
  color: var(--brand);
}

.product-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
}

.availability::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.variation-block {
  display: grid;
  gap: 10px;
}

.variation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.variation-title {
  font-size: 15px;
  font-weight: 800;
}

.variation-current {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.color-options,
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.option-btn:hover,
.option-btn.active {
  transform: translateY(-1px);
  border-color: rgba(255, 106, 0, 0.32);
  box-shadow: var(--shadow-sm);
}

.color-btn {
  min-height: 52px;
  padding: 0 14px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.16);
}

.size-btn {
  min-width: 68px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 800;
}

.option-btn.active {
  background: var(--accent-soft);
}

.selection-summary {
  padding: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.selection-summary h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-item strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-btn,
.secondary-btn {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
}

.order-btn {
  background: linear-gradient(135deg, #1fa855 0%, #0f8a43 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 138, 67, 0.2);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.empty-state {
  padding: 40px 24px;
  border: 1px dashed rgba(16, 24, 40, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .topbar-inner,
  .hero-grid,
  .product-card {
    grid-template-columns: 1fr;
  }

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

  .catalog-head {
    align-items: start;
    flex-direction: column;
  }

  .catalog-meta,
  .results-note {
    justify-self: start;
  }

  .filter-row {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    padding: 14px 0;
  }

  .nav-actions,
  .hero-actions,
  .actions-row {
    flex-direction: column;
  }

  .nav-chip,
  .btn,
  .order-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-copy,
  .hero-side,
  .product-card,
  .home-card {
    padding: 18px;
  }

  .hero-stats,
  .summary-grid,
  .product-media {
    grid-template-columns: 1fr;
  }

  .product-media {
    gap: 14px;
  }

  .thumbnail-strip {
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-image-wrap {
    min-height: 300px;
  }

  .product-head-top,
  .variation-header {
    flex-direction: column;
    align-items: start;
  }

  .product-price {
    font-size: 26px;
  }

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

  .home-card-top,
  .details-head,
  .home-card-actions {
    flex-direction: column;
    align-items: start;
  }

  .view-btn,
  .quick-order-btn,
  .back-btn {
    width: 100%;
  }
}
