/* ============================================
   OVRENA Design System
   Premium Luxury Jewelry E-commerce
   ============================================ */

/* ----------------------------------------
   CSS Variables — Color System
   ---------------------------------------- */
:root {
  /* Primary palette */
  --ivory: #F6F4EF;
  --charcoal: #1C1C1C;
  --stone: #8E8E8E;
  --soft-gold: #C8B37A;
  --taupe: #B9AFA3;

  /* RGB values for rgba() usage */
  --stone-rgb: 142, 142, 142;
  --charcoal-rgb: 28, 28, 28;

  /* Functional colors */
  --bg-primary: var(--ivory);
  --text-primary: var(--charcoal);
  --text-secondary: var(--stone);
  --accent: var(--soft-gold);
  --border: rgba(185, 175, 163, 0.3);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale (luxury rhythm - increased for breathing room) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5rem;
  --space-4xl: 7rem;
  --space-5xl: 10rem;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-normal: 320ms;
  --duration-slow: 500ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --border-radius: 12px;
  --border-radius-sm: 6px;
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  z-index: 9999;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.text-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ----------------------------------------
   Layout Utilities
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 600px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.section--hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

@media (max-width: 600px) {
  .section--hero {
    min-height: calc(80vh - var(--nav-height));
    padding: var(--space-2xl) var(--space-md);
  }
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__cart {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__cart-count {
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: 50%;
}

/* Hamburger Menu Button */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav__menu-btn span:nth-child(1) {
  transform: translateY(-6px);
}

.nav__menu-btn span:nth-child(3) {
  transform: translateY(6px);
}

/* Hamburger to X animation */
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.nav__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}

.nav__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: flex;
  }
}

/* Fullscreen Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) {
  transition-delay: 60ms;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(2) {
  transition-delay: 120ms;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(3) {
  transition-delay: 180ms;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(4) {
  transition-delay: 240ms;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(5) {
  transition-delay: 300ms;
}

.mobile-menu__footer {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.mobile-menu__email {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all var(--duration-normal) var(--ease-luxury);
  cursor: pointer;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary: Outline default, fill on hover */
.btn--primary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn--primary:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn--primary:active {
  transform: scale(0.99);
}

/* Filled variant (for cart/checkout) */
.btn--filled {
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
}

.btn--filled:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.btn--filled:active {
  transform: scale(0.99);
}

.btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(var(--charcoal-rgb), 0.3);
}

.btn--secondary:hover {
  border-color: var(--charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border: none;
  padding: var(--space-sm) 0;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--loading {
  position: relative;
  color: transparent;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ivory);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------
   Product Cards
   ---------------------------------------- */
.product-card {
  display: block;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-luxury);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--taupe) 0%, #d4cec6 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(var(--stone-rgb), 0.15);
  transition: border-color var(--duration-normal) var(--ease-luxury);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.product-card:hover .product-card__image {
  border-color: rgba(var(--stone-rgb), 0.4);
}

.product-card:hover .product-card__image img {
  transform: scale(1.02);
}

/* Signature badge for featured products */
.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 4px;
}

.product-card__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  position: relative;
}

.product-card__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-luxury);
}

.product-card:hover .product-card__title::after {
  width: 100%;
}

.product-card__price {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-card__tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------------------------------
   Product Detail Page
   ---------------------------------------- */
.breadcrumb {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-md);
}

@media (max-width: 600px) {
  .breadcrumb {
    display: none;
  }
}

.breadcrumb a:hover {
  color: var(--charcoal);
}

.breadcrumb span {
  margin: 0 var(--space-xs);
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-md) 0 var(--space-3xl);
}

@media (max-width: 768px) {
  .product {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-md) 0 var(--space-2xl);
  }
}

/* Main Gallery Container */
.product__gallery {
  position: relative;
}

.product__main-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--taupe) 0%, #d4cec6 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
  will-change: transform, filter;
  transition: transform 0.3s var(--ease-luxury), filter 0.3s var(--ease-luxury);
}

.product__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease-luxury), transform 0.4s var(--ease-luxury);
}

/* Base Morph States */
.is-morphing-out {
  transform: scale(0.985);
  filter: blur(2px);
}

/* is-morphing-in state handled by default properties */

/* Thumbnail Strip - Mobile First (Horizontal Scroll) */
/* Thumbnail Strip - Mobile First (Horizontal Scroll) */
.product-gallery__thumbs {
  display: flex;
  overflow-x: auto;
  gap: 12px;

  /* Bleed logic: Make it wider than parent by the padding amount */
  /* Bleed logic: Natural expansion */
  width: auto;
  flex-wrap: nowrap;
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));

  /* Internal padding to align first item */
  padding: 0 var(--space-md) 15px var(--space-md);

  /* Explicit spacing to prevent overlap */
  margin-bottom: var(--space-lg);

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  /* Scroll Hint: Fade out on right */
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

