/* =============================================================
   IVORIC V2 — DESIGN SYSTEM
   Loaded AFTER style.css so it overrides where needed.
   Touch this file to evolve the brand; leave style.css alone.
   ============================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Color */
  --iv-ink: #0F0F0F;          /* Primary text, dark surfaces */
  --iv-charcoal: #2E2E2E;     /* Secondary text */
  --iv-mute: #6B6B6B;         /* Muted text */
  --iv-line: #E8E4DC;         /* Hairlines on light */
  --iv-line-dark: #2A2A2A;    /* Hairlines on dark */
  --iv-cream: #F5F0E8;        /* Brand cream surface */
  --iv-cream-soft: #FAF7F1;   /* Softer cream */
  --iv-white: #FFFFFF;
  --iv-olive: #5C6B3C;        /* Brand accent */
  --iv-tan: #C68B59;          /* Brand accent 2 */
  --iv-success: #2D6A4F;
  --iv-error: #C0392B;

  /* Type */
  --iv-font-display: 'Bebas Neue', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --iv-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --iv-s-1: 4px;
  --iv-s-2: 8px;
  --iv-s-3: 12px;
  --iv-s-4: 16px;
  --iv-s-5: 24px;
  --iv-s-6: 32px;
  --iv-s-7: 48px;
  --iv-s-8: 64px;
  --iv-s-9: 96px;

  /* Radii */
  --iv-r-sm: 4px;
  --iv-r-md: 8px;
  --iv-r-lg: 16px;
  --iv-r-pill: 999px;

  /* Shadow */
  --iv-shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.06);
  --iv-shadow-2: 0 8px 32px rgba(0,0,0,.10);

  /* Transitions */
  --iv-ease: cubic-bezier(.22,.61,.36,1);
  --iv-t-fast: 160ms;
  --iv-t: 240ms;
}

/* ---------- 2. BASE OVERRIDES ---------- */
body {
  font-family: var(--iv-font-body) !important;
  color: var(--iv-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .iv-display {
  font-family: var(--iv-font-display) !important;
  letter-spacing: .02em;
}

.iv-eyebrow {
  font-family: var(--iv-font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--iv-mute);
}

/* ---------- 3. ANNOUNCEMENT BAR ---------- */
.iv-announce {
  background: var(--iv-ink);
  color: var(--iv-cream);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 10px 0;
  overflow: hidden;
}
.iv-announce__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: iv-marquee 30s linear infinite;
  will-change: transform;
}
.iv-announce span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.iv-announce .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--iv-tan);
}
@keyframes iv-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 4. STICKY HEADER (enhanced from existing) ---------- */
.header-section,
header.header-section {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: var(--iv-white);
  border-bottom: 1px solid var(--iv-line);
  transition: box-shadow var(--iv-t) var(--iv-ease);
}
.header-section.iv-scrolled {
  box-shadow: var(--iv-shadow-1);
}

/* ---------- 5. BUTTONS ---------- */
.iv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--iv-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--iv-t) var(--iv-ease);
  line-height: 1;
}
.iv-btn--primary {
  background: var(--iv-ink);
  color: var(--iv-cream);
  border-color: var(--iv-ink);
}
.iv-btn--primary:hover {
  background: var(--iv-olive);
  border-color: var(--iv-olive);
  color: var(--iv-cream);
  transform: translateY(-1px);
}
.iv-btn--ghost {
  background: transparent;
  color: var(--iv-ink);
  border-color: var(--iv-ink);
}
.iv-btn--ghost:hover {
  background: var(--iv-ink);
  color: var(--iv-cream);
}
.iv-btn--cream {
  background: var(--iv-cream);
  color: var(--iv-ink);
  border-color: var(--iv-cream);
}
.iv-btn--cream:hover {
  background: var(--iv-white);
  border-color: var(--iv-white);
}
.iv-btn--block { width: 100%; }
.iv-btn--lg { padding: 18px 36px; font-size: 14px; }

