/* =============================================================
   THE HOUSE OF KUPPA — Master Design System
   kuppa.css | Version 1.0
   ============================================================= */

/* ---------------------------------------------------------------
   GOOGLE FONTS IMPORT
--------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Hanken+Grotesk:wght@300;400;500;600&display=swap');


/* ---------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
--------------------------------------------------------------- */
:root {
  /* Colors - Official Brand Palette */
  --black:          #000000;
  --charcoal:       #121212;
  --ivory:          #FFFFFF; /* Swapped to pure white per client */
  --gold:           #C5A46D;
  --crimson:        #681320; /* Deep Burgundy */
  --rose-bronze:    #A86A46; /* Copper Brown */
  
  /* Remapped Fallbacks to strictly enforce the 6 requested colors */
  --cream:          var(--ivory);
  --white:          var(--ivory);
  --white-pure:     var(--ivory);
  --charcoal-mid:   var(--charcoal);
  --charcoal-soft:  var(--charcoal);
  --charcoal-muted: var(--charcoal);
  --error:          var(--crimson);
  --success:        var(--gold);
  --warning:        var(--rose-bronze);
  --copper:         var(--rose-bronze);
  --copper-dark:    #7A4B3E;
  --sand:           var(--ivory);
  --parchment:      var(--ivory);
  --cream-soft:     var(--ivory);

  /* Typography */
  --font-logotype:  'Gloock', serif;
  --font-serif:     'Playfair Display', serif; /* Used for product names & headings */
  --font-sans:      'Hanken Grotesk', sans-serif; /* Used for body, subtext & supporting text */


  /* Font Sizes */
  --text-xs:     0.6875rem;  /* 11px */
  --text-sm:     0.8125rem;  /* 13px */
  --text-base:   1rem;       /* 16px */
  --text-md:     1.125rem;   /* 18px */
  --text-lg:     1.25rem;    /* 20px */
  --text-xl:     1.5rem;     /* 24px */
  --text-2xl:    2rem;       /* 32px */
  --text-3xl:    2.5rem;     /* 40px */
  --text-4xl:    3.25rem;    /* 52px */
  --text-5xl:    4.5rem;     /* 72px */
  --text-6xl:    6rem;       /* 96px */
  --text-display:8rem;       /* 128px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;

  /* Layout */
  --max-width: 1400px;
  --content-width: 1100px;
  --narrow-width:  720px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.6s ease;
  --transition-luxury: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(18,18,18,0.06);
  --shadow-md:  0 4px 20px rgba(18,18,18,0.08);
  --shadow-lg:  0 12px 48px rgba(18,18,18,0.12);
  --shadow-xl:  0 24px 80px rgba(18,18,18,0.16);
  --shadow-copper: 0 8px 32px rgba(154,96,81,0.2);

  /* Z-index */
  --z-header:  1000;
  --z-overlay: 1100;
  --z-modal:   1200;
  --z-toast:   1300;
}

/* ---------------------------------------------------------------
   RESET & BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

ul, ol { list-style: none; }

/* ---------------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-logotype);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
section[style*="background:linear-gradient"] h1,
section[style*="background:var(--charcoal"] h1,
section[style*="background:#121212"] h1,
section[style*="background:#121212"] h1,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
  color: #FFFFFF !important;
}

.t-display {
  font-family: var(--font-logotype);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-style: italic;
}

.t-hero {
  font-family: var(--font-logotype);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.t-headline {
  font-family: var(--font-logotype);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.t-subheadline {
  font-family: var(--font-logotype);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.highlight-year {
  color: var(--rose-bronze);
  font-weight: 600;
  font-family: var(--font-serif);
}

.t-body-large {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.85;
  color: var(--charcoal-mid);
}

.t-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.t-sc {
  font-family: var(--font-sc);
  letter-spacing: 0.08em;
}

.t-editorial {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--charcoal-mid);
}

.t-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
}

/* ---------------------------------------------------------------
   LAYOUT
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--content {
  max-width: var(--content-width);
}

.container--narrow {
  max-width: var(--narrow-width);
}

/* ---------------------------------------------------------------
   SECTION SPACING
--------------------------------------------------------------- */
.section {
  padding-block: var(--space-32);
}

.section--sm {
  padding-block: var(--space-16);
}

.section--lg {
  padding-block: var(--space-48);
}

.section--xl {
  padding-block: clamp(5rem, 12vw, 10rem);
}

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: 1px solid transparent;
  transition: all var(--transition-luxury);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-luxury);
}

