/* ============================================================
   BEST CIGAR MATCHES — main.css
   Single stylesheet. All design decisions live here.
   ============================================================ */

/* ------------------------------------------------------------
   FONTS
   Bunny Fonts (privacy-respecting CDN)
   - Cormorant Garamond: display headings
   - Lora: body / reading text
   - DM Sans: UI labels, nav, fine print
   ------------------------------------------------------------ */
@import url('https://fonts.bunny.net/css?family=cormorant-garamond:400,400i,600,700&display=swap');
@import url('https://fonts.bunny.net/css?family=lora:400,400i,600&display=swap');
@import url('https://fonts.bunny.net/css?family=dm-sans:400,500&display=swap');


/* ------------------------------------------------------------
   DESIGN TOKENS — Light Mode (Parchment)
   Default. Dark mode overrides follow via media query.
   ------------------------------------------------------------ */
:root {
  /* Palette */
  --bg:         #F5EDD6;          /* aged parchment */
  --surface:    #EDE0C4;          /* slightly deeper parchment — cards, sections */
  --surface-2:  #E3D5B4;          /* deeper still — inset areas */
  --text:       #1C0F0A;          /* near-black espresso */
  --muted:      #5C3D2E;          /* warm brown — secondary text */
  --faint:      rgba(28, 15, 10, 0.08);
  --border:     rgba(107, 30, 42, 0.18);

  /* Brand */
  --accent:     #6B1E2A;          /* logo burgundy */
  --accent-hi:  #8C2535;          /* burgundy lightened for hover */
  --gold:       #C9A84C;          /* logo gold */
  --gold-hi:    #DFC06A;          /* gold hover */

  /* Typography scale */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'DM Sans', Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw:   1040px;
  --padx:   24px;
  --r:      6px;                  /* border radius — restrained, not bubbly */

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(28, 15, 10, 0.10);
  --shadow-md:  0 8px 28px rgba(28, 15, 10, 0.14);
  --shadow-lg:  0 20px 60px rgba(28, 15, 10, 0.18);

  /* Transitions */
  --ease: 0.22s ease;
}


/* ------------------------------------------------------------
   DARK MODE — The Bench at Night
   System preference only. No toggle.
   ------------------------------------------------------------ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #100A08;          /* deep espresso, almost black */
    --surface:    #1A100D;          /* slightly lifted */
    --surface-2:  #221510;          /* lifted further */
    --text:       #F0E6D0;          /* warm parchment on dark */
    --muted:      #B8986E;          /* aged gold-tan — secondary text */
    --faint:      rgba(240, 230, 208, 0.07);
    --border:     rgba(201, 168, 76, 0.15);

    --accent:     #A0293A;          /* burgundy brightened for dark bg */
    --accent-hi:  #BE3347;
    --gold:       #C9A84C;          /* gold is stable across modes */
    --gold-hi:    #DFC06A;

    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md:  0 8px 28px rgba(0, 0, 0, 0.40);
    --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.55);
  }
}


/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
}

/* Warm radial glow — candlelight atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 0%, rgba(107, 30, 42, 0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 5%,  rgba(201, 168, 76, 0.07), transparent 55%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(ellipse 900px 600px at 15% 0%, rgba(160, 41, 58, 0.18), transparent 60%),
      radial-gradient(ellipse 700px 500px at 85% 5%,  rgba(201, 168, 76, 0.12), transparent 55%);
  }
}

/* Ensure content sits above the atmospheric layer */
body > * {
  position: relative;
  z-index: 1;
}

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

ul, ol {
  list-style: none;
}


/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; }

p {
  font-family: var(--font-body);
  color: var(--muted);
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--text);
}

em {
  font-style: italic;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding: 0.5em 0 0.5em 1.4em;
  margin: 1.5em 0;
}

blockquote p {
  font-family: var(--font-display);
  font-size: inherit;
  color: inherit;
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* UI label style — reusable */
.label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--padx);
}

main {
  display: block;
}

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}


/* ------------------------------------------------------------
   SITE HEADER
   ------------------------------------------------------------ */
.site-header {
  padding: 20px 0 12px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(var(--shadow-sm));
  transition: opacity var(--ease);
}

.site-logo:hover img {
  opacity: 0.85;
}

.site-logo:hover {
  text-decoration: none;
}


/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--border);
}

.nav__sep {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.6;
  user-select: none;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}

.nav__link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav__link--active {
  color: var(--text);
}

.nav__link--cta {
  color: var(--text);
  background: var(--accent);
  padding: 5px 14px;
  border-radius: var(--r);
  transition: background var(--ease), color var(--ease);
}

.nav__link--cta:hover {
  background: var(--accent-hi);
  color: #fff;
  text-decoration: none;
}

/* page_ident — small label below nav, per-page identity */
.nav__ident {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  padding: 8px 0 0;
  margin: 0;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  padding: 48px 0 36px;
}

.hero__kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 18ch;
}

