:root {
  --navy: #1a2433;
  --navy-2: #243044;
  --gold: #c5a059;
  --gold-dark: #a8843f;
  --cream: #f5f5f0;
  --cream-2: #ebe6dc;
  --white: #ffffff;
  --text: #2a2a2a;
  --muted: #6b7280;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(26, 36, 51, 0.08);
  --font: "Montserrat", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.top-bar {
  background: var(--navy);
  color: #d7dde8;
  font-size: 0.8rem;
  padding: 0.55rem 0;
}
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.top-bar a { color: var(--gold); font-weight: 600; }
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  max-width: 220px;
}
.search-form {
  display: flex;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e5e1d8;
  min-width: 280px;
}
.search-form input {
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  width: 100%;
  font: inherit;
  outline: none;
}
.search-form button {
  border: 0;
  background: transparent;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
}
.cart-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy);
}
.main-nav {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.main-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.85rem 0;
  justify-content: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.main-nav a.active,
.main-nav a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(26,36,51,0.82) 0%, rgba(26,36,51,0.45) 55%, rgba(26,36,51,0.25) 100%),
    url("../img/hero-bg.jpg") center/cover no-repeat,
    var(--navy);
  color: #fff;
  padding: 4rem 0;
}
.hero-content { max-width: 560px; }
.hero-kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}
.hero p { color: #e8ecf3; margin: 0 0 1.5rem; }

/* Trust */
.trust-bar {
  background: var(--cream);
  padding: 1.5rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  text-align: center;
  padding: 0.5rem;
}
.trust-item .icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.trust-item strong { display: block; color: var(--navy); font-size: 0.95rem; }
.trust-item span { color: var(--muted); font-size: 0.82rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-title {
  text-align: center;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.8rem;
  margin: 0 0 2rem;
  position: relative;
}
.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 0.85rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  position: absolute;
  inset: 0;
}
.category-card span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.25rem;
  min-height: 180px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}
.category-card strong { font-size: 1.1rem; }
.category-card small { color: var(--gold); margin-top: 0.25rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream);
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.product-card-body h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}
.product-card-body .btn { margin-top: auto; }
.muted { color: var(--muted); font-size: 0.88rem; margin: 0; }
.price {
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  font-size: 1.05rem;
}

.quote-banner {
  background: var(--cream);
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.35rem;
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid #eee;
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  width: 72px;
  height: 72px;
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.specs-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.specs-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.specs-list strong { color: var(--navy); }
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
}
.price-table th { background: var(--cream); color: var(--navy); }
.add-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.add-form label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.add-form select,
.add-form input[type="number"],
.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d7d2c8;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

/* Cart / forms */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table th,
.table td {
  padding: 0.85rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}
.table th { background: var(--cream); color: var(--navy); }
.qty-input { width: 70px; padding: 0.4rem; font: inherit; }
.cart-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: grid; gap: 0.35rem; }
.form-row label { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
textarea.form-control { min-height: 120px; resize: vertical; }

.flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}
.flash-success { background: #e8f6ee; color: #166534; }
.flash-error { background: #fde8e8; color: #991b1b; }
.flash-info { background: #eef3ff; color: #1e3a8a; }

.page-hero {
  background: var(--cream);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ebe6dc;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 2rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d7dde8;
  margin-top: 3rem;
  padding-top: 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.footer-brand strong {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.15rem;
}
.site-footer h4 {
  color: var(--gold);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.site-footer a {
  display: block;
  color: #c9d1de;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0 0 0.4rem; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  font-size: 0.82rem;
  color: #9aa6b8;
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid #e5e1d8;
  font-size: 0.85rem;
  font-weight: 500;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.success-box {
  max-width: 560px;
  margin: 2rem auto;
  text-align: center;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .header-main {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .cart-link { justify-self: start; }
  .trust-grid,
  .category-grid,
  .product-grid,
  .product-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .section-title::before,
  .section-title::after { display: none; }
}
