/* ============================================
   La Joya · Editorial minimal jewelry boutique
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf8;
  --ink: #111111;
  --ink-soft: #3a3a38;
  --muted: #8a8a86;
  --line: #e8e6e0;
  --line-soft: #f0eeea;
  --champagne: #c9a961;
  --champagne-soft: #e8dcc0;

  --serif: 'Cormorant Garamond', 'Didot', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }

/* ----- Announcement bar ----- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 24px;
  font-weight: 400;
}
.announce .sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--champagne);
  margin: 0 14px;
  vertical-align: middle;
}

/* ----- Header ----- */
.header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 50;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  gap: 32px;
}
.nav-primary, .nav-utility {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-utility { justify-content: flex-end; }
.nav-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 4px 0;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.wordmark {
  text-align: center;
  line-height: 1;
  cursor: pointer;
}
.wordmark-main {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
  font-style: italic;
  display: block;
}
.wordmark-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}

.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.25; }

/* ----- Hero carousel ----- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 560px;
  max-height: 780px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.55) 100%);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 48px 56px;
  max-width: 1440px;
  margin: 0 auto;
  color: #fff;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 820px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
}
.hero-sub {
  font-size: 14px;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.92;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid currentColor;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.hero-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.hero-cta .arr { transition: transform 0.3s var(--ease); }
.hero-cta:hover .arr { transform: translateX(4px); }

.hero-nav {
  position: absolute;
  bottom: 48px;
  right: 48px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 3;
  color: #fff;
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}
.hero-dot {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
  cursor: pointer;
}
.hero-dot.active { opacity: 1; }
.hero-arrow {
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow svg { width: 14px; height: 14px; }

.hero-counter {
  position: absolute;
  bottom: 58px;
  left: 48px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  z-index: 3;
  font-style: italic;
  color: #fff;
}
.hero-counter .cur { font-size: 20px; }
.hero-counter .divider { margin: 0 8px; opacity: 0.5; }

/* ----- Section shell ----- */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 48px;
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-title em { font-style: italic; }
.section-sub {
  margin-top: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ----- Category strip ----- */
.categories {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.cat-row {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.cat-item {
  padding: 48px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cat-item:last-child { border-right: none; }
.cat-item:hover { background: #fff; }
.cat-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 0.4s var(--ease);
}
.cat-item:hover .cat-icon { transform: translateY(-2px); }
.cat-icon svg { width: 100%; height: 100%; stroke-width: 1; }
.cat-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.cat-count {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Catalog toolbar ----- */
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  gap: 32px;
  flex-wrap: wrap;
}
.catalog-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 38px;
  margin: 0;
  letter-spacing: -0.01em;
}
.catalog-title em { font-style: italic; }
.catalog-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
  color: var(--ink-soft);
  border-radius: 0;
}
.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ----- Catalog page intro ----- */
.catalog-intro {
  text-align: center;
  padding: 80px 48px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.catalog-intro .section-eyebrow { margin-bottom: 18px; }
.catalog-intro h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  line-height: 1;
}
.catalog-intro h1 em { font-style: italic; }
.catalog-intro p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* ----- Product grid ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  cursor: pointer;
}
.card-media {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-info {
  padding: 0 2px;
  text-align: center;
}
.card-category {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ----- Editorial break ----- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1440px;
  margin: 48px auto;
  gap: 0;
  min-height: 520px;
}
.editorial-media {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.editorial-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.editorial-copy {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.editorial-eyebrow {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 24px;
}
.editorial-title {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.editorial-title em { font-style: italic; }
.editorial-text {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 14px;
  margin: 0 0 36px;
  max-width: 400px;
}
.editorial-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  color: var(--ink);
  align-self: flex-start;
  transition: all 0.3s var(--ease);
}
.editorial-cta:hover { background: var(--ink); color: #fff; }
.editorial-cta .arr { transition: transform 0.3s var(--ease); }
.editorial-cta:hover .arr { transform: translateX(4px); }

/* ----- Service strip ----- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  padding: 56px 32px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.service:last-child { border-right: none; }
.service-icon {
  width: 30px; height: 30px;
  margin: 0 auto 18px;
  stroke-width: 1;
  color: var(--ink);
}
.service-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 8px;
}
.service-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ----- Footer ----- */
.footer {
  background: #faf9f6;
  border-top: 1px solid var(--line);
  padding: 88px 48px 40px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .wordmark-main { font-size: 38px; }
.footer-brand .wordmark-sub { letter-spacing: 0.32em; }
.footer-brand-text {
  margin-top: 24px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 340px;
  font-size: 13px;
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 22px;
  color: var(--ink);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; color: var(--ink-soft); transition: color 0.2s; cursor: pointer; }
.footer-col a:hover { color: var(--ink); }
.footer-col p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 4px;
}
.footer-col .branch-name {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  margin: 0 0 6px;
  color: var(--ink);
}
.footer-col .branch + .branch { margin-top: 18px; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-social { display: flex; gap: 20px; align-items: center; }
.footer-social a { color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; }
.footer-social a:hover { color: var(--ink); }

/* ============================================
   Quick view modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  display: grid;
  place-items: center;
  padding: 40px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-media {
  position: relative;
  background: var(--bg-soft);
  min-height: 480px;
}
.modal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 2;
}
.modal-close svg { width: 14px; height: 14px; }
.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 18px;
}
.modal-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  margin: 0 0 12px;
}
.modal-ref {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.modal-text {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 13px;
  margin: 0 0 32px;
}
.modal-text strong { color: var(--ink); font-weight: 500; }
.modal-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: auto;
  transition: background 0.25s var(--ease);
}
.modal-cta:hover { background: var(--champagne); }
.modal-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: border-color 0.2s var(--ease);
}
.modal-secondary:hover { border-color: var(--ink); }

/* ============================================
   Tweaks panel
   ============================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px -20px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 200;
  display: none;
  font-family: var(--sans);
}
.tweaks-panel.open { display: block; }
.tweaks-title {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 400;
}
.tweaks-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.tweaks-group { margin-bottom: 16px; }
.tweaks-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.tweaks-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tweaks-option {
  padding: 10px 6px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.tweaks-option.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
