@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   LUMORA — Main Storefront Styles
   COLOR PALETTE: Navy Blue (#1B2A4A) + Beige (#E8DCC8) + White
   ============================================================ */

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F4F3F7;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes cookieSlideDown {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(30px); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ── Main View wrapper: fills all space above footer ─────── */
#main-view {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

/* ── LUMORA Logo ─────────────────────────────────────────── */
.lumora-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: #1B2A4A;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #1B2A4A 0%, #243A5E 60%, #E8DCC8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Category Dropdown Portal (fixed-position, escapes overflow clipping) ── */
.cat-dropdown {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 8px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.10),
    0 24px 60px rgba(0, 0, 0, 0.06);
  animation: catDropIn .2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}

@keyframes catDropIn {
  from { opacity: 0; transform: scale(0.92) translateY(-8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Category Buttons ────────────────────────────────────── */

.category-btn {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.8),
    0 6px 18px rgba(0,0,0,.05);
  transition: all .35s ease;
}

.category-btn:hover {
  background: rgba(255,255,255,.28);
}

.category-btn.active {
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.35),
      rgba(0,0,0,.08)
    );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    0 8px 25px rgba(0,0,0,.08);
}

/* ── Glass Nav ───────────────────────────────────────────── */
.glass-nav {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.22),
      rgba(255,255,255,.10)
    );
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
      inset 0 1px 1px rgba(255,255,255,.9),
      inset 0 -1px 1px rgba(255,255,255,.4),
      0 10px 35px rgba(0,0,0,.08);
}

.glass-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.8),
      rgba(255,255,255,.15) 40%,
      transparent 70%
    );
  pointer-events: none;
}

.glass-btn {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.8),
    0 4px 12px rgba(0,0,0,0.04);
  color: #1B2A4A;
  transition: all 0.2s ease;
}

.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.8),
      rgba(255,255,255,.15) 40%,
      transparent 70%
    );
  pointer-events: none;
}

.glass-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.25);
}

/* ── Liquid Glass Button ─────────────────────────────────── */
.liquid-glass-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.85), rgba(27, 42, 74, 0.5));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 12px 30px rgba(27, 42, 74, 0.25);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.98), rgba(27, 42, 74, 0.7));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 15px 35px rgba(27, 42, 74, 0.35);
}

/* ── Favorite Wishlist Badge ─────────────────────────────── */
.fav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ff3b5c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 59, 92, 0.45);
  border: 2px solid #ffffff;
  z-index: 30;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-badge:not(.hidden) {
  display: flex !important;
  animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Scrollbar Hide ──────────────────────────────────────── */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ── Animations ──────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.3s ease-in-out; }