/* ---------- 6. HERO ---------- */
.iv-hero {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  background: var(--iv-ink);
  color: var(--iv-cream);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.iv-hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--iv-s-7) var(--iv-s-5);
  max-width: 720px;
}
.iv-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: var(--iv-s-3);
}
.iv-hero__title {
  font-family: var(--iv-font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: .95;
  margin: 0 0 var(--iv-s-4);
  letter-spacing: .01em;
}
.iv-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 0 var(--iv-s-5);
  opacity: .85;
}
.iv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: .35;
}

/* ---------- 7. TRUST STRIP ---------- */
.iv-trust {
  background: var(--iv-cream);
  padding: var(--iv-s-6) 0;
  border-bottom: 1px solid var(--iv-line);
}
.iv-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--iv-s-4);
  text-align: center;
}
.iv-trust__item {
  padding: var(--iv-s-3);
}
.iv-trust__icon {
  font-size: 22px;
  color: var(--iv-olive);
  margin-bottom: var(--iv-s-2);
}
.iv-trust__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--iv-ink);
  margin: 0 0 4px;
  letter-spacing: .5px;
}
.iv-trust__sub {
  font-size: 11px;
  color: var(--iv-mute);
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .iv-trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--iv-s-5); }
}

/* ---------- 8. SECTION HEADERS ---------- */
.iv-section {
  padding: var(--iv-s-8) 0;
}
.iv-section--tight { padding: var(--iv-s-7) 0; }
.iv-section__head {
  text-align: center;
  margin-bottom: var(--iv-s-7);
}
.iv-section__head--left {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--iv-s-3);
}
.iv-section__title {
  font-family: var(--iv-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 4px 0 0;
  letter-spacing: .02em;
  line-height: 1;
}
.iv-section__sub {
  font-size: 14px;
  color: var(--iv-mute);
  margin: 8px 0 0;
}

/* ---------- 9. PRODUCT CARD (refined) ---------- */
.product-card {
  background: var(--iv-white);
  transition: transform var(--iv-t) var(--iv-ease);
}
.product-card-img {
  position: relative;
  background: var(--iv-cream-soft);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--iv-ease);
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}
.product-card-content {
  padding: var(--iv-s-4) var(--iv-s-2) var(--iv-s-2);
  text-align: left;
}
.product-card-content h6 {
  font-family: var(--iv-font-body) !important;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--iv-ink);
  letter-spacing: .2px;
}
.product-card-content h6 a {
  color: inherit;
  text-decoration: none;
}
.product-card-content .price {
  font-family: var(--iv-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--iv-ink);
  margin: 0;
  letter-spacing: .3px;
}

/* Overlay CTA */
.product-card-img .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--iv-s-3);
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45));
  opacity: 0;
  transition: opacity var(--iv-t) var(--iv-ease);
}
.product-card:hover .product-card-img .overlay { opacity: 1; }
@media (max-width: 768px) {
  .product-card-img .overlay { opacity: 1; background: none; padding: 8px; }
}
.product-card-img .add-cart-btn {
  background: var(--iv-white);
  color: var(--iv-ink);
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--iv-t) var(--iv-ease);
  width: auto;
}
.product-card-img .add-cart-btn:hover {
  background: var(--iv-ink);
  color: var(--iv-cream);
}
@media (max-width: 768px) {
  .product-card-img .add-cart-btn { font-size: 10px; padding: 8px 14px; }
}