.btn:hover::after {
  width: 100%;
}

/* Primary — Copper */
.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-copper);
}

/* Secondary — Outline */
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* Ghost — Ivory border */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(245,241,234,0.5);
}

.btn-ghost:hover {
  background: rgba(245,241,234,0.1);
  border-color: var(--white);
}

/* Gold accent */
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Link style */
.btn-link {
  padding: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--copper);
  border: none;
}

.btn-link::after {
  background: var(--copper);
}

.btn-link:hover { color: var(--copper-dark); }

/* Sizes */
.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.625rem; }
.btn-lg { padding: 1.2rem 3rem; font-size: var(--text-sm); }
.btn-full { width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   DIVIDERS & ORNAMENTS
--------------------------------------------------------------- */
.divider {
  border: none;
  height: 1px;
  background: var(--parchment);
  margin-block: var(--space-8);
}

.divider-copper {
  background: linear-gradient(to right, transparent, var(--copper), transparent);
  height: 1px;
}

.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--parchment);
}

.ornament-label {
  font-family: var(--font-sc);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--charcoal-muted);
}

/* ---------------------------------------------------------------
   SECTION HEADERS
--------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  font-family: var(--font-logotype);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: var(--space-5);
}

.section-header p {
  font-size: var(--text-md);
  color: var(--charcoal-soft);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.85;
}

/* ---------------------------------------------------------------
   CARDS
--------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--cream);
  overflow: hidden;
  transition: all var(--transition-luxury);
}

.card:hover {
  transform: translateY(-2px);
}

.card-img {
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-luxury);
}

.card:hover .card-img img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-6) var(--space-6);
}

/* ---------------------------------------------------------------
   BADGE / TAG
--------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 0;
}

.badge-sale     { background: var(--copper); color: var(--white); }
.badge-new      { background: var(--charcoal); color: var(--white); }
.badge-featured { background: var(--gold); color: var(--charcoal); }
.badge-oos      { background: var(--parchment); color: var(--charcoal-soft); }

/* ---------------------------------------------------------------
   FORMS
--------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--parchment);
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition-base);
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(154,96,81,0.08);
}

.form-control::placeholder {
  color: var(--charcoal-muted);
  font-weight: 300;
}

.form-control.is-error {
  border-color: var(--error);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B65' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-1);
  display: block;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--charcoal-muted);
  margin-top: var(--space-1);
  display: block;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--copper);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--charcoal-soft);
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   PRICES
--------------------------------------------------------------- */
.price-regular {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--charcoal);
}

.price-sale {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--copper);
}

.price-original {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--charcoal-muted);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

/* ---------------------------------------------------------------
   QUANTITY CONTROL
--------------------------------------------------------------- */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--parchment);
  background: var(--white);
}

.qty-control button {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--charcoal-mid);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-control button:hover {
  background: var(--cream);
  color: var(--charcoal);
}

.qty-control input {
  width: 3rem;
  height: 2.5rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--parchment);
  border-right: 1px solid var(--parchment);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ---------------------------------------------------------------
   BREADCRUMB
--------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--charcoal-muted);
  text-transform: uppercase;
  padding-block: var(--space-5);
}

.breadcrumb a { color: var(--charcoal-muted); }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb .sep { color: var(--parchment-dark); }
.breadcrumb .current { color: var(--charcoal-soft); }

