:root {
  --navy: #10233d;
  --navy-dark: #0a1626;
  --cream: #f6f1e4;
  --cream-2: #efe7d3;
  --red: #a8262c;
  --gold: #c8a24a;
  --ink: #1c2027;
  --muted: #5c6470;
  --radius: 10px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 10px;
}

h1, h2, h3 { font-family: var(--serif); color: var(--navy); margin: 0 0 16px; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(168,38,44,0.35); }

/* Solid navy border/text -- use only on light (cream/white) backgrounds */
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* White border/text -- use on dark (navy) backgrounds so it stays visible */
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Topbar */
.topbar {
  background: var(--navy-dark);
  color: var(--gold);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 7px 12px;
}
.topbar p { margin: 0; color: var(--gold); }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--navy);
  background: var(--gold);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.logo-mark.small { width: 38px; height: 38px; font-size: 0.8rem; }

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.logo-img.small { width: 40px; height: 40px; }

/* Homepage banner image (full brand banner, uploaded by client) */
.banner-strip { line-height: 0; }
.banner-img { width: 100%; height: auto; display: block; }
.logo-text {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text em { font-style: normal; font-size: 0.72rem; color: var(--gold); font-family: var(--sans); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: #e7e2d2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.fb-btn {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.fb-btn:hover { background: #d9b465; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  align-items: center;
}
.icon { display: block; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 70px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero p { color: #cdd4de; font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-badge {
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
  background: radial-gradient(circle at 50% 45%, rgba(200,162,74,0.18), transparent 70%);
  border-radius: 50%;
}

/* Page header (non-home pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 54px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cdd4de; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--gold); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Trust bar */
.trust-bar { background: var(--cream-2); padding: 26px 0; border-bottom: 1px solid #e2d8bd; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-grid div { display: flex; flex-direction: column; gap: 4px; }
.trust-grid strong { color: var(--navy); font-family: var(--serif); font-size: 1.05rem; }
.trust-grid span { color: var(--muted); font-size: 0.86rem; }

/* Category teaser grid (home page) */
.categories { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 12px; }
.section-head a { color: var(--red); font-weight: 600; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.teaser-card {
  background: #fff;
  border: 1px solid #e6ddc4;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16,35,61,0.12); }
.teaser-card img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: #fff; }
.teaser-card .teaser-body { padding: 18px 20px; }
.teaser-card h3 { margin-bottom: 6px; }
.teaser-card p { margin: 0; font-size: 0.9rem; }
.teaser-card .teaser-cta { display: inline-block; margin-top: 10px; color: var(--red); font-weight: 700; font-size: 0.85rem; }

/* Shop (full catalog page) */
.shop { padding: 60px 0 80px; }
.category { margin-bottom: 56px; }
.category-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--cream-2);
  padding-bottom: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.category-head h2 { margin: 0; font-size: 1.5rem; }
.tag {
  background: var(--navy);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}
.product-grid figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e6ddc4;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-grid a { text-decoration: none; color: inherit; display: block; }
.product-grid figure:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(16,35,61,0.12); }
.product-grid img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: #fff; }
.product-grid figcaption {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.note { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* Custom section */
.custom-cta {
  background: var(--navy);
  color: #fff;
  padding: 70px 0;
}
.custom-cta-inner { max-width: 640px; }
.custom-cta .eyebrow { color: var(--gold); }
.custom-cta h2 { color: #fff; }
.custom-cta p { color: #cdd4de; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; padding-left: 44px; position: relative; color: #dfe4ea; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 30px; height: 30px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--serif);
}
.steps strong { color: #fff; }

/* About */
.about-page { padding: 70px 0; }
.about-inner { max-width: 720px; }
.about-inner p { font-size: 1.05rem; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.about-grid div { background: #fff; border: 1px solid #e6ddc4; border-radius: var(--radius); padding: 22px; }
.about-grid h3 { font-size: 1.1rem; margin-bottom: 8px; }
.about-grid p { font-size: 0.92rem; margin: 0; }

/* Order / Contact */
.order { background: var(--cream-2); padding: 80px 0; }
.order-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pickup-note { margin-top: 16px; font-size: 0.9rem; color: var(--navy); font-weight: 600; }
.pickup-note a { color: var(--red); }

.order-form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid #e6ddc4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-form h3 { margin-bottom: 4px; }
.order-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
.order-form input, .order-form select, .order-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d7cdae;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
}
.form-note { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cdd4de; padding: 46px 0 28px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-inner p { color: #b6bdc8; margin: 10px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cdd4de; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-credit { text-align: right; }
.footer-credit p { margin: 0 0 6px; font-size: 0.82rem; }
.dev-credit a { color: var(--gold); text-decoration: none; }

/* ===================== Product detail page (Amazon-style) ===================== */
.pdp-section { padding: 44px 0 90px; }
.pdp-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.pdp-main-image {
  background: #fff;
  border: 1px solid #e6ddc4;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.pdp-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pdp-thumb {
  width: 74px; height: 74px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e6ddc4;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdp-thumb.active { border-color: var(--red); }

.pdp-info h1 { margin-bottom: 6px; }
.pdp-subtitle { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }
.pdp-price { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.pdp-price .unit { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.pdp-price-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }

.option-group { margin-bottom: 22px; }
.option-group > label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.option-group .selected-value { font-weight: 500; color: var(--muted); }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #d7cdae;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s ease;
}
.pill:hover { border-color: var(--gold); }
.pill.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.pill .pill-price { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.8; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 12px;
}
.swatch {
  border: 2px solid #d7cdae;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.swatch img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; background: #fff; }
.swatch span { display: block; font-size: 0.72rem; padding: 6px 8px; font-weight: 600; color: var(--navy); }
.swatch.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(168,38,44,0.15); }

.swatch-multi.active::after { content: "\2713"; }

.engrave-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d7cdae;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.engrave-hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.pdp-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.pdp-summary {
  margin-top: 18px;
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  max-width: 360px;
}
.pdp-summary span { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }

.pdp-details { margin-top: 40px; border-top: 1px solid #e6ddc4; padding-top: 30px; }
.pdp-details ul { color: var(--muted); padding-left: 20px; }
.pdp-details li { margin-bottom: 6px; }

.upload-box {
  border: 2px dashed #d7cdae;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  background: #fff;
}
.upload-box input[type="file"] { margin-top: 12px; }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .order-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-credit { text-align: left; }
  .teaser-grid { grid-template-columns: 1fr; }
}

.site-header.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
}

/* ===================== Cart toggle + badge ===================== */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--sans);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ===================== Cart drawer ===================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,38,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 340px;
  max-width: 88vw;
  height: 100%;
  background: var(--cream);
  box-shadow: -12px 0 30px rgba(0,0,0,0.2);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transition: right .25s ease;
  padding: 26px 22px;
}
.cart-drawer.open { right: 0; }

.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-drawer-head h3 { margin: 0; }
.cart-close {
  background: none;
  border: none;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
}

.cart-empty { font-size: 0.92rem; }
.cart-empty a { color: var(--red); font-weight: 600; }

.cart-items { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e6ddc4;
  border-radius: 8px;
  padding: 10px;
}
.cart-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item-info strong { font-size: 0.88rem; color: var(--navy); }
.cart-item-info span { font-size: 0.78rem; color: var(--muted); overflow-wrap: break-word; }
.cart-item-info .cart-item-mods { font-style: italic; }
.cart-remove { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: inline-flex; align-items: center; }
.cart-remove:hover { color: var(--red); }

.cart-drawer-foot { padding-top: 16px; border-top: 1px solid #e2d8bd; margin-top: 16px; }
.cart-note { font-size: 0.76rem; margin-top: 10px; margin-bottom: 0; }

/* ===================== Checkout test-mode modal ===================== */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: 400px;
  max-width: 88vw;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.checkout-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.checkout-modal h3 { margin-bottom: 14px; }
.checkout-modal p { font-size: 0.92rem; margin-bottom: 14px; }
.checkout-modal .cart-close { position: absolute; top: 10px; right: 14px; }
#checkoutOverlay { z-index: 100; }

@media (max-width: 480px) {
  .cart-drawer { width: 100%; max-width: 100%; }
}