/* Ensure flow */
.product__gallery {
  display: flex;
  flex-direction: column;
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.gallery-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s var(--ease-out);
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--charcoal);
  box-shadow: 0 0 0 1px var(--charcoal);
  /* Double border effect */
}

.gallery-thumb:active {
  transform: scale(0.96);
}

@media (min-width: 769px) {
  .product-gallery__thumbs {
    flex-wrap: wrap;
    overflow-x: visible;
    margin: 0;
    padding: 0;
    width: 100%;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .gallery-thumb {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
  }
}

@media (max-width: 768px) {
  .product__main-image {
    aspect-ratio: 4 / 3;
    max-height: 400px;
    margin: 0 calc(-1 * var(--space-md)) var(--space-md);
    width: calc(100% + var(--space-md) * 2);
    border-radius: 0;
  }

  .product-gallery__thumbs {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
    width: calc(100% + var(--space-md) * 2);
  }

  /* Scroll hint: Active item alignment handles visibility */
}

.product__info {
  display: flex;
  flex-direction: column;
}

.product__title {
  margin-bottom: var(--space-xs);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.product__price {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.product__tagline {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  .product__tagline {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

/* Variant Selection */
.variant-group {
  margin-bottom: var(--space-lg);
}

.variant-group__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.variant-options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.variant-btn {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.variant-btn:hover {
  border-color: var(--charcoal);
}

.variant-btn.is-active {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.variant-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Quantity Stepper */
.quantity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.quantity__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.quantity__controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
}

.quantity__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.quantity__btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.quantity__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.quantity__value {
  width: 44px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

/* Add to Cart Button */
.product__actions {
  margin-bottom: var(--space-xl);
}

.product__actions .btn {
  width: 100%;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-lg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 600px) {
  .trust-badges {
    gap: var(--space-sm) var(--space-md);
    justify-content: center;
  }
}

.trust-badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--border);
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion__header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.accordion__icon {
  width: 12px;
  height: 12px;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--charcoal);
}

.accordion__icon::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.accordion__icon::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.accordion__item.is-open .accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.accordion__item.is-open .accordion__content {
  max-height: 500px;
}

.accordion__body {
  padding-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Cross-sell */
.cross-sell {
  margin-top: var(--space-4xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border);
}

.cross-sell__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
}

.cross-sell__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .cross-sell__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   Cart Page
   ---------------------------------------- */
.cart {
  padding: var(--space-xl) 0 var(--space-4xl);
}

.cart__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.cart__title {
  margin-bottom: var(--space-sm);
}

.cart__subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cart__content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .cart__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

@media (max-width: 600px) {
  .cart-item {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
    border-bottom: 1px solid var(--border);
  }
}

.cart-item__image {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--taupe) 0%, #d4cec6 100%);
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duration-fast);
}

.cart-item__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-item__image a:hover img {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .cart-item__image {
    width: 72px;
    height: 72px;
  }
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

@media (max-width: 600px) {
  .cart-item__info {
    flex: 1;
    min-width: calc(100% - 88px);
  }
}

.cart-item__title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .cart-item__title {
    font-size: 0.9375rem;
  }
}

.cart-item__title a {
  transition: opacity var(--duration-fast);
}

.cart-item__title a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.cart-item__variant {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Mobile-only price (shown in info section) */
.cart-item__price-mobile {
  display: none;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: var(--space-xs);
}

@media (max-width: 600px) {
  .cart-item__price-mobile {
    display: block;
  }
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

@media (max-width: 600px) {
  .cart-item__actions {
    width: 100%;
    margin-top: var(--space-sm);
    gap: var(--space-lg);
  }
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-item__remove {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--duration-fast);
  padding: var(--space-xs) 0;
  white-space: nowrap;
}

.cart-item__remove:hover {
  color: var(--charcoal);
}

/* Desktop price (hidden on mobile) */
.cart-item__price {
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 70px;
  text-align: right;
  margin-left: auto;
}

@media (max-width: 600px) {
  .cart-item__price {
    display: none;
  }
}

/* Cart Summary */
.cart-summary {
  background: rgba(185, 175, 163, 0.1);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}

@media (max-width: 900px) {
  .cart-summary {
    position: static;
    margin-top: var(--space-md);
  }
}

.cart-summary__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  gap: var(--space-sm);
}

.cart-summary__row span:last-child {
  text-align: right;
}

.cart-summary__row--total {
  font-size: 1rem;
  font-weight: 500;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}

.cart-summary__note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.cart-summary .btn {
  width: 100%;
  margin-bottom: var(--space-sm);
}

.cart-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.cart-empty__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.cart-empty__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

/* ----------------------------------------
   Toast Notification
   ---------------------------------------- */
.toast {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-md));
  right: var(--space-lg);
  background: var(--charcoal);
  color: var(--ivory);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 1000;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.toast__link {
  color: var(--accent);
  text-decoration: underline;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
  margin-top: var(--space-3xl);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
  }
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer__brand-col {
  max-width: 240px;
}

@media (max-width: 768px) {
  .footer__brand-col {
    max-width: none;
    text-align: center;
    order: 2;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
  }

  .cart-items {
    margin: 24px;
  }
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  display: block;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
    order: 1;
  }
}

.footer__col {
  min-width: 0;
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  padding: var(--space-xs) 0;
  display: inline-block;
}

.footer__col a:hover {
  color: var(--charcoal);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Footer Social Icons */
.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .footer__social {
    justify-content: center;
  }
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all var(--duration-fast);
}

.footer__social-link:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Payment Icons */
.footer__payments {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer__payments {
    justify-content: center;
  }
}

.footer__payments svg {
  height: 20px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.footer__payments svg:hover {
  opacity: 1;
}

/* ----------------------------------------
   Sections — Home Page
   ---------------------------------------- */
/* Hero Banner Styles */
.hero {
  position: relative;
  overflow: hidden;
}

.hero--banner {
  height: 85vh;
  max-height: 92vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
}

@media (min-width: 769px) {
  .hero--banner {
    height: 75vh;
  }
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom,
      rgba(28, 28, 28, 0.4) 0%,
      rgba(28, 28, 28, 0.2) 40%,
      rgba(28, 28, 28, 0.4) 100%);
  backdrop-filter: blur(0px);
  /* Optional: slight blur if needed */
}

/* Content on top of banner */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 var(--space-md);
}

/* Text colors for banner context */
.hero--banner .hero__title {
  color: var(--ivory);
  margin-bottom: var(--space-md);
}

.hero--banner .hero__title::after {
  background: var(--soft-gold);
  /* Ensure visibility */
  height: 1.5px;
}

.hero--banner .hero__subtitle {
  color: rgba(246, 244, 239, 0.9);
  /* Ivory transparent */
}

.hero__title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

/* Standard hero title underline (kept for non-banner context if ever used) */
.hero__title::after {
  content: '';
  position: absolute;
  bottom: -0.25em;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  position: relative;
  display: inline-block;
}

/* Hero Button Variant (Light on Dark) */
.btn--hero {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--ivory);
  min-width: 200px;
}

