/* ================================================================
   KAINAAT ART GALLERY — DESIGN SYSTEM
   Theme: Dark Luxury Editorial — like builtwithrocket.new
   ================================================================ */

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

/* ── TOKENS ── */
:root {
  --bg:           #0C0A09;
  --bg-2:         #111009;
  --bg-3:         #181510;
  --bg-card:      #1A1714;
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;
  --gold-dim:     #8A6A28;
  --gold-glow:    rgba(201,168,76,0.18);
  --cream:        #F5EDD8;
  --cream-dim:    #C8B99A;
  --white:        #FDFAF5;
  --text-1:       #F0E8D8;
  --text-2:       #9A8E7A;
  --text-3:       #5C5040;
  --border:       rgba(201,168,76,0.15);
  --border-2:     rgba(255,255,255,0.06);
  --shadow-gold:  0 0 40px rgba(201,168,76,0.12);
  --r:            8px;
  --r-lg:         14px;
  --r-xl:         20px;
  --ease:         cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ================================================================
   HEADER / NAV
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(12,10,9,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 2;
}
.logo-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold);
  transition: all 0.3s;
}
.logo:hover .logo-mark { background: var(--gold); color: var(--bg); }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.5px;
  line-height: 1;
}
.logo-tagline {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  border-radius: 6px;
  transition: all 0.25s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--cream); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--gold); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-2);
  transition: all 0.25s;
  position: relative;
}
.nav-icon:hover { color: var(--cream); background: rgba(255,255,255,0.05); }

/* Mobile items toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--text-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-2);
  transition: color 0.25s;
}
.mobile-drawer a:hover { color: var(--gold); }

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-wrap {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  border-radius: 50px;
  color: var(--text-1);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all 0.3s;
}
.search-wrap input::placeholder { color: var(--text-3); }
.search-wrap input:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}
.search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: none; border: none;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.25s;
}
.search-btn:hover { color: var(--gold); }
.search-dropdown {
  position: absolute; top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: none;
  z-index: 100;
}
.search-dropdown.active { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  transition: background 0.2s;
  cursor: pointer;
}
.search-item:hover { background: rgba(201,168,76,0.06); }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-item-name { font-size: 13px; color: var(--text-1); }
.search-item-price { font-size: 12px; color: var(--gold); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.3px;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-wa:hover { background: #128C7E; transform: translateY(-2px); }

/* ================================================================
   SECTION UTILS
   ================================================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--gold); }

.divider {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0;
}

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-2);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold), 0 20px 40px rgba(0,0,0,0.4);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,9,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .product-img-overlay { opacity: 1; }

.product-quick-actions {
  position: absolute;
  bottom: -50px;
  left: 12px; right: 12px;
  display: flex; gap: 8px;
  transition: bottom 0.35s var(--ease);
}
.product-card:hover .product-quick-actions { bottom: 12px; }

.pqa-cart, .pqa-wa {
  flex: 1;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.pqa-cart {
  background: rgba(245,237,216,0.92);
  color: var(--bg);
}
.pqa-cart:hover { background: var(--cream); }
.pqa-wa {
  background: rgba(37,211,102,0.92);
  color: white;
}
.pqa-wa:hover { background: #25D366; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
}
.product-badge.new { background: var(--cream); }
.product-badge.trending { background: #E67E22; color: white; }
.product-badge.premium { background: linear-gradient(135deg, #D4AF37, #C9A84C); }

.product-wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(12,10,9,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 14px;
  transition: all 0.25s;
  cursor: pointer;
}
.product-wish:hover, .product-wish.active { color: #e74c3c; border-color: #e74c3c; }

.product-info { padding: 16px; }
.product-category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 10px;
}
.product-pricing { display: flex; align-items: baseline; gap: 8px; }
.product-price {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
}
.product-mrp {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-discount {
  font-size: 11px;
  color: #4CAF50;
  font-weight: 500;
}

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee-bar {
  background: var(--gold);
  padding: 9px 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}
.marquee-inner span {
  font-size: 12px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: 1.5px;
  padding: 0 32px;
}
.marquee-inner .sep { color: rgba(12,10,9,0.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   FLOATING WHATSAPP
   ================================================================ */
.float-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  transition: all 0.3s var(--ease);
  animation: floatPulse 3s ease-in-out infinite;
}
.float-wa:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 12px 36px rgba(37,211,102,0.5); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.65); }
}

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  bottom: 80px; right: 28px;
  background: var(--bg-card);
  color: var(--text-1);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 13px;
  z-index: 9998;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.3s var(--ease);
  max-width: 280px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  padding: 80px 40px 0;
}
.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-2);
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin: 20px 0 28px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: 50px;
  font-size: 12px;
  color: var(--text-2);
  transition: all 0.25s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 13px; color: var(--text-2); padding: 5px 0; line-height: 1.6; }

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text-3); }
.footer-bottom a { color: var(--gold-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ================================================================
   VIDEO MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 9997;
  display: none;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.yt-modal {
  position: relative;
  width: 90vw; max-width: 960px;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.yt-modal iframe { width: 100%; height: 100%; }
.modal-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.modal-close:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* ================================================================
   RESPONSIVE GLOBAL
   ================================================================ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer { padding: 60px 24px 0; }
}
@media (max-width: 640px) {
  .float-wa span { display: none; }
  .float-wa { padding: 14px; border-radius: 50%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
