/* =========================================================
   KM STYLE BOX — main.css
   WordPress theme — overrides ALL default WP theme styles
   ========================================================= */

/* ---------- WORDPRESS NUCLEAR RESET ---------- */
/* Kill any inherited theme margins, padding, fonts */
#page, #content, #primary, #secondary,
.site, .site-content, .site-header, .site-footer,
.wp-site-blocks, .entry-content, .entry-header,
.wp-block-group, .wp-block-columns,
body.home, body.page {
  all: unset;
  display: block;
}

/* Remove WordPress default body padding/margin from admin bar */
html { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

/* Remove default link underlines WP themes add */
a { text-decoration: none; }

/* Kill default list styles WP adds inside content */
.nav-links li, .tier-features li, .footer-col a {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* ------------------------------------------------ */

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

:root {
  --black: #111111;
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --muted: #888888;
  --text: #333333;

  /* Tier colors */
  --bronze: #A0522D;
  --bronze-bg: #f5ede0;
  --silver: #6b7280;
  --silver-bg: #f0f0f0;
  --gold: #B8860B;
  --gold-bg: #fef3cd;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;

  /* Spacing */
  --nav-h: 68px;
  --ann-h: 40px;
  --section-pad: 80px 40px;
  --max-w: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ---------- ANNOUNCEMENT BAR ---------- */
.ann-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 0 20px;
  height: var(--ann-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 400;
  position: relative;
  z-index: 200;
}

.ann-bar span {
  opacity: 0.92;
}

.ann-bar strong {
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 150;
  transition: box-shadow 0.25s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0;
}

/* LOGO */
.logo-area {
  flex-shrink: 0;
  margin-right: 36px;
}

.logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0 14px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav-item:hover > .nav-link {
  border-bottom-color: var(--black);
}

/* DROPDOWN */
.dropdown {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--black);
  min-width: 176px;
  padding: 10px 0;
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: dropDown 0.15s ease;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: background 0.1s, color 0.1s;
}

.dropdown a:hover {
  background: var(--light-gray);
  color: var(--black);
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: opacity 0.15s;
}

.search-btn:hover {
  opacity: 0.6;
}

/* AVATAR */
.avatar-wrap {
  position: relative;
}

.avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.15s;
}

.avatar-block:hover .avatar {
  transform: scale(1.05);
}

.tier-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.6;
}

.gold-badge  { background: var(--gold-bg);   color: var(--gold);   }
.silver-badge{ background: var(--silver-bg); color: var(--silver); }
.bronze-badge{ background: var(--bronze-bg); color: var(--bronze); }

/* AVATAR DROPDOWN */
.avatar-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--black);
  min-width: 210px;
  z-index: 400;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: dropDown 0.15s ease;
}

.avatar-wrap:hover .avatar-dropdown,
.avatar-wrap.open .avatar-dropdown {
  display: block;
}

.user-info {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.user-email {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tier-pill {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.gold-pill   { background: var(--gold-bg);   color: var(--gold);   }
.silver-pill { background: var(--silver-bg); color: var(--silver); }
.bronze-pill { background: var(--bronze-bg); color: var(--bronze); }

.dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.1s, color 0.1s;
}

.dd-link:hover {
  background: var(--light-gray);
  color: var(--black);
}

.dd-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.logout-link {
  color: var(--muted);
}

.logout-link:hover {
  color: #c0392b;
  background: #fff5f5;
}

/* SEARCH BAR */
.search-bar {
  display: none;
  padding: 0 32px 14px;
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 12px;
}

.search-bar.open {
  display: flex;
}

.search-bar input {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--black);
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 8px 0;
  background: transparent;
  color: var(--black);
}

.search-bar input::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.search-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  transition: color 0.15s;
}

.search-close:hover {
  color: var(--black);
}

/* HAMBURGER (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 68px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 17px;
  color: #666;
  font-weight: 300;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* HERO VISUAL */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.hb {
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hb:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hb1 { background: #f0ece8; }
.hb2 { background: #eaf0f5; }
.hb3 { background: #f0f5ee; }
.hb4 { background: #f5eee8; }

.hb-product-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  line-height: 1;
  margin: 8px 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.10));
  overflow: hidden;
}

.hb-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.hb-badge {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.hb-label {
  font-size: 14px;
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.3;
}

/* ---------- SHARED BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-sans);
}

.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 300;
  color: var(--black);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
}

.section-title-sm {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.2;
}

/* ---------- TIERS ---------- */
.tiers-section {
  padding: var(--section-pad);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 28px 32px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}

.featured-card {
  border: 2px solid var(--black);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 16px;
  white-space: nowrap;
}

.tier-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bronze-card .tier-icon { background: var(--bronze-bg); }
.silver-card .tier-icon { background: var(--silver-bg); }
.gold-card   .tier-icon { background: var(--gold-bg);   }

.tier-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bronze-text { color: var(--bronze); }
.silver-text { color: var(--silver); }
.gold-text   { color: var(--gold);   }

.tier-price {
  margin: 8px 0 14px;
}

.price-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--black);
}

.price-mo {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

.tier-desc {
  font-size: 15px;
  color: #777;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 22px;
  min-height: 52px;
}

.tier-features {
  text-align: left;
  margin-bottom: 28px;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.tier-features li {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
  padding: 7px 0;
  border-bottom: 1px solid #f8f8f8;
  padding-left: 14px;
  position: relative;
}

.tier-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #ccc;
  font-size: 11px;
}

.tier-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px solid var(--black);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--black);
  transition: background 0.15s, color 0.15s;
}