.btn--hero:hover {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}

.btn--hero:active {
  transform: scale(0.99);
}

/* Materials Section */
.materials {
  background: rgba(185, 175, 163, 0.08);
  padding: var(--space-4xl) 0;
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

@media (max-width: 768px) {
  .materials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.materials__item {
  padding: var(--space-lg);
}

.materials__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
}

.materials__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.materials__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Gifting Section */
.gifting {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.gifting__title {
  margin-bottom: var(--space-lg);
}

.gifting__text {
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ----------------------------------------
   Focus States
   ---------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {

  .nav,
  .footer,
  .toast,
  .mobile-menu {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* ----------------------------------------
   Product Story Section
   ---------------------------------------- */
.product-story {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--border);
}

.product-story__content {
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.product-story__eyebrow {
  display: block;
  margin-bottom: var(--space-md);
  color: var(--stone);
}

.product-story__headline {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-lg);
}

.product-story__body {
  margin-bottom: var(--space-xl);
  color: var(--charcoal);
  font-weight: 300;
}

.product-story__body p {
  margin-bottom: var(--space-md);
}

/* Bullets */
.product-story__bullets {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-md);
}

.product-story__bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--soft-gold);
}

/* Image Grid - Magazine Layout */
.product-story__visuals {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

/* Desktop layout: 1 large left, 2 stacked right */
@media (min-width: 769px) {
  .grid--magazine {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    height: 600px;
  }

  .grid--magazine .tile-1 {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .grid--magazine .tile-2 {
    grid-column: 2;
  }

  .grid--magazine .tile-3 {
    grid-column: 2;
  }

  /* 2-image variant */
  .product-story__visuals.grid--2 {
    grid-template-columns: 1fr 1fr;
    height: 500px;
  }
}

/* Mobile layout: stack or optional scroll */
@media (max-width: 768px) {
  .product-story__visuals {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Make first image larger/heroic */
  .story-image-tile:first-child {
    aspect-ratio: 4 / 5;
  }

  /* Following images square-ish or smaller */
  .story-image-tile:not(:first-child) {
    aspect-ratio: 1;
  }

  .grid--magazine,
  .product-story__visuals.grid--2 {
    height: auto;
  }
}

.story-image-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--ivory);
}

.story-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.story-image-tile:hover img {
  transform: scale(1.03);
}

/* Quote */
.product-story__quote {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.product-story__quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--stone);
  line-height: 1.4;
}