/* ---------------------------------------------------------------
   ALERTS & FLASH MESSAGES
--------------------------------------------------------------- */
.alert {
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.alert-success { background: #F5F1EA; border-color: var(--success); color: var(--success); }
.alert-error   { background: #F5F1EA; border-color: var(--error); color: var(--error); }
.alert-info    { background: #F5F1EA; border-color: #9A6051; color: #9A6051; }
.alert-warning { background: #F5F1EA; border-color: var(--copper); color: var(--copper-dark); }

/* ---------------------------------------------------------------
   TOAST NOTIFICATIONS
--------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--charcoal);
  color: var(--ivory);
  padding: var(--space-4) var(--space-6);
  min-width: 280px;
  max-width: 380px;
  font-size: var(--text-sm);
  font-weight: 300;
  box-shadow: var(--shadow-xl);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-success { border-left: 3px solid #9A6051; }
.toast-error   { border-left: 3px solid var(--error); }
.toast-cart    { border-left: 3px solid var(--copper); }
.toast-wish    { border-left: 3px solid var(--gold); }

/* ---------------------------------------------------------------
   IMAGE REVEAL ANIMATIONS
--------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------------------------------------------------------------
   LOADING / SKELETON
--------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--cream) 25%,
    var(--parchment) 50%,
    var(--cream) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ---------------------------------------------------------------
   STARS / RATINGS
--------------------------------------------------------------- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 1rem;
}

.star-empty { color: var(--parchment); }
.star-half  { color: var(--gold-light); }

/* ---------------------------------------------------------------
   WISHLIST BUTTON
--------------------------------------------------------------- */
.wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white);
  border: 1px solid var(--parchment);
  transition: all var(--transition-luxury);
  position: relative;
  cursor: pointer;
}

.wishlist-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--charcoal-soft);
  fill: none;
  transition: all var(--transition-base);
}

.wishlist-btn.active svg,
.wishlist-btn:hover svg {
  stroke: #7A0F1C;
  fill: #7A0F1C;
}

.wishlist-btn:hover {
  border-color: #7A0F1C;
}

/* ---------------------------------------------------------------
   MINI CART DRAWER
--------------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,18,18,0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--transition-luxury);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 60px rgba(18,18,18,0.15);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-8);
  border-bottom: 1px solid var(--cream);
}

.cart-drawer-header h3 {
  font-family: var(--font-sc);
  font-size: var(--text-base);
  letter-spacing: 0.15em;
}

.cart-drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--parchment);
  color: var(--charcoal-soft);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.cart-drawer-close:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6) var(--space-8);
}

.cart-drawer-footer {
  padding: var(--space-6) var(--space-8) var(--space-8);
  border-top: 1px solid var(--cream);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-12);
}

.cart-empty-state p {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--charcoal-muted);
}

/* ---------------------------------------------------------------
   PAGE HERO BANNER (inner pages)
--------------------------------------------------------------- */
.page-hero {
  padding-block: var(--space-24) var(--space-16);
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(154,96,81,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .eyebrow {
  color: var(--copper);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: var(--space-4);
  display: block;
}

.page-hero h1 {
  color: var(--ivory);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-5);
}

.page-hero p {
  color: rgba(245,241,234,0.65);
  font-size: var(--text-md);
  max-width: 55ch;
  margin-inline: auto;
}

/* ---------------------------------------------------------------
   UTILITY CLASSES
--------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-copper { color: var(--copper); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--charcoal-muted); }
.text-ivory  { color: var(--ivory); }
.text-white  { color: var(--white); }

.bg-ivory    { background-color: var(--ivory); }
.bg-cream    { background-color: var(--cream); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-white    { background-color: var(--white); }
.bg-copper   { background-color: var(--copper); }

.italic { font-style: italic; }
.serif  { font-family: var(--font-serif); }
.sans   { font-family: var(--font-sans); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden  { display: none; }
.visible { visibility: visible; }

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }
.mb-8    { margin-bottom: var(--space-8); }

.rounded-none { border-radius: 0; }

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--parchment); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   RESPONSIVE — Full Mobile-First System
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container { padding-inline: var(--space-6); }
  .section { padding-block: var(--space-20); }
}

@media (max-width: 768px) {
  :root { --text-base: 0.9375rem; }
  .container { padding-inline: var(--space-5); }
  .section { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-20); }
  .section--xl { padding-block: var(--space-24); }
  .toast-container { bottom: var(--space-5); right: var(--space-5); left: var(--space-5); }
  .toast { min-width: auto; max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-12); }
}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNT PORTAL — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Portal section top padding adjustment for mobile header */
  .portal-section {
    padding-top: 100px !important;
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
  }

  /* Hero Banner — stack vertically on mobile */
  .portal-section > .container > div:first-child {
    padding: var(--space-6) var(--space-5) !important;
  }

  /* Inner flex → column on mobile */
  .portal-section > .container > div:first-child > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Avatar + name row stays horizontal */
  .portal-section > .container > div:first-child > div:first-child > div:first-child {
    flex-direction: row !important;
    align-items: center !important;
    gap: var(--space-4) !important;
  }

  /* Avatar size reduce */
  .portal-section > .container > div:first-child > div:first-child > div:first-child > div:first-child {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.4rem !important;
    flex-shrink: 0;
  }

  /* Welcome heading */
  .portal-section h1 {
    font-size: 1.6rem !important;
    margin: 2px 0 0 !important;
  }

  /* Button row in hero */
  .portal-section > .container > div:first-child > div:first-child > div:last-child {
    width: 100% !important;
    flex-direction: row !important;
    gap: var(--space-3) !important;
    margin-top: var(--space-4) !important;
  }

  .portal-section > .container > div:first-child > div:first-child > div:last-child a {
    flex: 1 !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    padding: 0.55rem 0.5rem !important;
  }

  /* Metrics tiles grid → 3 cols squeezed → horizontal scroll or 1 col */
  .portal-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SHOP PAGE — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .shop-header {
    padding-top: 100px !important;
    text-align: center;
  }

  /* Shop filter bar */
  .shop-filter-bar {
    flex-direction: column !important;
    gap: var(--space-3) !important;
    padding: var(--space-4) !important;
  }

  .shop-filter-bar select,
  .shop-filter-bar input {
    width: 100% !important;
  }

  /* Product grid - 2 col on tablet */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
  }
}