.tier-btn:hover,
.featured-btn {
  background: var(--black);
  color: var(--white);
}

.featured-btn:hover {
  background: #333;
}

/* ---------- SHOP SECTION ---------- */
.shop-section {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.view-all-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.view-all-link:hover {
  opacity: 0.6;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.filter-btn {
  padding: 9px 20px;
  border: 1px solid #ddd;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.12s;
  border-radius: 2px;
}

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

.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ITEMS GRID */
.items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.item-card {
  cursor: pointer;
}

.item-img {
  aspect-ratio: 3/4;
  border-radius: 2px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}

.item-card:hover .item-img {
  transform: scale(1.02);
}

.item-emoji {
  font-size: 52px;
  line-height: 1;
}

.item-tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 600;
}

.badge-bronze { background: var(--bronze-bg); color: var(--bronze); }
.badge-silver { background: var(--silver-bg); color: var(--silver); }
.badge-gold   { background: var(--gold-bg);   color: var(--gold);   }

.item-brand {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}

.item-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 5px;
  line-height: 1.3;
}

.item-price {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}

.item-card.hidden {
  display: none;
}

.filter-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 40px 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: invert(1) brightness(2);
  opacity: 0.85;
}

.footer-tagline {
  font-size: 15px;
  color: #888;
  font-weight: 300;
  line-height: 1.7;
  font-family: var(--font-serif);
  font-style: italic;
}

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

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: #666;
  font-weight: 300;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 14px;
  color: #555;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 14px;
  color: #555;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: #aaa;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1);     }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--black);
}

.modal-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 4px;
}

.modal-price {
  font-size: 24px;
  color: var(--muted);
  font-family: var(--font-serif);
  margin-bottom: 20px;
}

.modal-body {
  font-size: 16px;
  color: #666;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-cta {
  width: 100%;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 48px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-box-grid {
    max-width: 320px;
    margin: 0 auto;
  }

  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    height: auto;
    line-height: 1;
    padding: 14px 24px;
    border-bottom: none;
    border-bottom: 1px solid #f5f5f5;
  }

  .dropdown {
    position: static;
    border: none;
    border-top: none;
    box-shadow: none;
    padding: 0 0 8px 20px;
    display: block;
  }

  .nav-item:hover .dropdown,
  .nav-item .dropdown {
    display: none;
  }

  .nav-item.open .dropdown {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .shop-section,
  .tiers-section {
    padding: 48px 24px;
  }

  .section-title {
    font-size: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 38px;
  }

  .ann-bar {
    font-size: 11px;
  }
}


/* =========================================================
   EXTRA PAGE STYLES
   ========================================================= */

/* Nav login button */
.nav-login-btn {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--black);
  border-bottom: 1px solid var(--black); padding-bottom: 1px;
  transition: opacity 0.15s;
}
.nav-login-btn:hover { opacity: 0.6; }

/* Breadcrumb */
.breadcrumb-bar {
  max-width: var(--max-w); margin: 0 auto; padding: 16px 40px;
  font-size: 14px; color: var(--muted); font-family: var(--font-sans);
  letter-spacing: 0.04em; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb-bar a { color: var(--muted); transition: color 0.15s; }
.breadcrumb-bar a:hover { color: var(--black); }
.breadcrumb-bar .current { color: var(--black); }

/* Page Hero (for inner pages) */
.page-hero {
  max-width: 700px; margin: 0 auto; padding: 60px 40px 48px;
  text-align: center; border-bottom: 1px solid var(--border);
}
.page-hero .hero-title { font-size: 48px; }

/* Category Hero Banner */
.cat-hero {
  background: var(--off-white);
  background-size: cover; background-position: center;
  position: relative; padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}
.cat-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.82);
}
.cat-hero-sm { padding: 48px 40px; }
.cat-hero-inner { position: relative; max-width: var(--max-w); margin: 0 auto; }
.cat-hero-title { font-family: var(--font-serif); font-size: 52px; font-weight: 300; color: var(--black); margin-bottom: 12px; }
.cat-hero-sub { font-size: 17px; color: #666; font-weight: 300; max-width: 500px; }

/* Sort select */
.sort-wrap select.sort-select {
  border: 1px solid var(--border); padding: 7px 14px;
  font-size: 14px; font-family: var(--font-sans); color: var(--black);
  background: var(--white); cursor: pointer; letter-spacing: 0.04em;
}

/* Filter divider */
.filter-divider { color: var(--border); margin: 0 4px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 40px;
  border: 1px dashed var(--border); border-radius: 2px;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin-bottom: 10px; }
.empty-state p { font-size: 16px; color: var(--muted); max-width: 400px; margin: 0 auto; line-height: 1.6; }

/* No image placeholder inside product card */
.item-no-img {
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-family: var(--font-sans);
}

/* Pagination */
.km-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin: 48px 0 0; flex-wrap: wrap;
}
.km-pagination .page-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border);
  font-size: 15px; color: var(--text); transition: all 0.12s;
  font-family: var(--font-sans);
}
.km-pagination .page-num:hover, .km-pagination .page-num.active {
  background: var(--black); color: var(--white); border-color: var(--black);
}

