:root {
  --bg: #faf7f2;
  --bg-soft: #f3ede3;
  --bg-dark: #1e1e1c;
  --bg-darker: #141413;
  --gold: #c7a444;
  --gold-dark: #9a6d23;
  --gold-light: #faf195;
  --text: #1e1e1c;
  --muted: #6f6a60;
  --line: #e7e0d3;
  --white: #ffffff;
  --danger: #b3402f;
  --success: #2f7d4f;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
  --radius: 4px;
  --shadow: 0 18px 50px -20px rgba(30, 30, 28, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Announcement ---------- */
.announcement {
  background: var(--bg-dark);
  color: var(--gold-light);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 5px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.lang-switch a.is-active { color: var(--text); font-weight: 600; }
.cart-link { position: relative; color: var(--text); display: flex; align-items: center; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-count.has-items { display: flex; }

.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: 0.25s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,20,19,0.72) 0%, rgba(20,20,19,0.35) 55%, rgba(20,20,19,0.1) 100%);
}
.hero-content { position: relative; color: #fff; padding: 60px 0; }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero-subtitle { font-size: 18px; font-weight: 300; max-width: 44ch; color: rgba(255,255,255,0.9); margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s;
  text-align: center;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: var(--bg-darker); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
}
.section-subtitle { color: var(--muted); margin-top: 10px; }
.eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.section-cta { text-align: center; margin-top: 44px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}
.product-card { display: flex; flex-direction: column; }
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: var(--radius);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.product-placeholder img { width: 60%; height: 60%; object-fit: contain; opacity: 0.5; }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  color: #fff;
}
.badge-sale { background: var(--danger); }
.badge-out { background: var(--bg-dark); }
.product-info { padding-top: 16px; text-align: center; }
.product-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.product-name a:hover { color: var(--gold-dark); }
.product-price { margin-bottom: 14px; }
.price-current { font-size: 16px; font-weight: 500; }
.price-old { font-size: 14px; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.btn-add {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius);
  transition: all 0.25s;
}
.btn-add:hover { background: var(--text); color: #fff; }
.btn-add:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* ---------- About ---------- */
.section-about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--muted); margin: 18px 0; max-width: 46ch; }
.about-lead { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--text) !important; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--bg-soft); padding: 70px 0; text-align: center; }
.page-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
}
.page-subtitle { color: var(--muted); margin-top: 10px; }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.is-active { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }
.search-box { display: flex; gap: 8px; }
.search-box input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box .btn { padding: 10px 20px; }

/* ---------- Product detail ---------- */
.product-detail { padding-top: 50px; }
.back-link { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); display: inline-block; margin-bottom: 30px; }
.back-link:hover { color: var(--text); }
.product-detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; }
.gallery-main { aspect-ratio: 3 / 4; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; height: 96px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
.thumb.is-active, .thumb:hover { border-color: var(--gold); opacity: 1; }
.product-info-detail .page-title { margin-bottom: 14px; }
.detail-price { margin-bottom: 26px; }
.detail-desc h3, .detail-sizes h3 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.detail-desc p { color: var(--muted); }
.detail-sizes { margin: 22px 0; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.stock-status { font-size: 14px; margin-bottom: 18px; color: var(--success); }
.stock-status.is-out { color: var(--danger); }
.product-info-detail .btn-add { padding: 15px 40px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.25s;
  background: #fff;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon { font-size: 30px; color: var(--gold-dark); display: block; margin-bottom: 14px; }
.contact-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #d8d3c8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 70px 0 50px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: #a9a498; margin-bottom: 10px; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { color: #a9a498; }
.social-links a { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; font-size: 13px; color: #77726a; }

/* ---------- Cart ---------- */
.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty p { margin-bottom: 24px; color: var(--muted); }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.cart-line-name { font-family: var(--serif); font-size: 18px; }
.cart-line-price { color: var(--muted); font-size: 14px; }
.cart-line-qty { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  font-size: 16px;
}
.qty-val { min-width: 20px; text-align: center; }
.cart-line-total { font-weight: 500; }
.cart-line-remove { background: none; border: 0; font-size: 22px; color: var(--muted); }
.cart-summary { max-width: 420px; margin-left: auto; margin-top: 30px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-note { color: var(--muted); font-size: 13px; margin: 16px 0; }
.cart-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1db356; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .brand-name { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr auto; }
  .cart-line-img { width: 60px; height: 78px; }
  .cart-line-qty { grid-column: 2 / 4; justify-content: flex-start; }
}
