@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --black: #dfd1bb;
  --graphite: #cab79b;
  --gold: #c9a24d;
  --gold2: #b7862d;
  --gold-deep: #a67a2f;
  --btn-fill: linear-gradient(135deg, #b58332, #956726);
  --btn-fill-hover: #845a22;
  --btn-text: #f7f0e2;
  --white: #211a14;
  --whiteSoft: rgba(33, 26, 20, 0.94);
  --stroke: rgba(136, 101, 58, 0.34);
  --shadow: 0 24px 60px rgba(52, 38, 23, 0.3);
  --stroke-soft: rgba(112, 89, 62, 0.3);
  --page-bg: radial-gradient(circle at 10% 10%, rgba(201, 162, 77, 0.16), transparent 45%),
    radial-gradient(circle at 70% 0%, rgba(255, 255, 255, 0.26), transparent 45%),
    linear-gradient(180deg, #ede3d2 0%, #d9c9b0 45%, #c9b59a 100%);
  --topbar-bg: var(--card-bg);
  --nav-shadow: 0 12px 26px rgba(52, 38, 23, 0.42);
  --menu-bg: rgba(234, 220, 200, 0.95);
  --card-bg: linear-gradient(155deg, rgba(248, 239, 223, 0.58), rgba(201, 162, 77, 0.18), rgba(68, 50, 29, 0.22));
  --footer-bg: var(--topbar-bg);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --black: #0b0b0b;
  --graphite: #121212;
  --white: #ffffff;
  --whiteSoft: rgba(255, 255, 255, 0.85);
  --stroke: rgba(201, 162, 77, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --stroke-soft: rgba(255, 255, 255, 0.16);
  --page-bg: radial-gradient(circle at 10% 10%, rgba(201, 162, 77, 0.12), transparent 40%),
    radial-gradient(circle at 70% 0%, rgba(246, 241, 229, 0.08), transparent 45%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 40%, #070707 100%);
  --topbar-bg: linear-gradient(120deg, rgba(20, 12, 2, 0.96), rgba(6, 6, 6, 0.92) 55%, rgba(18, 10, 2, 0.95));
  --nav-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --menu-bg: rgba(0, 0, 0, 0.96);
  --card-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(201, 162, 77, 0.08), rgba(0, 0, 0, 0.45));
  --footer-bg: var(--topbar-bg);
  --btn-fill: linear-gradient(135deg, #b58332, #956726);
  --btn-fill-hover: #845a22;
  --btn-text: #f8f0e1;
  color-scheme: dark;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
}

section {
  padding: 0;
}

section::before {
  content: none;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--stroke);
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: var(--nav-shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
}

:root:not([data-theme="dark"]) .nav-links a {
  color: #6f471b;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold2);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold2), transparent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-btn {
  width: 44px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  height: 2px;
  width: 22px;
  background: var(--gold);
  border-radius: 2px;
  align-self: flex-end;
}

.menu {
  position: absolute;
  top: 64px;
  right: 18px;
  width: 210px;
  background: var(--menu-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
  border-radius: 14px;
  z-index: 9999;
}

.menu.open {
  display: block;
}

.menu a {
  display: block;
  padding: 12px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(201, 162, 77, 0.18);
}

.menu a:hover {
  background: rgba(201, 162, 77, 0.12);
  color: var(--gold2);
}

.page {
  padding: 36px 20px 90px;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.hero {
  width: 100%;
  max-width: 1100px;
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid var(--stroke-soft);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7rem;
  color: var(--gold2);
}

.title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  letter-spacing: 1px;
  margin: 8px 0 6px;
}

.subtitle {
  color: var(--whiteSoft);
  max-width: 640px;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chip {
  border: 1px solid rgba(201, 162, 77, 0.4);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  background: rgba(201, 162, 77, 0.14);
  white-space: nowrap;
}

.products {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  padding-bottom: 10px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke-soft);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(69, 55, 40, 0.25);
  border-color: rgba(230, 199, 123, 0.5);
}

.products.reveal.visible .product-card {
  animation: productRise 0.8s ease both;
}

.products.reveal.visible .product-card:nth-child(1) { animation-delay: 0.06s; }
.products.reveal.visible .product-card:nth-child(2) { animation-delay: 0.12s; }
.products.reveal.visible .product-card:nth-child(3) { animation-delay: 0.18s; }
.products.reveal.visible .product-card:nth-child(4) { animation-delay: 0.24s; }
.products.reveal.visible .product-card:nth-child(5) { animation-delay: 0.3s; }
.products.reveal.visible .product-card:nth-child(6) { animation-delay: 0.36s; }
.products.reveal.visible .product-card:nth-child(7) { animation-delay: 0.42s; }
.products.reveal.visible .product-card:nth-child(8) { animation-delay: 0.48s; }
.products.reveal.visible .product-card:nth-child(9) { animation-delay: 0.54s; }
.products.reveal.visible .product-card:nth-child(10) { animation-delay: 0.6s; }
.products.reveal.visible .product-card:nth-child(11) { animation-delay: 0.66s; }
.products.reveal.visible .product-card:nth-child(12) { animation-delay: 0.72s; }

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

.prod-image {
  width: 100%;
  height: 200px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(166, 122, 47, 0.2);
}

.prod-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-icon {
  width: 64px;
  height: 48px;
  opacity: 0.9;
}

.product-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.8px;
}

.product-card p {
  color: var(--whiteSoft);
  font-size: 0.92rem;
}

.price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--white);
  margin-top: auto;
}

.order-btn {
  background: var(--btn-fill);
  color: var(--btn-text);
  border: none;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.order-btn:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-2px);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(166, 122, 47, 0.35);
  color: var(--white);
}