/* Compare section */
.compare-section {
  padding: var(--section-pad);
  background: var(--off-white);
  border-top: 1px solid var(--border);
  text-align: center;
}
.compare-table-wrap { overflow-x: auto; max-width: 800px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 16px; text-align: center; }
.compare-table th { padding: 14px 16px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; border-bottom: 2px solid var(--black); }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.compare-table td:first-child { text-align: left; color: var(--muted); }
.compare-table tr:hover td { background: rgba(0,0,0,0.02); }

/* FAQ styles */
.faq-section { max-width: 800px; margin: 0 auto; padding: var(--section-pad); }
.faq-group { margin-bottom: 48px; }
.faq-group-title { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.faq-item-accordion { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-size: 16px; font-family: var(--font-sans); font-weight: 500; cursor: pointer; color: var(--black); letter-spacing: 0.02em; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 18px; font-weight: 300; color: var(--muted); transition: transform 0.2s; }
.faq-item-accordion.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 18px; font-size: 16px; color: #666; line-height: 1.7; font-weight: 300; }
.faq-answer.open { display: block; }
.faq-snippet { padding: var(--section-pad); text-align: center; border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { padding: 24px; border: 1px solid var(--border); }
.faq-item h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; font-family: var(--font-sans); }
.faq-item p { font-size: 15px; color: #777; line-height: 1.6; font-weight: 300; }

/* Stats */
.stats-section { background: var(--black); padding: 60px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; max-width: var(--max-w); margin: 0 auto; text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 56px; font-weight: 300; color: var(--white); margin-bottom: 6px; }
.stat-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #888; font-family: var(--font-sans); }

/* About page */
.about-section { max-width: var(--max-w); margin: 0 auto; padding: var(--section-pad); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text h2 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; margin: 28px 0 10px; }
.about-text p { font-size: 17px; color: #555; line-height: 1.75; font-weight: 300; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-img-placeholder { width:100%; aspect-ratio:4/5; background:var(--off-white); border:1px dashed var(--border); display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--muted); text-align:center; padding:24px; font-family:var(--font-sans); }

/* Contact page */
.contact-section { max-width: var(--max-w); margin: 0 auto; padding: var(--section-pad); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.contact-info h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { font-size: 18px; margin-top: 2px; }
.contact-detail strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 2px; font-family: var(--font-sans); }
.contact-detail p { font-size: 15px; color: var(--muted); font-family: var(--font-sans); }
.contact-form-wrap { background: var(--off-white); padding: 36px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: var(--font-sans); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); background: var(--white);
  font-family: var(--font-sans); font-size: 16px; color: var(--black); outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--black); }
.form-success { text-align: center; padding: 48px; }
.form-success h3 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 10px; }
.form-error { background: #fff5f5; border: 1px solid #fcc; color: #c00; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; font-family: var(--font-sans); }

/* Account page */
.account-section { max-width: var(--max-w); margin: 0 auto; padding: var(--section-pad); }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.account-sidebar { position: sticky; top: 100px; align-self: start; }
.account-avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; margin-bottom: 14px; font-family: var(--font-sans); }
.account-name { font-size: 18px; font-weight: 500; font-family: var(--font-sans); }
.account-email { font-size: 15px; color: var(--muted); font-family: var(--font-sans); margin-bottom: 4px; }
.account-nav { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
.account-nav-link { display: block; padding: 12px 0; font-size: 15px; color: var(--text); font-family: var(--font-sans); border-bottom: 1px solid #f5f5f5; transition: color 0.12s; }
.account-nav-link:hover, .account-nav-link.active { color: var(--black); font-weight: 500; }
.account-nav-link.logout-link { color: var(--muted); }
.account-nav-link.logout-link:hover { color: #c0392b; }
.account-panel-title { font-family: var(--font-serif); font-size: 32px; font-weight: 400; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text); font-family: var(--font-sans); cursor: pointer; padding: 6px 12px; border: 1px solid var(--border); transition: all 0.12s; }
.checkbox-label:hover { border-color: var(--black); }
.checkbox-label input[type="checkbox"] { width: auto; }

/* Product detail page */
.product-detail { max-width: var(--max-w); margin: 0 auto; padding: var(--section-pad); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.product-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.product-img-placeholder { width: 100%; aspect-ratio: 3/4; background: var(--off-white); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-align: center; padding: 24px; font-family: var(--font-sans); }
.product-title { font-family: var(--font-serif); font-size: 42px; font-weight: 300; margin-bottom: 12px; }
.product-price { font-size: 24px; font-family: var(--font-serif); margin-bottom: 16px; }
.product-price span { font-size: 14px; color: var(--muted); font-family: var(--font-sans); }
.product-excerpt { font-size: 17px; color: #555; font-weight: 300; line-height: 1.7; margin-bottom: 24px; }
.product-meta-list { border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 8px; }
.product-meta-item { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f5f5f5; font-size: 15px; font-family: var(--font-sans); }
.product-meta-item span { color: var(--muted); }
.product-description { border-top: 1px solid var(--border); padding-top: 40px; }
.product-description h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin-bottom: 20px; }
.product-desc-content { font-size: 15px; color: #555; line-height: 1.8; font-weight: 300; max-width: 700px; }
.product-desc-list { list-style: none; padding: 0; margin: 0; }
.product-desc-list li { padding: 8px 0 8px 24px; border-bottom: 1px solid var(--border); position: relative; font-size: 15px; color: var(--text); line-height: 1.6; }
.product-desc-list li:last-child { border-bottom: none; }
.product-desc-list li::before { content: '—'; position: absolute; left: 0; color: var(--muted); font-weight: 300; }

/* Responsive additions */
@media (max-width: 960px) {
  .about-grid, .contact-grid, .account-layout, .product-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cat-hero-title { font-size: 36px; }
  .breadcrumb-bar { padding: 12px 24px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}


/* =========================================================
   AUTH PAGE — Sign Up / Login
   ========================================================= */

/* Remove default WP body padding on auth page */
.auth-page { min-height: 100vh; }

.tier-btn-link {
  display: block; width: 100%; padding: 12px; text-align: center;
  background: transparent; border: 1.5px solid var(--black);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; font-family: var(--font-sans);
  color: var(--black); transition: background 0.15s, color 0.15s;
}
.tier-btn-link:hover, .tier-btn-link.featured-btn {
  background: var(--black); color: var(--white);
}

.auth-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 108px);
}

/* LEFT PANEL */
.auth-tier-panel {
  background: var(--off-white);
  border-right: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 108px;
  height: calc(100vh - 108px);
  overflow-y: auto;
}

.auth-back-link {
  font-size: 12px; font-family: var(--font-sans); color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.15s; display: inline-block; margin-bottom: 36px;
}
.auth-back-link:hover { color: var(--black); }

.auth-tier-eyebrow {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-family: var(--font-sans); margin-bottom: 6px;
}

.auth-tier-name {
  font-family: var(--font-serif); font-size: 52px; font-weight: 300;
  color: var(--tier-color, var(--black)); margin-bottom: 4px; line-height: 1;
}

.auth-tier-price {
  font-family: var(--font-serif); font-size: 26px; color: var(--black);
  margin-bottom: 16px;
}

.auth-tier-badge-wrap { margin-bottom: 28px; }

.bronze-pill-large { background: var(--bronze-bg); color: var(--bronze); padding: 4px 16px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.silver-pill-large  { background: var(--silver-bg); color: var(--silver); padding: 4px 16px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.gold-pill-large    { background: var(--gold-bg);   color: var(--gold);   padding: 4px 16px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.auth-tier-perks {
  list-style: none; margin-bottom: 32px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.auth-tier-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text); font-family: var(--font-sans);
  padding: 8px 0; border-bottom: 1px solid #f0f0f0;
}
.perk-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tier-bg, #f5f5f5); color: var(--tier-color, var(--black));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

/* Tier switcher */
.tier-switcher { margin-bottom: 28px; }
.tier-switcher p { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-sans); }
.tier-switcher-btns { display: flex; gap: 8px; }
.tier-switch-btn {
  flex: 1; text-align: center; padding: 10px 0; border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-sans); color: var(--muted); transition: all 0.15s;
}
.tier-switch-btn:hover { border-color: var(--black); color: var(--black); }
.tier-switch-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Guarantee */
.auth-guarantee {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--white); border: 1px solid var(--border);
}
.guarantee-icon { font-size: 20px; }
.auth-guarantee strong { display: block; font-size: 15px; font-family: var(--font-sans); margin-bottom: 2px; }
.auth-guarantee p { font-size: 14px; color: var(--muted); font-family: var(--font-sans); }

/* RIGHT PANEL */
.auth-forms-panel {
  padding: 48px 56px;
  max-width: 560px;
}

.auth-logo-sm { margin-bottom: 36px; }
.auth-logo-sm img { height: 36px; width: auto; }

/* TABS */
.auth-tabs {
  display: flex; border-bottom: 2px solid var(--border);
  margin-bottom: 36px; gap: 0;
}
.auth-tab {
  background: none; border: none; padding: 14px 28px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; font-family: var(--font-sans);
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.15s;
}
.auth-tab.active { color: var(--black); border-bottom-color: var(--black); }
.auth-tab:hover  { color: var(--black); }

/* FORM HEADER */
.auth-form-header { margin-bottom: 28px; }
.auth-form-header h1 { font-family: var(--font-serif); font-size: 42px; font-weight: 300; color: var(--black); margin-bottom: 8px; line-height: 1.15; }
.auth-form-header h1 em { font-style: italic; }
.auth-form-header p { font-size: 16px; color: var(--muted); font-family: var(--font-sans); font-weight: 300; }

/* ERROR */
.auth-error {
  background: #fff5f5; border: 1px solid #f5c0c0; color: #c0392b;
  padding: 14px 16px; margin-bottom: 20px; font-size: 15px;
  font-family: var(--font-sans); border-radius: 2px;
}

/* FIELDS */
.auth-form { width: 100%; }
.auth-field { margin-bottom: 20px; }
.auth-field label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
  font-family: var(--font-sans);
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--font-sans); font-size: 16px; color: var(--black);
  outline: none; transition: border-color 0.15s; border-radius: 0;
}
.auth-field input:focus { border-color: var(--black); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Password show/hide */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 60px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 13px; color: var(--muted);
  cursor: pointer; font-family: var(--font-sans); letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500; transition: color 0.15s;
}
.toggle-pw:hover { color: var(--black); }

