/* ===== Variables ===== */
:root {
  --color-bg: #faf8f5;
  --color-bg-dark: #0f0e0d;
  --color-surface: #ffffff;
  --color-text: #1a1816;
  --color-text-muted: #6b6560;
  --color-gold: #c9a962;
  --color-gold-light: #e8d5a3;
  --color-accent: #1e3d32;
  --color-border: #e8e4df;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --header-height: 72px;
  --max-width: 1280px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

em {
  font-style: italic;
  color: var(--color-gold-light);
}

.section-eyebrow,
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-top: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.link-arrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.link-arrow:hover {
  color: var(--color-gold);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 14, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.icon-btn:hover {
  color: var(--color-gold);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 14, 13, 0.55) 0%,
    rgba(15, 14, 13, 0.35) 40%,
    rgba(15, 14, 13, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: calc(var(--header-height) + 2rem) 2rem 4rem;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  margin: 0.75rem 0 1.25rem;
}

.hero-content h1 em {
  color: var(--color-gold-light);
}

.hero-desc {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-icon {
  color: var(--color-gold);
  font-size: 0.625rem;
}

/* ===== Collections ===== */
.collections {
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  min-height: 320px;
}

.collection-card--large {
  grid-row: span 2;
  min-height: 100%;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.04);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 13, 0.85) 0%, transparent 55%);
}

.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem;
  color: #fff;
}

.collection-card-content h3 {
  margin-bottom: 0.5rem;
}

.collection-card-content p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.collection-card--accent::after {
  background: linear-gradient(to top, rgba(30, 61, 50, 0.9) 0%, transparent 50%);
}

/* ===== Featured Products ===== */
.featured {
  padding: 6rem 2rem;
  background: var(--color-surface);
}

.featured .section-header,
.featured .product-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background: var(--color-bg);
  margin-bottom: 1rem;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-bg-dark);
  color: #fff;
}

.product-badge--sale {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

.quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-bg-dark);
  color: #fff;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.product-card:hover .quick-add {
  transform: translateY(0);
}

.quick-add:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

.product-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.product-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 500;
  font-size: 0.9375rem;
}

.product-price s {
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

.color-dots {
  display: flex;
  gap: 0.35rem;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.color-dot.active {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* ===== Promo Banner ===== */
.promo-banner {
  padding: 6rem 2rem;
  background: var(--color-bg-dark);
  color: #fff;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.promo-text h2 {
  margin: 0.5rem 0 1rem;
}

.promo-text h2 em {
  color: var(--color-gold-light);
}

.promo-text p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 400px;
}

.promo-text .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.promo-text .btn-outline:hover {
  background: #fff;
  color: var(--color-bg-dark);
}

.promo-image {
  overflow: hidden;
  border-radius: 2px;
}

.promo-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
}

/* ===== About ===== */
.about {
  padding: 6rem 2rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-image {
  overflow: hidden;
  border-radius: 2px;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.about-content h2 {
  margin: 0.5rem 0 1.5rem;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.about-features li {
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}

.about-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #0f0e0d 100%);
  color: #fff;
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter h2 {
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a:hover {
  color: var(--color-gold);
}

/* ===== Cart toast ===== */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  padding: 1rem 1.5rem;
  background: var(--color-bg-dark);
  color: #fff;
  font-size: 0.875rem;
  border-left: 3px solid var(--color-gold);
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.4s ease;
}

.cart-toast.visible {
  transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card--large {
    grid-row: span 1;
    min-height: 400px;
  }

  .promo-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .promo-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .icon-btn:not(.cart-btn) {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}