.ghost-btn:hover {
  background: rgba(201, 162, 77, 0.16);
  transform: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: #e8dcc7;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  color: #211a14;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.icon-x {
  background: none;
  border: none;
  color: #211a14;
  font-size: 20px;
  cursor: pointer;
}

.modal-product {
  color: #211a14;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.order-form {
  display: grid;
  gap: 10px;
}

.order-form label {
  display: grid;
  gap: 5px;
  color: #211a14;
  font-size: 0.85rem;
  white-space: nowrap;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(166, 122, 47, 0.3);
  background: #f3e8d5;
  color: #211a14;
}

.order-form input::placeholder,
.order-form textarea::placeholder {
  color: #211a14;
  opacity: 0.75;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 77, 0.6);
  box-shadow: 0 0 0 2px rgba(201, 162, 77, 0.2);
}

.form-status {
  min-height: 20px;
  font-size: 0.82rem;
  color: #211a14;
}

.form-status.success {
  color: #211a14;
}

.form-status.error {
  color: #211a14;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.footer {
  text-align: center;
  padding: 40px 20px 30px;
  border-top: 1px solid var(--stroke);
  background: var(--footer-bg);
}

.footer p {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .page {
    padding: 30px 16px 60px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    padding: 22px;
  }

  .product-card {
    padding: 20px;
  }

  .prod-image {
    height: 160px;
  }

  .topbar {
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .order-btn {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 0.82rem;
    letter-spacing: 0.95px;
  }
}

@media (max-width: 520px) {
  .menu {
    width: 190px;
    right: 12px;
  }

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

  .topbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .menu {
    width: min(88vw, 190px);
  }

  .theme-toggle {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    padding: 7px 10px;
  }

  .hero {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .page {
    padding: 20px 16px 40px;
    gap: 18px;
  }

  .order-btn {
    min-height: 44px;
    width: auto;
    max-width: 220px;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.9px;
  }

  .modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-actions .order-btn,
  .modal-actions .ghost-btn {
    width: min(100%, 220px);
  }
}

@media (min-width: 769px) {
  .menu-btn {
    display: none;
  }

  .menu {
    display: none !important;
  }
}


/* Centered button alignment overrides */
.product-card .order-btn {
  align-self: center;
  margin-inline: auto;
}

.modal-actions {
  justify-content: center;
}

.modal-actions .order-btn,
.modal-actions .ghost-btn {
  margin-inline: auto;
}
