/* ─────────────────────────────────────────────
   NŌVA — Japandi Décor Boutique
   Design System
   ───────────────────────────────────────────── */

@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=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --stone: #e8e0d4;
  --sand: #d4c9b8;
  --charcoal: #1e1e1a;
  --dark: #0f0f0d;
  --mid: #6b6560;
  --light-mid: #9b948c;
  --terracotta: #b85c38;
  --terracotta-hover: #a04d2e;
  --sage: #7a8c72;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-height: 72px;
  --max-w: 1340px;
  --radius: 2px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display-xl {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
}

.label {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-mid);
}

p {
  color: var(--mid);
  font-size: 0.938rem;
  line-height: 1.75;
}

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

/* ─── LAYOUT ─── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* ─── NAVIGATION ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 201, 184, 0.4);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(30, 30, 26, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
}

.nav-logo span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.813rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.813rem;
  font-weight: 400;
  color: var(--charcoal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.cart-btn:hover {
  color: var(--terracotta);
}

.cart-badge {
  background: var(--terracotta);
  color: white;
  font-size: 0.625rem;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.cart-badge.bump {
  transform: scale(1.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.813rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 1rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 30, 26, 0.2);
}

.btn-terracotta {
  background: var(--terracotta);
  color: white;
}

.btn-terracotta:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 92, 56, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--warm-white);
}

.btn-ghost {
  background: transparent;
  color: var(--mid);
  padding: 0.75rem 1.5rem;
}

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

.btn-full {
  width: 100%;
}

/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: var(--nav-height);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem) clamp(2rem, 6vw, 5rem);
  background: var(--cream);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 300;
  font-family: var(--font-display);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 400px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-link {
  font-size: 0.813rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: var(--transition);
}

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

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-left: 2px solid var(--terracotta);
}

.hero-badge p {
  font-size: 0.813rem;
  color: var(--charcoal);
  font-weight: 400;
}

.hero-badge span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  display: block;
}

/* ─── MARQUEE STRIP ─── */

.marquee-strip {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.875rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
}

.marquee-inner span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
}

.marquee-inner strong {
  color: var(--terracotta);
  font-weight: 400;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── CATEGORIES BAR ─── */

.categories-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--stone);
  background: var(--warm-white);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}

.categories-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.categories-list::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--mid);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-btn:hover, .cat-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

/* ─── PRODUCT CARDS ─── */

.products-section {
  background: var(--warm-white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-header-left p {
  margin-top: 0.75rem;
  max-width: 400px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  z-index: 1;
}

.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 26, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

.product-card:hover .product-image-overlay {
  background: rgba(30, 30, 26, 0.12);
}

.quick-add-btn {
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: var(--warm-white);
  color: var(--charcoal);
  border: none;
  cursor: pointer;
  width: 100%;
}

.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn:hover {
  background: var(--charcoal);
  color: var(--warm-white);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--terracotta);
  color: white;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.product-tagline {
  font-size: 0.813rem;
  color: var(--light-mid);
  margin-bottom: 0.75rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-price {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--charcoal);
}

.product-compare-price {
  font-size: 0.813rem;
  color: var(--light-mid);
  text-decoration: line-through;
}

/* ─── FEATURES STRIP ─── */

.features-strip {
  background: var(--cream);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.features-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--stone);
  text-align: center;
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-item h4 {
  font-size: 0.938rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
}

.feature-item p {
  font-size: 0.813rem;
  color: var(--light-mid);
}

/* ─── EDITORIAL / ABOUT ─── */

.editorial-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 70vh;
}

.editorial-image {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
  background: var(--cream);
}

.editorial-content .label {
  margin-bottom: 1.5rem;
}

.editorial-content h2 {
  margin-bottom: 1.5rem;
}

.editorial-content p {
  margin-bottom: 1.5rem;
  max-width: 440px;
}

/* ─── EMAIL POPUP ─── */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 13, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--warm-white);
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.popup-overlay.active .popup {
  transform: translateY(0);
}

.popup-image {
  background: var(--stone);
  overflow: hidden;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--mid);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--charcoal);
}

.popup-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.popup-sub {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.popup-discount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--stone);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition);
}

.input-field:focus {
  border-color: var(--terracotta);
}