/* ---------- 10. BRAND STORY STRIP ---------- */
.iv-story {
  background: var(--iv-ink);
  color: var(--iv-cream);
  padding: var(--iv-s-9) var(--iv-s-5);
  text-align: center;
}
.iv-story__quote {
  font-family: var(--iv-font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto var(--iv-s-4);
  letter-spacing: .01em;
  color: var(--iv-cream);
}
.iv-story__byline {
  font-family: var(--iv-font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #D4AF37;
  opacity: 1;
  margin-top: 6px;
}

/* ---------- 11. NEWSLETTER ---------- */
.iv-news {
  background: var(--iv-cream);
  padding: var(--iv-s-8) var(--iv-s-5);
  text-align: center;
}
.iv-news__title {
  font-family: var(--iv-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 var(--iv-s-3);
  color: var(--iv-ink);
}
.iv-news__sub {
  font-size: 14px;
  color: var(--iv-charcoal);
  margin: 0 0 var(--iv-s-5);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.iv-news__form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  border: 1.5px solid var(--iv-ink);
}
.iv-news__form input {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  font-size: 14px;
  background: transparent;
  font-family: var(--iv-font-body);
  outline: none;
}
.iv-news__form button {
  border: 0;
  background: var(--iv-ink);
  color: var(--iv-cream);
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--iv-t);
}
.iv-news__form button:hover { background: var(--iv-olive); }

/* ---------- 12. FOOTER (refined) ---------- */
.iv-footer {
  background: var(--iv-ink);
  color: var(--iv-cream);
  padding: var(--iv-s-8) 0 var(--iv-s-5);
}
.iv-footer h5, .iv-footer .iv-foot-title {
  font-family: var(--iv-font-display);
  font-size: 1.1rem;
  color: var(--iv-cream);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--iv-s-4);
}
.iv-footer a {
  color: var(--iv-cream);
  opacity: .9;
  text-decoration: none;
  font-size: 14px;
  transition: opacity var(--iv-t);
}
.iv-footer a:hover { opacity: 1; }
.iv-footer__legal {
  border-top: 1px solid var(--iv-line-dark);
  margin-top: var(--iv-s-6);
  padding-top: var(--iv-s-4);
  text-align: center;
  font-size: 12px;
  opacity: .75;
  letter-spacing: 1px;
}

/* ---------- 13. PRODUCT DETAIL PAGE ---------- */
.iv-pdp-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: var(--iv-s-5) 0;
  padding: var(--iv-s-4);
  background: var(--iv-cream-soft);
  border-radius: var(--iv-r-md);
}
.iv-pdp-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--iv-charcoal);
}
.iv-pdp-trust__icon {
  color: var(--iv-olive);
  font-size: 18px;
  width: 22px;
}
.iv-pdp-trust__label { font-weight: 600; color: var(--iv-ink); }
.iv-pdp-trust__sub { font-size: 11px; color: var(--iv-mute); }

/* Tabbed details */
.iv-pdp-tabs {
  border-top: 1px solid var(--iv-line);
  margin-top: var(--iv-s-5);
}
.iv-pdp-tab {
  border-bottom: 1px solid var(--iv-line);
}
.iv-pdp-tab__header {
  padding: var(--iv-s-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--iv-ink);
  user-select: none;
}
.iv-pdp-tab__header::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  transition: transform var(--iv-t);
}
.iv-pdp-tab.open .iv-pdp-tab__header::after { content: '−'; }
.iv-pdp-tab__body {
  display: none;
  padding: 0 0 var(--iv-s-4);
  font-size: 14px;
  color: var(--iv-charcoal);
  line-height: 1.65;
}
.iv-pdp-tab.open .iv-pdp-tab__body { display: block; }

/* Mobile sticky CTA */
.iv-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--iv-white);
  border-top: 1px solid var(--iv-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  gap: 8px;
}
.iv-sticky-cta__price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--iv-ink);
  padding-right: 8px;
  white-space: nowrap;
}
.iv-sticky-cta__price small {
  font-size: 10px;
  font-weight: 500;
  color: var(--iv-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.iv-sticky-cta__btn {
  flex: 1;
}
@media (max-width: 768px) {
  .iv-sticky-cta { display: flex; }
  /* Avoid the sticky bar covering bottom content */
  body.iv-pdp { padding-bottom: 80px; }
  /* Hide existing mobile bottom nav on PDP to avoid conflict */
  body.iv-pdp .mobile-bottom-wrapper { display: none !important; }
}

/* ---------- 14. CATEGORY PAGE ---------- */
.iv-collection-hero {
  background: var(--iv-cream);
  padding: var(--iv-s-7) 0 var(--iv-s-6);
  text-align: center;
  border-bottom: 1px solid var(--iv-line);
}
.iv-collection-hero h1 {
  font-family: var(--iv-font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 8px 0 12px;
  letter-spacing: .02em;
}
.iv-collection-hero p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--iv-charcoal);
  font-size: 14px;
  line-height: 1.6;
}
.iv-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--iv-s-4) 0;
  border-bottom: 1px solid var(--iv-line);
  margin-bottom: var(--iv-s-5);
  flex-wrap: wrap;
  gap: var(--iv-s-3);
}
.iv-filter-bar__count {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--iv-mute);
  font-weight: 600;
}
.iv-filter-bar__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.iv-filter-bar__sort label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--iv-mute);
  font-weight: 600;
}
.iv-filter-bar__sort select {
  border: 1px solid var(--iv-line);
  background: var(--iv-white);
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  font-family: var(--iv-font-body);
  cursor: pointer;
  border-radius: 0;
  color: var(--iv-ink);
}

