/* ============================================
   NOVEIVA — Premium Clothing Store
   Global Stylesheet
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --cream:        #FAFAF7;
  --cream-dark:   #F0EBE3;
  --gold:         #C9A96E;
  --gold-dark:    #A8813F;
  --gold-light:   #E8D5B0;
  --charcoal:     #1A1A1A;
  --charcoal-mid: #3D3D3D;
  --gray:         #7A7A7A;
  --gray-light:   #D4D4D4;
  --white:        #FFFFFF;
  --red:          #C0392B;
  --green:        #27AE60;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', 'Segoe UI', sans-serif;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;

  --transition:   all 0.3s ease;
  --transition-fast: all 0.15s ease;

  --max-width:    1280px;
  --header-h:     72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }
input, textarea, select {
  font-family: var(--font-sans);
  outline: none;
  border: none;
}

/* ---- Utility Classes ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.text-serif { font-family: var(--font-serif); }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 0.95rem; color: var(--charcoal-mid); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.section-subtitle {
  font-size: 0.875rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 12px;
}
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 32px;
}
.section-divider.left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: transparent;
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--gold); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-lg { padding: 18px 48px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Announcement Bar ---- */
.announcement-bar {
  background: var(--charcoal);
  color: var(--gold-light);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  position: relative;
}
.announcement-bar span { color: var(--gold); font-weight: 600; }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--charcoal);
  text-transform: uppercase;
}
.logo span { color: var(--gold); }
.logo img { display:block; width:52px; height:52px; max-height:54px; object-fit:contain; object-position:center; flex:0 0 auto; }
.logo .logo-word { color:var(--charcoal); font-family:'Literata', Georgia, serif; font-size:1.28rem; font-weight:500; letter-spacing:.105em; line-height:1; white-space:nowrap; }

/* Desktop Nav */
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition-fast);
}
.nav-link:hover { color: var(--charcoal); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--charcoal); }
.nav-link.sale { color: var(--red); }
.nav-link.sale::after { background: var(--red); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--charcoal-mid);
  transition: var(--transition-fast);
  position: relative;
}
.header-icon-btn:hover { color: var(--gold); background: var(--cream-dark); }
.header-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }
.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Nav Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  padding: 12px 40px 24px;
  overflow: hidden;
}
.nav-mobile.open { display: flex; animation: slideDown 0.3s ease; }
.nav-mobile .nav-link {
  font-size: 1.6rem;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  text-transform: none;
  font-weight: 400;
}
.nav-mobile .nav-link::after { display: none; }
.nav-mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar */
.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,250,247,0.97);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.search-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.search-form {
  width: 100%;
  max-width: 600px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  color: var(--charcoal);
}
.search-input::placeholder { color: var(--gray-light); }
.search-close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gray);
  cursor: pointer;
}

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: var(--cream-dark);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--cream); margin-bottom: 16px; display: inline-flex; }
.footer-brand .logo .logo-word { color:var(--cream); }
.footer-brand p { font-size: 0.875rem; color: rgba(250,250,247,0.6); line-height: 1.8; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,247,0.7);
  transition: var(--transition-fast);
  font-size: 0.85rem;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(250,250,247,0.6);
  transition: var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.footer-newsletter input::placeholder { color: rgba(250,250,247,0.35); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250,250,247,0.35);
}
.footer-bottom a { color: var(--gold); }