.input-field::placeholder {
  color: var(--light-mid);
}

.popup-success {
  text-align: center;
  display: none;
}

.popup-success .big-code {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--terracotta);
  letter-spacing: 0.15em;
  display: block;
  margin: 1rem 0;
  font-style: italic;
}

/* ─── CART DRAWER ─── */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 13, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--warm-white);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(30, 30, 26, 0.15);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--stone);
}

.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--mid);
  transition: var(--transition);
}

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

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--light-mid);
  text-align: center;
}

.cart-empty-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--stone);
}

.cart-item-image {
  width: 80px;
  height: 96px;
  object-fit: cover;
  background: var(--stone);
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.875rem;
  color: var(--mid);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--sand);
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}

.cart-item-total {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--charcoal);
  align-self: flex-start;
  padding-top: 0.125rem;
}

.cart-drawer-footer {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--stone);
  background: var(--cream);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-subtotal-label {
  font-size: 0.875rem;
  color: var(--mid);
}

.cart-subtotal-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.cart-shipping-note {
  font-size: 0.75rem;
  color: var(--sage);
  text-align: center;
  margin-bottom: 1rem;
}

/* ─── PRODUCT PAGE ─── */

.product-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height));
}

.product-gallery {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
  background: var(--stone);
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-content {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--light-mid);
  margin-bottom: 2rem;
}

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

.breadcrumb-sep { opacity: 0.4; }

.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.product-detail-tagline {
  font-style: italic;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.product-detail-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stone);
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--charcoal);
}

.product-detail-compare {
  font-size: 1rem;
  color: var(--light-mid);
  text-decoration: line-through;
}

.product-detail-desc {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stone);
}

.product-detail-desc p {
  font-size: 0.938rem;
  line-height: 1.8;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-meta-item label {
  font-size: 0.688rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-mid);
  display: block;
  margin-bottom: 0.25rem;
}

.product-meta-item span {
  font-size: 0.875rem;
  color: var(--charcoal);
}

.add-to-cart-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── CHECKOUT ─── */

.checkout-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--cream);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.checkout-form-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-summary-panel {
  background: var(--warm-white);
  border: 1px solid var(--stone);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.order-summary-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--stone);
}

.summary-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--stone);
}

.summary-item img {
  width: 56px;
  height: 68px;
  object-fit: cover;
  background: var(--stone);
  flex-shrink: 0;
}

.summary-item-info { flex: 1; }
.summary-item-name { font-size: 0.875rem; color: var(--charcoal); font-weight: 400; margin-bottom: 0.2rem; }
.summary-item-price { font-size: 0.813rem; color: var(--mid); }

.summary-totals {
  padding-top: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.summary-row.total {
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 500;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stone);
}

/* ─── FOOTER ─── */

.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(245, 240, 232, 0.6);
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.688rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.7);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-newsletter input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.15);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color var(--transition);
}

.footer-newsletter input::placeholder { color: rgba(245, 240, 232, 0.35); }
.footer-newsletter input:focus { border-color: var(--terracotta); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(245, 240, 232, 0.8); }

/* ─── LOADING STATE ─── */

.skeleton {
  background: linear-gradient(90deg, var(--stone) 25%, var(--sand) 50%, var(--stone) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── TOAST ─── */

.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-left: 3px solid var(--sage); }
.toast.error { border-left: 3px solid var(--terracotta); }

/* ─── MOBILE ─── */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .hero-image {
    height: 60vw;
    min-height: 300px;
  }

  .editorial-section {
    grid-template-columns: 1fr;
  }

  .editorial-image {
    height: 60vw;
    min-height: 280px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
    height: 80vw;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .features-strip .container {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-top: 1px solid var(--stone); }
  .feature-item:nth-child(4) { border-top: 1px solid var(--stone); border-right: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .popup {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .popup-image {
    display: none;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .product-info {
    padding: 0.875rem;
  }

  .features-strip .container {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--stone);
    padding: 1.75rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ─── ANIMATIONS ─── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease forwards;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── UTILS ─── */

.text-center { text-align: center; }
.text-terracotta { color: var(--terracotta); }
.text-italic { font-style: italic; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* scroll top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  opacity: 0;
  transition: var(--transition);
  z-index: 50;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  background: var(--terracotta);
}
