:root {
  --bg: #f6f3ee;
  --surface: #fdfcf9;
  --surface-alt: #efeae2;
  --ink: #1a1918;
  --ink-muted: #666058;
  --brass: #a8864b;
  --brass-dark: #856633;
  --brass-soft: #e7dcc7;
  --border: #e4ddd2;
  --shadow-sm: 0 4px 18px rgba(26, 25, 24, 0.05);
  --shadow-lg: 0 20px 50px rgba(26, 25, 24, 0.12);
  --radius: 4px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font-family: inherit;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* Announcement Bar */
.announcement {
  background: var(--ink);
  color: #efeae2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-btn:hover {
  background: var(--brass-dark);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brass);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1a1918;
  color: #fdfcf9;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(20, 19, 18, 0.82) 0%, rgba(20, 19, 18, 0.45) 55%, rgba(20, 19, 18, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0;
  max-width: 650px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  margin: 0 0 20px;
}

.hero p {
  font-size: 16px;
  color: rgba(253, 252, 249, 0.86);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brass);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brass-dark);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(253, 252, 249, 0.55);
  color: #fdfcf9;
}

.btn-outline-light:hover {
  background: rgba(253, 252, 249, 0.12);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--brass-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-item strong {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-item span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  margin: 6px 0 0;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.section-desc {
  max-width: 480px;
  color: var(--ink-muted);
  margin: 0;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 25, 24, 0.86);
  color: #fdfcf9;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 4px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
  cursor: pointer;
}

.product-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 14px;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
}

.product-compare {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-spec-tag {
  font-size: 11px;
  color: var(--ink-muted);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-actions .btn {
  padding: 11px 14px;
  font-size: 11px;
}

/* Sample Box Feature Banner */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-muted);
}

.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass-dark);
}

/* Spec Comparison Table */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
}

.spec-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0 0 10px;
}

.spec-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.metric-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 2px;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: var(--radius);
}

.stars {
  color: var(--brass);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 12px;
}

.review-card blockquote {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink);
}

.review-author {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  background: #171615;
  color: #d8d1c7;
  padding: 68px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
  color: #9e968b;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-badge {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #e6dfd5;
}

/* Modal & Drawer */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 18, 0.56);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--surface);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s ease;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0;
}

.icon-close {
  background: transparent;
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.shipping-meter {
  background: var(--surface-alt);
  padding: 12px 24px;
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.meter-bar {
  height: 4px;
  background: #dcd4c6;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--brass);
  transition: width 0.25s ease;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.cart-item-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 3px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.qty-box button {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.qty-box span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
}

.drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 17px;
  font-weight: 600;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.checkout-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 10px 0 0;
  text-align: center;
}

.checkout-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  background: #f5ece0;
  color: #6b4b1e;
  display: none;
}

.checkout-status.show {
  display: block;
}

/* Product Detail Modal */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-lg);
}

.product-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

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

.modal-media {
  background: var(--surface-alt);
  min-height: 360px;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 32px;
  position: relative;
}

.modal-close-wrap {
  position: absolute;
  top: 18px;
  right: 18px;
}

.option-group {
  margin: 18px 0;
}

.option-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 13px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
}

.option-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}

.spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.spec-table td:first-child {
  color: var(--ink-muted);
  width: 44%;
}

/* Legal / Policy Pages */
.policy-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}

.policy-content {
  max-width: 780px;
  padding: 48px 0 84px;
}

.policy-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 32px 0 10px;
}

.policy-content p,
.policy-content li {
  color: var(--ink-muted);
}

@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid,
  .spec-grid,
  .review-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-split,
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .product-grid,
  .trust-grid,
  .spec-grid,
  .review-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 64px 0;
  }
}
