@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&display=swap');

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE6D6;
  --cream-deeper: #E2D9C4;
  --beige: #C8B99A;
  --beige-dark: #A89070;
  --brown: #6B5744;
  --brown-dark: #3E3028;
  --charcoal: #2A2420;
  --white: #FDFAF5;
  --accent: #8B6F4E;
  --accent-light: #BFA882;
  --text-primary: #2A2420;
  --text-muted: #7A6A5A;
  --text-light: #A89A8A;
  --border: rgba(107,87,68,0.15);
  --border-strong: rgba(107,87,68,0.3);
  --shadow: 0 2px 20px rgba(42,36,32,0.08);
  --shadow-lg: 0 8px 40px rgba(42,36,32,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.3s ease;

  /* Theme section colors — set by admin */
  --header-bg: #0D0D0D;
  --header-text: #FFFFFF;
  --hero-bg: #FFFFFF;
  --hero-text: #0D0D0D;
  --collections-bg: #0D0D0D;
  --collections-text: #FDFAF5;

  /* Logo size — controlled from admin */
  --logo-img-width: auto;
  --logo-img-height: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ── ANIMATIONS ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card { animation: fadeUp 0.4s ease both; }
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg, #0D0D0D);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

/* Row 1: Logo */
.header-logo-row {
  display: flex;
  align-items: center;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--header-text, #FFFFFF);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo span { color: var(--accent-light, #BFA882); }

/* Logo image — size controlled via CSS vars set by admin */
.logo-img {
  width: var(--logo-img-width, auto);
  height: var(--logo-img-height, 36px);
  max-width: 280px;   /* never overflow header */
  max-height: 72px;
  object-fit: contain;
  display: block;
}

/* Row 2: Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
  padding: 10px 0 12px;
}
.nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent-light, #BFA882);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav a:hover { color: #FFFFFF; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #FFFFFF; }

/* ── HERO ── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  background: var(--hero-bg, #FFFFFF);
  transition: background var(--transition);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px;
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--hero-text, #0D0D0D);
  margin-bottom: 28px;
  transition: color var(--transition);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 16px;
  color: var(--hero-text, #0D0D0D);
  opacity: 0.55;
  max-width: 460px;
  margin-bottom: 52px;
  line-height: 1.9;
  transition: color var(--transition);
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-right { display: none !important; }

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-body);
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid var(--charcoal);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--charcoal);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: 1px solid rgba(42,36,32,0.3);
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--charcoal); }

/* ── SECTION ── */
.section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light, #BFA882);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: var(--collections-text, #FDFAF5);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--accent-light, #BFA882); }

/* ── COLLECTIONS ── */
#collections {
  background: var(--collections-bg, #0D0D0D);
  transition: background var(--transition);
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(191,168,130,0.3);
}
.product-card-img {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}
.product-card-img img.loaded {
  opacity: 1;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.2);
  font-family: var(--font-display);
}
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.product-card-body { padding: 20px; }
.product-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  color: var(--collections-text, #FDFAF5);
  margin-bottom: 4px;
}
.product-desc {
  font-size: 13px;
  color: var(--collections-text, #FDFAF5);
  opacity: 0.45;
  margin-bottom: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price {
  font-size: 18px; font-weight: 500;
  color: var(--accent-light, #BFA882);
}
.product-price .original {
  font-size: 13px; color: rgba(255,255,255,0.3);
  text-decoration: line-through; margin-right: 6px;
}

/* ── FOOTER — uses same --header-bg as header ── */
footer {
  background: var(--header-bg, #0D0D0D);
  color: rgba(255,255,255,0.55);
  padding: 60px 40px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; margin-bottom: 50px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 280px; color: rgba(255,255,255,0.4); }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 20px; font-weight: 400;
}
.footer-col a {
  display: block; font-size: 13px; margin-bottom: 10px;
  color: rgba(255,255,255,0.45); transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.25);
}

/* ── SOLD OUT ── */
.sold-out-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.75); color: rgba(255,255,255,0.8);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--charcoal); color: var(--white);
  padding: 14px 24px; border-radius: var(--radius-lg);
  font-size: 13px; z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-left { padding: 40px 24px 60px; }
  .header-inner { padding: 0 20px; }
  .nav { gap: 20px; justify-content: flex-start; }
  .logo { font-size: 20px; }
  .logo-img { height: calc(var(--logo-img-height, 36px) * 0.8); }
  .section { padding: 60px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .collections-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0px; /* space between logo and text */
  text-decoration: none;
}

.logo-img {
  width: var(--logo-img-width, 38px);
  height: var(--logo-img-height, 38px);
  object-fit: contain;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 2px;
}