/* Password strength */
.pw-strength {
  height: 3px; background: var(--border); margin-top: 6px; border-radius: 2px; overflow: hidden;
}
.pw-strength::after {
  content: ''; display: block; height: 100%; width: var(--pw-width, 0%);
  background: var(--pw-color, #ccc); transition: width 0.3s, background 0.3s;
  border-radius: 2px;
}

.forgot-link { font-size: 11px; color: var(--muted); transition: color 0.15s; }
.forgot-link:hover { color: var(--black); }

/* Checkbox */
.auth-checkbox { margin-top: 4px; }
.checkbox-label-auth {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text); font-family: var(--font-sans);
  font-weight: 400; cursor: pointer; line-height: 1.5;
}
.checkbox-label-auth input { margin-top: 2px; flex-shrink: 0; width: auto; }
.checkbox-label-auth a { color: var(--black); border-bottom: 1px solid var(--black); }

/* Submit button */
.auth-submit-btn {
  width: 100%; padding: 16px; margin-top: 8px;
  background: var(--black); color: var(--white);
  border: none; font-size: 14px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans);
  transition: background 0.15s;
}
.auth-submit-btn:hover { background: #333; }

.auth-switch-text {
  text-align: center; font-size: 15px; color: var(--muted);
  font-family: var(--font-sans); margin-top: 16px;
}
.auth-switch-text a { color: var(--black); border-bottom: 1px solid var(--black); }
.switch-tab { cursor: pointer; }

/* Social proof */
.auth-social-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border);
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; font-family: var(--font-sans);
  border: 2px solid var(--white); margin-right: -8px;
}
.auth-social-proof p { font-size: 15px; color: var(--text); font-family: var(--font-sans); margin-left: 16px; }
.auth-social-proof strong { color: var(--black); }