/* ---------- 15. FLOATING WHATSAPP ---------- */
.iv-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  z-index: 980;
  transition: transform var(--iv-t);
  text-decoration: none;
}
.iv-wa:hover { transform: scale(1.08); color: #fff; }
.iv-wa i { font-size: 28px; }
@media (max-width: 768px) {
  /* Move WA to left side — Account tab is on the right of the nav */
  .iv-wa { bottom: 76px; right: auto; left: 16px; width: 44px; height: 44px; z-index: 1050; }
  .iv-wa i { font-size: 20px; }
  body.iv-pdp .iv-wa { bottom: 96px; }
}

/* ---------- 16. UTILITIES ---------- */
.iv-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--iv-s-5); }
.iv-hidden-mobile { display: block; }
.iv-hidden-desktop { display: none; }
@media (max-width: 768px) {
  .iv-hidden-mobile { display: none; }
  .iv-hidden-desktop { display: block; }
}

/* Hide hardcoded star ratings from product cards (they're fake) */
.product-card .star,
.product-card .ratting-area,
.product-card .rating {
  display: none !important;
}

/* ---- Footer readability hardening ---- */
.iv-footer p {
  color: var(--iv-cream);
}
.iv-footer .iv-foot-title {
  opacity: 1;
}
.iv-footer img {
  max-width: 140px;
  height: auto;
  filter: brightness(1.05);
}


/* =============================================================
   IVORIC V2 — ROUND 6 ADDITIONS (cart, empty states, sticky checkout)
   ============================================================= */

/* ---- Cart hero ---- */
.iv-cart-hero {
  background: var(--iv-cream);
  padding: clamp(40px, 6vw, 70px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--iv-line);
  text-align: center;
}
.iv-cart-hero__title {
  font-family: var(--iv-font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 8px 0 0;
  letter-spacing: .015em;
}

/* ---- Empty state (cart, search, category) ---- */
.iv-empty-state {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 20px;
  max-width: 520px;
  margin: 0 auto;
}
.iv-empty-state__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--iv-cream);
  color: var(--iv-mute);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}
.iv-empty-state__title {
  font-family: var(--iv-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 10px 0 12px;
  letter-spacing: .02em;
}
.iv-empty-state__sub {
  color: var(--iv-charcoal);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.iv-empty-state__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ---- Cart bottom trust strip ---- */
.iv-cart-trust {
  background: var(--iv-cream-soft);
  padding: 36px 0;
  margin-top: 40px;
}
.iv-cart-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .iv-cart-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.iv-cart-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--iv-charcoal);
  font-weight: 500;
}
.iv-cart-trust__item i {
  color: var(--iv-olive);
  font-size: 18px;
}

