:root {
  --bg: #f9f9f7;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #5f6673;
  --line: #e7e8eb;
  --brand: #0d213f;
  --brand-soft: #edf2f8;
  --accent: #b28a4f;
  --shadow-soft: 0 8px 20px rgba(20, 30, 50, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfcfb 0%, #f7f7f5 100%);
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--brand);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: #2d3240;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: transparent;
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

main {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 1.2rem auto 3.4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(130deg, #ffffff 0%, #f8f9fb 72%, #f3f5f8 100%);
  padding: clamp(1.6rem, 4vw, 3.4rem);
  min-height: 330px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: fadeSlide 0.7s ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid #dde3ed;
  background: #f8fbff;
  color: #3b4a60;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.15;
  color: #192132;
}

.hero h1 {
  margin: 0.9rem 0;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  font-weight: 600;
}

.hero-copy {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 670px;
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #152f56;
}

.btn-outline {
  background: #fff;
  border-color: #cfd6e2;
  color: #2a3243;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 92% 10%, rgba(178, 138, 79, 0.12), transparent 36%);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0 2.3rem;
}

.category-card,
.text-card,
.product-card,
.product-detail-card,
.gallery-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.category-card {
  padding: 1.15rem;
}

.category-card h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.category-card p {
  color: var(--muted);
  line-height: 1.55;
}

.category-card a {
  color: #24334b;
  font-weight: 600;
  text-decoration: none;
}

.section {
  margin: 2rem 0;
}

.section-head {
  margin-bottom: 1.05rem;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 0.28rem;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 600;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 1.2rem;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transform: translateY(10px);
  opacity: 0;
  animation: fadeSlide 0.45s ease forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.product-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.product-card-content {
  padding: 0.95rem 0.95rem 1rem;
}

.product-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.34rem;
  line-height: 1.25;
}

.product-price {
  margin: 0 0 0.45rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.text-card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  white-space: pre-wrap;
  line-height: 1.8;
  color: #2f3642;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(310px, 1.05fr) minmax(330px, 1fr);
  gap: 1.2rem;
}

.gallery-panel {
  padding: 0.9rem;
}

#mainImage {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.thumb-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.55rem;
}

.thumb-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #d8dde6;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.thumb-grid img.active {
  border-color: var(--brand);
}

.product-detail-card {
  padding: 1.2rem;
}

.product-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-description {
  white-space: pre-wrap;
  line-height: 1.72;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #2c3d58;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 1.8rem 1rem 2.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.55rem;
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-bottom: 0;
    padding: 0.45rem 0.2rem;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--brand-soft);
    border-bottom-color: transparent;
  }

  main {
    width: min(1180px, calc(100% - 1.2rem));
  }

  .hero {
    border-radius: 6px;
  }

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