/* ============================================================================
   PUBLIC SITE — page styles
   ============================================================================ */

/* TOP UTILITY BAR */
.util {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.util-left { display: flex; gap: 28px; }
.util a:hover { color: var(--yellow); }
.pulse {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(253,218,22,0.7);
  animation: pulse 2s infinite; margin-right: 6px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(253,218,22,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(253,218,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,218,22,0); }
}

/* HEADER */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.nav {
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}
.logo-img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 32px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a { padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--purple); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.cart-btn {
  position: relative;
  background: transparent;
  border: 2px solid var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count {
  background: var(--purple); color: var(--paper);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 6px;
}

/* HERO */
.hero {
  padding: 80px 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
}
.hero::before {
  content: ''; position: absolute;
  top: 60px; right: 24px;
  width: 280px; height: 280px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
  filter: blur(40px);
}
.hero-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-tag::before { content: ''; width: 40px; height: 2px; background: var(--purple); }
.hero h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 28px; }
.hero h1 em {
  font-style: italic; font-weight: 600;
  color: var(--purple); position: relative;
}
.hero h1 em::after {
  content: ''; position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 10px; background: var(--yellow);
  z-index: -1; opacity: 0.55;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-side {
  background: var(--ink); color: var(--paper);
  padding: 32px; border-top: 4px solid var(--yellow);
}
.hero-side h3 { font-size: 22px; margin-bottom: 16px; }
.hero-side p { font-size: 14px; color: #B5AEA3; margin-bottom: 20px; }
.hero-side .stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid #2A1F3D;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 800; color: var(--yellow); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #B5AEA3; }

/* SECTIONS */
.section { padding: 80px 24px; max-width: 1400px; margin: 0 auto; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 48px; border-bottom: 2px solid var(--ink); padding-bottom: 24px;
}
.section-head h2 { font-size: clamp(36px, 4.5vw, 56px); }
.section-head .meta { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.cat {
  background: var(--paper);
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cat:hover { background: var(--purple); color: var(--paper); }
.cat:hover .cat-num { color: var(--yellow); }
.cat:hover p { color: rgba(255,255,255,0.85); }
.cat-num {
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 600;
  color: var(--muted); margin-bottom: 12px;
  transition: color 0.2s;
}
.cat h3 { font-size: 24px; margin-bottom: 8px; }
.cat p { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.cat-arrow { font-size: 24px; margin-top: 24px; transition: transform 0.2s, color 0.2s; }
.cat:hover .cat-arrow { transform: translateX(8px); color: var(--yellow); }

/* PRODUCT GRID */
.shop-strip { background: var(--paper-2); padding: 60px 24px; }
.shop-inner { max-width: 1400px; margin: 0 auto; }
.shop-controls {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px 0 24px;
}
.filter-chip {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Archivo', sans-serif;
}
.filter-chip:hover, .filter-chip.active { background: var(--ink); color: var(--paper); }
.filter-chip.active { background: var(--purple); border-color: var(--purple); }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product {
  background: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: 4px 4px 0 var(--purple); }
.product-image {
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(135deg, var(--paper-2), #DDD4C2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  position: relative;
  border-bottom: 1px solid var(--ink);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image::after {
  content: ''; position: absolute; inset: 16px;
  border: 1px dashed var(--muted); opacity: 0.4;
  pointer-events: none;
}
.product-image:has(img)::after { display: none; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product .sku { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.product h4 { font-size: 17px; margin: 8px 0 6px; line-height: 1.25; font-family: 'Fraunces', serif; font-weight: 800; }
.product .pack { font-size: 13px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.product .price { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 800; }
.product .price span { font-size: 11px; color: var(--muted); font-weight: 400; font-family: 'Archivo', sans-serif; }
.stock-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-top: 6px;
}
.stock-in { color: var(--green); }
.stock-low { color: var(--orange); }
.stock-out { color: var(--red); }

/* TRUST BAND */
.trust {
  padding: 60px 24px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.trust-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.trust-item h4 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; }
.trust-item h4::before { content: ''; width: 24px; height: 2px; background: var(--purple); }
.trust-item p { font-size: 14px; color: var(--muted); }

/* PRODUCT DETAIL PAGE */
.pdp { padding: 80px 24px; max-width: 1400px; margin: 0 auto; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pdp-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--paper-2), #DDD4C2);
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.pdp-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-breadcrumb { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.pdp-breadcrumb a:hover { color: var(--purple); }
.pdp h1 { font-size: 44px; margin-bottom: 8px; }
.pdp-sku { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.pdp-summary { font-size: 17px; margin-bottom: 28px; line-height: 1.55; }
.pdp-price-row {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px; padding: 24px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.pdp-price { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 800; }
.pdp-price-meta { font-size: 13px; color: var(--muted); }
.pdp-actions { display: flex; gap: 12px; margin-bottom: 36px; align-items: center; }
.qty { display: flex; border: 2px solid var(--ink); }
.qty button { background: var(--paper); border: none; padding: 12px 16px; font-weight: 700; cursor: pointer; font-size: 16px; font-family: 'Archivo', sans-serif; }
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty input {
  width: 60px; text-align: center; border: none;
  border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
  font-weight: 700; font-size: 16px; font-family: 'Archivo', sans-serif; background: var(--paper);
}
.pdp h3 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; margin-top: 28px; font-family: 'Archivo', sans-serif; font-weight: 700; }
.pdp ul { list-style: none; padding: 0; }
.pdp ul li { padding: 8px 0; border-bottom: 1px dashed var(--muted); font-size: 15px; display: flex; }
.pdp ul li::before { content: '—'; margin-right: 12px; color: var(--purple); font-weight: 700; }
.pdp ul li:last-child { border-bottom: none; }

/* CART DRAWER */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 18, 38, 0.5);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 480px;
  background: var(--paper);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 24px;
  border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-head h2 { font-size: 24px; }
.cart-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 24px; line-height: 1;
}
.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--muted);
}
.cart-item h5 { font-size: 15px; font-family: 'Archivo', sans-serif; font-weight: 700; margin-bottom: 4px; }
.cart-item .sku { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cart-item .ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item .ci-qty { display: flex; align-items: center; gap: 8px; }
.cart-item .ci-qty button { width: 28px; height: 28px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; font-weight: 700; }
.cart-item .ci-qty .qty-val { min-width: 24px; text-align: center; font-weight: 700; }
.cart-item .ci-remove { background: none; border: none; cursor: pointer; color: var(--red); font-size: 12px; text-decoration: underline; }
.cart-item .ci-price { font-weight: 700; font-family: 'Fraunces', serif; font-size: 18px; }
.cart-foot { padding: 24px; border-top: 2px solid var(--ink); }
.cart-totals { margin-bottom: 20px; }
.cart-totals .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-totals .row.total { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 800; border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 8px; }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-actions .btn { width: 100%; }

/* CHECKOUT MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 18, 38, 0.6);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border-top: 6px solid var(--purple);
}
.modal h2 { font-size: 28px; margin-bottom: 8px; }
.modal-sub { color: var(--muted); margin-bottom: 28px; }

/* CONTACT */
.contact { background: var(--ink); color: var(--paper); padding: 80px 24px; position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: var(--purple); opacity: 0.2;
  border-radius: 50%; filter: blur(80px);
}
.contact-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; position: relative; }
.contact h2 { font-size: clamp(40px, 5vw, 64px); color: var(--paper); margin-bottom: 20px; }
.contact h2 em { font-style: italic; color: var(--yellow); font-weight: 600; }
.contact .lead { font-size: 18px; color: #B5AEA3; margin-bottom: 40px; line-height: 1.6; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid #2A1F3D; }
.contact-detail .icon {
  width: 44px; height: 44px; background: var(--purple); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 800; font-size: 20px;
}
.contact-detail .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #B5AEA3; margin-bottom: 4px; }
.contact-detail .value { font-size: 17px; font-weight: 600; }
.contact-detail .value a:hover { color: var(--yellow); }
.contact-form {
  background: #251935;
  padding: 40px;
  border-top: 4px solid var(--yellow);
}
.contact-form h3 { font-size: 24px; margin-bottom: 24px; color: var(--paper); }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  background: transparent;
  border: 1px solid #2A1F3D;
  border-bottom: 2px solid #2A1F3D;
  color: var(--paper);
}
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus { border-bottom-color: var(--yellow); box-shadow: none; }
.contact-form .field label { color: #B5AEA3; }

/* FOOTER */
footer.site-footer {
  background: var(--paper-2);
  padding: 60px 24px 24px;
  border-top: 1px solid var(--ink);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--ink); }
.footer-grid h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-family: 'Archivo', sans-serif; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 6px 0; font-size: 14px; }
.footer-grid li a:hover { color: var(--purple); }
.footer-tag { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; margin-bottom: 16px; max-width: 320px; line-height: 1.3; }
.footer-meta { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12px; color: var(--muted); }
.footer-logo { height: 50px; margin-bottom: 20px; }

/* MOBILE */
@media (max-width: 900px) {
  .util { font-size: 11px; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .util-left { gap: 16px; }
  .nav-links { display: none; }
  .logo-img { height: 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 56px 20px; }
  .modal { padding: 28px; }
}
