/* =====================================================================
   High Standards - Storefront stylesheet
   Dark/minimalist FOG-essentials aesthetic; mobile-first.
   ===================================================================== */

:root {
  --bg: #fafaf7;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --line: #e5e5e2;
  --line-soft: #efefec;
  --accent: #0a0a0a;
  --error: #b3261e;
  --success: #1a7f3c;
  --warning: #b27b00;
  --container: 1440px;
  --gap: 24px;
  --radius: 0px;
  --shadow: 0 24px 60px -20px rgba(10, 10, 10, .18);
  --header-h: 64px;
  --font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'PP Editorial New', 'Times Now', 'Times New Roman', Georgia, serif;
  --tracking-loose: .18em;
  --tracking-tight: -.02em;
  --tracking-normal: -.005em;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; --gap: 32px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

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

a { color: inherit; text-decoration: none; transition: opacity .2s var(--ease); }
a:hover { opacity: .65; }

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 400; letter-spacing: var(--tracking-tight); }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.display-1 { font-size: clamp(40px, 9vw, 96px); }
.display-2 { font-size: clamp(32px, 6vw, 64px); }

.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); font-weight: 500; color: var(--muted); }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); font-weight: 500; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container-narrow { padding: 0 32px; } }

.stack > * + * { margin-top: var(--gap); }
.stack-sm > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 48px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: var(--tracking-loose); font-size: 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: var(--tracking-loose);
  font-weight: 500;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--ink-soft); opacity: 1; }
.btn[disabled], .btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--line-soft); }

.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 10px; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 12px; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field label, .field-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); margin-bottom: 8px; color: var(--muted); }
.input,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"], input[type="url"], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease);
}
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.input:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%230a0a0a' stroke-width='1.5' d='M1 1l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input.error, input.error, textarea.error, select.error { border-color: var(--error); }
.field-error { color: var(--error); font-size: 12px; margin-top: 6px; }
.field-help { color: var(--muted); font-size: 12px; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } .field-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }

/* ---------- Flash messages ---------- */
.flash { padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--ink); font-size: 13px; }
.flash.success { border-color: var(--success); color: var(--success); }
.flash.error { border-color: var(--error); color: var(--error); }
.flash.info { border-color: var(--ink); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
  padding: 8px 16px;
  position: relative;
  z-index: 60;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}
.brand {
  grid-column: 2;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-weight: 600;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 24px; }
.nav-right { justify-content: flex-end; }
.nav-link { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); }

.nav-desktop { display: none; }
.nav-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.bag-count { font-size: 11px; margin-left: 4px; letter-spacing: 0; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile-toggle { display: none; }
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.drawer.open { pointer-events: auto; }
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .35);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer-right .drawer-panel { right: 0; transform: translateX(100%); left: auto; }
.drawer-left .drawer-panel { left: 0; right: auto; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-footer { padding: 16px; border-top: 1px solid var(--line); }
.drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.mobile-nav { padding: 16px 0; }
.mobile-nav a { display: block; padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: #fff;
  padding: 32px 16px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 85vh; padding: 48px; } }

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .9;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.55), rgba(10,10,10,.05) 60%); }
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { font-size: clamp(40px, 8vw, 96px); font-weight: 400; letter-spacing: -.025em; line-height: 1; margin: 0 0 16px; }
.hero p { font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 32px; max-width: 520px; opacity: .85; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: transparent; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-tight { padding: 48px 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 400; letter-spacing: -.02em; margin: 0; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card { display: block; position: relative; }
.product-card .product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--line-soft);
  overflow: hidden;
}
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.03); }
.product-card .product-image .product-image-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease); }
.product-card:hover .product-image-alt { opacity: 1; }
.product-card .product-meta { padding: 12px 0 0; }
.product-card .product-name { font-size: 13px; margin: 0 0 4px; font-weight: 500; }
.product-card .product-price { font-size: 13px; color: var(--muted); margin: 0; }
.product-card .product-price .compare { color: var(--muted-soft); text-decoration: line-through; margin-right: 6px; }
.product-card .product-tag {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--ink);
  text-transform: uppercase; letter-spacing: var(--tracking-loose);
  font-size: 10px; padding: 4px 8px;
  z-index: 2;
}
.product-card .product-tag.sold { background: var(--ink); color: #fff; }
.product-card:hover { opacity: 1; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 0 64px; }
@media (min-width: 1024px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0 96px; } }

