/* ============================================
   XAYR PERFUMES — DESIGN SYSTEM
   Colors: Black · Off-White · Gold
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --black:       #0a0a0a;
  --black-soft:  #111111;
  --black-mid:   #1a1a1a;
  --charcoal:    #2a2929;
  --gold:        #b8955a;
  --gold-light:  #d4af72;
  --gold-pale:   #e8d5a3;
  --off-white:   #f5f0ea;
  --cream:       #faf7f2;
  --white:       #ffffff;
  --muted:       #8a8078;
  --border:      rgba(184, 149, 90, 0.2);
  --border-dark: rgba(255,255,255,0.08);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 24px rgba(184,149,90,0.25);

  --nav-height: 80px;
  --container:  1280px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }
input, select, textarea { font-family: var(--font-sans); }

/* --- 12-Column Grid Container --- */
.container {
  width: min(var(--container), 100%);
  padding: 0 40px;
  margin: 0 auto;
}
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(3rem, 6vw, 6rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.section-heading h2 { margin-top: 10px; }
.section-heading .divider {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 18px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease-smooth);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}
.btn-dark:hover {
  background: var(--black-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-icon { padding: 12px 14px; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
  flex-shrink: 0;
}
.navbar-logo span { color: var(--gold); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.navbar-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  position: relative;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--white); }
.navbar-nav a:hover::after,
.navbar-nav a.active::after { width: 100%; }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-icon-btn {
  position: relative;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.nav-icon-btn:hover { color: var(--white); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --- Product Card --- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--off-white);
}
.product-card-img img {
  height: 100%;
  transition: transform 0.6s var(--ease-smooth);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .product-card-overlay { opacity: 1; }
.product-card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.product-card-body {
  padding: 20px;
}
.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.product-card-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--black);
}
.product-price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.add-to-cart-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.add-to-cart-btn:hover {
  background: var(--gold);
  transform: scale(1.1);
}

/* --- Section spacing --- */
.section { padding: 100px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-charcoal { background: var(--charcoal); color: var(--white); }
.section-off-white { background: var(--off-white); }
.section-cream { background: var(--cream); }

/* --- Gold divider line --- */
.gold-line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 32px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .navbar-logo { display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.75rem; }
.social-icons { display: flex; gap: 16px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all 0.25s;
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* --- Page header (inner pages) --- */
.page-header {
  background: var(--black);
  padding: 160px 0 80px;
  text-align: center;
  color: var(--white);
}
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  margin-top: 20px;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* --- Form inputs --- */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-input {
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.25s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--muted); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8078' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* --- Quantity selector --- */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: var(--white);
}
.qty-btn:hover { background: var(--off-white); }
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(0,0,0,0.1);
  border-right: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  padding: 8px 0;
  outline: none;
  background: var(--white);
}

/* --- Tag pill --- */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--gold);
}

/* --- Rating stars --- */
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }

/* --- Toast notification --- */
.toast {
  position: fixed;
  bottom: 36px; right: 36px;
  background: var(--black);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  z-index: 9000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* --- Selection --- */
::selection { background: var(--gold-pale); color: var(--black); }