/* ---- Mobile sticky checkout bar ---- */
.iv-sticky-checkout {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--iv-white);
  border-top: 1px solid var(--iv-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  gap: 12px;
}
.iv-sticky-checkout__total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--iv-ink);
  padding-right: 6px;
  white-space: nowrap;
}
.iv-sticky-checkout__total small {
  font-size: 10px;
  font-weight: 500;
  color: var(--iv-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .iv-sticky-checkout { display: flex; }
  body.iv-cart { padding-bottom: 90px; }
  body.iv-cart .mobile-bottom-wrapper { display: none !important; }
  body.iv-cart .iv-wa { bottom: 106px; }
}


/* =============================================================
   IVORIC V2 — ROUND 8 (checkout, account, pincode, recently viewed)
   ============================================================= */

/* ---- Pincode delivery checker (PDP) ---- */
.iv-pincode {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--iv-line);
  background: var(--iv-cream-soft);
}
.iv-pincode__title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--iv-mute);
  font-weight: 600;
  margin: 0 0 10px;
}
.iv-pincode__row {
  display: flex;
  gap: 8px;
}
.iv-pincode__input {
  flex: 1;
  border: 1px solid var(--iv-line);
  background: var(--iv-white);
  padding: 11px 14px;
  font-family: var(--iv-font-body);
  font-size: 14px;
  color: var(--iv-ink);
  outline: none;
  letter-spacing: 0.5px;
}
.iv-pincode__input:focus { border-color: var(--iv-ink); }
.iv-pincode__btn {
  background: var(--iv-ink);
  color: var(--iv-cream);
  border: 0;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--iv-t);
}
.iv-pincode__btn:hover { background: var(--iv-olive); }
.iv-pincode__result {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
.iv-pincode__result.is-ok    { color: var(--iv-success); display: block; }
.iv-pincode__result.is-bad   { color: var(--iv-error); display: block; }
.iv-pincode__result i { margin-right: 6px; }

/* ---- Recently Viewed strip ---- */
.iv-recent {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--iv-line);
}
.iv-recent__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .iv-recent__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.iv-recent__card {
  display: block;
  text-decoration: none;
  color: var(--iv-ink);
}
.iv-recent__img {
  aspect-ratio: 4/5;
  background: var(--iv-cream-soft);
  overflow: hidden;
  margin-bottom: 10px;
}
.iv-recent__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--iv-ease);
}
.iv-recent__card:hover .iv-recent__img img { transform: scale(1.04); }
.iv-recent__name {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.iv-recent__price {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

/* ---- Checkout page ---- */
.iv-checkout-hero {
  background: var(--iv-cream);
  padding: clamp(40px, 6vw, 70px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--iv-line);
  text-align: center;
}
.iv-checkout-hero__title {
  font-family: var(--iv-font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 8px 0 0;
  letter-spacing: .015em;
}
.iv-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--iv-mute);
  font-weight: 600;
}
.iv-checkout-steps span { white-space: nowrap; }
.iv-checkout-steps .active { color: var(--iv-ink); }
.iv-checkout-steps .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--iv-mute); display: inline-block; }

/* ---- Account dashboard ---- */
.iv-account-hero {
  background: var(--iv-cream);
  padding: clamp(50px, 7vw, 80px) 0 clamp(36px, 5vw, 48px);
  border-bottom: 1px solid var(--iv-line);
}
.iv-account-hero__greeting {
  font-family: var(--iv-font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 8px 0 4px;
  letter-spacing: .015em;
}
.iv-account-hero__sub {
  font-size: 14px;
  color: var(--iv-charcoal);
  margin: 0;
}

.iv-dashboard {
  padding: clamp(40px, 6vw, 60px) 0;
}
.iv-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 992px) { .iv-dashboard__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .iv-dashboard__grid { grid-template-columns: 1fr; } }

.iv-tile {
  background: var(--iv-cream-soft);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--iv-ink);
  border: 1px solid transparent;
  transition: all var(--iv-t);
  display: block;
}
.iv-tile:hover { border-color: var(--iv-ink); transform: translateY(-2px); color: var(--iv-ink); }
.iv-tile__icon {
  font-size: 22px;
  color: var(--iv-olive);
  margin-bottom: 14px;
}
.iv-tile__num {
  font-family: var(--iv-font-display);
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: .02em;
}
.iv-tile__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--iv-mute);
  font-weight: 600;
  margin: 0;
}

.iv-account-tabs {
  margin-top: 12px;
  border-bottom: 1px solid var(--iv-line);
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.iv-account-tabs a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--iv-mute);
  text-decoration: none;
  padding: 8px 0 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.iv-account-tabs a.active,
.iv-account-tabs a:hover { color: var(--iv-ink); border-bottom-color: var(--iv-ink); }