.slide-up { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-right { animation: slideRight 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes itemFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animation-fade-in {
  animation: itemFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   ADVANCED SEARCH MODAL & CONTROLS
   ══════════════════════════════════════════════════════════ */
#advanced-search-modal {
  animation: advSearchFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#advanced-search-modal .advanced-search-container {
  animation: advSearchScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes advSearchFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes advSearchScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.adv-stock-pill {
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.adv-stock-pill:hover {
  background-color: #e5e7eb;
  color: #1f2937;
}

.adv-stock-pill.active {
  background-color: #1B2A4A;
  color: #ffffff;
  border-color: #1B2A4A;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.25);
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════════════ */
.hero-slider-container {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  aspect-ratio: 16 / 7;
  min-height: 380px;
  max-height: 600px;
  width: 100%;
  background-color: #0b1120;
}

@media (max-width: 1024px) {
  .hero-slider-container {
    aspect-ratio: 16 / 8.5;
    min-height: 340px;
    max-height: 480px;
  }
}

@media (max-width: 768px) {
  .hero-slider-container {
    aspect-ratio: 4 / 3.8;
    min-height: 320px;
    max-height: 480px;
  }
}

@media (max-width: 480px) {
  .hero-slider-container {
    aspect-ratio: 1 / 1;
    min-height: 300px;
    max-height: 440px;
  }
}

.hero-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Each slide */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity, transform;
  overflow: hidden;
  background-color: #0b1120;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

/* hero-slide-bg-blur removed — images render naturally without side blur */
.hero-slide-bg-blur { display: none; }

/* Responsive Picture & Main Image — sharp edge-to-edge display */
.hero-slide-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.hero-slide-img,
.hero-slide-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Maximize image sharpness — high-contrast crisp rendering without compression blur */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Full uncropped display mode: displays 100% of the banner without cropping */
.hero-slider-contain .hero-slide-img,
.hero-slider-contain .hero-slide-picture img,
.hero-slide-img.contain-mode {
  object-fit: contain !important;
  background-color: #0b1120;
}


/* Overlay removed — images render fully natural and clear with no transparent layers */
.hero-slide-overlay {
  display: none;
}

/* Slide content */
.hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 2rem 2rem 2.5rem;
  max-width: 70%;
}

@media (max-width: 480px) {
  .hero-slide-content { padding: 1.5rem 1.5rem 2rem; max-width: 90%; }
}

.hero-slide-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(232, 220, 200, 0.2);
  border: 1px solid rgba(232, 220, 200, 0.35);
  padding: 0.3em 0.8em;
  border-radius: 100px;
  margin-bottom: 0.6rem;
  backdrop-filter: blur(10px);
}

.hero-slide-title {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-slide-desc {
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-price {
  display: inline-block;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 900;
  color: #1B2A4A;
  background: rgba(232, 220, 200, 0.9);
  border: 1px solid rgba(232, 220, 200, 1);
  padding: 0.25em 0.75em;
  border-radius: 100px;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(10px);
}

.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #1B2A4A;
  color: #E8DCC8;
  border: 1px solid rgba(232, 220, 200, 0.3);
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  font-weight: 800;
  padding: 0.55em 1.1em;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(27, 42, 74, 0.4);
  cursor: pointer;
}

.hero-slide-cta:hover {
  background: #E8DCC8;
  color: #1B2A4A;
  border-color: #D4C5A9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.3);
}

.hero-slide-cta .arrow-icon {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.hero-slide-cta:hover .arrow-icon {
  transform: translateX(3px);
}

/* ── Hero Custom Button Container ────────────────────────── */
.hero-custom-btn-wrapper {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  pointer-events: auto;
  cursor: pointer;
  margin-top: 0.25rem;
}

.hero-custom-btn-wrapper > * {
  cursor: pointer;
}

.hero-custom-btn-wrapper button,
.hero-custom-btn-wrapper a {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .hero-custom-btn-wrapper {
    margin-top: 0.2rem;
  }
  .hero-custom-btn-wrapper button,
  .hero-custom-btn-wrapper a {
    max-width: 100%;
  }
}

/* ── Slider Arrows ───────────────────────────────────────── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 42, 74, 0.55);
  border: 1px solid rgba(232, 220, 200, 0.3);
  color: #E8DCC8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero-arrow:hover {
  background: rgba(27, 42, 74, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-left { left: 12px; }
.hero-arrow-right { right: 12px; }

.hero-arrow .material-symbols-outlined {
  font-size: 1.3rem;
}

/* ── Pagination Dots ─────────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 220, 200, 0.4);
  border: 1px solid rgba(232, 220, 200, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  width: 20px;
  border-radius: 3px;
  background: #E8DCC8;
  border-color: #E8DCC8;
}

/* ══════════════════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════════════════ */
.product-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.9),
    0 8px 25px rgba(0,0,0,0.05);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.9),
    0 16px 45px rgba(0,0,0,0.09);
  border-color: rgba(232, 220, 200, 0.5);
}

/* ── Product Image Container ─────────────────────────────── */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

/* ── Product Info ─────────────────────────────────────────── */
.product-price {
  font-weight: 800;
  color: #1B2A4A;
}

.product-old-price {
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-discount {
  background: rgba(232, 220, 200, 0.9);
  color: #1B2A4A;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2em 0.55em;
  border-radius: 100px;
}

/* ── Fav Button ──────────────────────────────────────────── */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 220, 200, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fav-btn .material-symbols-outlined {
  font-size: 1.1rem;
  color: #9ca3af;
  transition: all 0.2s;
}

.fav-btn.active .material-symbols-outlined,
.fav-btn:hover .material-symbols-outlined {
  color: #ff3b5c;
  font-variation-settings: 'FILL' 1;
}

/* ── Add to Cart Button ──────────────────────────────────── */
.add-to-cart-btn {
  width: 100%;
  height: 44px;
  background: #1B2A4A;
  color: #E8DCC8;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.25);
}

.add-to-cart-btn:hover {
  background: #0F1E35;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27, 42, 74, 0.35);
}

.add-to-cart-btn:active {
  transform: scale(0.98);
}

/* ══════════════════════════════════════════════════════════
   CART PANEL
   ══════════════════════════════════════════════════════════ */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.35);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}

.cart-overlay.open {
  display: block;
}

/* ── Cart Item ────────────────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 220, 200, 0.5);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
  border: 1px solid rgba(232, 220, 200, 0.4);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B2A4A;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.cart-qty-btn:hover {
  background: #1B2A4A;
  color: #E8DCC8;
  border-color: #1B2A4A;
}

.cart-checkout-btn {
  width: 100%;
  height: 52px;
  background: #1B2A4A;
  color: #E8DCC8;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.3);
}

.cart-checkout-btn:hover {
  background: #0F1E35;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(27, 42, 74, 0.4);
}

/* ── Coupon Input ─────────────────────────────────────────── */
.coupon-input {
  flex: 1;
  height: 42px;
  border: 1.5px solid rgba(232, 220, 200, 0.8);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
  background: rgba(245, 239, 227, 0.3);
}

.coupon-input:focus {
  border-color: #1B2A4A;
  background: white;
}

.coupon-apply-btn {
  height: 42px;
  padding: 0 16px;
  background: #1B2A4A;
  color: #E8DCC8;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.coupon-apply-btn:hover {
  background: #0F1E35;
}

/* ══════════════════════════════════════════════════════════
   PRODUCT DETAIL PANEL
   ══════════════════════════════════════════════════════════ */
.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.detail-panel.open {
  pointer-events: auto;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.detail-panel.open .detail-backdrop {
  opacity: 1;
}

.detail-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px 32px 0 0;
  padding: 0 0 env(safe-area-inset-bottom);
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 60px rgba(27, 42, 74, 0.15);
}

.detail-panel.open .detail-sheet {
  transform: translateY(0);
}

.detail-sheet::-webkit-scrollbar { display: none; }

/* ── Size Chips ──────────────────────────────────────────── */
.size-chip {
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(232, 220, 200, 0.8);
  background: white;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.size-chip:hover {
  border-color: #1B2A4A;
  color: #1B2A4A;
}

.size-chip.active {
  background: #1B2A4A;
  border-color: #1B2A4A;
  color: #E8DCC8;
  box-shadow: 0 3px 10px rgba(27, 42, 74, 0.3);
}

/* ── Color Swatches ──────────────────────────────────────── */
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-swatch.active {
  border-color: #1B2A4A;
  transform: scale(1.15);
}

/* ── Qty Buttons ─────────────────────────────────────────── */
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(232, 220, 200, 0.8);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  color: #1B2A4A;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: #1B2A4A;
  color: #E8DCC8;
  border-color: #1B2A4A;
}

/* ── Detail Add to Cart ──────────────────────────────────── */
.detail-add-btn {
  flex: 1;
  height: 52px;
  background: #1B2A4A;
  color: #E8DCC8;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.3);
}

.detail-add-btn:hover {
  background: #0F1E35;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(27, 42, 74, 0.4);
}

.detail-fav-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(245, 239, 227, 0.5);
  border: 1.5px solid rgba(232, 220, 200, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #9ca3af;
}

.detail-fav-btn.active,
.detail-fav-btn:hover {
  background: #fff0f3;
  border-color: #ffc0cb;
  color: #ff3b5c;
}

/* ── Share Button ────────────────────────────────────────── */
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 239, 227, 0.6);
  border: 1.5px solid rgba(232, 220, 200, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1B2A4A;
}

