/* ==========================================================================
   VeeLora Shoes — Luxury Spatial Boutique (Atelia-Inspired Architecture)
   Zero backdrop-filter in 3D scene | Full AR (RTL) & FR (LTR) | Zero-Regression
   ========================================================================== */
:root {
  --vl-brand-dark: #2a0f2e;
  --vl-walnut-deep: #1a120d;
  --vl-glass-taupe: rgba(112, 101, 94, 0.66);
  --vl-glass-active: rgba(150, 139, 131, 0.84);
  --vl-window-frame: rgba(133, 122, 114, 0.80);
  --vl-glass-edge: rgba(255, 255, 255, 0.22);
  --vl-light-text: #fffaf7;
  --vl-blush: #f6e7ec;
  --vl-champagne: #e6c9a2;
  --vl-rose-gold: #c98b5e;
  --vl-ivory: #fcf9f6;
  --vl-font-display-fr: "Fraunces", "Playfair Display", Georgia, serif;
  --vl-font-pill-fr: "Montserrat", "Inter", sans-serif;
  --vl-font-ui: "Inter", "Tajawal", "Cairo", sans-serif;
  --vl-font-ar-display: "El Messiri", "Tajawal", serif;
  --vl-font-ar-ui: "Tajawal", "Cairo", sans-serif;
}

/* Spatial Stage Wrapper (Scrollable Homepage Opening Section) */
.vl-spatial-section {
  position: relative;
  width: 100%;
  background: var(--vl-walnut-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.vl-scene {
  --u: calc(min(100vw, 177.78vh) / 100);
  --py: 0deg;
  --px: 0deg;
  --rx: 0px;
  --ry: 0px;
  --pop-x: 0px;
  --pop-y: 0px;
  position: relative;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  max-height: 920px;
  min-height: 540px;
  perspective: calc(var(--u) * 140);
  overflow: hidden;
  user-select: none;
  direction: ltr; /* Preserve exact left/right spatial geometry */
  color: var(--vl-light-text);
  font-family: var(--vl-font-ui);
}

:lang(ar) .vl-scene {
  font-family: var(--vl-font-ar-ui);
}

/* Photorealistic Boutique Background + Radial Vignette */
.vl-room {
  position: absolute;
  inset: -4%;
  background-color: #1c130e;
  background-image: url("/images/spatial/boutique-bg.webp");
  background-size: cover;
  background-position: center;
  transform: translate3d(var(--rx), var(--ry), 0) scale(1.04);
  will-change: transform;
  z-index: 1;
}

.vl-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(10, 6, 3, 0.42) 100%),
    linear-gradient(180deg, rgba(16, 9, 6, 0.24) 0%, rgba(16, 9, 6, 0.08) 45%, rgba(14, 8, 5, 0.36) 100%);
  pointer-events: none;
}

/* 3D Rotating Plane */
.vl-plane {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--py)) rotateX(var(--px));
  will-change: transform;
  z-index: 10;
}

/* ==========================================================================
   Editorial Window — Left Side (Exact Atelia Proportions)
   ========================================================================== */
.vl-editorial-wrap {
  position: absolute;
  left: 19.4%;
  top: 20.5%;
  width: 32.4%;
  height: 58%;
  transform: rotateY(-7deg) rotateZ(-0.8deg);
  transform-style: preserve-3d;
  z-index: 12;
}

/* Three Staggered Elevated Glass Tabs */
.vl-tabs {
  position: absolute;
  left: 3%;
  bottom: 100%;
  margin-bottom: calc(var(--u) * 1.15);
  display: flex;
  align-items: flex-end;
  gap: calc(var(--u) * 0.9);
  transform: rotate(-4deg);
  transform-origin: left bottom;
  z-index: 16;
}

.vl-tab {
  position: relative;
  height: calc(var(--u) * 2.05);
  min-height: 30px;
  padding: 0 calc(var(--u) * 1.25);
  border-radius: calc(var(--u) * 0.95);
  border: 1px solid var(--vl-glass-edge);
  background: linear-gradient(180deg, rgba(132, 121, 113, 0.72) 0%, var(--vl-glass-taupe) 100%);
  color: rgba(255, 250, 247, 0.86);
  font-family: var(--vl-font-pill-fr);
  font-weight: 500;
  font-size: max(11px, calc(var(--u) * 0.55));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 calc(var(--u) * 0.7) calc(var(--u) * 1.6) rgba(8, 4, 2, 0.34);
  transition:
    height 0.5s cubic-bezier(0.3, 1.25, 0.5, 1),
    padding 0.5s cubic-bezier(0.3, 1.25, 0.5, 1),
    font-size 0.5s cubic-bezier(0.3, 1.25, 0.5, 1),
    background 0.35s ease,
    transform 0.35s ease;
  white-space: nowrap;
}

:lang(ar) .vl-tab {
  font-family: var(--vl-font-ar-ui);
  letter-spacing: 0;
  text-transform: none;
  font-size: max(12px, calc(var(--u) * 0.78));
}

.vl-tab:hover {
  background: linear-gradient(180deg, rgba(154, 143, 135, 0.82) 0%, rgba(124, 113, 105, 0.76) 100%);
  color: var(--vl-light-text);
  transform: translateY(-2px);
}

.vl-tab[aria-selected="true"] {
  height: calc(var(--u) * 3.1);
  min-height: 40px;
  padding: 0 calc(var(--u) * 1.7);
  font-weight: 600;
  font-size: max(13px, calc(var(--u) * 1.05));
  color: var(--vl-light-text);
  background: linear-gradient(180deg, rgba(176, 165, 156, 0.90) 0%, var(--vl-glass-active) 100%);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    0 calc(var(--u) * 1.1) calc(var(--u) * 2.2) rgba(8, 4, 2, 0.42);
}