.iv-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--iv-line);
}
.iv-order-row__id {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 14px;
}
.iv-order-row__meta {
  font-size: 12px;
  color: var(--iv-mute);
  margin: 0;
  letter-spacing: 0.5px;
}
.iv-order-row__amt {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.iv-status-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--iv-r-pill);
  margin-top: 4px;
}
.iv-status-pill--pending    { background: #FFF3CD; color: #856404; }
.iv-status-pill--confirmed  { background: #D1E7DD; color: #0F5132; }
.iv-status-pill--shipped    { background: #CFE2FF; color: #084298; }
.iv-status-pill--delivered  { background: #D1E7DD; color: #0F5132; }
.iv-status-pill--cancelled  { background: #F8D7DA; color: #842029; }

/* ---- Wishlist page ---- */
.iv-wishlist-hero {
  background: var(--iv-cream);
  padding: clamp(40px, 6vw, 70px) 0;
  border-bottom: 1px solid var(--iv-line);
  text-align: center;
}
.iv-wishlist-hero__title {
  font-family: var(--iv-font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 8px 0 0;
  letter-spacing: .015em;
}

/* ---- Mobile nav improvements: hide Club Ivy+ / Refer in primary nav ---- */
@media (max-width: 1199px) {
  .iv-secondary-nav-item { display: none; }
}

/* ---- Loading state ---- */
.iv-loading { pointer-events: none; opacity: 0.6; }
.iv-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: iv-spin 0.6s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes iv-spin { to { transform: rotate(360deg); } }


/* =============================================================
   IVORIC V2 — ROUND 10 (delivery date, stock urgency, newsletter feedback)
   ============================================================= */

/* ---- Smart delivery estimate on PDP ---- */
.iv-delivery-est {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F4F8F4;
  border-left: 3px solid #4A7C59;
  padding: 11px 16px;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--iv-charcoal);
  line-height: 1.4;
}
.iv-delivery-est i { color: #4A7C59; font-size: 15px; flex-shrink: 0; }
.iv-delivery-est strong { color: var(--iv-ink); font-weight: 600; }

/* ---- Low stock urgency badge ---- */
.iv-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF4E6;
  border-left: 3px solid #E08E1B;
  color: #8B5A0F;
  padding: 9px 14px;
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: iv-stock-pulse 2.4s ease-in-out infinite;
}
.iv-stock-badge i { color: #E08E1B; font-size: 14px; }
@keyframes iv-stock-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

/* ---- Newsletter feedback messages ---- */
.iv-news__msg {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.3px;
  min-height: 18px;
}
.iv-news__msg.is-ok  { color: #2E7D32; }
.iv-news__msg.is-bad { color: #C62828; }

/* ---- Recently Viewed on home: a touch of left padding to align with container ---- */
.iv-recent {
  background: var(--iv-cream-soft);
}


/* =============================================================
   IVORIC V2 — ROUND 11 (reviews, order timeline, multi-step)
   ============================================================= */

/* ---- Reviews section on PDP ---- */
.iv-reviews-section {
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--iv-line);
  background: var(--iv-cream-soft);
}
.iv-reviews__head { text-align: center; margin-bottom: 40px; }
.iv-reviews__title {
  font-family: var(--iv-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 8px 0 14px;
  letter-spacing: .02em;
}
.iv-reviews__avg {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--iv-charcoal);
}
.iv-reviews__avg-num {
  font-family: var(--iv-font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--iv-ink);
}
.iv-reviews__stars i,
.iv-review__stars i { color: #E0A823; font-size: 14px; margin: 0 1px; }
.iv-reviews__stars i.fa-regular,
.iv-review__stars i.fa-regular { color: #D7CDB8; }
.iv-reviews__count { color: var(--iv-mute); }

.iv-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.iv-review {
  background: var(--iv-white);
  border: 1px solid var(--iv-line);
  padding: 22px 22px 18px;
}
.iv-review__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 12px;
}
.iv-review__verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #2E7D32; font-weight: 600;
}
.iv-review__title {
  font-size: 15px; font-weight: 700; margin: 0 0 10px;
  color: var(--iv-ink); line-height: 1.3;
}
.iv-review__body {
  font-size: 14px; color: var(--iv-charcoal); line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.iv-review__meta {
  font-size: 11px; letter-spacing: 1px;
  color: var(--iv-mute); margin: 0;
}

.iv-reviews__empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--iv-mute);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---- Review submit form ---- */
.iv-reviews__form-wrap {
  max-width: 640px; margin: 0 auto;
  background: var(--iv-white);
  border: 1px solid var(--iv-line);
  padding: 28px 30px;
}
.iv-reviews__form-title {
  font-family: var(--iv-font-display);
  font-size: 1.5rem;
  letter-spacing: .02em;
  margin: 0 0 22px;
  text-align: center;
}
.iv-review-form__row { margin-bottom: 14px; }
.iv-review-form__row label {
  display: block;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--iv-mute); font-weight: 600; margin-bottom: 6px;
}
.iv-review-form__row input,
.iv-review-form__row textarea {
  width: 100%;
  background: var(--iv-white);
  border: 1px solid var(--iv-line);
  padding: 11px 14px;
  font-family: var(--iv-font-body); font-size: 14px;
  color: var(--iv-ink);
  outline: none;
  transition: border-color var(--iv-t);
}
.iv-review-form__row input:focus,
.iv-review-form__row textarea:focus { border-color: var(--iv-ink); }

.iv-rating-input { display: flex; gap: 4px; }
.iv-rating-input button {
  background: transparent; border: 0; cursor: pointer;
  padding: 6px 2px;
  font-size: 22px; line-height: 1;
  color: #D7CDB8;
  transition: color 160ms;
}
.iv-rating-input button:hover,
.iv-rating-input button.active { color: #E0A823; }
.iv-rating-input button.active i { font-weight: 900; }

.iv-reviews__login-prompt {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--iv-charcoal);
}
.iv-reviews__login-prompt a {
  color: var(--iv-olive);
  text-decoration: underline;
  font-weight: 600;
}

/* ---- Review summary on PDP (above price) ---- */
.iv-pdp-review-summary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--iv-charcoal);
  margin: 4px 0;
}
.iv-pdp-review-summary a {
  text-decoration: underline; color: inherit;
}


/* =============================================================
   IVORIC V2 — ROUND 15 (Footer trust + mobile nav + PDP+Cart polish)
   ============================================================= */

/* ---------- Footer: payment + trust row ---------- */
.iv-footer__trust {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding: 24px 0 18px;
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  margin-top: 36px;
}
.iv-footer__trust-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.iv-footer__trust-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55); font-weight: 600;
}
.iv-footer__pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-pay-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 28px; padding: 0 10px;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: rgba(245, 240, 232, 0.85);
}
.iv-pay-chip i { font-size: 18px; }
.iv-footer__trust-made {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7); font-weight: 600;
}
.iv-footer__trust-made i { color: #C44; margin-right: 6px; }

/* ---------- Mobile bottom nav ---------- */
.iv-mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--iv-line);
  z-index: 1100;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08);
}
.iv-mob-nav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--iv-mute);
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color 160ms;
  position: relative;
}
.iv-mob-nav__item i { font-size: 17px; }
.iv-mob-nav__item:hover, .iv-mob-nav__item.is-active { color: var(--iv-ink); }
.iv-mob-nav__cart-wrap { position: relative; display: inline-block; }
.iv-mob-nav__badge {
  position: absolute; top: -4px; right: -10px;
  background: var(--iv-ink); color: var(--iv-cream);
  font-size: 9px; min-width: 16px; height: 16px;
  border-radius: 99px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
@media (max-width: 768px) {
  .iv-mob-nav { display: flex; }
  /* Push body up so bottom nav doesn't cover footer content */
  body { padding-bottom: 64px; }
  /* Sticky CTA must also sit above the nav */
  .iv-sticky-cta { z-index: 1090; bottom: 64px; }
}

/* ---------- PDP: Trust strip ---------- */
.iv-trust-strip {
  background: var(--iv-cream-soft);
  padding: 32px 0;
  border-top: 1px solid var(--iv-line);
  border-bottom: 1px solid var(--iv-line);
}
.iv-trust-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .iv-trust-strip__grid { grid-template-columns: repeat(2, 1fr); } }
.iv-trust-strip__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 4px;
}
.iv-trust-strip__item i {
  font-size: 22px; color: var(--iv-olive);
  flex-shrink: 0; width: 36px; text-align: center;
}
.iv-trust-strip__item strong {
  display: block; font-size: 13px; color: var(--iv-ink);
  font-weight: 700; letter-spacing: .3px;
  margin-bottom: 2px;
}
.iv-trust-strip__item span {
  display: block; font-size: 12px; color: var(--iv-mute);
  line-height: 1.4;
}