.product-gallery { display: grid; gap: 8px; }
.product-gallery-main { aspect-ratio: 4 / 5; background: var(--line-soft); position: relative; overflow: hidden; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-thumbs button { aspect-ratio: 1; background: var(--line-soft); border: 1px solid transparent; padding: 0; }
.product-thumbs button.active { border-color: var(--ink); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .product-gallery-main { aspect-ratio: 3 / 4; }
  .product-gallery { gap: 0; }
  .product-thumbs { display: none; }
  .gallery-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; gap: 0; }
  .gallery-swipe::-webkit-scrollbar { display: none; }
  .gallery-swipe { scrollbar-width: none; }
  .gallery-swipe > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 4; }
  .gallery-dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0; }
  .gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
  .gallery-dots span.active { background: var(--ink); }
}

.product-info h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 8px; font-weight: 400; letter-spacing: -.02em; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.product-price-current { font-size: 18px; }
.product-price-compare { color: var(--muted-soft); text-decoration: line-through; font-size: 14px; }

.option-group { margin-bottom: 24px; }
.option-group .label-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.option-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.option-swatch {
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.option-swatch.active { border-color: var(--ink); }
.option-swatch.disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.option-color { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; position: relative; }
.option-color.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

.product-cta { display: grid; gap: 12px; margin-top: 24px; }
.product-meta-list { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.product-meta-list details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.product-meta-list summary { display: flex; justify-content: space-between; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-loose); list-style: none; }
.product-meta-list summary::-webkit-details-marker { display: none; }
.product-meta-list details[open] summary::after { content: '−'; }
.product-meta-list summary::after { content: '+'; }
.product-meta-list .details-body { padding-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Sticky mobile add to bag ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
}
@media (max-width: 1023px) { .mobile-cta-bar { display: block; } body.has-mobile-cta { padding-bottom: 88px; } }

/* ---------- Cart ---------- */
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cart-line .cart-img { width: 88px; height: 110px; background: var(--line-soft); object-fit: cover; }
.cart-line .cart-name { font-size: 14px; margin: 0 0 4px; }
.cart-line .cart-variant { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.cart-line .cart-price { font-size: 14px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-input button { width: 36px; height: 36px; }
.qty-input input { width: 44px; min-height: 36px; text-align: center; border: 0; padding: 0; background: transparent; }

.cart-totals { display: grid; gap: 6px; font-size: 14px; padding: 16px 0; }
.cart-totals .row { display: flex; justify-content: space-between; }
.cart-totals .row.total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 32px; margin-top: 96px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-newsletter h3 { font-size: 20px; margin: 0 0 8px; font-weight: 400; }
.footer-newsletter p { color: rgba(255,255,255,.65); margin: 0 0 16px; font-size: 13px; }
.footer-newsletter form { display: flex; gap: 0; max-width: 360px; }
.footer-newsletter input { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; min-height: 44px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter button { min-height: 44px; background: #fff; color: var(--ink); border-color: #fff; padding: 0 20px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); margin: 0 0 16px; color: rgba(255,255,255,.6); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 32px 0 64px; }
@media (min-width: 1024px) { .account-layout { grid-template-columns: 220px 1fr; gap: 48px; padding: 64px 0 96px; } }
.account-nav { display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 1024px) { .account-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: calc(var(--header-h) + 16px); } }
.account-nav a { padding: 10px 12px; font-size: 13px; }
.account-nav a.active { background: var(--ink); color: #fff; }

.card { background: #fff; border: 1px solid var(--line); padding: 24px; }
.card + .card { margin-top: 16px; }

/* ---------- Filters ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 0 64px; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 220px 1fr; gap: 48px; padding: 32px 0 96px; } }
.filters .filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filters .filter-group:first-child { border-top: 0; padding-top: 0; }
.filters .filter-group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); margin: 0 0 12px; }
.filters .swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .swatches a { display: inline-flex; padding: 6px 10px; border: 1px solid var(--line); font-size: 12px; }
.filters .swatches a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-trigger { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .filter-trigger { display: none; } }
.filters-desktop { display: none; }
@media (min-width: 1024px) { .filters-desktop { display: block; } }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 0 64px; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1fr 380px; gap: 48px; padding: 48px 0 96px; } }
.checkout-section { padding: 24px 0; border-top: 1px solid var(--line); }
.checkout-section:first-child { padding-top: 0; border-top: 0; }
.checkout-section h2 { font-size: 16px; text-transform: uppercase; letter-spacing: var(--tracking-loose); font-weight: 500; margin: 0 0 16px; }
.checkout-summary { background: #fff; border: 1px solid var(--line); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.checkout-summary h3 { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-loose); margin: 0 0 16px; }

.shipping-rates { display: grid; gap: 8px; }
.shipping-rate { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; }
.shipping-rate input { margin: 0; }
.shipping-rate.active { border-color: var(--ink); }
.shipping-rate .rate-label { flex: 1; font-size: 14px; }
.shipping-rate .rate-amount { font-size: 14px; font-weight: 500; }

#square-card-container { padding: 8px 0; }
.payment-error { color: var(--error); font-size: 13px; margin-top: 12px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); font-size: 13px;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 64px 16px; }
.empty-state h2 { font-weight: 400; }
.empty-state p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Page content ---------- */
.page-body { font-size: 16px; line-height: 1.7; }
.page-body h2 { font-size: 22px; margin: 32px 0 12px; font-weight: 500; }
.page-body p { margin: 0 0 16px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.page-body th, .page-body td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }

/* ---------- Badge ---------- */
.badge { display: inline-block; padding: 3px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-loose); background: var(--line-soft); color: var(--muted); }
.badge-success { background: #dff5e2; color: var(--success); }
.badge-warning { background: #fff1d5; color: var(--warning); }
.badge-error { background: #fde2e0; color: var(--error); }
.badge-ink { background: var(--ink); color: #fff; }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

/* ---------- Loading dots ---------- */
.loading::after { content: '...'; animation: dots 1.4s infinite; display: inline-block; min-width: 16px; }
@keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

/* ---------- Newsletter inline form (also used in account) ---------- */
.inline-form { display: flex; gap: 0; }
.inline-form input { flex: 1; }
.inline-form button { white-space: nowrap; }

/* ---------- Newsletter modal ---------- */
.newsletter-modal {
  position: fixed; inset: 0; z-index: 80;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.newsletter-modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s var(--ease);
}
.newsletter-modal__overlay {
  position: absolute; inset: 0; background: rgba(10,10,10,.55); backdrop-filter: blur(2px);
}
.newsletter-modal__panel {
  position: absolute; inset: auto 16px 16px; max-width: 460px;
  margin: 0 auto; background: var(--bg); padding: 36px 28px 28px;
  border: 1px solid var(--ink); transform: translateY(24px);
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow);
}
.newsletter-modal.open .newsletter-modal__panel { transform: translateY(0); }
@media (min-width: 768px) {
  .newsletter-modal__panel {
    inset: auto auto auto auto; left: 50%; top: 50%;
    transform: translate(-50%, -46%);
    width: calc(100% - 32px);
    padding: 48px 40px 40px;
  }
  .newsletter-modal.open .newsletter-modal__panel { transform: translate(-50%, -50%); }
}
.newsletter-modal__close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
}
.newsletter-modal__close:hover { background: var(--line-soft); }
.newsletter-modal__inner { text-align: center; }
.newsletter-modal__eyebrow {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  margin: 0 0 12px; color: var(--ink); font-weight: 600;
}
.newsletter-modal__heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 6vw, 40px); letter-spacing: -.02em;
  line-height: 1.1; margin: 0 0 12px;
}
.newsletter-modal__body {
  font-size: 14px; color: var(--muted);
  margin: 0 0 24px; line-height: 1.55;
}
.newsletter-modal__form { display: grid; gap: 10px; }
.newsletter-modal__form input {
  width: 100%; padding: 14px 16px; font-size: 15px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; min-height: 48px;
}
.newsletter-modal__form input:focus { border-color: var(--ink); outline: none; }
.newsletter-modal__form .btn { min-height: 48px; }
.newsletter-modal__decline {
  background: none; border: 0; padding: 14px 0 0; cursor: pointer;
  color: var(--muted); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: underline;
}
.newsletter-modal__decline:hover { color: var(--ink); }

/* Google Places Autocomplete dropdown styling — match brand */
.pac-container {
  border: 1px solid var(--ink); border-top: 0;
  font-family: var(--font-sans); box-shadow: var(--shadow);
  background: #fff; border-radius: 0;
}
.pac-item {
  padding: 10px 14px; cursor: pointer;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; color: var(--ink);
}
.pac-item:hover, .pac-item-selected { background: var(--line-soft); }
.pac-item-query { font-size: 14px; font-weight: 500; }
.pac-icon { display: none; }
.pac-matched { font-weight: 600; }

/* ---------- Custom Place Autocomplete dropdown ---------- */
.pac-wrap { position: relative; }
.pac-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.pac-menu-item {
  padding: 12px 16px;
  cursor: pointer;
  border-top: 1px solid var(--line-soft);
  display: block;
}
.pac-menu-item:first-child { border-top: 0; }
.pac-menu-item:hover, .pac-menu-item.active {
  background: var(--line-soft);
}
.pac-primary {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 500;
}
.pac-secondary {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