/* ---- Product Card ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-img-wrap .product-hover-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.product-card:hover .product-img-wrap .product-hover-img { opacity: 1; }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 2;
}
.badge-new { background: var(--charcoal); color: var(--white); }
.badge-sale { background: var(--red); color: var(--white); }

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}
.product-wishlist:hover { background: var(--gold); color: var(--white); }
.product-wishlist svg { width: 15px; height: 15px; stroke-width: 1.5; }
.product-wishlist.active svg { fill: var(--red); stroke: var(--red); }

.product-quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.product-card:hover .product-quick-add { transform: translateY(0); }
.product-quick-add:hover { background: var(--gold); }

.product-info { padding: 16px; }
.product-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-cat {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 0.95rem; font-weight: 600; color: var(--charcoal); }
.price-original {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
}
.price-sale { color: var(--red); }
.product-stars { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.star { color: var(--gold); font-size: 0.75rem; }
.star-count { font-size: 0.75rem; color: var(--gray); margin-left: 2px; }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--cream-dark) 45%, var(--gold-light) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 24px;
  color: var(--charcoal);
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-dark);
}
.hero p {
  font-size: 1rem;
  color: var(--charcoal-mid);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 440px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
}
.hero-image img,
.hero-image video { display:block; width:100%; height:100%; object-fit:cover; }
.hero-decor {
  position: absolute;
  top: 60px; right: calc(50% - 20px);
  width: 1px;
  height: 80px;
  background: var(--gold);
  opacity: 0.4;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--gray);
}

/* ---- Category Cards ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}
.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.1) 60%);
  transition: var(--transition);
}
.cat-card:hover .cat-card-overlay { background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, rgba(26,26,26,0.2) 60%); }
.cat-card-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: var(--white);
}
.cat-card-info h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--white);
}
.cat-card-info span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---- Banner ---- */
.banner {
  background: var(--charcoal);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A96E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.banner-inner { position: relative; z-index: 1; text-align: center; }
.banner h2 { color: var(--cream); margin-bottom: 16px; font-weight: 300; }
.banner h2 em { color: var(--gold); font-style: italic; }
.banner p { color: rgba(250,250,247,0.65); margin-bottom: 36px; font-size: 1rem; }

/* ---- Toast Notification ---- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--charcoal);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  border-left: 3px solid var(--gold);
  animation: slideInRight 0.3s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast-icon { font-size: 1rem; }

/* ---- Cart Drawer ---- */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1200;
}
.cart-overlay.open { display: block; animation: fadeIn 0.2s ease; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: var(--cream);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-header h3 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; }
.cart-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--charcoal-mid);
  transition: var(--transition-fast);
  font-size: 1.2rem;
}
.cart-close:hover { background: var(--cream-dark); color: var(--charcoal); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray);
  text-align: center;
  gap: 16px;
}
.cart-empty svg { width: 48px; height: 48px; stroke-width: 1; opacity: 0.4; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-item-img {
  width: 72px; height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.875rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.78rem; color: var(--gray); margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--cream-dark); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  color: var(--charcoal-mid);
  font-size: 1rem;
  transition: var(--transition-fast);
}
.qty-btn:hover { background: var(--cream-dark); color: var(--charcoal); }
.qty-val {
  width: 32px; height: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  background: none;
  color: var(--charcoal);
}
.cart-item-price { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.cart-item-remove {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition-fast);
  background: none;
  border: none;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--cream-dark); }
.coupon-form { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.coupon-input:focus { border-color: var(--gold); }
.cart-totals { margin-bottom: 16px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 8px; color: var(--charcoal-mid); }
.cart-total-row.total { font-size: 1rem; font-weight: 600; color: var(--charcoal); border-top: 1px solid var(--cream-dark); padding-top: 12px; margin-top: 4px; }
.cart-total-row .discount { color: var(--green); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--charcoal);
  transition: var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-light); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 6px; }

/* ---- Page Banner ---- */
.page-banner {
  background: var(--cream-dark);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--gold-light);
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gray-light); }

/* ---- Filter Sidebar ---- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filter-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.filter-section { padding: 20px 0; border-bottom: 1px solid var(--cream-dark); }
.filter-section:last-child { border-bottom: none; }
.filter-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.filter-title svg { width: 14px; height: 14px; transition: var(--transition-fast); }
.filter-title.collapsed svg { transform: rotate(-90deg); }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--charcoal-mid);
  cursor: pointer;
}
.filter-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}
.filter-check:hover { color: var(--charcoal); }
.filter-color-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--cream-dark);
  transition: var(--transition-fast);
  cursor: pointer;
}
.filter-color-dot.active, .filter-color-dot:hover { border-color: var(--gold); }
.price-range-inputs { display: flex; gap: 10px; align-items: center; }
.price-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--charcoal);
  text-align: center;
}
.price-input:focus { border-color: var(--gold); }

/* Sort Bar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--cream-dark);
}
.shop-result-count { font-size: 0.875rem; color: var(--gray); }
.shop-sort { display: flex; align-items: center; gap: 12px; }
.sort-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); }
.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A7A7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-select:focus { border-color: var(--gold); outline: none; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { padding: 7px; border-radius: var(--radius-sm); color: var(--gray); transition: var(--transition-fast); }
.view-btn.active, .view-btn:hover { background: var(--cream-dark); color: var(--charcoal); }
.view-btn svg { width: 16px; height: 16px; }

/* ---- Size Selector ---- */
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.size-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }
.size-btn.active { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.size-btn.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
}
.size-btn.out-of-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--gray-light);
  transform: rotate(-15deg);
}