:lang(ar) .vl-tab[aria-selected="true"] {
  font-size: max(14px, calc(var(--u) * 1.08));
}

.vl-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: calc(var(--u) * 0.55);
  height: calc(var(--u) * 1.25);
  background: linear-gradient(180deg, rgba(164, 153, 145, 0.78), rgba(133, 122, 114, 0.42));
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* Warm-Taupe Glass Frame */
.vl-window-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--u) * 1.45);
  background: linear-gradient(145deg, rgba(154, 142, 134, 0.86) 0%, var(--vl-window-frame) 55%, rgba(102, 91, 84, 0.84) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    inset 0 -2px 6px rgba(20, 12, 8, 0.35),
    0 calc(var(--u) * 2.4) calc(var(--u) * 4.8) rgba(8, 4, 2, 0.56);
}

.vl-photo-area {
  position: absolute;
  left: 2.6%;
  right: 2.6%;
  top: 3.4%;
  bottom: 3.4%;
  border-radius: calc(var(--u) * 0.55);
  overflow: hidden;
  background: #231812;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.vl-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vl-photo-layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.vl-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 11, 8, 0.08) 0%, rgba(20, 11, 8, 0.16) 46%, rgba(18, 9, 12, 0.78) 100%);
  pointer-events: none;
  z-index: 2;
}

.vl-caption {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  z-index: 3;
  color: var(--vl-light-text);
  transition: opacity 180ms ease, transform 180ms ease;
  opacity: 1;
  transform: translateY(0);
}

:lang(ar) .vl-caption {
  direction: rtl;
  text-align: right;
}

.vl-caption.is-swapping {
  opacity: 0;
  transform: translateY(10px);
}

.vl-caption__eyebrow {
  display: inline-block;
  font-size: max(11px, calc(var(--u) * 0.72));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vl-champagne);
  margin-bottom: calc(var(--u) * 0.45);
}

:lang(ar) .vl-caption__eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: max(12px, calc(var(--u) * 0.82));
}

.vl-caption__title {
  margin: 0 0 calc(var(--u) * 0.45);
  font-family: var(--vl-font-display-fr);
  font-size: max(19px, calc(var(--u) * 2.05));
  line-height: 1.18;
  font-weight: 600;
  color: var(--vl-light-text);
  text-shadow: 0 2px 14px rgba(10, 5, 3, 0.45);
}

:lang(ar) .vl-caption__title {
  font-family: var(--vl-font-ar-display);
  font-size: max(20px, calc(var(--u) * 2.1));
  line-height: 1.3;
}

.vl-caption__sub {
  margin: 0;
  font-size: max(12px, calc(var(--u) * 0.84));
  line-height: 1.5;
  color: rgba(255, 250, 247, 0.86);
  max-width: 92%;
}

.vl-caption__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 0.65);
  margin-top: calc(var(--u) * 0.95);
}

.vl-btn-glass-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: calc(var(--u) * 0.5) calc(var(--u) * 1.35);
  border-radius: 999px;
  background: linear-gradient(120deg, #9d3a62, #7a294d);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fffaf7;
  font-size: max(12px, calc(var(--u) * 0.82));
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(20, 6, 14, 0.38);
  transition: transform 0.22s ease, background 0.22s ease;
}

.vl-btn-glass-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #b24570, #8a2f58);
}

.vl-btn-glass-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: calc(var(--u) * 0.5) calc(var(--u) * 1.15);
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.14);
  border: 1px solid rgba(255, 250, 247, 0.34);
  color: #fffaf7;
  font-size: max(12px, calc(var(--u) * 0.8));
  font-weight: 500;
  transition: background 0.2s ease;
}

.vl-btn-glass-ghost:hover {
  background: rgba(255, 250, 247, 0.24);
}

/* ==========================================================================
   Eight-Tile Spatial Shoe Wall — Right Side (Exact Atelia Proportions)
   ========================================================================== */
.vl-wall {
  position: absolute;
  left: 52.2%;
  top: 2.5%;
  width: 28.6%;
  height: 88%;
  transform: rotateY(-24deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 14;
}

.vl-tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: calc(var(--u) * 1.05);
  border: 1px solid var(--vl-glass-edge);
  background: linear-gradient(160deg, rgba(146, 134, 126, 0.74) 0%, rgba(104, 93, 86, 0.66) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 calc(var(--u) * 0.9) calc(var(--u) * 2.1) rgba(8, 4, 2, 0.42);
  color: var(--vl-light-text);
  padding: 0;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.25, 1.3, 0.45, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    opacity 0.28s ease;
}

.vl-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 44%);
  pointer-events: none;
}

.vl-tile:hover,
.vl-tile:focus-visible {
  transform: translateZ(calc(var(--u) * 2.4)) translateY(-2px);
  background: linear-gradient(160deg, rgba(172, 160, 151, 0.86) 0%, rgba(124, 113, 105, 0.78) 100%);
  border-color: rgba(255, 255, 255, 0.42);
}

.vl-tile.is-popped {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.vl-tile__media {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 10%;
  bottom: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--u) * 0.55);
  filter: drop-shadow(0 8px 14px rgba(10, 5, 3, 0.38));
}