.share-btn:hover {
  background: rgba(27, 42, 74, 0.08);
  border-color: rgba(27, 42, 74, 0.3);
}

/* ══════════════════════════════════════════════════════════
   NOTIFICATIONS PANEL
   ══════════════════════════════════════════════════════════ */
.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-panel.open {
  transform: translateX(0);
}

/* ── Filter Tabs ─────────────────────────────────────────── */
.notif-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  border-color: rgba(232, 220, 200, 0.6);
}

.notif-filter-btn.active {
  background: #1B2A4A;
  color: #E8DCC8;
  border-color: #1B2A4A;
  box-shadow: 0 3px 10px rgba(27, 42, 74, 0.25);
}

/* ── Notif Item ──────────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.notif-item.unread {
  background: rgba(245, 239, 227, 0.5);
  border-color: rgba(232, 220, 200, 0.4);
}

.notif-item:hover {
  background: rgba(245, 239, 227, 0.7);
}

.notif-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(232, 220, 200, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1B2A4A;
}

/* ── Checkout: Input Focus ─────────────────────────────────── */
.checkout-input:focus {
  border-color: #1B2A4A;
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.1);
}

/* ── Primary color var ────────────────────────────────────── */
:root {
  --primary-color: #1B2A4A;
  --beige: #E8DCC8;
  --beige-dark: #D4C5A9;
  --beige-light: #F5EFE3;
}

