:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
}

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

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

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

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand a {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.main-nav a {
  color: #4b5563;
  font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: #111827;
}

.header-actions .cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #2563eb;
  color: white;
  font-size: 0.95rem;
}

.hero {
  margin: 32px auto;
  padding: 48px 0;
  text-align: center;
}

.hero-mart {
  background: linear-gradient(135deg, #fef3c7 0%, #fef2f2 100%);
  border-radius: 28px;
  padding: 56px 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin: 0;
}

.hero p {
  margin-top: 16px;
  color: #6b7280;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.section {
  margin: 40px 0;
}

.section-header h2,
.section-header h1 {
  font-size: 1.75rem;
  margin: 0 0 12px;
}

.section-header p,
.section-subtitle {
  color: #6b7280;
  margin: 0;
}

.product-grid,
.category-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card,
.category-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-4px);
}

.product-card img,
.category-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.product-card-body {
  padding: 20px;
}

.category-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

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

.product-card-body p {
  color: #4b5563;
  margin: 0 0 16px;
}

.price {
  display: inline-flex;
  font-weight: 700;
  color: #111827;
}

.product-detail {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.product-detail-image img {
  width: 100%;
  border-radius: 24px;
}

.product-detail-info {
  background: white;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
}

.product-detail-info h1 {
  margin-top: 0;
  font-size: 2rem;
}

.product-detail-info .lead {
  margin: 20px 0;
  color: #6b7280;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  background: #2563eb;
  color: white;
}

.button-secondary {
  background: #f3f4f6;
  color: #111827;
}

.button.small {
  padding: 10px 16px;
}

.product-details-list h2,
.faq-section h2 {
  margin-top: 32px;
}

.product-details-list ul,
.faq-item p {
  color: #4b5563;
  line-height: 1.75;
}

.cart-page h1 {
  margin-bottom: 8px;
}

.cart-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px;
  align-items: center;
}

.cart-item img {
  width: 100%;
  border-radius: 16px;
}

.cart-item-details h2 {
  margin: 0 0 10px;
}

.cart-summary {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.empty-cart {
  text-align: center;
  padding: 48px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
}

.info-page p {
  color: #4b5563;
  line-height: 1.8;
}

.faq-item {
  margin-top: 24px;
}

.site-footer {
  background: #111827;
  color: white;
  padding: 32px 0;
}

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

.footer-links a {
  color: #d1d5db;
  margin-right: 18px;
  font-size: 0.95rem;
}

.footer-copy {
  color: #9ca3af;
}

@media (max-width: 900px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

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