:root {
  color-scheme: light;
  --bg: #fcf7f2;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #e0563d;
  --primary-dark: #b83f2a;
  --border: #f0d8c7;
  --accent: #fff3ea;
}

* {
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fdf8f2 0%, #fff 100%);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.container.detail-wide {
  width: min(1360px, calc(100% - 2rem));
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 1.2rem;
  background: #fffaf5;
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.price-block .detail-button-row {
  margin: 0.3rem 0 0;
}

.variant-select {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.variant-option {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.variant-option:hover {
  border-color: var(--primary);
}

.variant-option.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.price-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
}

.stars {
  color: #b45309;
  font-weight: 700;
  margin: 0;
}

.stars .stars-count {
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.4rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-wrap {
  position: relative;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: block;
  height: 4.5rem;
  width: 4.5rem;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a,
.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--primary);
}

.site-nav a {
  position: relative;
}

.site-nav a.is-active {
  color: var(--primary);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-search-input,
.products-search-input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.site-search-input {
  min-width: 180px;
}

.site-search-button {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  color: white;
  background: var(--primary);
  cursor: pointer;
}

.products-search-panel {
  background: linear-gradient(135deg, #fff8f2 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.products-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem;
}

.products-search-label {
  display: block;
  font-weight: 700;
  color: var(--text);
  width: 100%;
}

.products-search-input {
  flex: 1 1 280px;
  min-height: 46px;
}

.search-hint {
  color: var(--muted);
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
}

.search-results-count {
  color: var(--primary);
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  align-items: center;
}

.hero-actions .button {
  min-width: 160px;
  text-align: center;
  padding: 0.95rem 1.2rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1.4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.content-card,
.card,
.mini-card,
.feature-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.section {
  padding: 2rem 0 3.5rem;
}

.section-alt {
  padding-top: 0.5rem;
}

.section-head {
  margin-bottom: 1.4rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card,
.mini-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 0.2rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #c6542a;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  width: max-content;
}

.product-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0;
}

.feature-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
  background: linear-gradient(135deg, #fff4e8 0%, #ffffff 100%);
  border-radius: 1.6rem;
  border: 1px solid var(--border);
}

.feature-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1.25rem;
}

.feature-list-card {
  padding: 1.4rem;
}

.feature-list {
  padding-left: 1.1rem;
  margin: 0;
}

.catalog-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
  padding: 1rem;
}

.mini-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.mini-card a {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.mini-card a:hover h3 {
  color: var(--primary);
}

.mini-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}

.related-products {
  margin-top: 0.5rem;
}

.content-page {
  padding: 3rem 0 4rem;
}

.detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem;
  background: linear-gradient(135deg, #fff8f2 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.detail-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 1.25rem;
}

.placeholder-media {
  min-height: 180px;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.detail-hero .placeholder-media {
  height: 360px;
  border-radius: 1.25rem;
}

.card .placeholder-media {
  height: 170px;
  border-radius: 1rem;
  margin-bottom: 0.2rem;
}

.carousel {
  position: relative;
  height: 360px;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--accent);
}

.detail-hero .carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.carousel-prev {
  left: 0.7rem;
}

.carousel-next {
  right: 0.7rem;
}

.carousel-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #fff;
}

@media (max-width: 900px) {
  .carousel {
    height: 260px;
  }
}

.detail-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
}

.detail-button-row .button-primary {
  padding: 1rem 1.35rem;
  font-size: 1rem;
  min-width: 140px;
  text-align: center;
}

.detail-button-row .button-secondary {
  padding: 1rem 1.2rem;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #b45309;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.detail-chip:hover {
  background: #ffe6cc;
  transform: translateY(-1px);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.2rem;
}

.detail-card {
  padding: 1.6rem;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.detail-stat {
  background: #fffaf5;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem;
}

.detail-stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.detail-stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 0.45rem;
}

.content-card {
  padding: 2rem;
  width: 100%;
  max-width: none;
  margin-bottom: 2rem;
}

.content-card p {
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}


.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.95rem;
}

.affiliate-banner {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-banner,
  .card-grid,
  .catalog-strip,
  .product-grid,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-banner img {
    height: 260px;
  }

  .detail-hero img,
  .detail-hero .placeholder-media {
    height: 260px;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    height: 3.2rem;
    width: 3.2rem;
  }

  .site-nav {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-search {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
  }

  .site-search-input {
    flex: 1;
    min-width: 0;
  }

  .footer-links {
    justify-content: center;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .detail-stats {
    grid-template-columns: 1fr 1fr;
  }
}