/* ── Favorites Panel ─────────────────────────────────────── */
.fav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fav-panel.open {
  transform: translateX(0);
}

/* ── Toast ────────────────────────────────────────────────── */
.lumora-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #1B2A4A;
  color: #E8DCC8;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 99999;
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.3);
  white-space: nowrap;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.lumora-footer {
  background: linear-gradient(160deg, #1B2A4A 0%, #0F1E35 100%);
  border-radius: 28px 28px 0 0;
  color: rgba(255,255,255,0.9);
  padding: 2.5rem 1.5rem 1.5rem;
  margin: 0;
  /* ── footer layout fix: never leave white space below ── */
  flex-shrink: 0;
  width: 100%;
}

.lumora-footer-inner {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  transition: max-width 0.3s ease;
}

@media (min-width: 768px) {
  .lumora-footer-inner {
    max-width: 860px;
  }
}

@media (min-width: 1024px) {
  .lumora-footer-inner {
    max-width: 1020px;
  }
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #E8DCC8;
  text-transform: uppercase;
}

.footer-tagline {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-weight: bold !important;
  font-size: 0.75rem;
  color: rgba(232, 220, 200, 0.55);
  letter-spacing: 0.02em;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(232, 220, 200, 0.12);
}

/* ── Footer Navigation Columns ───────────────────────────── */
.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: 100%;
  text-align: center;
  padding: 0.25rem 0;
}

@media (min-width: 640px) {
  .footer-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
    gap: 2rem;
  }
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #E8DCC8;
  margin: 0;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(232, 220, 200, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .footer-link {
    justify-content: flex-start;
  }
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-contact {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 220, 200, 0.8);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 220, 200, 0.08);
}

.footer-contact-item:hover {
  color: #E8DCC8;
  background: rgba(232, 220, 200, 0.06);
}

.footer-contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(232, 220, 200, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #E8DCC8;
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
}

.footer-contact-icon .material-symbols-outlined {
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(232, 220, 200, 0.25);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Modern Sign-up CTA Button ───────────────────────────── */
.signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #1B2A4A;
  color: #E8DCC8 !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.48rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(27, 42, 74, 0.22);
  border: 1px solid rgba(232, 220, 200, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.signup-btn:hover {
  background: #0F1E35;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(27, 42, 74, 0.35);
  border-color: rgba(232, 220, 200, 0.5);
}

.signup-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── Logo image helper ───────────────────────────────────── */
.lumora-logo-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.lumora-logo-img:hover { opacity: 0.9; }
.lumora-logo-img img,
.header-logo-img {
  height: 80px;
  max-height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s ease;
}
@media (min-width: 640px) {
  .lumora-logo-img img,
  .header-logo-img {
    height: 88px;
    max-height: 100px;
  }
}

.footer-logo-img,
.lumora-footer .lumora-logo-img img {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
  height: 128px !important;
  max-height: 160px !important;
  width: auto !important;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover,
.lumora-footer .lumora-logo-img img:hover {
  transform: scale(1.04);
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.55)) !important;
  -webkit-filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.55)) !important;
}