.hero__subhead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 42ch;
}

.hero__support {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 48ch;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero__price {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hero__price strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.hero__dot {
  color: var(--gold);
  opacity: 0.7;
}

.hero__microcopy {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.7;
  margin: 0;
}


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.72rem;
}

.btn-primary {
  background: var(--accent);
  color: #F5EDD6;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hi);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover {
  background: var(--gold-hi);
  color: #1C0F0A;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


/* ------------------------------------------------------------
   ORNAMENTAL DIVIDER
   ------------------------------------------------------------ */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  justify-content: center;
  padding: 8px 0;
}

.ornament::before,
.ornament::after {
  content: '';
  display: block;
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.ornament::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.ornament__mark {
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.75;
  user-select: none;
}


/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   PRODUCT CARDS
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}

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

.product-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.product-card__body {
  padding: 20px 22px 24px;
}

.product-card__category {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card__name a {
  color: inherit;
}

.product-card__name a:hover {
  color: var(--accent);
  text-decoration: none;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.badge--in-stock {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge--out-of-stock {
  background: var(--faint);
  color: var(--muted);
  border: 1px solid var(--border);
}


/* ------------------------------------------------------------
   PRODUCT DETAIL (individual product page)
   ------------------------------------------------------------ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-top: 28px;
}

.product-detail__img-main {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.product-detail__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-detail__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--ease), border-color var(--ease);
}

.product-detail__thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.product-detail__name {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  margin-top: 8px;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.product-detail__info .badge {
  display: inline-block;
  margin-bottom: 24px;
}

.product-detail__info .btn-add-to-cart {
  margin-bottom: 32px;
  width: 100%;
}

.product-detail__description {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}


/* ------------------------------------------------------------
   VIDEO SECTION
   ------------------------------------------------------------ */
.section-video h2 {
  margin-bottom: 24px;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}


/* ------------------------------------------------------------
   PURCHASE / CONTACT SECTION
   ------------------------------------------------------------ */
.section-purchase h2 {
  margin-bottom: 16px;
}

.purchase-intro {
  max-width: 60ch;
  margin-bottom: 28px;
}


/* ------------------------------------------------------------
   POST NAV
   ------------------------------------------------------------ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post-nav__next {
  text-align: right;
}

.post-nav__back {
  margin-top: 28px;
}

.post-nav__back a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-nav__back a:hover {
  color: var(--accent);
  text-decoration: none;
}


/* ------------------------------------------------------------
   SITE FOOTER
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 80px;
  padding: 52px 0 36px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  gap: 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}

.footer__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer__lead a {
  color: var(--accent);
}

.footer__lead a:hover {
  color: var(--accent-hi);
}

.footer__mark {
  display: block;
  text-align: right;
}

.footer__mark img {
  max-width: 180px;
  height: auto;
  margin-left: auto;
  opacity: 0.82;
  transition: opacity var(--ease);
}

.footer__mark:hover img {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: grid;
  gap: 6px;
}

.fine-print {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
  line-height: 1.6;
}

.fine-print a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fine-print a:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: none;
}

.footer__tinylytics {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0.6;
}


/* ------------------------------------------------------------
   CART
   ------------------------------------------------------------ */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--ease);
  padding: 4px;
}

.cart-icon:hover {
  color: var(--accent);
}

.cart-icon__count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.4rem;
  padding: 4px;
  transition: color var(--ease);
}

.cart-drawer__close:hover {
  color: var(--accent);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--faint);
}

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item__price {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  opacity: 0.5;
  font-size: 1rem;
  transition: opacity var(--ease), color var(--ease);
  padding: 4px;
}

.cart-item__remove:hover {
  opacity: 1;
  color: var(--accent);
}

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.cart-total__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-total__amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 10, 8, 0.55);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}


/* ------------------------------------------------------------
   POST / JOURNAL
   ------------------------------------------------------------ */
.post-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

.post-content {
  max-width: 68ch;
}

.post-content h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 1.6rem;
}

.post-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content ul,
.post-content ol {
  list-style: disc;
  margin-left: 1.4em;
  margin-bottom: 1.2em;
  color: var(--muted);
  font-family: var(--font-body);
}

.post-list {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.post-list__item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.post-list__date {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.post-list__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-list__title a {
  color: var(--text);
}

.post-list__title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-list__excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 16px;
}


/* ------------------------------------------------------------
   COLLAPSIBLE
   ------------------------------------------------------------ */
.collapsible {
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 16px 20px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease);
  margin-bottom: 4px;
}

.collapsible:hover,
.collapsible.active {
  background: var(--surface-2);
  border-color: var(--accent);
}

.learn-more {
  padding: 16px 20px;
  display: none;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  margin-bottom: 8px;
}


/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 30, 42, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}


/* ------------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.text-gold    { color: var(--gold); }
.text-accent  { color: var(--accent); }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 40px; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 40px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}


/* ------------------------------------------------------------
   FAQ — details/summary (native HTML, no JS)
   ------------------------------------------------------------ */