/* Responsive */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-tier-panel { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .auth-forms-panel { padding: 36px 24px; max-width: 100%; }
}
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .auth-tier-name { font-size: 36px; }
}


/* =========================================================
   SUBCATEGORY VISUAL STRIP
   ========================================================= */

.subcat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subcat-strip::-webkit-scrollbar { display: none; }

.subcat-inner {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  min-width: max-content;
}

.subcat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px 16px;
  min-width: 88px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  cursor: pointer;
}

.subcat-tile:hover {
  background: var(--off-white);
  border-bottom-color: #ccc;
}

.subcat-tile.subcat-active {
  border-bottom-color: var(--black);
  background: var(--white);
}

.subcat-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}

.subcat-tile:hover .subcat-icon,
.subcat-tile.subcat-active .subcat-icon {
  transform: translateY(-2px);
}

.subcat-tile span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: color 0.15s;
}

.subcat-tile:hover span,
.subcat-tile.subcat-active span {
  color: var(--black);
}

/* Active dot indicator */
.subcat-tile.subcat-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
}

/* Product count */
.product-count {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Responsive: allow horizontal scroll on mobile */
@media (max-width: 768px) {
  .subcat-inner {
    padding: 0 16px;
  }
  .subcat-tile {
    padding: 14px 16px 12px;
    min-width: 72px;
  }
  .subcat-icon {
    font-size: 20px;
  }
  .subcat-tile span {
    font-size: 9px;
  }
}


/* =========================================================
   BOX BUILDER PAGE
   ========================================================= */

.builder-page { background: var(--off-white); min-height: 100vh; }

/* Sticky top bar */
.builder-topbar {
  position: sticky; top: var(--nav-h); z-index: 100;
  background: var(--white); border-bottom: 2px solid var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.builder-topbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.builder-topbar-left { display: flex; align-items: center; gap: 20px; }
.builder-back { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; transition: color 0.15s; }
.builder-back:hover { color: var(--black); }
.builder-title { font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
.builder-tier-label { font-style: italic; }
.builder-topbar-right { display: flex; align-items: center; gap: 16px; }
.builder-counter { font-size: 15px; font-family: var(--font-sans); font-weight: 500; white-space: nowrap; }
.builder-counter #selectedCount { font-size: 22px; font-weight: 700; font-family: var(--font-serif); }
.builder-counter-label { font-size: 12px; color: var(--muted); margin-left: 4px; }
.builder-progress-wrap { width: 120px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.builder-progress-bar { height: 100%; background: var(--black); border-radius: 2px; transition: width 0.3s ease; }
.builder-checkout-btn {
  padding: 10px 24px; background: var(--black); color: var(--white); border: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); transition: background 0.15s; white-space: nowrap;
}
.builder-checkout-btn:disabled { background: #ccc; cursor: not-allowed; }
.builder-checkout-btn:not(:disabled):hover { background: #333; }

/* Shake animation for max items reached */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-4px); }
  40%,80% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

/* Layout */
.builder-layout {
  max-width: var(--max-w); margin: 0 auto; padding: 28px 32px;
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
}

/* Category tabs */
.builder-cat-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 28px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.builder-cat-tabs::-webkit-scrollbar { display: none; }
.builder-cat-tab {
  padding: 10px 18px; background: none; border: none; border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); color: var(--muted); white-space: nowrap;
  margin-bottom: -1px; transition: all 0.15s;
}
.builder-cat-tab:hover { color: var(--black); }
.builder-cat-tab.active { color: var(--black); border-bottom-color: var(--black); }

.builder-cat-heading {
  font-family: var(--font-serif); font-size: 22px; font-weight: 400;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.builder-cat-section { margin-bottom: 40px; }

/* Product grid */
.builder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.builder-product-card {
  background: var(--white); border: 1.5px solid var(--border); cursor: pointer;
  transition: all 0.2s; position: relative; border-radius: 2px;
}
.builder-product-card:hover { border-color: #aaa; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.builder-product-card.selected { border-color: var(--black); border-width: 2px; }

.builder-product-img {
  aspect-ratio: 3/4; position: relative; overflow: hidden;
  background: var(--off-white); display: flex; align-items: center; justify-content: center;
}
.builder-product-img img { width: 100%; height: 100%; object-fit: cover; }
.builder-no-img { font-size: 40px; }

.builder-low-stock {
  position: absolute; bottom: 8px; left: 8px;
  background: #e74c3c; color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 2px; letter-spacing: 0.06em;
}

.builder-select-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.builder-product-card.selected .builder-select-overlay { opacity: 1; }
.builder-check { font-size: 36px; color: #fff; font-weight: 700; }

.builder-product-info { padding: 10px 12px 4px; }
.builder-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.builder-add-btn {
  width: 100%; padding: 10px; background: transparent; border: none; border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); color: var(--black); transition: all 0.15s;
}
.builder-add-btn:hover { background: var(--black); color: var(--white); }
.builder-product-card.selected .builder-add-btn { background: var(--black); color: var(--white); }

/* Sidebar */
.builder-sidebar { position: sticky; top: calc(var(--nav-h) + 64px); }
.builder-sidebar-inner { background: var(--white); border: 1px solid var(--border); padding: 20px; }
.builder-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.builder-sidebar-header h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; }

.builder-slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.builder-slot {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px dashed var(--border); border-radius: 2px; min-height: 54px; transition: all 0.2s;
}
.builder-slot.filled { border-style: solid; border-color: var(--black); }
.builder-slot img { width: 36px; height: 36px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.slot-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); flex-shrink: 0; }
.builder-slot span { font-size: 13px; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-slot.filled span { color: var(--black); font-weight: 500; }
.slot-remove { background: none; border: none; font-size: 14px; color: var(--muted); cursor: pointer; padding: 4px; flex-shrink: 0; }
.slot-remove:hover { color: #e74c3c; }

.builder-sidebar-summary { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 16px; }
.builder-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-family: var(--font-sans); padding: 6px 0;
}
.savings-row { display: none; }

.builder-checkout-main {
  width: 100%; padding: 14px; background: var(--black); color: var(--white); border: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); margin-bottom: 12px; transition: background 0.15s;
}
.builder-checkout-main:disabled { background: #ccc; cursor: not-allowed; }
.builder-checkout-main:not(:disabled):hover { background: #333; }

.builder-sidebar-note { font-size: 12px; color: var(--muted); line-height: 1.5; font-family: var(--font-sans); }
.builder-upgrade-hint { margin-top: 12px; padding: 10px; background: var(--gold-bg); border-radius: 2px; font-size: 13px; }
.builder-upgrade-hint a { color: var(--gold); font-weight: 600; }

/* Modal item row */
.modal-item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.modal-item-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; }
.modal-item-placeholder { width: 44px; height: 44px; background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.modal-item-row strong { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.modal-item-row > div { flex: 1; }
.modal-item-price { font-size: 14px; color: var(--muted); flex-shrink: 0; }


/* =========================================================
   ANALYTICS DASHBOARD
   ========================================================= */

.dashboard-page { background: var(--off-white); min-height: 100vh; }
.dashboard-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 40px; }
.dashboard-header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.dashboard-title { font-family: var(--font-serif); font-size: 32px; font-weight: 300; }
.dashboard-header-actions { display: flex; align-items: center; gap: 14px; }
.dashboard-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #27ae60;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.dashboard-inner { max-width: var(--max-w); margin: 0 auto; padding: 28px 40px 60px; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi-card {
  background: var(--white); border: 1px solid var(--border); padding: 24px 20px;
  text-align: center; border-radius: 2px;
}
.kpi-icon { font-size: 28px; margin-bottom: 10px; }
.kpi-value { font-family: var(--font-serif); font-size: 36px; font-weight: 300; color: var(--black); margin-bottom: 4px; }
.kpi-label { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-sans); }
.kpi-sub { font-size: 12px; color: #aaa; margin-top: 4px; font-family: var(--font-sans); }

/* Dashboard grid rows */
.dashboard-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dashboard-row-3 { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

/* Dash cards */
.dash-card { background: var(--white); border: 1px solid var(--border); padding: 24px; border-radius: 2px; }
.dash-card-title { font-family: var(--font-serif); font-size: 20px; font-weight: 400; margin-bottom: 18px; }

/* Tier stats */
.tier-stat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tier-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tier-stat-label { font-size: 14px; font-family: var(--font-sans); width: 60px; flex-shrink: 0; }
.tier-stat-bar-wrap { flex: 1; height: 8px; background: var(--off-white); border-radius: 4px; overflow: hidden; }
.tier-stat-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.tier-stat-num { font-size: 14px; font-family: var(--font-sans); font-weight: 500; min-width: 70px; text-align: right; }
.tier-stat-num small { font-size: 12px; color: var(--muted); font-weight: 400; }
.dash-card-footer { display: flex; gap: 0; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.tier-revenue-item { flex: 1; text-align: center; font-size: 13px; font-family: var(--font-sans); }
.tier-revenue-item span { display: block; margin-top: 2px; font-weight: 600; }

/* Funnel */
.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.funnel-label { font-size: 13px; font-family: var(--font-sans); color: var(--muted); width: 130px; flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; height: 24px; background: var(--off-white); border-radius: 2px; overflow: hidden; }
.funnel-bar { height: 100%; background: var(--black); border-radius: 2px; transition: width 0.6s ease; }
.funnel-nums { display: flex; flex-direction: column; align-items: flex-end; min-width: 60px; }
.funnel-count { font-size: 14px; font-weight: 600; font-family: var(--font-sans); }
.funnel-rate { font-size: 11px; color: var(--muted); }

/* Dash table */
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; font-family: var(--font-sans); }
.dash-table th { text-align: left; padding: 8px 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); font-weight: 500; }
.dash-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.dash-table tr:hover td { background: var(--off-white); }
.dash-table a { color: var(--black); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.dash-table a:hover { border-bottom-color: var(--black); }
.dash-tier-badge { font-size: 11px; padding: 2px 10px; border-radius: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.dash-empty { font-size: 14px; color: var(--muted); font-family: var(--font-sans); padding: 12px 0; }

/* Low stock */
.low-stock-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; font-family: var(--font-sans); }
.low-stock-badge { background: #fff5f5; color: #e74c3c; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 10px; }

/* Signup rows */
.signup-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.signup-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; font-family: var(--font-sans); flex-shrink: 0; }
.signup-row > div { flex: 1; }
.signup-row strong { display: block; font-size: 14px; font-family: var(--font-sans); }
.signup-row small { font-size: 12px; color: var(--muted); }

/* Inventory grid */
.inventory-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.inventory-cat-card { background: var(--off-white); padding: 14px; border-radius: 2px; border: 1px solid var(--border); }
.inventory-cat-name { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-sans); margin-bottom: 4px; }
.inventory-cat-count { font-size: 22px; font-family: var(--font-serif); font-weight: 300; color: var(--black); }
.inventory-cat-stock { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--font-sans); }


/* =========================================================
   AI CHATBOT
   ========================================================= */

.chatbot-page { max-width: var(--max-w); margin: 0 auto; padding: 60px 40px; }
.chatbot-page-inner { }
.chatbot-header-section { text-align: center; margin-bottom: 48px; border-bottom: 1px solid var(--border); padding-bottom: 48px; }

.chatbot-embed-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }

/* Chat window */
.chatbot-window {
  background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column; height: 580px; border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.chatbot-win-header {
  padding: 14px 18px; background: var(--black); color: var(--white);
  display: flex; align-items: center; gap: 12px; border-radius: 4px 4px 0 0;
}
.chatbot-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--white); overflow: hidden; flex-shrink: 0; }
.chatbot-avatar-sm img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.chatbot-win-header strong { display: block; font-size: 14px; font-family: var(--font-sans); }
.chatbot-online { font-size: 11px; color: #a3e4b7; letter-spacing: 0.04em; font-family: var(--font-sans); }
.chatbot-float-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 16px; margin-left: auto; }

