:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #dde3ea;
  --soft: #f5f7fa;
  --brand: #0f7b6c;
  --brand-dark: #09584d;
  --accent: #d84f31;
  --gold: #f2b84b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 31, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

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

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

.topbar {
  background: #12212f;
  color: #dbe7ee;
  font-size: 13px;
}

.topbar-inner,
.nav,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-image {
  width: 168px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-weight: 650;
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.language-select {
  width: auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
}

.btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
}

.hero {
  min-height: 570px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 26, 36, 0.82), rgba(12, 26, 36, 0.38), rgba(12, 26, 36, 0.08)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 24px 0 32px;
  color: #edf4f7;
  font-size: 18px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 42px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--soft);
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 650px;
}

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

.category-tile {
  min-height: 240px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.25s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.product-image {
  aspect-ratio: 1 / 0.78;
  background: #edf1f5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-info {
  padding: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e6f3f1;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge.orange {
  background: #fff1e8;
  color: #9a3a22;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.product-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.product-info .market-note {
  margin-top: -4px;
  color: var(--brand-dark);
  font-weight: 750;
}

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

.price {
  font-size: 22px;
  font-weight: 850;
}

.old-price {
  color: #98a2b3;
  text-decoration: line-through;
  font-size: 13px;
  margin-left: 6px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
  font-weight: 750;
}

.filter.active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.page-band {
  background: #eef5f4;
  border-bottom: 1px solid var(--line);
  padding: 54px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.gallery-main {
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: contain;
  padding: 18px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumb-row img {
  border: 2px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 6px;
  background: #f7f9fb;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.thumb-row img:hover,
.thumb-row img.active {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
}

.rating {
  color: #b7791f;
  font-weight: 800;
}

.detail-price {
  margin: 20px 0;
  font-size: 34px;
  font-weight: 900;
}

.detail-copy {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.detail-box {
  border: 1px solid #b9d9d4;
  border-radius: 8px;
  background: #f0faf8;
  padding: 16px;
  margin: 20px 0;
}

.detail-box strong {
  display: block;
  margin-bottom: 8px;
}

.detail-box p {
  margin: 0;
  color: #315d56;
  line-height: 1.6;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

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

.spec-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.qty-row input {
  width: 78px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 800;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.cart-item,
.summary-box,
.auth-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.cart-item img {
  width: 120px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item h3 {
  margin: 0 0 8px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.cart-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.summary-box {
  padding: 20px;
  position: sticky;
  top: 104px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border-bottom: 0;
  font-size: 22px;
  font-weight: 900;
}

.empty-state {
  border: 1px dashed #b8c4cf;
  border-radius: 8px;
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.auth-wrap {
  min-height: calc(100vh - 154px);
  display: grid;
  place-items: center;
  padding: 54px 0;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.96), rgba(245, 247, 250, 0.78)),
    url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.auth-box {
  width: min(960px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-side {
  background: #12212f;
  color: var(--white);
  padding: 38px;
}

.auth-side h1 {
  margin: 0 0 16px;
  font-size: 38px;
}

.auth-side p {
  color: #dbe7ee;
  line-height: 1.7;
}

.auth-form {
  padding: 34px;
  background: var(--white);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 750;
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.footer {
  background: #12212f;
  color: #dbe7ee;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin: 0 0 12px;
}

.footer p,
.footer a {
  color: #b9c6d0;
  line-height: 1.7;
  display: block;
  margin: 0 0 7px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.market-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.market-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.market-card span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .detail-layout,
  .cart-layout,
  .auth-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    align-items: start;
    flex-direction: column;
    padding: 10px 0;
  }

  .hero {
    min-height: 620px;
  }

  .hero-stats,
  .category-grid,
  .product-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

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

  .cart-item {
    grid-template-columns: 92px 1fr;
  }

  .cart-item img {
    width: 92px;
    height: 84px;
  }

  .cart-price {
    grid-column: 1 / -1;
  }
}
