/* Yasvia Joyeria — Premium Catalog */
:root {
  --cream: #f7f3eb;
  --cream-dark: #ebe4d6;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6b6560;
  --gold: #c9a962;
  --gold-dark: #a88b45;
  --gold-light: #e8d9a8;
  --white: #ffffff;
  --border: rgba(26, 26, 26, 0.08);
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --radius: 2px;
  --max: 1200px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand span {
  color: var(--gold);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.45rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

/* Main */
main { flex: 1; }

/* Hero */
.hero {
  position: relative;
  padding: 6.5rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--cream);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.42;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247,243,235,0.55), rgba(247,243,235,0.92) 70%, var(--cream)),
    radial-gradient(ellipse at 50% 0%, rgba(201,169,98,0.18), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }

.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero p {
  max-width: 36rem;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}

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

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* Featured grid on home */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.04);
}

.feature-card .meta {
  padding: 1.1rem 1.15rem 1.35rem;
}

.feature-card .sku {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Category page */
.page-hero {
  padding: 3.25rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-hero .count {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .sep { opacity: 0.4; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.35rem;
  padding: 3rem 0 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card .img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0f0f0f;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover img { transform: scale(1.035); }

.product-card .meta {
  padding: 1rem 1.05rem 1.2rem;
}

.product-card .sku {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

.product-card h2 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.product-card .cat {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0 4rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--ink-soft);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination .nav-label {
  padding: 0 0.85rem;
  min-width: auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* Product detail */
.product-detail {
  padding: 3rem 0 4.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-image {
  background: #0f0f0f;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info .sku {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.detail-info .category-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.75rem;
}

.detail-info .desc {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 28rem;
  font-size: 0.98rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.detail-meta {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.detail-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-meta dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.related {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 4rem;
}

.related h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
}

/* Contact */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

.contact-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-wrap > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--gold);
}

.form-row textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gold-light);
}

.form-success.visible { display: block; }
.contact-form.hidden { display: none; }

.form-success h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* Home CTA band */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
}

.cta-band p {
  color: rgba(247, 243, 235, 0.7);
  margin-bottom: 1.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.cta-band .btn:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links a:hover { color: var(--gold-dark); }

.footer-copy {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Highlights on home */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 0 1rem;
}

.highlight {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.highlight .icon {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.2em;
}

.highlight h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.highlight p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .feature-grid,
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .highlights { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .feature-grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1.1rem;
  }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .hero { padding: 3.5rem 0 3rem; }
}

@media (max-width: 420px) {
  .feature-grid,
  .product-grid { grid-template-columns: 1fr; }
}


/* Brand category cards + mood */
.feature-card.category-card .img-wrap {
  aspect-ratio: 16 / 9;
  background: var(--sand);
}
.feature-card.category-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mood-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 16rem;
  display: flex;
  align-items: center;
}
.mood-band .mood-media {
  position: absolute;
  inset: 0;
}
.mood-band .mood-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.mood-band .mood-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,243,235,0.92), rgba(247,243,235,0.55) 55%, rgba(247,243,235,0.85));
}
.mood-band .container {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.mood-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.mood-band p { color: var(--muted); }
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band .cta-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-band .cta-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.cta-band .container { position: relative; z-index: 1; }
.page-hero.has-art {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.page-hero.has-art .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero.has-art .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.page-hero.has-art .page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247,243,235,0.75), var(--cream));
}
.page-hero.has-art .container { position: relative; z-index: 1; }