/* Messages */
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot  { justify-content: flex-start; }
.chat-bubble {
  max-width: 75%; padding: 11px 14px; border-radius: 16px; font-size: 14px;
  font-family: var(--font-sans); line-height: 1.55;
}
.chat-msg.bot  .chat-bubble { background: var(--off-white); color: var(--black); border-radius: 2px 16px 16px 16px; }
.chat-msg.user .chat-bubble { background: var(--black); color: var(--white); border-radius: 16px 2px 16px 16px; }

/* Typing indicator */
.typing-bubble { display: flex; gap: 5px; padding: 14px 16px; }
.typing-bubble span {
  width: 7px; height: 7px; border-radius: 50%; background: #aaa;
  animation: typingDot 1.2s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Quick replies */
.chatbot-quick-replies {
  padding: 8px 14px 4px; display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--border);
}
.quick-reply-btn {
  padding: 6px 14px; border: 1px solid var(--border); background: var(--white);
  font-size: 12px; font-family: var(--font-sans); color: var(--black); cursor: pointer;
  border-radius: 20px; transition: all 0.15s;
}
.quick-reply-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Input area */
.chatbot-input-area {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.chatbot-input-area input {
  flex: 1; border: 1px solid var(--border); padding: 10px 14px;
  font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color 0.15s; border-radius: 2px;
}
.chatbot-input-area input:focus { border-color: var(--black); }
.chatbot-send-btn {
  width: 40px; height: 40px; background: var(--black); color: var(--white);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 2px; flex-shrink: 0; transition: background 0.15s;
}
.chatbot-send-btn:hover { background: #333; }

/* Topics sidebar */
.chatbot-topics { position: sticky; top: 120px; }
.chatbot-topics h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; margin-bottom: 14px; }
.topic-list { display: flex; flex-direction: column; gap: 8px; }
.topic-btn {
  text-align: left; padding: 10px 14px; background: var(--white);
  border: 1px solid var(--border); font-size: 13px; font-family: var(--font-sans);
  color: var(--text); cursor: pointer; transition: all 0.15s; border-radius: 2px;
}
.topic-btn:hover { border-color: var(--black); color: var(--black); background: var(--off-white); }

/* Floating bubble */
.chatbot-bubble-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 999; }
.chatbot-bubble-btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--black); color: var(--white);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.chatbot-bubble-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }
.chatbot-bubble-badge {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
  border-radius: 50%; background: #e74c3c; color: #fff; font-size: 11px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
}
.chatbot-float-window {
  position: absolute; bottom: 68px; right: 0; width: 340px;
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14); flex-direction: column; height: 420px;
}

