:root {
  --bg: #f8f5ec;
  --surface: #fffdf8;
  --text: #183127;
  --muted: #586f63;
  --primary: #0f5a45;
  --primary-dark: #0b4032;
  --accent: #c8a24d;
  --line: #e4dac5;
  --sold: #5e5e5e;
  --in-stock: #0f5a45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 5% 5%, rgba(200, 162, 77, 0.2) 0%, transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(15, 90, 69, 0.14) 0%, transparent 35%),
    var(--bg);
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
}

p {
  margin-top: 0;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.1rem 1rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(248, 242, 228, 0.9));
}

.brand {
  display: block;
  width: min(230px, 100%);
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.side-nav {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}

.menu-link {
  display: block;
  text-decoration: none;
  padding: 0.58rem 0.72rem;
  border-radius: 9px;
  font-weight: 600;
  color: #2e4e41;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.65);
}

.menu-link.active {
  background: #fffefb;
  color: var(--primary-dark);
  border: 1px solid #ddd0b1;
}

.sidebar-note {
  margin-top: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-header {
  display: none;
}

.content-main {
  flex: 1;
}

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 4rem 0 2.5rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 13ch;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: 200ms ease;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1d7659);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
}

.button.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.button.ghost:hover {
  background: #fff;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.hero-glow-1 {
  right: -8rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(200, 162, 77, 0.38) 0%, transparent 65%);
}

.hero-glow-2 {
  left: -7rem;
  bottom: -8rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(15, 90, 69, 0.24) 0%, transparent 60%);
}

.controls {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.8rem;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.control label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.control input,
.control select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
  background: #fff;
}

.catalog {
  padding: 1.3rem 0 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(36, 26, 20, 0.07);
  display: flex;
  flex-direction: column;
}

.card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.card-body {
  padding: 0.9rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.card h3 {
  font-size: 1.42rem;
  line-height: 1;
}

.price {
  color: var(--primary-dark);
  font-weight: 700;
}

.status-badge {
  margin-top: 0.65rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

.status-in-stock {
  color: var(--in-stock);
  background: #d7eee4;
}

.status-sold {
  color: #fff;
  background: var(--sold);
}

.card-copy {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: 0.8rem;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
}

.hidden {
  display: none;
}

.info-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.info-section h2,
.page-panel h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.info-section p,
.info-section li,
.page-panel p,
.page-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  margin: 2rem auto;
}

.page-panel h2 {
  margin-top: 1.1rem;
  font-size: 1.8rem;
}

.page-panel ul {
  padding-left: 1.15rem;
}

.status-page {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.status-box {
  width: min(680px, 94vw);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
}

.status-code {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--primary-dark);
}

.modal {
  width: min(880px, 92vw);
  border: none;
  border-radius: 16px;
  padding: 0;
}

.modal::backdrop {
  background: rgba(28, 21, 17, 0.6);
}

.modal-card {
  position: relative;
  padding: 1rem;
  background: #fffefc;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.05fr 1fr;
}

.modal-gallery img {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.thumbnails {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  padding: 0;
  cursor: pointer;
}

.thumb img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.thumb.active {
  border-color: var(--primary);
}

.icon-button {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-details h3 {
  font-size: 2.1rem;
  margin: 0.2rem 0 0.4rem;
}

.modal-price {
  margin: 0;
  font-weight: 700;
  color: var(--primary-dark);
}

.modal-description {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 0.85rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .menu-link {
    border: 1px solid var(--line);
    background: #fff;
  }

  .sidebar-note {
    display: none;
  }

  .mobile-header {
    display: none;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