/* ══════════════════════════════════════════════════════════
   STANDARD TOP NAV  (Desktop = top bar, Mobile = hamburger)
   ══════════════════════════════════════════════════════════ */
.standard-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 220, 200, 0.5);
  box-shadow: 0 2px 20px rgba(27, 42, 74, 0.06);
}

.std-desktop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  gap: 1.5rem;
}

.std-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .std-nav-links { display: flex; }
}

.std-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.std-link:hover {
  color: #1B2A4A;
  background: rgba(27, 42, 74, 0.07);
}

.std-link-profile {
  font-size: 0.85rem;
  font-weight: 700;
  color: #E8DCC8;
  background: #1B2A4A;
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(27, 42, 74, 0.3);
}

.std-link-profile:hover {
  background: #0F1E35;
  transform: translateY(-1px);
}

.std-cart-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background: #1B2A4A;
  color: #E8DCC8;
  font-size: 0.6rem;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.std-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}

@media (min-width: 768px) {
  .std-hamburger { display: none; }
}

.std-hamburger:hover { background: rgba(27, 42, 74, 0.06); }

.std-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1B2A4A;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER SIDEBAR (mobile off-canvas)
   ══════════════════════════════════════════════════════════ */
.hamburger-sidebar {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.hamburger-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.hamburger-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background: #fff;
  box-shadow: -8px 0 40px rgba(27, 42, 74, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px 0 0 24px;
}

.hamburger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(232, 220, 200, 0.5);
}

.hamburger-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(245, 239, 227, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: #1B2A4A;
}
.hamburger-close:hover { background: rgba(232, 220, 200, 0.8); }

.hamburger-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem;
  gap: 0.25rem;
  flex: 1;
}

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.hamburger-link:hover {
  background: rgba(245, 239, 227, 0.7);
  color: #1B2A4A;
}

.hamburger-link .material-symbols-outlined {
  font-size: 1.25rem;
  color: inherit;
}

body.std-nav-active {
  padding-top: 64px;
}

/* ══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 2rem);
  max-width: 440px;
  animation: cookieSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow:
    0 20px 60px rgba(27, 42, 74, 0.12),
    0 4px 16px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(232, 220, 200, 0.5);
}

/* ══════════════════════════════════════════════════════════
   ADVANCED SEARCH & AUTOCOMPLETE STYLES
   ══════════════════════════════════════════════════════════ */
#advanced-search-modal {
  animation: advSearchFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.advanced-search-container {
  animation: advSearchScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes advSearchFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes advSearchScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.adv-stock-pill {
  background: #f3f4f6;
  color: #4b5563;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adv-stock-pill:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.adv-stock-pill.active {
  background: #1B2A4A !important;
  color: #ffffff !important;
  border-color: #1B2A4A !important;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.25);
}

#adv-autocomplete-list {
  border-color: rgba(27, 42, 74, 0.08);
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.15);
}

.adv-autocomplete-item:hover,
.adv-autocomplete-item.bg-brand\/5 {
  background-color: rgba(27, 42, 74, 0.06);
}

/* ══════════════════════════════════════════════════════════
   CUSTOM MODERN CATEGORY DROPDOWN
   ══════════════════════════════════════════════════════════ */
.custom-cat-menu-anim {
  animation: catMenuFadeScale 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top left;
}

@keyframes catMenuFadeScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-cat-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem 0.45rem;
  background: #f8fafc;
  color: #1B2A4A;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-cat-group-header:first-child {
  border-top: none;
}

.custom-cat-group-header:hover {
  background: #f1f5f9;
  color: #0F1E35;
}

.custom-cat-group-header.active {
  background: rgba(27, 42, 74, 0.08);
  color: #1B2A4A;
}

.custom-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem 0.5rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-cat-item:hover {
  background: rgba(27, 42, 74, 0.04);
  color: #1B2A4A;
  padding-left: 1.75rem;
}

.custom-cat-item.active {
  background: #1B2A4A;
  color: #ffffff;
  font-weight: 700;
}

