:root {
  --header: #1e2d31;
  --header-2: #24363b;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --sale: #c81e1e;
  --bg: #fff;
  --soft: #f5f5f5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.topbar {
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 20px;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.nav a {
  font-size: 14px;
  opacity: 0.92;
}
.nav a:hover, .nav a.active { opacity: 1; text-decoration: underline; }
.tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  position: relative;
  padding: 4px;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: #fff;
  color: var(--header);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.search {
  display: flex;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.search input {
  border: 0;
  padding: 8px 12px;
  width: 170px;
  outline: none;
  color: #111;
}
.search button {
  background: var(--header-2);
  border: 0;
  color: #fff;
  width: 40px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
  background: #ddd;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-nav {
  position: absolute;
  inset: auto 18px 50%;
  display: flex;
  justify-content: space-between;
}
.hero-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.85);
  cursor: pointer;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 48px 20px; }
.section-title {
  text-align: center;
  font-size: 34px;
  margin: 0 0 28px;
  font-weight: 700;
}
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.section-lead { text-align: center; color: #555; margin: -12px 0 24px; }
.more-link { text-align: center; margin: 22px 0 0; }
.more-link a { color: #1e2d31; font-weight: 600; }
.spec { padding: 0; margin: 16px 0 20px; list-style: none; color: #333; line-height: 1.8; }
.spec li { border-bottom: 1px solid #eee; padding: 6px 0; }

.grid-2, .grid-4, .grid-5, .grid-6, .grid-products {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.cat-card, .product-card {
  background: #fff;
}
.cat-card img, .product-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}
.cat-card h3 {
  margin: 12px 0 0;
  font-size: 16px;
  text-align: center;
}
.service {
  text-align: center;
  padding: 20px 0 10px;
}
.service p { color: var(--muted); margin-top: 8px; }

.product-card { position: relative; }
.product-media { position: relative; }
.sale {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
}
.sku-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  padding: 4px 7px;
}
.product-card h4 {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
}
.price { font-size: 14px; }
.price s { color: #999; margin-right: 8px; }
.price b { font-weight: 700; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 8px;
  max-width: 1320px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; gap: 18px; align-items: center; color: #555; font-size: 13px; }
.filters select, .sorts select {
  border: 0;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 6px 2px;
}
.sorts { display: flex; gap: 16px; align-items: center; font-size: 13px; }

.shop-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
.side h3 { font-size: 18px; margin: 0 0 12px; }
.side a { display: block; padding: 8px 0; color: #444; font-size: 14px; }
.side a.active { font-weight: 700; }
.grid-products { grid-template-columns: repeat(4, 1fr); }

.pdp {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
}
.pdp img { width: 100%; height: 520px; object-fit: cover; border-radius: 8px; }
.pdp h1 { font-size: 28px; margin: 0 0 12px; }
.pdp .sku { color: var(--muted); margin-bottom: 16px; }
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.qty button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--header);
  color: #fff;
  border: 0;
  min-height: 46px;
  padding: 0 22px;
  cursor: pointer;
}
.btn.ghost { background: #fff; color: var(--header); border: 1px solid var(--header); }
.oos { color: var(--sale); font-weight: 700; }

.cart-page, .login-page, .simple-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.cart-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }
.cart-total { text-align: right; font-size: 22px; margin: 24px 0; }
.login-box {
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 28px;
}
.login-box input {
  width: 100%;
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px solid #ccc;
}
.hint { color: var(--muted); font-size: 13px; }

footer {
  background: #111;
  color: #ddd;
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
footer h4 { color: #fff; margin: 0 0 12px; }
footer a { display: block; margin: 8px 0; color: #bbb; font-size: 14px; }
.copy { text-align: center; margin-top: 28px; color: #888; font-size: 13px; }

.page-banner {
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,.48);
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 { margin: 14px 0 0; font-size: 48px; letter-spacing: 2px; font-weight: 700; }
.crumb { opacity: .95; font-size: 14px; }
.crumb a { color: #fff; }
.contact-wrap { padding-top: 42px; }
.contact-h2 { margin: 0 0 8px; font-size: 28px; }
.contact-lead { margin: 0 0 22px; color: #333; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: start;
  max-width: 640px;
  margin: 0 auto;
}
.contact-form label {
  display: block;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-submit { margin-top: 8px; min-width: 210px; letter-spacing: .5px; }
.contact-info { padding-top: 8px; font-size: 16px; line-height: 1.7; color: #222; }
.contact-info h4 { margin: 22px 0 6px; font-size: 18px; }
.contact-info p { margin: 4px 0; }
.cinfo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
}
.cinfo-icon { color: #111; margin-top: 3px; }
.cinfo a { color: #111; }
.store-find { margin-top: 20px; }
.store-find-bar {
  background: #1e2d31;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.store-map-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  text-align: center;
}
.store-map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  margin: 18px 0;
}
.store-addr { color: #333; line-height: 1.7; }
.success-box {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background: #e8f6ec;
  color: #1b7a38;
  border: 1px solid #b7e0c2;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  display: none;
  z-index: 50;
}

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: 1fr; }
  .nav, .tools { justify-content: flex-start; }
  .grid-2, .grid-4, .grid-5, .grid-6, .grid-products, .shop-layout, .pdp, .footer-inner, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { height: 42vh; min-height: 280px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4, .grid-5, .grid-6, .grid-products, .shop-layout, .pdp, .footer-inner, .cart-row, .contact-grid {
    grid-template-columns: 1fr;
  }
}