@media (max-width: 480px) {
  /* Product grid - 2 col on small mobile too (small cards) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }

  .product-card-title {
    font-size: 0.85rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .product-detail-image {
    max-height: 380px !important;
  }

  .product-detail-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }

  .product-tabs-nav {
    flex-wrap: wrap !important;
    gap: var(--space-2) !important;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CART PAGE — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  .cart-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--space-3) !important;
  }

  .cart-item-image {
    width: 80px !important;
    height: 100px !important;
  }

  .cart-summary {
    position: static !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .checkout-order-summary {
    order: -1 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BLOG / JOURNAL — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .blog-hero-title {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   WISHLIST PAGE — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
  }
}

@media (max-width: 420px) {
  .wishlist-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NEW ARRIVALS / SALE / LUXE PAGES — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-hero {
    padding: 110px var(--space-5) var(--space-12) !important;
    text-align: center !important;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem) !important;
  }

  .arrival-grid,
  .sale-grid,
  .luxe-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
  }
}

@media (max-width: 480px) {
  .arrival-grid,
  .sale-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }

  .luxe-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ORDER CONFIRMATION / TRACK ORDER — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .order-confirmation-wrapper {
    padding: 100px var(--space-4) var(--space-12) !important;
  }

  .order-meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-4) !important;
  }

  .order-items-list {
    gap: var(--space-4) !important;
  }

  .order-item-card {
    flex-direction: column !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   OUR STORY / LEGACY / BOTANICALS — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .story-two-col {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .story-image-col {
    order: -1 !important;
    max-height: 320px !important;
    overflow: hidden !important;
  }

  .story-image-col img {
    height: 320px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .legacy-timeline {
    padding-left: var(--space-5) !important;
  }

  .botanicals-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNT ORDER CARDS — Mobile Fix (inline styles override)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Order card — stack vertically */
  [style*="justify-content:space-between"][style*="align-items:center"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Order total / buttons — full width */
  [style*="text-align:right"] {
    text-align: left !important;
    width: 100% !important;
  }

  [style*="text-align:right"] .btn {
    width: 100% !important;
    margin-top: var(--space-2) !important;
  }

  /* Account settings grid → 1 col */
  [style*="grid-template-columns:repeat(auto-fit,minmax(320px"] {
    grid-template-columns: 1fr !important;
  }

  /* Wishlist card grid → 2 col */
  [style*="grid-template-columns:repeat(auto-fill,minmax(200px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Metrics tiles → horizontal 3-across */
  [style*="grid-template-columns:repeat(auto-fit,minmax(220px"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-3) !important;
  }
}

@media (max-width: 420px) {
  /* Metrics tiles → 1 row, 3 mini tiles */
  [style*="grid-template-columns:repeat(auto-fit,minmax(220px"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-2) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register / Forgot) — Mobile Responsive
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .auth-minimal-header {
    height: 60px !important;
    padding-inline: var(--space-4) !important;
  }

  .auth-logo-wordmark {
    font-size: 1.2rem !important;
  }

  .auth-split-layout {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .auth-brand-panel {
    display: none !important;
  }

  .auth-form-panel {
    padding: var(--space-8) var(--space-5) !important;
    min-height: calc(100vh - 60px) !important;
  }

  .auth-form-card {
    padding: var(--space-6) !important;
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAV / HEADER — Mobile Search Bar
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-search-input {
    width: 100px !important;
    font-size: 0.75rem !important;
  }

  .nav-search-form {
    gap: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════ */
@media print {
  header, footer, .cart-drawer, .toast-container { display: none; }
  body { background: white; color: black; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