.custom-cat-item.active .cat-dot {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.custom-cat-item.active .cat-count-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.custom-cat-item:hover .cat-dot {
  background: #1B2A4A;
  transform: scale(1.2);
}

.cat-count-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

/* ── Storefront Hero Heading Font: Zapfino (EXCLUSIVE — do NOT apply elsewhere) ── */
/*
   Zapfino is a calligraphic typeface with strong ligatures and wide natural glyphs.
   - letter-spacing: normal   → let the font's own metrics space characters correctly
   - word-spacing: 0.08em     → subtle extra breathing room between words
   - font-kerning: normal      → activate built-in kerning pairs
   - font-feature-settings    → enable standard ligatures (liga) and contextual alternates (calt)
   - font-variant-ligatures   → modern property for the same ligature control
   - text-transform: none      → preserve natural Title Case (never uppercase)
*/
.storefront-hero-heading {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 3rem !important;
  line-height: 1.25 !important;
  font-style: normal;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* ── Tech Day Section ─────────────────────────────────────── */
.tech-day-card {
  background: linear-gradient(135deg, #F7F3E9 0%, #F5EBE0 55%, #EDE0CC 100%);
  border: 1px solid rgba(139, 90, 43, 0.15);
  position: relative;
}

/* ════════════════════════════════════════════════════════════
   STANDARDIZED CAROUSEL SLIDERS (Tech Day & Flash Sale)
   ════════════════════════════════════════════════════════════ */
#flash-sale-scroll,
#tech-day-scroll {
  /* Hardware-accelerated continuous scrolling */
  display: flex !important;
  align-items: stretch !important; /* All cards in row have matching height */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto !important; /* RAF controls scroll directly; CSS smooth would fight it */
  will-change: scroll-position;
  /* Hide scrollbar cross-browser */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#flash-sale-scroll::-webkit-scrollbar,
#tech-day-scroll::-webkit-scrollbar {
  display: none;
}

/* Strict uniform card dimensions across all cards in carousels */
#tech-day-scroll .carousel-card-item,
#flash-sale-scroll .carousel-card-item,
#tech-day-scroll > div,
#flash-sale-scroll > div {
  flex: 0 0 165px !important;
  width: 165px !important;
  min-width: 165px !important;
  max-width: 165px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transform: none !important; /* Prevents any card from scaling or sizing differently from neighbors */
}

@media (min-width: 640px) {
  #tech-day-scroll .carousel-card-item,
  #flash-sale-scroll .carousel-card-item,
  #tech-day-scroll > div,
  #flash-sale-scroll > div {
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }
}

/* Ensure inner article fills 100% height with uniform padding */
#tech-day-scroll article,
#flash-sale-scroll article {
  height: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  padding: 0.875rem !important; /* Standard p-3.5 */
  border-radius: 24px !important;
}

/* Strict uniform 4:5 image container aspect ratio */
#tech-day-scroll article .aspect-\[4\/5\],
#flash-sale-scroll article .aspect-\[4\/5\] {
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#tech-day-scroll article img,
#flash-sale-scroll article img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Category label: strict 1-line truncation and uniform fixed height */
.product-category,
.card-category,
#tech-day-scroll article .product-category,
#flash-sale-scroll article .product-category,
#tech-day-scroll article span.text-\[10px\],
#flash-sale-scroll article span.text-\[10px\] {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 1.15rem !important;
  max-height: 1.15rem !important;
  line-height: 1.15rem !important;
}

/* Ensure title and price containers have uniform line heights */
#tech-day-scroll article h3,
#flash-sale-scroll article h3 {
  min-height: 1.35rem !important;
  max-height: 1.35rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.35rem !important;
}

#tech-day-scroll article .border-t,
#flash-sale-scroll article .border-t {
  min-height: 44px !important;
}

/* ── Floating Scroll To Top Button ───────────────────────── */
#scroll-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F5EBE0;
  border: 1px solid rgba(217, 187, 155, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s,
              background-color 0.2s,
              box-shadow 0.2s;
}

#scroll-to-top:hover {
  background: #1B2A4A;
  color: #FFFFFF;
  border-color: rgba(217, 187, 155, 0.6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.35);
}

#scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  #scroll-to-top {
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
  }
}

/* ── Search Results Lazy Load Indicator ──────────────────── */
.search-lazy-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  color: #6B7280;
  font-size: 0.8rem;
  font-weight: 600;
}