.vl-tile__label {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.vl-tile__name {
  font-size: max(11px, calc(var(--u) * 0.76));
  font-weight: 600;
  line-height: 1.2;
  color: var(--vl-light-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vl-tile__count {
  font-size: max(10px, calc(var(--u) * 0.58));
  color: rgba(255, 250, 247, 0.72);
}

/* ==========================================================================
   Floating Pop-Out Product Card (Outside Rotating 3D Plane)
   ========================================================================== */
.vl-popout {
  position: absolute;
  z-index: 30;
  left: 45.3%;
  top: 41%;
  width: 18.2%;
  height: 28.5%;
  border-radius: calc(var(--u) * 1.25);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(155deg, rgba(164, 152, 144, 0.88) 0%, rgba(114, 102, 95, 0.84) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -2px 8px rgba(18, 10, 6, 0.30),
    0 calc(var(--u) * 2.2) calc(var(--u) * 4.4) rgba(6, 3, 2, 0.58);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 1.0);
  color: var(--vl-light-text);
  text-decoration: none;
  cursor: pointer;
  transform: translate3d(var(--pop-x), var(--pop-y), 0);
  will-change: transform, opacity;
  overflow: hidden;
}

.vl-popout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, transparent 100%);
  pointer-events: none;
}

.vl-popout__media {
  position: relative;
  width: 84%;
  height: 64%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.vl-popout__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--u) * 0.7);
  box-shadow: 0 10px 22px rgba(10, 5, 3, 0.42);
}

.vl-popout__meta {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.vl-popout__title {
  display: block;
  font-size: max(13px, calc(var(--u) * 1.02));
  font-weight: 700;
  color: var(--vl-light-text);
  line-height: 1.25;
}

.vl-popout__sub {
  display: block;
  font-size: max(11px, calc(var(--u) * 0.7));
  color: var(--vl-champagne);
  margin-top: 2px;
}

/* Scroll Cue at Bottom of Spatial Hero */
.vl-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(34, 21, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 250, 247, 0.88);
  font-size: 0.74rem;
  text-decoration: none;
}

/* ==========================================================================
   Luxury Catalog & Product Page Refinements (Zero-Regression)
   ========================================================================== */