/* Color Selector */
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  outline-offset: 3px;
}
.color-btn.active, .color-btn:hover { outline: 2px solid var(--gold); }

/* ---- Tabs ---- */
.tabs { border-bottom: 1px solid var(--cream-dark); display: flex; gap: 0; margin-bottom: 32px; }
.tab-btn {
  padding: 14px 24px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.tab-btn.active { color: var(--charcoal); border-color: var(--gold); }
.tab-btn:hover { color: var(--charcoal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ---- Stars ---- */
.stars-input { display: flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { display: none; }
.stars-input label {
  font-size: 1.5rem;
  color: var(--gray-light);
  cursor: pointer;
  transition: var(--transition-fast);
}
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: var(--gold); }

/* ---- Status Badges ---- */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-confirmed  { background: #DBEAFE; color: #1E40AF; }
.status-shipped    { background: #E0E7FF; color: #3730A3; }
.status-delivered  { background: #D1FAE5; color: #065F46; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }

/* ---- Loader ---- */
.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card { height: 400px; border-radius: var(--radius-md); }

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.fade-in { animation: fadeIn 0.5s ease both; }

/* Scroll reveal */
.reveal {
  /* Content stays readable before the optional reveal observer runs. */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 2fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 220px 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .logo { margin-bottom: 8px; }
  .footer-brand p { margin-top: 8px; line-height: 1.55; }
  .footer-social { margin-top: 14px; }
  .footer-col h5 { margin-bottom: 11px; }
  .footer-col ul li { margin-bottom: 7px; }
  .footer-col ul li a { font-size: .82rem; line-height: 1.35; }
  .footer-newsletter-col { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 0; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .filter-sidebar.mobile-open { display: block; position: fixed; inset: 0; z-index: 500; background: var(--cream); padding: 24px; overflow-y: auto; }
  .hero { min-height:0; height:auto; padding:20px 0 30px; display:flex; flex-direction:column; background: linear-gradient(160deg, var(--cream-dark) 50%, var(--gold-light) 100%); }
  .hero .container { min-height:0; padding-top:20px; padding-bottom:20px; align-items:center; }
  .hero-content { max-width: 100%; padding-right:0; }
  .hero-decor { display:none; }
  .hero h1 em { color:var(--gold-dark); }
  .hero-eyebrow { margin-bottom:12px; }
  .hero h1 { margin-bottom:14px; }
  .hero p { margin-bottom:22px; }
  .hero-cta { gap:10px; }
  .hero-scroll { bottom:10px; }
  .hero-image { position:relative; inset:auto; width:calc(100% - 32px); height:auto; aspect-ratio:16 / 10; margin:8px auto 0; overflow:hidden; border-radius:var(--radius-lg); box-shadow:0 18px 44px rgba(67,43,31,.18); }
  .hero-image video { object-position:center; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero h1 { font-size: 2.2rem; }
  .btn-lg { padding: 14px 28px; }
}

/* NOVEIVA brand assets and mobile-first refinements */
.catalog-message { grid-column: 1 / -1; width: 100%; padding: 24px; text-align: center; color: var(--charcoal-mid); }
.product-image-placeholder { display:grid; place-items:center; width:100%; height:100%; color:var(--charcoal-mid); background:var(--cream-dark); letter-spacing:.18em; }
.client-highlights-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; align-items:center; }
.client-logo-card { min-height:108px; padding:20px; display:grid; place-items:center; border:1px solid var(--cream-dark); border-radius:var(--radius-md); background:var(--white); }
.client-logo-card img { display:block; width:100%; height:68px; object-fit:contain; }
.product-card { min-width:0; }
.product-img-wrap { overflow:hidden; }
.product-img-wrap > img:first-child { width:100%; height:100%; object-fit:cover; }
@media (max-width: 768px) {
  html { -webkit-text-size-adjust:100%; }
  body { overflow-x:hidden; }
  .nav-mobile { top:var(--header-h); height:calc(100vh - var(--header-h)); height:calc(100dvh - var(--header-h)); box-sizing:border-box; padding:12px 24px 18px; overflow:hidden; }
  .nav-mobile .nav-link { font-size:clamp(1.1rem,5vw,1.4rem); line-height:1.15; padding:clamp(5px,1.1svh,9px) 0; }
  .nav-mobile > div { margin-top:clamp(14px,2svh,22px)!important; }
  .nav-mobile .mobile-auth-actions { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
  /* Keep mobile copy readable even if the scroll-reveal observer is delayed. */
  .reveal { opacity:1; transform:none; }
  .logo { gap:8px; }
  .logo img { width:40px; height:40px; max-height:42px; }
  .logo .logo-word { font-size:1.05rem; letter-spacing:.09em; }
  .container { width:100%; }
  .products-grid { gap:12px; }
  .product-card { min-width:0; }
  .product-name { font-size:.84rem; line-height:1.35; overflow-wrap:anywhere; }
  .product-info { min-width:0; }
  .product-quick-add { min-height:40px; }
  .btn, button, input, select, textarea { touch-action: manipulation; }
  .cart-table-row { grid-template-columns:minmax(0,1fr) auto; gap:12px; }
  .cart-price-cell, .cart-table-row > .qty-control, .cart-total-cell { justify-self:end; }
  .checkout-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .checkout-section-body { padding:16px; }
  .form-row { grid-template-columns:minmax(0,1fr); gap:0; }
  .form-input, .form-select { width:100%; min-height:48px; font-size:16px; }
  .co-summary { position:static; }
  .place-order-btn { width:100%; min-height:54px; }
  .auth-card, .account-card { width:100%; max-width:100%; }
  .client-highlights-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .client-logo-card { min-height:82px; padding:12px; }
  .client-logo-card img { height:52px; }
}
@media (max-width: 390px) {
  .container { padding-left:12px; padding-right:12px; }
  .products-grid { gap:9px; }
  .product-img-wrap { aspect-ratio: .72; }
  .product-price { flex-wrap:wrap; gap:5px; }
  .logo img { width:34px; height:34px; }
  .logo .logo-word { font-size:.93rem; letter-spacing:.075em; }
}
/* Keep sign-in and registration comfortable on phones. */
@media (max-width: 600px) {
  .auth-form-panel { min-height:100svh; padding:28px 20px; justify-content:flex-start; }
  .auth-form-inner { max-width:440px; margin:auto 0; }
  .auth-header { margin-bottom:22px; }
  .auth-header .back-link, .back-link { margin-bottom:18px; }
  .auth-title { font-size:1.8rem; }
  .auth-trust { gap:10px 16px; margin-top:22px; }
  .terms-check { align-items:flex-start; }
  .forgot-box { padding:24px 20px; max-height:calc(100svh - 32px); overflow:auto; }
}

/* Saved delivery addresses in checkout */
.saved-address-picker { margin:0 0 20px; padding:16px; border:1px solid var(--cream-dark); border-radius:var(--radius-md); background:#fffdfa; }
.saved-address-picker h4 { margin:0 0 10px; font-size:.92rem; }
#savedAddressOptions { display:grid; gap:8px; }
.saved-address-option { display:grid; gap:4px; width:100%; padding:12px 14px; text-align:left; color:var(--charcoal); background:#fff; border:1px solid var(--cream-dark); border-radius:10px; cursor:pointer; transition:border-color .18s, background .18s, box-shadow .18s; }
.saved-address-option span { color:var(--charcoal-mid); font-size:.82rem; line-height:1.45; }
.saved-address-option:hover,.saved-address-option.selected { border-color:var(--gold-dark); background:#fffaf0; box-shadow:0 0 0 2px rgba(201,169,110,.16); }
.coming-soon-label { display:inline-flex; align-items:center; gap:7px; font-size:.72rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; }
.coming-soon-label::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px rgba(201,169,110,.16); }
.coming-soon-panel { grid-column:1 / -1; width:min(100% - 32px,760px); margin:24px auto; padding:clamp(32px,6vw,64px) 24px; text-align:center; color:var(--charcoal); border:1px solid var(--cream-dark); border-radius:18px; background:radial-gradient(ellipse at top,rgba(201,169,110,.13),transparent 66%),var(--cream); box-shadow:0 18px 48px rgba(55,37,28,.08); }
.coming-soon-eyebrow { display:block; margin-bottom:12px; color:var(--gold-dark); font-size:.68rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; }
.coming-soon-panel h3 { margin:0 0 10px; font-family:var(--font-heading,Georgia,serif); font-size:clamp(1.6rem,4vw,2.45rem); font-weight:500; }
.coming-soon-panel p { max-width:440px; margin:0 auto; color:var(--charcoal-mid); line-height:1.7; }
.shop-coming-soon { min-height:300px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.shop-coming-soon .btn { margin-top:24px; }
