/* =========================================================
   ZIA JEWELS — Design tokens
   Palette: warm ivory, deep charcoal, aged champagne gold
   Type: Cormorant Garamond (display/serif) + Jost (sans/body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ivory: #F6F3EC;
  --paper: #FBF9F5;
  --charcoal: #211D1A;
  --charcoal-soft: #4A433C;
  --gold: #A8834F;
  --gold-deep: #8A6A3B;
  --line: #DDD5C7;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gap: 24px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--charcoal); color: var(--white); }

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

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

.btn-small { padding: 10px 22px; font-size: 12px; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.logo span { color: var(--gold-deep); }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--charcoal); }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-icons { display: flex; align-items: center; gap: 22px; }
.header-icons a { font-size: 13px; position: relative; }
.cart-count {
  position: absolute; top: -9px; right: -14px;
  background: var(--gold-deep); color: #fff;
  font-size: 10px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(33,29,26,0.05), rgba(33,29,26,0.55)),
              url('../images/hero-placeholder.jpg') center/cover no-repeat;
  background-color: var(--charcoal);
}
.hero-content {
  color: var(--white);
  padding: 0 32px 72px;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 13px; letter-spacing: 0.18em; color: var(--gold);
  margin-bottom: 18px; display: block;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero p { font-size: 17px; color: #EDE8DE; margin-bottom: 30px; max-width: 480px; }

/* -------------------- Multi-slide hero -------------------- */
.hero-slider { padding: 0; overflow: hidden; background: var(--charcoal); }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 1s ease;
  display: flex; align-items: flex-end;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62);
}
.hero-slide .hero-content { position: relative; z-index: 2; padding: 0 32px 72px; max-width: 640px; color: var(--white); }
.hero-dots {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7);
  background: transparent; padding: 0; cursor: pointer;
}
.hero-dot.is-active { background: var(--gold); border-color: var(--gold); }

/* -------------------- Section headings -------------------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { color: var(--charcoal-soft); max-width: 440px; font-size: 15px; }
.section-alt { background: var(--ivory); }

/* -------------------- Collections grid -------------------- */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.collection-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--charcoal);
}
.collection-card:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.collection-card:hover img { transform: scale(1.06); }
.collection-label {
  position: absolute; left: 24px; bottom: 22px; color: var(--white);
}
.collection-label span { display: block; font-family: var(--font-display); font-size: 24px; }
.collection-label small { font-size: 11px; letter-spacing: 0.14em; color: var(--gold); }

/* -------------------- Product grid -------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.product-card { position: relative; }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory);
  margin-bottom: 16px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-thumb img { transform: scale(1.045); }
.product-quick {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(33,29,26,0.88);
  color: #fff; text-align: center;
  padding: 12px; font-size: 12px; letter-spacing: 0.08em;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.product-card:hover .product-quick { transform: translateY(0); }
.product-name { font-family: var(--font-display); font-size: 19px; margin-bottom: 4px; }
.product-meta { font-size: 12px; color: var(--charcoal-soft); margin-bottom: 6px; }
.product-price { font-size: 15px; color: var(--gold-deep); }
.price-strike { text-decoration: line-through; color: #A79E90; margin-right: 8px; font-size: 13px; }

/* -------------------- Brand story -------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.story img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-copy .hero-eyebrow { color: var(--gold-deep); }
.story-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 20px; }
.story-copy p { color: var(--charcoal-soft); margin-bottom: 28px; max-width: 460px; }

/* -------------------- Newsletter -------------------- */
.newsletter {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 88px 32px;
}
.newsletter h2 { color: var(--white); margin-bottom: 12px; font-size: clamp(26px,3vw,38px); }
.newsletter p { color: #D9D2C4; margin-bottom: 30px; }
.newsletter-form { display: flex; justify-content: center; gap: 12px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 14px 16px; border: 1px solid #4A433C; background: transparent;
  color: #fff; font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: #A79E90; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 56px;
}
.footer-col h4 { font-size: 13px; letter-spacing: 0.1em; margin-bottom: 18px; text-transform: uppercase; color: var(--charcoal-soft); }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--charcoal-soft); }
.footer-col a:hover { color: var(--gold-deep); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--charcoal-soft); font-size: 14px; max-width: 260px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex; justify-content: space-between; font-size: 12px; color: var(--charcoal-soft);
}

/* -------------------- Breadcrumb / Page header -------------------- */
.page-header { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: var(--ivory); }
.page-header h1 { font-size: clamp(30px, 3.6vw, 46px); }
.breadcrumb { font-size: 12px; color: var(--charcoal-soft); margin-bottom: 12px; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--gold-deep); }

/* -------------------- Shop layout -------------------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.filter-block { margin-bottom: 32px; }
.filter-block h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; color: var(--charcoal-soft); }
.filter-block label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; color: var(--charcoal-soft); }
.filter-block input[type="checkbox"] { accent-color: var(--gold-deep); }
.price-range { display: flex; gap: 10px; }
.price-range input { width: 100%; padding: 8px; border: 1px solid var(--line); background: var(--paper); }

/* -------------------- Product detail -------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.pdp-gallery-main { position: relative; aspect-ratio: 1/1; background: var(--ivory); overflow: hidden; margin-bottom: 12px; }
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumbs img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.pdp-info .breadcrumb { margin-bottom: 18px; }
.pdp-info h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.pdp-sku { font-size: 12px; color: var(--charcoal-soft); letter-spacing: 0.06em; margin-bottom: 18px; }
.pdp-price { font-size: 24px; color: var(--gold-deep); font-family: var(--font-display); margin-bottom: 22px; }
.pdp-desc { color: var(--charcoal-soft); margin-bottom: 26px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--charcoal-soft); width: 40%; }
.qty-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { border: none; background: none; padding: 10px 16px; font-size: 16px; }
.qty-control input { width: 44px; border: none; text-align: center; background: transparent; font-family: var(--font-body); }
.pdp-actions { display: flex; gap: 14px; }

/* -------------------- Cart / Checkout -------------------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal-soft); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 20px 10px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-product { display: flex; gap: 16px; align-items: center; }
.cart-product img { width: 76px; height: 76px; object-fit: cover; }
.cart-remove { font-size: 12px; color: #A0453B; text-decoration: underline; }
.cart-summary { max-width: 380px; margin-left: auto; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--charcoal-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 17px; color: var(--charcoal); font-family: var(--font-display); }

.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; letter-spacing: 0.05em; color: var(--charcoal-soft); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: 14px; color: var(--charcoal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-summary { background: var(--ivory); padding: 28px; }
.order-summary h3 { margin-bottom: 20px; }
.order-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--charcoal-soft); }
.payment-option { border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 14px; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--charcoal-soft); }
.empty-state h2 { margin-bottom: 14px; }

/* -------------------- Alerts -------------------- */
.alert { padding: 14px 18px; margin-bottom: 20px; font-size: 14px; border: 1px solid; }
.alert-success { background: #F0F4EC; border-color: #B8C9A8; color: #4B5D3A; }
.alert-error { background: #FBECEA; border-color: #E3B4AC; color: #8A342A; }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-card:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}
