/* ===== KIYARA JEWELS — SHARED DESIGN SYSTEM ===== */
:root {
  --gold: #bfa35b;
  --gold-2: #d9c48f;
  --gold-3: #e8d9a8;
  --bg: #050508;
  --bg-2: #0a0a0f;
  --bg-3: #0f0f17;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(191,163,91,0.15);
  --border-light: rgba(255,255,255,0.06);
  --text: #f0ede6;
  --muted: #a09880;
  --max: 1240px;
  --nav-h: 80px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', system-ui;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; }

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 9998;
}

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

/* ANNOUNCEMENT */
.announcement {
  background: linear-gradient(90deg, var(--bg), #1a1508, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  overflow: hidden;
}
.announcement span {
  display: inline-block;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0%   { transform: translateX(60vw); }
  100% { transform: translateX(-100%); }
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,5,8,0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(5,5,8,0.97); }
.navbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 20px; letter-spacing: 0.04em; }
.brand-sub { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .nav-cta {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 2px;
  color: var(--gold); font-size: 11px; letter-spacing: 0.16em; transition: all 0.3s;
}
.nav-links .nav-cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.nav-links .nav-cta::after { display: none; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 1px; background: var(--text); transition: all 0.3s; }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(5,5,8,0.98);
  z-index: 1100; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 300; color: var(--text); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--muted); font-size: 28px; cursor: pointer; }

/* PAGE HERO (for inner pages) */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.page-hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1; }
.page-hero h1 em { font-style: italic; color: var(--gold-3); }
.page-hero-sub { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 500px; line-height: 1.7; }

/* SECTION HELPERS */
section { padding: 80px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 12px; font-size: 10px;
  font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.5vw, 46px); font-weight: 300; line-height: 1.1; }
.section-title em { font-style: italic; color: var(--gold-3); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0a0a0a; font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; border-radius: 2px; border: none;
  cursor: pointer; transition: all 0.35s; position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12); transform: translateX(-100%) skewX(-12deg); transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%) skewX(-12deg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(191,163,91,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px;
  background: transparent; color: var(--text); font-family: 'Jost', sans-serif; font-size: 11px;
  font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15); cursor: pointer; transition: all 0.35s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 2px;
  color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.02));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-card:hover .card-media img { transform: scale(1.06); }
.card-overlay {
  position: absolute; inset: 0; background: rgba(5,5,8,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-body { padding: 14px 16px 16px; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: var(--text); }
.card-meta { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.08em; }
.card-price { font-size: 12px; color: var(--gold); margin-top: 6px; letter-spacing: 0.1em; font-weight: 500; }

/* CONTROLS BAR */
.controls-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.search-input {
  flex: 1; min-width: 200px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 2px; padding: 11px 16px; color: var(--text);
  font-family: 'Jost', sans-serif; font-size: 13px; outline: none; transition: border-color 0.3s;
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--muted); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pill {
  padding: 8px 16px; border-radius: 2px; border: 1px solid var(--border-light);
  background: transparent; color: var(--muted); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; transition: all 0.3s; font-family: 'Jost', sans-serif;
}
.pill.active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #0a0a0a; border-color: transparent; }
.pill:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* MODAL */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center; z-index: 2000;
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-inner {
  width: min(1040px, 96%); max-height: 92vh; overflow: auto;
  background: linear-gradient(180deg, #0c0c10, #0f1014);
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
  position: relative;
}
.modal-media-wrap { }
.modal-main-media {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: #0a0a0e; display: flex; align-items: center; justify-content: center;
}
.modal-main-media img, .modal-main-media video { width: 100%; height: 100%; object-fit: contain; }
.modal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.modal-thumbs::-webkit-scrollbar { height: 2px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: var(--border); }
.modal-thumb {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: 3px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s;
  background: var(--bg-3);
}
.modal-thumb.active { border-color: var(--gold); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding-top: 4px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; }
.modal-meta { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: 0.1em; }
.modal-divider { height: 1px; background: var(--border); margin: 18px 0; }
.modal-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.modal-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.modal-features li::before { content: '✦'; font-size: 8px; color: var(--gold); flex-shrink: 0; }
.modal-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.modal-close {
  position: absolute; right: 16px; top: 14px; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: 2px; color: var(--muted);
  font-size: 18px; width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.3s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }

/* FOOTER */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 10px; max-width: 220px; }
.footer-col h4 { font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: var(--muted); transition: color 0.3s; }
.footer-legal a:hover { color: var(--text); }

/* WHATSAPP FAB */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 54px; height: 54px;
  border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.35); transition: all 0.3s;
  animation: pulse-fab 3s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); }
@keyframes pulse-fab {
  0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 8px 48px rgba(37,211,102,0.55), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.1s; } .rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; } .rd4 { transition-delay: 0.4s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-main-media { aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