/* ---------- Related products grid (PDP + Cart) ---------- */
.iv-related-products,
.iv-cart-related {
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--iv-cream);
  border-top: 1px solid var(--iv-line);
}
.iv-related-products__title,
.iv-cart-related__title {
  font-family: var(--iv-font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .03em;
  margin: 6px 0 28px;
}
.iv-related-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .iv-related-products__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.iv-rp-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--iv-white);
  border: 1px solid var(--iv-line);
  transition: transform 240ms, box-shadow 240ms;
}
.iv-rp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.08);
}
.iv-rp-card__img-wrap {
  aspect-ratio: 3/4;
  background: var(--iv-cream-soft);
  overflow: hidden;
}
.iv-rp-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms;
}
.iv-rp-card:hover .iv-rp-card__img-wrap img { transform: scale(1.04); }
.iv-rp-card__name {
  font-size: 13px; font-weight: 600;
  color: var(--iv-ink);
  margin: 14px 16px 4px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.iv-rp-card__price {
  margin: 0 16px 14px;
  font-size: 14px; font-weight: 700;
  color: var(--iv-ink);
  display: flex; align-items: baseline; gap: 8px;
}
.iv-rp-card__price del {
  font-size: 12px; font-weight: 400;
  color: var(--iv-mute);
}

/* ---------- Cart: free shipping banner ---------- */
.iv-shipping-banner {
  display: flex; align-items: center; gap: 14px;
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  border-left: 3px solid #2E7D32;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.iv-shipping-banner i {
  font-size: 18px; color: #2E7D32;
}
.iv-shipping-banner strong {
  display: block; font-size: 13px; color: #1B5E20; font-weight: 700;
}
.iv-shipping-banner span {
  display: block; font-size: 12px; color: #2E7D32; margin-top: 2px;
}

/* ---------- PDP: Mobile sticky CTA bar ---------- */
.iv-mob-cta {
  display: none;
  position: fixed;
  bottom: 60px; /* clears the mobile bottom nav */
  left: 0; right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--iv-line);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.06);
  z-index: 98;
  padding: 10px 14px;
  transition: transform 200ms ease;
}
.iv-mob-cta.is-hidden { transform: translateY(120%); }
.iv-mob-cta__inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 540px; margin: 0 auto;
}
.iv-mob-cta__price {
  flex-shrink: 0;
}
.iv-mob-cta__price small {
  display: block; font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--iv-mute);
}
.iv-mob-cta__price strong {
  display: block; font-size: 17px;
  color: var(--iv-ink); font-weight: 700;
}
.iv-mob-cta__btn {
  flex: 1;
  background: var(--iv-ink);
  color: var(--iv-cream);
  border: 0;
  padding: 14px 20px;
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.iv-mob-cta__btn:active { transform: translateY(1px); }
@media (max-width: 768px) {
  .iv-mob-cta { display: block; }
}

/* ── IVORIC R31: Prevent product swiper from blowing out before JS initialises ── */
/* Without this, slides render as 100%-wide block elements until Swiper kicks in  */
.home1-product-swiper {
  overflow: hidden;          /* clips un-initialised slides */
  min-height: 0;
}
.home1-product-swiper .swiper-wrapper {
  display: flex;             /* already set by Swiper but ensures correct pre-init state */
}
.home1-product-swiper .swiper-slide {
  /* Cap each slide at 25% pre-init so the page doesn't flash with a massive image */
  width: 25%;
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .home1-product-swiper .swiper-slide { width: 33.333%; }
}
@media (max-width: 575px) {
  .home1-product-swiper .swiper-slide { width: 50%; }
}
/* Once Swiper inits it overwrites these inline, so no conflict after JS loads */
