:root {
  --green: #1E3A1E;
  --gold: #C4922A;        /* large display text + buttons */
  --gold-text: #A67B20;   /* small body text on light bg (WCAG AA) */
  --bg: #FAFAF7;
  --cream: #F0EBE1;
  --border: #E5E0D8;
  --text: #1C1C1A;
  --red: #C4401C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Playfair Display', serif; }

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

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

.section { max-width: 1100px; margin: 0 auto; padding: 70px 22px; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); opacity: 0.94; }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: #fff; padding: 13px 28px; }
.btn-cart { background: var(--green); color: #fff; padding: 11px; }
.btn-green { background: var(--green); color: #fff; padding: 12px 22px; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); padding: 12px 26px; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }
.btn-disabled {
  background: #cfcabf; color: #6b6b66; cursor: not-allowed; padding: 11px;
  width: 100%; font-weight: 600; border-radius: 8px; border: none; font-size: 14px;
}
.btn-disabled:hover { transform: none; opacity: 1; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center;
  padding: 0 14px;
  background: rgba(250,250,247,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-btn {
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hamburger, .hamburger::before, .hamburger::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--text);
  position: absolute; transition: 0.2s;
}
.hamburger::before { transform: translateY(-7px); }
.hamburger::after { transform: translateY(7px); }

.nav-logo { text-align: center; cursor: pointer; user-select: none; line-height: 1; display: flex; align-items: center; justify-content: center; }
.logo-text { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; letter-spacing: 2px; }
.logo-sub { display: block; font-size: 9px; letter-spacing: 4px; color: var(--gold); margin-top: 2px; font-weight: 600; }

.cart-btn { justify-self: end; }
.cart-icon { font-size: 22px; }
.cart-badge {
  position: absolute; top: 4px; right: 2px;
  background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 49;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden; max-height: 0;
  transition: max-height 0.25s ease;
}
.mobile-menu.open {
  max-height: 360px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.mobile-menu a.active { color: var(--gold-text); background: var(--cream); }
.mobile-menu a {
  padding: 16px 24px; font-weight: 500; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--cream); }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #fff; padding: 60px 0 80px; }
.hero-inner { max-width: 1000px; margin: 0 auto; padding: 0 22px; text-align: center; }
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--gold); border: 1px solid rgba(196,146,42,0.5);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero-title { font-size: 54px; line-height: 1.05; font-weight: 700; }
.italic-gold { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub { max-width: 520px; margin: 20px auto 0; opacity: 0.82; font-size: 16px; }

.hero-product {
  display: flex; gap: 40px; align-items: center; justify-content: center;
  margin-top: 44px; flex-wrap: wrap; text-align: left;
}
.hero-img-wrap {
  width: 320px; height: 320px; border-radius: 16px; overflow: hidden;
  background: var(--cream); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { max-width: 320px; }
.hero-name { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; }
.hero-price { font-size: 20px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.hero-color-label { font-size: 13px; opacity: 0.8; margin: 6px 0 4px; min-height: 18px; }

/* Hero buttons: Add to Cart + Buy Now share a row (equal width), Shop All Hats
   full width below. All three same height (14px vertical padding). */
.hero-btn-group { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 16px auto 0; }
.hero-btn-row { display: flex; gap: 10px; }
.hero-btn-row button {
  flex: 1; padding: 14px 0; font-size: 13px; font-weight: 700;
  border-radius: 8px; cursor: pointer; line-height: 1.2;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.hero-btn-row button:hover { transform: translateY(-1px); opacity: 0.94; }
.btn-hero-add { background: #ffffff; color: #1E3A1E; border: none; }
.btn-hero-buy { background: #C4922A; color: #ffffff; border: none; white-space: nowrap; }
.btn-hero-shop {
  display: block; width: 100%; padding: 14px 0; font-size: 13px; font-weight: 700;
  background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px; cursor: pointer; text-align: center;
  transition: background 0.15s ease;
}
.btn-hero-shop:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 500px) {
  .hero-btn-row { flex-direction: column; }
  .hero-btn-row button { width: 100%; }
}

/* ---------- Swatches ---------- */
.swatches { display: flex; gap: 10px; margin-top: 14px; }
.swatch {
  width: 20px; height: 20px; border-radius: 50%;
  border: none; outline: 2px solid transparent; outline-offset: 2px;
  cursor: pointer; transition: outline 0.15s; padding: 0;
}
.swatch.active { outline: 2px solid var(--green); }
.hero .swatch.active { outline: 2px solid var(--gold); }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: #fff; overflow: hidden; white-space: nowrap; padding: 11px 0; }
.ticker-inner { display: inline-block; animation: ticker 22s linear infinite; }
.ticker-inner span { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--gold-text); }
.eyebrow-light { color: var(--gold); }
.section-title { font-size: 38px; font-weight: 700; margin-top: 8px; }
.section-title.light { color: #fff; }
.section-count { font-size: 14px; color: #888; margin-top: 6px; }

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

/* ---------- Hat Card ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-img-wrap {
  background: var(--cream); aspect-ratio: 1/1; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; top: 12px; left: 12px;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 14px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-swatches { display: flex; gap: 8px; margin-bottom: 8px; }
.card-color-label { font-size: 12px; color: #777; min-height: 16px; margin-bottom: 6px; }
.card-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; }
.card-price { color: var(--gold-text); font-weight: 600; font-size: 16px; margin-top: 2px; }
.card-desc { font-size: 13px; color: #666; margin-top: 8px; flex: 1; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.card-actions .btn { font-size: 13px; padding: 11px 8px; }
.btn-buy-sm { background: var(--gold); color: #fff; }

/* ---------- Story ---------- */
.story { background: var(--green); color: #fff; }
.story-inner { text-align: center; }
.story-text { max-width: 640px; margin: 22px auto 0; opacity: 0.85; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 12px; letter-spacing: 1px; opacity: 0.8; margin-top: 4px; text-transform: uppercase; }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.insta-grid div {
  aspect-ratio: 1/1; background: var(--cream); border-radius: 10px; overflow: hidden;
}
.insta-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Join ---------- */
.join { background: var(--cream); }
.join-inner { text-align: center; max-width: 560px; }
.join-sub { color: #666; margin-top: 10px; }
.join-form { display: flex; gap: 10px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.email-input {
  font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  min-width: 240px; flex: 1; max-width: 320px; background: #fff;
}
.email-input:focus { outline: none; border-color: var(--gold); }
.join-success { color: var(--green); font-weight: 600; font-size: 18px; margin-top: 20px; }

/* ---------- Footer ---------- */
footer { background: var(--green); color: #fff; text-align: center; padding: 50px 22px 30px; }
.foot-logo-text { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; }
.footer-tag { font-size: 11px; letter-spacing: 3px; color: var(--gold); margin-top: 8px; }
.footer-insta { display: inline-block; margin-top: 18px; color: #fff; opacity: 0.85; font-weight: 500; }
.footer-insta:hover { opacity: 1; }
.footer-copy { font-size: 12px; opacity: 0.6; margin-top: 18px; }
.footer-hint { font-size: 10px; opacity: 0.25; margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 68px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--green); color: #fff; padding: 12px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 500; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Cart Drawer ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.cart-overlay.open { visibility: visible; }
.cart-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.25s;
}
.cart-overlay.open .cart-backdrop { opacity: 1; }
.cart-drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: 340px; max-width: 90vw;
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.28s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 20px; }
.close-btn {
  background: none; border: none; font-size: 28px; line-height: 1;
  cursor: pointer; color: var(--text); width: 36px; height: 36px;
}
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: #999; padding: 50px 0; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-img {
  width: 60px; height: 60px; border-radius: 8px; background: var(--cream);
  object-fit: cover; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-color { font-size: 12px; color: #888; }
.cart-item-price { font-size: 13px; color: var(--gold); font-weight: 600; margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--border); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1;
}
.qty-num { font-size: 14px; min-width: 18px; text-align: center; }
.cart-item-remove { font-size: 12px; color: var(--red); cursor: pointer; margin-left: auto; }
.cart-footer { border-top: 1px solid var(--border); padding: 18px 20px; }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.trust-badges { text-align: center; font-size: 11px; color: #999; margin-top: 12px; }

/* ---------- Exit Popup ---------- */
.exit-overlay { position: fixed; inset: 0; z-index: 150; display: none; }
.exit-overlay.open { display: flex; align-items: center; justify-content: center; }
.exit-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.exit-modal {
  position: relative; background: var(--bg); border-radius: 16px;
  padding: 38px 32px 28px; max-width: 420px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.exit-close { position: absolute; top: 10px; right: 12px; }
.exit-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold); }
.exit-title { font-size: 32px; font-weight: 700; margin-top: 8px; }
.exit-sub { color: #555; margin-top: 10px; font-size: 15px; }
.exit-form { display: flex; gap: 10px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.exit-skip { display: inline-block; margin-top: 16px; font-size: 12px; color: #999; cursor: pointer; text-decoration: underline; }

/* ---------- Admin (full page) ---------- */
.admin-overlay {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  overflow-y: auto; display: none;
}
.admin-overlay.open { display: block; }
.admin-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
}
.admin-header h2 { font-size: 22px; }
.admin-close { color: #fff; }
.admin-body { max-width: 800px; margin: 0 auto; padding: 24px 18px 80px; }
.admin-hats { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }

.admin-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.admin-card-summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
}
.admin-thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--cream); object-fit: cover; flex-shrink: 0; }
.admin-card-name { font-weight: 600; flex: 1; }
.admin-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 10px; }
.badge-drop { background: var(--gold); color: #fff; }
.badge-hidden { background: #999; color: #fff; }
.badge-connected { background: var(--green); color: #fff; }
.badge-off { background: var(--cream); color: #999; }
.chevron { transition: transform 0.2s; color: #999; font-size: 14px; }
.admin-card.expanded .chevron { transform: rotate(90deg); }

.admin-detail { display: none; padding: 4px 16px 18px; border-top: 1px solid var(--border); }
.admin-card.expanded .admin-detail { display: block; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 14px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.field textarea { resize: vertical; min-height: 70px; }
.field-help { font-size: 11px; color: #999; margin-top: 4px; }

.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-actions { display: flex; flex-direction: column; gap: 6px; }
.photo-label {
  display: inline-block; background: var(--green); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.photo-remove { font-size: 12px; color: var(--red); cursor: pointer; }
.hidden-file { display: none; }

.variant-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.variant-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.variant-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; }
.variant-vid { color: #888; font-size: 12px; }
.variant-ok { color: var(--green); }
.variant-warn { color: var(--red); }

.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.admin-actions button {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; cursor: pointer;
}
.admin-actions button:hover { background: var(--cream); }
.act-drop.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.act-delete { color: var(--red); }

.admin-section { margin-top: 36px; }
.admin-section h3 { font-size: 18px; margin-bottom: 12px; }
.admin-contacts { display: flex; flex-direction: column; gap: 6px; }
.contact-row {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.contact-date { color: #999; }
.contacts-empty { color: #999; font-size: 14px; }
.export-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Photo gallery (admin) ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px;
}
.gallery-item {
  position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background: var(--cream); border: 1px solid var(--border); cursor: grab;
}
.gallery-item.dragging { opacity: 0.4; }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.gallery-hidden .gallery-thumb { opacity: 0.5; }
.gallery-item.gallery-hidden::after {
  content: 'HIDDEN'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,28,26,0.35); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.gallery-primary-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--gold); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 6px; border-radius: 8px;
}
.gallery-handle {
  position: absolute; bottom: 4px; left: 6px; z-index: 2;
  color: #fff; font-size: 16px; line-height: 1; cursor: grab;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.gallery-btn {
  position: absolute; z-index: 3; width: 24px; height: 24px;
  border: none; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.gallery-eye { top: 6px; right: 34px; }
.gallery-del { top: 6px; right: 6px; color: var(--red); font-weight: 700; }

/* ---------- Login modal ---------- */
.login-overlay { position: fixed; inset: 0; z-index: 320; display: none; }
.login-overlay.open { display: flex; align-items: center; justify-content: center; }
.login-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.login-modal {
  position: relative; width: 90%; max-width: 380px; background: var(--bg);
  border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-header {
  background: var(--green); color: #fff; font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; padding: 18px 22px;
}
.login-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.login-input {
  font-family: 'Inter', sans-serif; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.login-input:focus { outline: none; border-color: var(--gold); }
.login-cancel { text-align: center; font-size: 13px; color: #999; cursor: pointer; text-decoration: underline; }
.login-warning {
  background: #FBEFD6; color: #8A5A00; border: 1px solid #E8C77A;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600; text-align: center;
}

/* ---------- Admin header / sections ---------- */
.admin-header-title h2 { font-size: 22px; line-height: 1.1; }
.admin-user { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.admin-header-actions { display: flex; align-items: center; gap: 12px; }
.btn-logout {
  background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
}
.btn-logout:hover { background: rgba(255,255,255,0.25); }

.admin-sec { margin-top: 26px; }
.admin-sec:first-child { margin-top: 4px; }
.admin-lbl {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}

/* ---------- Price (live from Shopify) ---------- */
.price-live { font-size: 16px; }
.price-live strong { font-size: 18px; }
.price-live-tag {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  background: var(--green); color: #fff; padding: 3px 8px; border-radius: 10px; vertical-align: middle;
}

/* ---------- Product detail page ---------- */
.product-detail { background: var(--bg); min-height: 70vh; }
.pd-inner { max-width: 1080px; margin: 0 auto; padding: 28px 22px 70px; }
.pd-back {
  background: none; border: none; cursor: pointer; color: var(--green);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  padding: 8px 0; margin-bottom: 18px;
}
.pd-back:hover { color: var(--gold-text); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

.pd-gallery { position: sticky; top: 78px; }
.pd-main {
  background: var(--cream); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--cream); border: 2px solid transparent; padding: 0;
}
.pd-thumb.active { border-color: var(--green); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { padding-top: 4px; }
.pd-tag {
  display: inline-block; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 14px; margin-bottom: 14px;
}
.pd-name { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; line-height: 1.1; }
.pd-price { font-size: 24px; color: var(--gold-text); font-weight: 600; margin-top: 10px; }
.pd-live {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; vertical-align: middle;
  background: var(--green); color: #fff; padding: 3px 8px; border-radius: 10px; margin-left: 8px;
}
.pd-desc { color: #555; font-size: 16px; line-height: 1.6; margin-top: 16px; }
.pd-swatch-label { font-size: 14px; color: #444; margin-top: 22px; }
.pd-swatch-label span { font-weight: 600; }
.pd-swatches { display: flex; gap: 12px; margin-top: 10px; }
.pd-swatches .swatch { width: 26px; height: 26px; }
.pd-actions { display: flex; gap: 12px; margin-top: 26px; max-width: 420px; }
.pd-btn { flex: 1; padding: 15px 0; font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.pd-connect { width: 100%; max-width: 420px; margin-top: 26px; }
.pd-trust { font-size: 12px; color: #999; margin-top: 16px; }

@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-gallery { position: static; }
  .pd-name { font-size: 30px; }
  .pd-actions { max-width: none; }
}

/* ---------- Grid empty state ---------- */
.grid-empty {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: #6b6b66;
}
.grid-empty .grid-empty-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.grid-empty a.grid-empty-cta {
  display: inline-block; margin-top: 10px; color: var(--green); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.grid-empty .arrow { font-size: 22px; display: block; margin-top: 6px; color: var(--gold-text); }

/* ---------- Admin connection banner ---------- */
.admin-banner {
  display: none; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
}
.admin-banner.show { display: block; }
.admin-banner.offline { background: #FBEFD6; color: #8A5A00; border: 1px solid #E8C77A; }
.admin-banner.online { background: #E5F0E5; color: #1E3A1E; border: 1px solid #B7D3B7; }

/* ---------- Policy section ---------- */
.policy { background: var(--green); color: #fff; padding: 34px 22px; }
.policy-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.policy-head { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 14px; }
.policy p { font-size: 13px; line-height: 1.7; opacity: 0.9; margin: 6px 0; }
.policy a { color: var(--gold); text-decoration: underline; }

/* ---------- Footer links ---------- */
.footer-links { margin-top: 16px; font-size: 13px; opacity: 0.85; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { opacity: 0.8; }
.footer-links span { margin: 0 8px; opacity: 0.5; }

/* ---------- Focus-visible (keyboard users) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.swatch:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hero-title { font-size: 40px; }
  .section-title { font-size: 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-name { font-size: 17px; }
  .card-actions .btn { font-size: 12px; padding: 10px 4px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cart-drawer { width: 290px; }
  .hero-img-wrap { width: 260px; height: 260px; }
  .section { padding: 50px 18px; }
}
