/* ── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  --color-primary:   #c8a96e;
  --color-primary-dk:#a88a50;
  --color-bg:        #faf9f7;
  --color-surface:   #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #6c757d;
  --color-border:    #e5e5e5;
  --color-footer-bg: #1a1a1a;
  --color-footer-text:#c8c8c8;
  --header-h:        72px;
  --max-w:           1200px;
  --radius:          4px;
  --font:            'Georgia', 'Times New Roman', serif;
  --font-sans:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow:          0 2px 8px rgba(0,0,0,.08);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
a    { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img  { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Header / Nav ──────────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
}
.site-logo img { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text);
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--color-text);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--color-bg); color: var(--color-primary); text-decoration: none; }
.cart-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.cart-btn:hover { background: var(--color-primary-dk); text-decoration: none; color: #fff; }
.cart-count {
  background: #fff;
  color: var(--color-primary);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--color-text);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 auto 32px;
}
.hero .btn { display: inline-block; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dk); border-color: var(--color-primary-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-white  { background: #fff; color: var(--color-text); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-block  { display: flex; width: 100%; justify-content: center; }
.btn-sm     { padding: 8px 16px; font-size: 12px; }

/* ── Collection band ──────────────────────────────────────────────────────── */
.collection-band { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.collection-band .container {
  display: flex; gap: 8px; overflow-x: auto;
  padding-top: 14px; padding-bottom: 14px;
  scrollbar-width: none;
}
.collection-band .container::-webkit-scrollbar { display: none; }
.collection-pill {
  flex-shrink: 0;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.collection-pill:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.collection-pill.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Search Page ──────────────────────────────────────────────────────────── */
.search-page { padding: 56px 0 80px; }
.search-heading {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 32px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 4px 4px 16px;
  margin: 0 auto 24px;
}
.search-box:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(200,169,110,.18); }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 0;
  background: transparent;
  color: var(--color-text);
}
.search-clear {
  font-size: 20px;
  color: var(--color-muted);
  line-height: 1;
  padding: 4px 8px;
}
.search-clear:hover { color: var(--color-text); text-decoration: none; }
.search-box button {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.search-box button:hover { background: var(--color-primary); color: #fff; }
.search-count { color: var(--color-muted); font-size: 14px; margin-bottom: 24px; }
.search-hint { color: var(--color-muted); font-size: 14px; text-align: center; padding: 24px 0; }
.search-page .product-grid { max-width: 1200px; margin: 0 auto; padding-bottom: 0; }

/* ── Product Grid ──────────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 0 20px;
}
.section-title {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 400;
}
.section-link { font-size: 13px; color: var(--color-primary); text-decoration: underline; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-2px); }

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0ede8;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 20px;
}
.sold-out-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px;
}

.product-card-body { padding: 14px 16px 16px; }
.product-card-name {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-card-collection {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.product-card-price {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.product-card-price .compare { font-size: 13px; font-weight: 400; color: var(--color-muted); text-decoration: line-through; }
.product-card-actions { margin-top: 10px; }

/* ── Product Detail ────────────────────────────────────────────────────────── */
.product-detail { padding: 48px 0 80px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.product-gallery { }
.product-gallery-main {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f0ede8;
  margin-bottom: 12px;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-gallery-thumbs img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s;
}
.product-gallery-thumbs img.active, .product-gallery-thumbs img:hover { border-color: var(--color-primary); }

.product-info { }
.product-breadcrumb {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-breadcrumb a { color: var(--color-muted); }
.product-breadcrumb a:hover { color: var(--color-primary); }
.product-title {
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}
.product-price-block {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px;
}
.product-price { font-size: 24px; font-weight: 700; }
.product-compare { font-size: 18px; color: var(--color-muted); text-decoration: line-through; }
.product-sale-badge {
  background: #f8d7da; color: #842029;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase;
}

.product-variants { margin-bottom: 20px; }
.product-variants label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 8px; display: block; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.variant-btn:hover, .variant-btn.active { border-color: var(--color-primary); color: var(--color-primary); }

.product-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.product-qty label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.qty-input { display: flex; border: 1.5px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.qty-input button { width: 36px; height: 36px; background: none; border: none; cursor: pointer; font-size: 18px; color: var(--color-text); transition: background .15s; }
.qty-input button:hover { background: var(--color-bg); }
.qty-input input { width: 48px; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: center; font-size: 14px; outline: none; }

.product-add-to-cart { margin-bottom: 16px; }
.product-description { border-top: 1px solid var(--color-border); padding-top: 24px; margin-top: 24px; font-size: 14px; line-height: 1.8; color: var(--color-text); white-space: pre-wrap; }

/* ── Cart ──────────────────────────────────────────────────────────────────── */
.cart-page { padding: 48px 0 80px; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item-image img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); }
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 13px; color: var(--color-muted); }
.cart-item-price { font-size: 15px; font-weight: 600; margin-top: 8px; }
.cart-item-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.cart-item-remove { font-size: 12px; color: var(--color-muted); cursor: pointer; border: none; background: none; text-decoration: underline; }

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.cart-summary h2 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--color-border); padding-top: 16px; margin-top: 8px; }
.summary-shipping-note { font-size: 12px; color: var(--color-muted); margin-top: 4px; text-align: center; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-page { padding: 48px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-section { margin-bottom: 32px; }
.checkout-section h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.checkout-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .checkout-form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius);
  font-size: 14px; background: #fff; color: var(--color-text);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200,169,110,.18);
}

#card-element {
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
#card-element.StripeElement--focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(200,169,110,.18); }
#card-errors { color: #dc3545; font-size: 13px; margin-top: 6px; }

.order-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.order-sidebar h2 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.order-sidebar-item { display: flex; gap: 12px; margin-bottom: 12px; }
.order-sidebar-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--color-border); }
.order-sidebar-item-details { flex: 1; font-size: 13px; }
.order-sidebar-item-name { font-weight: 600; }
.order-sidebar-item-variant { color: var(--color-muted); }
.order-sidebar-item-price { font-weight: 600; margin-top: 2px; }

/* ── Success page ──────────────────────────────────────────────────────────── */
.success-page { padding: 80px 24px; text-align: center; }
.success-icon { font-size: 48px; margin-bottom: 24px; color: #198754; }
.success-page h1 { font-family: var(--font); font-size: 32px; margin-bottom: 12px; }
.success-page p { color: var(--color-muted); margin-bottom: 32px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { }
.footer-brand-name { font-family: var(--font); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer-heading { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--color-footer-text); }
.footer-links a:hover { color: var(--color-primary); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-bottom a { color: var(--color-footer-text); }
.footer-bottom a:hover { color: var(--color-primary); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-header { padding: 24px 0 16px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}