body[data-page="shop"] .page-intro,
body[data-page="home"] .section--soft {
  background: linear-gradient(180deg, #faf2f5 0%, #fffdfa 100%);
}

.product-card {
  background: var(--vl-ivory);
  border: 1px solid #ece1e7;
  border-radius: 1.25rem;
  padding: 0.7rem 0.7rem 0.95rem;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(42, 15, 46, 0.09);
  border-color: #d9bfd0;
}

.product-card .product-image {
  border-radius: 0.95rem;
  background: linear-gradient(145deg, #f7eef1, #f1e7e4);
}

.vl-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vl-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #f5e6ec;
  border: 1px solid #dfc5d1;
  color: var(--vl-brand-dark);
  font-size: 0.76rem;
  font-weight: 600;
}

.gallery-main {
  border: 1px solid #eadce3;
  box-shadow: 0 18px 42px rgba(42, 15, 46, 0.08);
}

.gallery-main img {
  transition: opacity 0.28s ease;
}

.gallery-main img.is-fading {
  opacity: 0.35;
}

/* ==========================================================================
   Portrait Mobile Adaptation (360px - 768px)
   ========================================================================== */
@media (max-aspect-ratio: 1 / 1), (max-width: 820px) {
  .vl-scene {
    --u: calc(100vw / 52);
    width: 100vw;
    height: clamp(640px, 92svh, 860px);
    max-height: none;
    perspective: none;
  }

  .vl-plane {
    transform: none !important;
  }

  .vl-room {
    transform: scale(1.02) !important;
  }

  .vl-editorial-wrap {
    left: 5%;
    top: 11%;
    width: 90%;
    height: 35%;
    transform: none;
  }

  .vl-tabs {
    left: 0;
    right: 0;
    justify-content: center;
    transform: none;
    margin-bottom: 10px;
    gap: 8px;
  }

  .vl-tab {
    height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .vl-tab[aria-selected="true"] {
    height: 40px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .vl-tab[aria-selected="true"]::after {
    height: 10px;
  }

  .vl-popout {
    left: 56%;
    top: 29%;
    width: 39%;
    height: 22%;
    padding: 8px;
    border-radius: 14px;
    transform: none;
  }

  .vl-wall {
    left: 5%;
    top: 53%;
    width: 90%;
    height: 41%;
    transform: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vl-tile {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
  }

  .vl-tile:hover {
    transform: translateY(-2px);
  }

  .vl-tile__media {
    left: 10%;
    right: 10%;
    top: 8%;
    bottom: 34%;
  }

  .vl-tile__name {
    font-size: 10.5px;
  }

  .vl-tile__count {
    display: none;
  }

  .vl-scroll-cue {
    bottom: 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .vl-popout {
    left: 54%;
    top: 30%;
    width: 41%;
    height: 21%;
  }
  .vl-caption__title {
    font-size: 17px;
  }
  .vl-caption__sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vl-plane, .vl-room, .vl-popout, .vl-photo-layer, .vl-caption, .vl-tab, .vl-tile {
    transition: none !important;
    animation: none !important;
  }
}
/* Polish: keep Arabic editorial caption & CTA clear of the floating pop-out card */
@media (min-width: 821px) {
  :lang(ar) .vl-caption {
    right: 26%;
    left: 5%;
  }
  .vl-wall {
    top: 3.5%;
    height: 85%;
  }
}

/* VL_PERF_PATCH_V2 */
body[data-page="home"] main > .hero {
  display: none !important;
}
@media (min-width: 821px) {
  :lang(ar) .vl-caption {
    right: 26%;
    left: 5%;
  }
  .vl-wall {
    top: 3.5%;
    height: 85%;
  }
}

/* === VL_MOBILE_FIRST_V3 === */
@keyframes vlAmbientRoom {
  0%   { transform: translate3d(-4px, -2px, 0) scale(1.05); }
  50%  { transform: translate3d(4px, 3px, 0) scale(1.07); }
  100% { transform: translate3d(-4px, -2px, 0) scale(1.05); }
}

@media (max-aspect-ratio: 1 / 1), (max-width: 820px) {
  .vl-spatial-section {
    padding: 0;
  }

  .vl-scene {
    --u: calc(100vw / 52);
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    perspective: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 22px;
  }

  .vl-room {
    inset: -6%;
    animation: vlAmbientRoom 14s ease-in-out infinite;
    transform: translate3d(var(--rx), var(--ry), 0) scale(1.05) !important;
  }

  .vl-plane {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: rotateY(var(--py)) rotateX(var(--px)) !important;
    transition: transform 0.25s ease-out;
  }

  .vl-editorial-wrap {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .vl-tabs {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    justify-content: center;
    gap: 8px;
  }

  .vl-tab {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  .vl-tab[aria-selected="true"] {
    height: 40px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }

  .vl-tab[aria-selected="true"]::after {
    height: 9px !important;
  }

  .vl-window-frame {
    width: 100%;
    height: 280px;
    border-radius: 20px;
  }

  .vl-photo-area {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border-radius: 14px;
  }

  .vl-caption {
    left: 16px !important;
    right: 16px !important;
    bottom: 14px !important;
  }

  .vl-caption__title {
    font-size: 21px !important;
    margin-bottom: 4px !important;
  }

  .vl-caption__sub {
    display: block !important;
    font-size: 12.5px !important;
    max-width: 100% !important;
  }

  .vl-caption__actions {
    margin-top: 10px !important;
    gap: 8px !important;
  }

  /* Sleek non-overlapping Active Category Spotlight Bar on Mobile */
  .vl-popout {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 76px;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 12px;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    z-index: 20;
    direction: rtl;
    transform: translate3d(var(--pop-x), var(--pop-y), 0) !important;
  }

  :lang(fr) .vl-popout {
    direction: ltr;
  }

  .vl-popout__media {
    width: 58px !important;
    height: 58px !important;
    flex-shrink: 0;
  }

  .vl-popout__media img {
    border-radius: 10px !important;
  }

  .vl-popout__meta {
    flex: 1;
    text-align: start !important;
  }

  .vl-popout__title {
    font-size: 14.5px !important;
  }

  .vl-popout__sub {
    font-size: 11.5px !important;
  }

  .vl-popout__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, #a83c67, #7d294d);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fffaf7;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Clean 4x2 Touch Tile Grid (No blank hole on mobile!) */
  .vl-wall {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    order: 3;
  }

  .vl-tile {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 108px !important;
    border-radius: 14px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .vl-tile.is-popped {
    opacity: 1 !important;
    pointer-events: auto !important;
    border-color: var(--vl-champagne) !important;
    background: linear-gradient(160deg, rgba(182, 166, 155, 0.92), rgba(132, 118, 109, 0.86)) !important;
    box-shadow: 0 0 0 2px rgba(230, 201, 162, 0.55), 0 10px 22px rgba(8, 4, 2, 0.45) !important;
    transform: translateY(-3px) !important;
  }

  .vl-tile__media {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
    bottom: 34px !important;
  }

  .vl-tile__label {
    bottom: 7px !important;
  }

  .vl-tile__name {
    font-size: 10.5px !important;
  }

  .vl-scroll-cue {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-top: 2px;
  }
}

.vl-popout__cta {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .vl-room { animation: none !important; }
}

/* === VL_DIRECT_ORDER_CTA === */
.vl-popout {
  height: 32.5% !important;
  top: 39% !important;
  gap: calc(var(--u) * 0.35);
}

.vl-popout__media {
  height: 55% !important;
}

.vl-popout__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 92%;
  min-height: 30px;
  padding: calc(var(--u) * 0.38) calc(var(--u) * 0.8);
  border-radius: 999px;
  background: linear-gradient(120deg, #a83c67, #7d294d);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fffaf7;
  font-size: max(11px, calc(var(--u) * 0.72));
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(18, 5, 12, 0.42);
  transition: transform 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 2;
}

.vl-popout:hover .vl-popout__cta {
  transform: translateY(-1px);
  background: linear-gradient(120deg, #be4776, #8f3059);
}

@media (max-aspect-ratio: 1 / 1), (max-width: 820px) {
  .vl-popout {
    height: auto !important;
    top: auto !important;
  }
  .vl-popout__cta {
    width: auto !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
  }
}

/* === VL_LUXURY_MOTION_V4 === */
@keyframes vlKenBurns {
  0%   { transform: scale(1.0) translate3d(0, 0, 0); }
  50%  { transform: scale(1.07) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.0) translate3d(0, 0, 0); }
}

@keyframes vlSheenSweep {
  0%   { transform: translateX(-140%) skewX(-22deg); opacity: 0; }
  20%  { opacity: 0.55; }
  45%  { transform: translateX(220%) skewX(-22deg); opacity: 0; }
  100% { transform: translateX(220%) skewX(-22deg); opacity: 0; }
}

@keyframes vlCardFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-4px); }
}

@keyframes vlTileReveal {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vl-photo-layer.is-active {
  animation: vlKenBurns 13s ease-in-out infinite;
}

.vl-popout__cta,
.vl-btn-glass-primary {
  position: relative;
  overflow: hidden;
}

.vl-popout__cta::after,
.vl-btn-glass-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 247, 0.55), transparent);
  animation: vlSheenSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

@media (max-aspect-ratio: 1 / 1), (max-width: 820px) {
  .vl-scene {
    padding-top: 10px !important;
    gap: 10px !important;
  }

  .vl-window-frame {
    height: 245px !important;
    animation: vlTileReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .vl-tile {
    animation: vlTileReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.28s cubic-bezier(0.25, 1.3, 0.45, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
  }

  .vl-tile:nth-child(1) { animation-delay: 0.05s; }
  .vl-tile:nth-child(2) { animation-delay: 0.10s; }
  .vl-tile:nth-child(3) { animation-delay: 0.15s; }
  .vl-tile:nth-child(4) { animation-delay: 0.20s; }
  .vl-tile:nth-child(5) { animation-delay: 0.25s; }
  .vl-tile:nth-child(6) { animation-delay: 0.30s; }
  .vl-tile:nth-child(7) { animation-delay: 0.35s; }
  .vl-tile:nth-child(8) { animation-delay: 0.40s; }

  .vl-tile:active {
    transform: scale(0.94) !important;
  }

  .vl-tile.is-popped {
    animation: vlCardFloat 3.2s ease-in-out infinite !important;
  }

  .vl-popout {
    animation: vlTileReveal 0.6s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }

  .vl-popout:active {
    transform: scale(0.97) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vl-photo-layer.is-active,
  .vl-popout__cta::after,
  .vl-btn-glass-primary::after,
  .vl-tile,
  .vl-tile.is-popped,
  .vl-window-frame,
  .vl-popout {
    animation: none !important;
  }
}

/* === VL_LUXURY_MOTION_V5 === */
@keyframes vlOrbDrift1 {
  0%, 100% { transform: translate3d(-10%, -6%, 0) scale(1); opacity: 0.34; }
  50%      { transform: translate3d(14%, 10%, 0) scale(1.18); opacity: 0.52; }
}

@keyframes vlOrbDrift2 {
  0%, 100% { transform: translate3d(12%, 8%, 0) scale(1.08); opacity: 0.28; }
  50%      { transform: translate3d(-12%, -10%, 0) scale(0.95); opacity: 0.46; }
}

@keyframes vlFrameGlare {
  0%, 100% { transform: translateX(-130%) rotate(18deg); opacity: 0; }
  25%      { opacity: 0.28; }
  55%      { transform: translateX(230%) rotate(18deg); opacity: 0; }
}

@keyframes vlOrderPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(196, 82, 9, 0.28), 0 0 0 0 rgba(196, 82, 9, 0.32); }
  50%      { box-shadow: 0 12px 28px rgba(196, 82, 9, 0.42), 0 0 0 8px rgba(196, 82, 9, 0); }
}

/* Ambient Champagne & Rose-Gold Light Orbs inside Boutique Stage */
.vl-ambient-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.vl-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.vl-orb--champagne {
  width: 44vmax;
  height: 44vmax;
  left: -10%;
  top: -8%;
  background: radial-gradient(circle, rgba(230, 201, 162, 0.24) 0%, rgba(230, 201, 162, 0) 68%);
  animation: vlOrbDrift1 11s ease-in-out infinite;
}

.vl-orb--rose {
  width: 38vmax;
  height: 38vmax;
  right: -8%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(194, 85, 127, 0.22) 0%, rgba(194, 85, 127, 0) 68%);
  animation: vlOrbDrift2 13s ease-in-out infinite;
}

/* Subtle Glass Specular Reflection Sweep across Editorial Window */
.vl-window-frame::after {
  content: "";
  position: absolute;
  inset: -20%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 247, 0.22), transparent);
  pointer-events: none;
  animation: vlFrameGlare 7.5s ease-in-out infinite;
  z-index: 4;
}

.vl-window-frame {
  overflow: hidden;
}

/* Staggered Luxury 3D Scroll Reveal for Storefront Product Cards */
.product-card.vl-card-pending {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
}

.product-card.vl-card-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Conversion Sheen + Soft Pulse on Direct COD Submit Button */
.cod-submit {
  position: relative;
  overflow: hidden;
  animation: vlOrderPulse 3.2s ease-in-out infinite;
}

.cod-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: vlSheenSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Enhanced 3D Tilt & Spring Feel on Mobile */
@media (max-aspect-ratio: 1 / 1), (max-width: 820px) {
  .vl-window-frame {
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.42),
      0 18px 36px rgba(8, 4, 2, 0.56);
    transform: rotateY(calc(var(--py) * 0.85)) rotateX(calc(var(--px) * 0.85));
    transition: transform 0.18s ease-out;
  }

  .vl-popout {
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.45),
      0 14px 32px rgba(8, 4, 2, 0.52);
  }

  .vl-tile:active {
    transform: perspective(600px) translateZ(-10px) scale(0.93) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vl-orb,
  .vl-window-frame::after,
  .cod-submit,
  .cod-submit::after {
    animation: none !important;
  }
  .product-card.vl-card-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === VL_LUXURY_SHOP_V6 === */
/* Permanently hide legacy clunky filter form (static & CMS) while keeping DOM intact for JS */
body[data-page="shop"] .filters,
body[data-page="shop"] aside:has(#filters-form),
body[data-page="shop"] .cms-filters,
body[data-page="shop"] [data-cms-filters],
body[data-page="shop"] #filters-form,
body[data-page="shop"] .vl-active-filters,
body[data-page="shop"] .placeholder-note {
  display: none !important;
}

/* Full-width luxury gallery layout on Shop page */
body[data-page="shop"] {
  background: linear-gradient(180deg, #faf4f2 0%, #fffdfa 40%, #f8eff2 100%) !important;
}

body[data-page="shop"] .shop-layout {
  display: block !important;
  grid-template-columns: 1fr !important;
}

body[data-page="shop"] .page-intro {
  position: relative;
  overflow: hidden;
  padding-block: 2.2rem 2.4rem !important;
  background:
    radial-gradient(110% 100% at 85% 20%, rgba(201, 139, 94, 0.24) 0%, transparent 58%),
    radial-gradient(90% 90% at 10% 85%, rgba(194, 85, 127, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #1b0d1e 0%, #2a0f2e 52%, #3a1f1b 100%) !important;
  color: #fffaf7 !important;
  border-bottom: 1px solid rgba(230, 201, 162, 0.28);
}

body[data-page="shop"] .page-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/spatial/boutique-bg-mobile.jpg") center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

body[data-page="shop"] .page-intro > .container {
  position: relative;
  z-index: 2;
}

body[data-page="shop"] .page-intro .breadcrumb,
body[data-page="shop"] .page-intro .breadcrumb a {
  color: rgba(230, 201, 162, 0.85) !important;
}

body[data-page="shop"] .page-intro h1 {
  color: #fffaf7 !important;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem) !important;
  margin-bottom: 0.45rem !important;
  text-shadow: 0 4px 18px rgba(10, 4, 8, 0.45);
}

body[data-page="shop"] .page-intro p {
  color: rgba(255, 250, 247, 0.8) !important;
  font-size: 0.9rem !important;
}

/* Sleek 1-Line Luxury Category Pill Bar */
.vl-shop-ribbon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 1.25rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vl-shop-ribbon::-webkit-scrollbar {
  display: none;
}

.vl-ribbon-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid #dfcfd7;
  background: #fffdfa;
  color: #3a1f3d;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(42, 15, 46, 0.05);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.vl-ribbon-pill:hover {
  transform: translateY(-2px);
  border-color: #c98b5e;
}

.vl-ribbon-pill.is-active {
  background: linear-gradient(125deg, #2a0f2e 0%, #5c2155 60%, #8e335c 100%);
  border-color: #e3b684;
  color: #fffaf7;
  box-shadow: 0 8px 20px rgba(42, 15, 46, 0.24);
}

body[data-page="shop"] .shop-toolbar {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.88);
  border: 1px solid #eadbe2;
  margin-bottom: 1.35rem !important;
}

body[data-page="shop"] #results-count {
  font-weight: 700;
  color: #2a0f2e;
}

/* Editorial Luxury Product Cards (Upgraded from Basic) */
body[data-page="shop"] .shop-layout .product-grid,
body[data-page="shop"] #shop-products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem 0.75rem !important;
}

@media (min-width: 800px) {
  body[data-page="shop"] .shop-layout .product-grid,
  body[data-page="shop"] #shop-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.65rem 1.25rem !important;
  }
}

@media (min-width: 1120px) {
  body[data-page="shop"] .shop-layout .product-grid,
  body[data-page="shop"] #shop-products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #fcf6f4 100%) !important;
  border: 1px solid #e9dad7 !important;
  border-radius: 1.35rem !important;
  padding: 0.65rem 0.65rem 0.9rem !important;
  box-shadow: 0 10px 28px rgba(42, 15, 46, 0.06) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.product-card:hover {
  transform: translateY(-6px) !important;
  border-color: #d6b199 !important;
  box-shadow: 0 22px 46px rgba(42, 15, 46, 0.12) !important;
}

.product-card .product-image {
  border-radius: 1rem !important;
  background: linear-gradient(145deg, #f6ecea 0%, #efe3df 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(42, 15, 46, 0.05);
}

.product-card .discount {
  background: linear-gradient(125deg, #2a0f2e, #7c2752) !important;
  color: #fce8cf !important;
  border: 1px solid rgba(227, 182, 132, 0.55);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(42, 15, 46, 0.25);
}

.product-card .demo-label {
  display: none !important;
}

.product-card h3 {
  font-family: var(--vl-font-ar-display) !important;
  font-size: 0.96rem !important;
  color: #231126 !important;
  margin-top: 0.85rem !important;
}

.product-card .product-category {
  display: inline-block;
  width: fit-content;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #f5e8ed;
  color: #7b3054 !important;
  font-weight: 600;
  margin-top: 0.15rem;
}

.product-card .price {
  color: #2a0f2e !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

.product-card del {
  color: #9e8a96 !important;
}

.product-card .swatches {
  gap: 0.45rem !important;
  margin-block: 0.55rem 0.85rem !important;
}

.product-card .swatch {
  inline-size: 15px !important;
  block-size: 15px !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(42, 15, 46, 0.22);
}

/* Luxury Gradient CTA Button on every Product Card */
.product-card .btn {
  margin-top: auto;
  min-block-size: 42px !important;
  background: linear-gradient(120deg, #2a0f2e 0%, #6a2153 58%, #9b3560 100%) !important;
  border: 1px solid rgba(227, 182, 132, 0.4) !important;
  color: #fffaf7 !important;
  box-shadow: 0 8px 18px rgba(42, 15, 46, 0.18);
  position: relative;
  overflow: hidden;
}

.product-card .btn:hover {
  background: linear-gradient(120deg, #3b1540 0%, #832964 60%, #b13e6e 100%) !important;
  box-shadow: 0 12px 24px rgba(42, 15, 46, 0.28);
}

.product-card .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 247, 0.35), transparent);
  animation: vlSheenSweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

/* === VL_CONVERSION_ORANGE_V7 === */
/* High-Conversion Sales Orange across ALL Order & Shop CTAs */
.product-card .btn,
.vl-popout__cta,
.vl-btn-glass-primary,
.cod-submit {
  background: linear-gradient(120deg, #f06a0a 0%, #dc5106 58%, #b93c04 100%) !important;
  border: 1px solid rgba(255, 224, 194, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(220, 81, 6, 0.30) !important;
}

.product-card .btn:hover,
.vl-popout:hover .vl-popout__cta,
.vl-btn-glass-primary:hover,
.cod-submit:hover:enabled {
  background: linear-gradient(120deg, #ff7816 0%, #e85a08 58%, #c94406 100%) !important;
  box-shadow: 0 14px 30px rgba(220, 81, 6, 0.44) !important;
  transform: translateY(-2px);
}

/* Product Page Conversion Psychology Box (Countdown + Demand + COD Trust) */
@keyframes vlPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(220, 81, 6, 0.6); }
  50%      { transform: scale(1.18); opacity: 0.9; box-shadow: 0 0 0 7px rgba(220, 81, 6, 0); }
}

.vl-urgency-box {
  margin: 0.9rem 0 1.15rem;
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff6ee 0%, #fffbf7 100%);
  border: 1px solid #f5cdb0;
  box-shadow: 0 10px 26px rgba(220, 81, 6, 0.08);
  display: grid;
  gap: 0.7rem;
}

.vl-demand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #8f2d04;
}

.vl-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e85a08;
  flex-shrink: 0;
  animation: vlPulseDot 1.8s ease-in-out infinite;
}

.vl-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  background: linear-gradient(120deg, #2a0f2e 0%, #441748 100%);
  color: #fffaf7;
}

.vl-timer-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f7dfc6;
}

.vl-timer-digits {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  direction: ltr;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.vl-timer-unit {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  padding: 0.18rem 0.35rem;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #f06a0a, #c94406);
  color: #fff;
}

.vl-stock-bar {
  height: 6px;
  border-radius: 999px;
  background: #f4dfd1;
  overflow: hidden;
}

.vl-stock-bar__fill {
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f06a0a, #d12e4b);
}

.vl-trust-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.vl-trust-pill {
  padding: 0.45rem 0.4rem;
  border-radius: 0.65rem;
  background: #ffffff;
  border: 1px solid #eedad0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #3a1f3d;
  line-height: 1.35;
}

/* Sticky Mobile Quick-Order Bar on Product Pages */
.vl-sticky-order {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 253, 250, 0.96);
  border-top: 1px solid #ead8cf;
  box-shadow: 0 -10px 28px rgba(42, 15, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.vl-sticky-order.is-visible {
  transform: translateY(0);
}

.vl-sticky-order__info {
  min-width: 0;
}

.vl-sticky-order__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2a0f2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vl-sticky-order__price {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #d44d07;
}

.vl-sticky-order__btn {
  flex-shrink: 0;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(120deg, #f06a0a, #c94406);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(220, 81, 6, 0.35);
}

@media (min-width: 821px) {
  .vl-sticky-order {
    display: none !important;
  }
}

/* === VL_WORLDCLASS_UX_V8 === */
/* 1. Fix Hero Floating Card Overlap & High-Contrast Scrims */
@media (min-width: 821px) {
  .vl-editorial-wrap {
    left: 14.5% !important;
    width: 31.5% !important;
  }
  .vl-popout {
    left: 41.2% !important;
    width: 16.8% !important;
    top: 38.5% !important;
    height: 33% !important;
    z-index: 32 !important;
  }
  .vl-wall {
    left: 59.4% !important;
    width: 28.4% !important;
  }
}

.vl-photo-scrim {
  background: linear-gradient(180deg, rgba(16, 8, 12, 0.10) 0%, rgba(16, 8, 12, 0.25) 45%, rgba(14, 7, 10, 0.88) 100%) !important;
}

.vl-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(16, 8, 12, 0.86) 100%);
  pointer-events: none;
  z-index: 1;
}

.vl-tile__label {
  z-index: 2 !important;
}

.vl-tile__name,
.vl-tile__count,
.vl-popout__title,
.vl-popout__sub {
  text-shadow: 0 2px 8px rgba(8, 3, 6, 0.78) !important;
}

.vl-popout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 8, 12, 0.06) 0%, rgba(16, 8, 12, 0.55) 68%, rgba(14, 6, 10, 0.86) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 2. Prevent WhatsApp Floating Button from Covering Total Price or Submit Button */
.whatsapp-float {
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

body.vl-hide-whatsapp .whatsapp-float {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(24px) !important;
}

body[data-page="product"] .cod-form {
  padding-bottom: 4.5rem !important;
}

/* 3. Eliminate Duplicate Size / Color Dropdowns if injected by legacy/CMS wrappers */
.cod-form select[name="size"],
.cod-form select[name="color"],
.cod-form .field:has(> select[name="size"]),
.cod-form .field:has(> select[name="color"]),
.cod-form .field:has(.input-group select[name="size"]),
.cod-form .field:has(.input-group select[name="color"]) {
  display: none !important;
}

/* 4. Quantity Selector & Size Guide Button */
.vl-size-legend {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
}

.vl-size-guide-btn {
  border: 1px solid #dcc4cf;
  background: #fdf6f8;
  color: #4a1b4f;
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vl-size-guide-btn:hover {
  background: #f5e3ea;
  border-color: #c2557f;
}

.vl-qty-row {
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  background: #faf6f4;
  border: 1px solid #eadcd7;
  margin-block: 0.8rem 1.15rem !important;
}

.vl-qty-row .quantity button {
  background: #ffffff;
  border: 1px solid #d4c2ca;
  font-weight: 800;
  font-size: 1.15rem;
  color: #2a0f2e;
}

.vl-qty-row .quantity input {
  background: transparent !important;
  border: 0 !important;
  font-weight: 800;
  font-size: 1.05rem;
  color: #2a0f2e;
}

/* Real-time valid Algerian phone indicator */
.input-group.is-valid-phone {
  border-color: #1a8754 !important;
  box-shadow: 0 0 0 3px rgba(26, 135, 84, 0.14) !important;
}

/* 5. Sticky Product Gallery on Desktop */
@media (min-width: 800px) {
  .product-layout > section:first-child {
    position: sticky;
    top: 102px;
    align-self: start;
  }
}

/* 6. Size Guide Modal Styling */
.vl-size-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.86rem;
}

.vl-size-table th,
.vl-size-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #eadbe2;
  text-align: center;
}

.vl-size-table th {
  background: #2a0f2e;
  color: #fffaf7;
  font-weight: 700;
}

.vl-size-table tr:nth-child(even) td {
  background: #faf4f6;
}

/* 7. Compact Quick Search & Size Pills on Shop Page */
.vl-quick-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.vl-quick-search {
  flex: 1 1 200px;
  min-height: 42px !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px !important;
  border: 1px solid #dfcfd7 !important;
  background: #ffffff !important;
  font-size: 0.86rem !important;
}

.vl-quick-sizes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.vl-quick-size-btn {
  min-width: 38px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #dfcfd7;
  background: #fffdfa;
  color: #3a1f3d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0.65rem;
}

.vl-quick-size-btn.is-active {
  background: linear-gradient(120deg, #f06a0a, #c94406);
  border-color: #f06a0a;
  color: #fff;
}

/* 8. Elevated Thank-You Confirmation Card */
.thank-you-shell {
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcf6f4 100%);
  border: 1px solid #ead8d2;
  box-shadow: 0 18px 46px rgba(42, 15, 46, 0.08);
}

.thank-you-symbol {
  background: linear-gradient(135deg, #1a8754, #146c43) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(26, 135, 84, 0.28);
}

/* Hide floating WhatsApp button globally */
.whatsapp-float, .cms-whatsapp-float { display: none !important; }


/* === VL_FINAL_POLISH_V9 === */
/* 1. Remove Quick Search bar on Shop page completely */
.vl-quick-filter-bar,
#vl-quick-filter-bar,
.vl-quick-search {
  display: none !important;
}

/* 2. Prevent FOUC of legacy static form inside product page before JS mounts .cod-form */
#product-order-form > :not(.cod-form) {
  display: none !important;
}

/* 3. Zero-Overlap Desktop Hero Spacing + High Contrast for Découvrez & Titles */
@media (min-width: 821px) {
  .vl-editorial-wrap {
    left: 6.5% !important;
    width: 31% !important;
  }
  :lang(ar) .vl-caption {
    right: 6% !important;
    left: 6% !important;
  }
  .vl-popout {
    left: 40.5% !important;
    width: 17.5% !important;
    top: 37.5% !important;
    height: 34% !important;
  }
  .vl-wall {
    left: 61% !important;
    width: 30% !important;
  }
}

.vl-caption__eyebrow {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 10, 14, 0.58);
  border: 1px solid rgba(230, 201, 162, 0.35);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

/* 4. Balanced 5-Column Category Grid on Homepage ("تسوّقي حسب الفئة") — No orphan 5th card */
@media (min-width: 800px) {
  .categories,
  .cms-categories,
  .cms-grid--categories,
  [data-cms-categories] {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

/* 5. Fix French LTR Input Alignment & Prevent Clipped Placeholders */
html[lang="fr"] .cod-form input[name="phone"],
html[lang="fr"] .cod-form .cod-location-select,
html[lang="fr"] .cod-form .input-group input,
html[lang="fr"] .cod-form .input-group select {
  direction: ltr !important;
  text-align: left !important;
  font-size: 0.9rem !important;
  padding-inline: 0.65rem !important;
}

html[lang="fr"] .cod-location-select option[value=""] {
  direction: ltr !important;
}

/* Clear invalid red border feedback on phone & form inputs */
.input-group:has([aria-invalid="true"]) {
  border-color: #c5221f !important;
  box-shadow: 0 0 0 3px rgba(197, 34, 31, 0.14) !important;
}

/* === VL_FINAL_GRID_FOOTER_V10 === */
/* 1. Homepage "تسوّقي حسب الفئة / Acheter par catégorie" -> 5 equal columns on desktop (no 4+1) */
@media (min-width: 800px) {
  body[data-page="home"] .categories,
  body[data-page="home"] .cms-categories,
  body[data-page="home"] .cms-category-grid,
  body[data-page="home"] [class*="categor"][class*="grid"],
  body[data-page="home"] section:has(.category-card) .categories,
  body[data-page="home"] section:has(a[href*="category=heels"]) > div > div:has(> a[href*="category=heels"]) {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

/* 2. Homepage "اختياراتنا لكِ" -> 4 equal columns on desktop (4+4 instead of 3+3+2) */
@media (min-width: 960px) {
  body[data-page="home"] #featured-products,
  body[data-page="home"] .featured-grid,
  body[data-page="home"] .product-grid,
  body[data-page="home"] .cms-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.6rem 1.2rem !important;
  }
}

/* 3. Footer Contact Links in one clean row + clear spacing between WhatsApp/الهاتف and phone number */
footer .social-links,
.site-footer .social-links,
.cms-footer .social-links,
footer [class*="social"]:has(a),
footer [class*="contact-links"] {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.65rem 1rem !important;
}

footer a,
footer li > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

footer bdi,
footer [data-phone-display],
footer a[href*="wa.me"] bdi,
footer a[href*="tel:"] bdi {
  margin-inline-start: 0.4rem !important;
  direction: ltr;
  unicode-bidi: isolate;
}
