:root {
  --color-primary: #1C1917;
  --color-primary-hover: #44403C;
  --color-accent: #A16207;
  --color-accent-hover: #7C4A04;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAF9;
  --color-bg-warm: #F5F0EB;
  --color-text: #0C0A09;
  --color-text-secondary: #57534E;
  --color-text-muted: #A8A29E;
  --color-border: #E7E5E4;
  --color-border-strong: #D6D3D1;
  --color-sale: #DC2626;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1280px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Top Bar */
.top-bar {
  background: var(--color-primary);
  color: #A8A29E;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #292524;
}
.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 24px; }
.top-bar-select {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  color: #D6D3D1;
  font-size: 13px;
  font-family: inherit;
  padding: 2px 0;
}
.top-bar-select:hover { color: #fff; }
.top-bar-select svg { width: 14px; height: 14px; }
.top-bar-right { font-size: 12px; color: #78716C; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 0;
  transition: color 150ms ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background 150ms ease;
  position: relative;
}
.nav-icon-btn:hover { color: var(--color-text); background: var(--color-bg-alt); }
.nav-icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn { display: none; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, transform 80ms ease;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { transform: scale(0.975); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, transform 80ms ease;
}
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-accent:active { transform: scale(0.975); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text);
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease;
}
.btn-outline:hover { border-color: var(--color-text); }

/* Hero */
.hero {
  position: relative;
  background: var(--color-bg-warm);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 540px; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgb(161 98 7 / 0.1);
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #D6D3D1 0%, #A8A29E 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 0.05));
}

/* Value Props */
.value-props {
  padding: 60px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.value-props-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-card { text-align: center; padding: 0 20px; }
.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: var(--color-bg-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* Sections */
.section { padding: 80px 24px; }
.section-alt { background: var(--color-bg-alt); }
.section-warm { background: var(--color-bg-warm); }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-desc { font-size: 16px; color: var(--color-text-secondary); line-height: 1.7; }

/* Categories */
.cat-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: transform 250ms ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.5));
  z-index: 0;
}
.cat-card:nth-child(1) { background: #78716C; }
.cat-card:nth-child(2) { background: #A8A29E; }
.cat-card:nth-child(3) { background: #78716C; }
.cat-card:nth-child(4) { background: #57534E; }
.cat-card .cat-content { position: relative; z-index: 1; color: #fff; }
.cat-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.cat-card span { font-size: 13px; opacity: 0.8; }

/* Products */
.products-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 250ms ease, transform 250ms ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.07);
  transform: translateY(-2px);
}
.product-img-wrap {
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
  overflow: hidden;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.badge-sale { background: var(--color-sale); }
.badge-new { background: var(--color-accent); }
.badge-best { background: var(--color-primary); }

.product-info { padding: 18px; }
.product-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.product-price .current { font-size: 18px; font-weight: 700; color: var(--color-text); }
.product-price .original { font-size: 13px; color: var(--color-text-muted); text-decoration: line-through; }
.product-stars {
  font-size: 12px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-stars span { color: var(--color-text-muted); }

/* About */
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #D6D3D1, #A8A29E);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}
.about-text h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.about-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Features */
.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.feature-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.04);
}
.feature-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* Newsletter */
.newsletter {
  padding: 72px 24px;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.newsletter-inner { max-width: 520px; margin: 0 auto; }
.newsletter h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.newsletter p { color: #A8A29E; margin-bottom: 28px; font-size: 15px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  background: #292524;
  border: 1px solid #44403C;
  border-radius: var(--radius-sm);
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder { color: #78716C; }
.newsletter-form input:focus { border-color: var(--color-accent); }
.newsletter-form .btn-accent { height: 48px; white-space: nowrap; }

/* Contact */
.contact-section { padding: 80px 24px; background: var(--color-bg-alt); }
.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--color-text-secondary);
}
.contact-detail svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }

.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  background: #fff;
  color: var(--color-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(161 98 7 / 0.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer { padding: 64px 24px 32px; background: var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-brand p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: color 150ms ease, border-color 150ms ease;
  text-decoration: none;
  font-size: 14px;
}
.footer-social a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--color-text-secondary); text-decoration: none; transition: color 150ms ease; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-payments { display: flex; gap: 12px; font-size: 12px; }

/* Responsive */
@media (max-width: 1024px) {
  .products-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature-card:last-child { grid-column: span 2; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-inner { gap: 16px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding: 48px 20px;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-image { aspect-ratio: 16/9; max-width: 400px; margin: 0 auto; }

  .value-props-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-image { aspect-ratio: 16/9; }
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature-card:last-child { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cat-grid, .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 56px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions .btn-accent { width: 100%; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn-accent { width: 100%; justify-content: center; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-info h4 { font-size: 13px; }
  .product-price .current { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