.faq-list {
  margin-top: 32px;
  display: grid;
  gap: 6px;
  max-width: 72ch;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--ease), color var(--ease);
}

/* Remove default triangle in all browsers */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

/* Custom indicator */
.faq-question::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--ease);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  background: var(--surface-2);
  color: var(--accent);
}

.faq-question:hover {
  background: var(--surface-2);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 0.95rem;
  margin-top: 14px;
  margin-bottom: 0;
}

.faq-answer p + p {
  margin-top: 10px;
}


/* ------------------------------------------------------------
   FORM — checkboxes (subscribe page channel selection)
   ------------------------------------------------------------ */
.form-checkboxes {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
}

.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  position: relative;
}

.form-check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: 2px solid #F5EDD6;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-check:hover input[type="checkbox"]:not(:checked) {
  border-color: var(--accent);
}


/* ------------------------------------------------------------
   FORM — status messages (contact + subscribe)
   ------------------------------------------------------------ */
.contact-form__status,
.subscribe-form__status {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  min-height: 1.4em;
}

.contact-form__status.is-success,
.subscribe-form__status.is-success {
  color: var(--gold);
}

.contact-form__status.is-error,
.subscribe-form__status.is-error {
  color: var(--accent-hi);
}

/* form wraps — constrain width on wide viewports */
.contact-form-wrap,
.subscribe-form-wrap {
  max-width: 52ch;
  margin-top: 32px;
}

/* ------------------------------------------------------------
   SHOP — category filter bar
   ------------------------------------------------------------ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
}

.filter-btn {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 16px;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

.filter-btn--active {
  color: var(--gold);
  background: var(--surface-2);
  border-color: var(--gold);
}


/* ------------------------------------------------------------
   PRODUCT DETAIL — monogram callout
   ------------------------------------------------------------ */
.monogram-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 24px 0;
}

.monogram-callout__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.monogram-callout__body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.monogram-callout__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}


/* ------------------------------------------------------------
   PRODUCT DETAIL — related products
   ------------------------------------------------------------ */
.related-products {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-products__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
  text-decoration: none;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.related-card__body {
  padding: 14px 16px 16px;
}

.related-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.related-card__price {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  :root {
    --padx: 16px;
  }

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

  .footer__mark {
    text-align: left;
  }

  .footer__mark img {
    margin-left: 0;
  }

  .cart-drawer {
    width: 100vw;
  }

  .hero__title {
    max-width: none;
  }

  .hero__subhead,
  .hero__support {
    max-width: none;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .related-products__grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cart-item {
    grid-template-columns: 52px 1fr auto;
  }

  .related-products__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ADDITIONS FOR MILESTONE 4 — append to end of main.css
   Cart qty controls, checkout modal, monogram input
   ============================================================ */

/* ------------------------------------------------------------
   CART — quantity stepper buttons
   ------------------------------------------------------------ */
.cart-qty-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease);
}

.cart-qty-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}


/* ------------------------------------------------------------
   CHECKOUT MODAL
   ------------------------------------------------------------ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 10, 8, 0.65);
  z-index: 1100;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 1101;
  display: flex;
  flex-direction: column;
}

.checkout-modal__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}

.checkout-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}

.checkout-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.3rem;
  padding: 4px;
  transition: color var(--ease);
}

.checkout-modal__close:hover {
  color: var(--accent);
}

.checkout-modal__body {
  padding: 24px;
  flex: 1;
}

.checkout-modal__error {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--accent-hi);
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(160, 41, 58, 0.08);
  border: 1px solid rgba(160, 41, 58, 0.2);
  border-radius: var(--r);
}


/* ------------------------------------------------------------
   MONOGRAM INPUT
   ------------------------------------------------------------ */
.monogram-input-wrap {
  margin-top: 16px;
}

.monogram-text-wrap {
  margin-top: 12px;
}

.monogram-text-input {
  font-family: var(--font-ui);
  letter-spacing: 0.2em;
  font-size: 1.1rem;
}

/* ------------------------------------------------------------
   MONOGRAM STYLE SELECTOR
   Three-up radio card grid on product pages with monogram option.
   Append to end of main.css.
   ------------------------------------------------------------ */

.monogram-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.monogram-style-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  text-align: center;
}

.monogram-style-card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.monogram-style-card.is-selected {
  border-color: var(--gold);
  background: var(--surface-2);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}

.monogram-style-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

.monogram-style-card__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease);
}

.monogram-style-card__toggle:hover {
  color: var(--accent);
}

/* Hide the native radio button — card itself is the visual */
.monogram-style-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.monogram-style-card__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  display: block;
}

.monogram-style-card__desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

/* Stack to single column on small screens */
@media (max-width: 480px) {
  .monogram-style-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — checkout modal on mobile
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .checkout-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r) var(--r) 0 0;
  }
}