:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav,
.section,
.footer-inner,
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.nav {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 1rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.hero {
  background: #fff;
  padding: 56px 20px 38px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero p,
.section-intro,
.product-description,
.inventory-copy,
.checkout-message,
.notice {
  color: var(--muted);
}

.hero-copy p {
  margin: 0 0 24px;
  font-size: 1.05rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: bold;
  border: 1px solid var(--accent);
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--accent);
}

.button-block {
  width: 100%;
}

.hero-card,
.card,
.product-card,
.notice,
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.hero-card {
  padding: 28px;
  text-align: center;
}

.hero-card img {
  max-width: 250px;
  margin: 0 auto 18px;
}

.hero-card p {
  margin: 0;
  font-size: 0.98rem;
}

.section {
  padding: 34px 20px;
}

.section h2,
.cart-panel h3 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 18px;
}

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

.store-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.category-description {
  color: var(--muted);
  margin: 0 0 18px;
  min-height: 84px;
}

.category-products {
  display: grid;
  gap: 16px;
}

.product-card {
  padding: 18px;
  text-align: center;
}

.product-image-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  font-size: 0.98rem;
  margin: 0 0 4px;
}

.price {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 14px;
}

.stock-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f2f2;
  font-weight: bold;
  font-size: 0.85rem;
}

.variant-label {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.variant-select {
  width: 100%;
  max-width: 220px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.buy-button {
  width: 100%;
  margin-bottom: 12px;
  background: #4a86cf;
  border-color: #4a86cf;
  color: #fff;
}

.buy-button:disabled {
  background: #9cbbe3;
  border-color: #9cbbe3;
  color: #fff;
}

.product-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.cart-panel {
  width: 300px;
  flex: 0 0 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.cart-panel h3 {
  margin: 0 0 12px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-item,
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.cart-title {
  margin: 0 0 4px;
  font-weight: bold;
}

.cart-meta,
.cart-note,
.checkout-message {
  color: var(--muted);
}

.cart-meta {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.cart-row,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-controls {
  display: flex;
  gap: 8px;
}

.mini-button {
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.card {
  padding: 22px;
}

.contact-list,
.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li,
.policy-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child,
.policy-list li:last-child {
  border-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-inner,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .store-layout {
    flex-direction: column;
  }

  .cart-panel {
    width: 100%;
    position: static;
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

}