/* Dashboard responsive */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .inventory-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 960px) {
  .dashboard-row-2, .dashboard-row-3 { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-sidebar { position: static; }
  .chatbot-embed-wrap { grid-template-columns: 1fr; }
  .chatbot-topics { position: static; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .inventory-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .builder-grid { grid-template-columns: repeat(2,1fr); }
  .builder-topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 20px; gap: 8px; }
  .chatbot-float-window { width: 300px; }
  .dashboard-inner { padding: 20px 24px 40px; }
}
@media (max-width: 480px) {
  .builder-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   CHECKOUT PAGE
   ========================================================= */

.checkout-page { background: var(--off-white); min-height: 100vh; padding: 48px 40px 80px; }
.checkout-inner { max-width: 960px; margin: 0 auto; }

.checkout-success {
  text-align: center; padding: 80px 40px; background: var(--white);
  border: 1px solid var(--border); max-width: 560px; margin: 0 auto;
}
.success-icon { font-size: 56px; margin-bottom: 20px; }
.checkout-success h1 { font-family: var(--font-serif); font-size: 36px; font-weight: 300; margin-bottom: 14px; }
.checkout-success p { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 8px; font-family: var(--font-sans); }

.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.checkout-section-title { font-family: var(--font-serif); font-size: 26px; font-weight: 300; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* Summary */
.checkout-summary { background: var(--white); border: 1px solid var(--border); padding: 28px; }
.checkout-item-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.checkout-item-img img { width: 60px; height: 72px; object-fit: cover; border-radius: 2px; }
.checkout-item-placeholder { width: 60px; height: 72px; background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 2px; }
.checkout-item-info { flex: 1; }
.checkout-item-price { font-size: 14px; color: var(--muted); font-family: var(--font-sans); white-space: nowrap; }

.checkout-totals { border-top: 2px solid var(--black); margin-top: 16px; padding-top: 14px; }
.checkout-total-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; font-family: var(--font-sans); }
.checkout-total-row strong { font-size: 17px; }

.checkout-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.trust-item { font-size: 12px; color: var(--muted); font-family: var(--font-sans); }

/* Payment */
.checkout-payment { background: var(--white); border: 1px solid var(--border); padding: 28px; }
.checkout-customer-info { background: var(--off-white); padding: 16px; margin-bottom: 20px; border-radius: 2px; }
.customer-info-row { display: flex; justify-content: space-between; font-size: 14px; font-family: var(--font-sans); padding: 5px 0; }
.customer-info-row span { color: var(--muted); }

.checkout-inventory-check { padding: 10px 0; margin-bottom: 14px; }
.inventory-checking { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-family: var(--font-sans); }
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--border);
  border-top-color: var(--black); border-radius: 50%;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-page { padding: 28px 20px 60px; }
}
