/* =========================================================
   VC Mesh — animated color-mesh background for hero sections
   Injected globally; opts-in via body[data-vc-mesh="1"].
   ========================================================= */
body[data-vc-mesh="1"] section:first-of-type { position: relative; isolation: isolate; }
body[data-vc-mesh="1"] section:first-of-type::before {
  content: "";
  position: absolute; inset: -10% -5% -20% -5%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(233,106,79,0.28) 0%, rgba(233,106,79,0) 70%),
    radial-gradient(34% 40% at 82% 18%, rgba(192,21,48,0.22) 0%, rgba(192,21,48,0) 70%),
    radial-gradient(46% 50% at 60% 78%, rgba(127,164,139,0.24) 0%, rgba(127,164,139,0) 72%),
    radial-gradient(30% 34% at 25% 82%, rgba(201,168,76,0.22) 0%, rgba(201,168,76,0) 70%);
  filter: blur(30px) saturate(1.05);
  animation: vc-mesh-drift 22s ease-in-out infinite alternate;
  opacity: 0.9;
}
body[data-vc-mesh="1"] section:first-of-type::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 30%, rgba(248,244,236,0.55) 75%, var(--v2-cream, #F8F4EC) 100%);
}
@keyframes vc-mesh-drift {
  0%   { transform: translate3d(0,0,0)     scale(1);   }
  50%  { transform: translate3d(-2%,1%,0)  scale(1.06);}
  100% { transform: translate3d(2%,-1%,0)  scale(1.03);}
}
@media (prefers-reduced-motion: reduce) {
  body[data-vc-mesh="1"] section:first-of-type::before { animation: none; }
}

/* ============ Shared: Orbiting-dots brand mark (V1/V2/V3) ============ */
@keyframes vcOrbDance {
  0%   { transform: translate(0,0); animation-timing-function: linear; }
  38%  { transform: translate(0,0); animation-timing-function: cubic-bezier(0.5,0,0.75,0); }
  52%  { transform: translate(var(--ox,0), var(--oy,0)); animation-timing-function: cubic-bezier(0.45,0,0.55,1); }
  68%  { transform: translate(var(--ox2,0), var(--oy2,0)); animation-timing-function: cubic-bezier(0.45,0,0.55,1); }
  84%  { transform: translate(var(--ox3,0), var(--oy3,0)); animation-timing-function: cubic-bezier(0.22,1,0.36,1); }
  100% { transform: translate(0,0); }
}
.vc-logo-mark .vc-orb, .vc-logo-mark .vc-orb-sm {
  transform-box: fill-box; transform-origin: center;
  animation: vcOrbDance 7.5s infinite; will-change: transform;
}
.vc-logo-mark .vc-orb-sm { animation-duration: 6.2s; }
@media (prefers-reduced-motion: reduce) {
  .vc-logo-mark .vc-orb, .vc-logo-mark .vc-orb-sm { animation: none !important; transform: none !important; }
}

/* ============ VC Monogram (editorial) — animated draw ============ */
@keyframes vcMonoDraw    { to { stroke-dashoffset: 0; } }
@keyframes vcMonoBreathe { 0%,100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes vcMonoPulse   { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.55; } }
.vc-monogram { display: inline-block; vertical-align: middle; }
.vc-monogram svg { display: block; width: 100%; height: 100%; overflow: visible; }
.vc-monogram .vcm-c, .vc-monogram .vcm-v {
  fill: none; stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: vcMonoDraw 2.6s cubic-bezier(.65,.05,.36,1) .15s forwards,
             vcMonoBreathe 5s ease-in-out 3s infinite;
}
.vc-monogram .vcm-v { animation-delay: 0.55s, 3.4s; }
.vc-monogram .vcm-dot { transform-origin: center; transform-box: fill-box; animation: vcMonoPulse 3.4s ease-in-out 1.8s infinite; }
@media (prefers-reduced-motion: reduce) {
  .vc-monogram .vcm-c, .vc-monogram .vcm-v { animation: none !important; stroke-dashoffset: 0 !important; }
  .vc-monogram .vcm-dot { animation: none !important; }
}

/* ============ Hero banner: drifting colour mesh over the product image ============ */
@keyframes vcHeroMesh {
  0%   { transform: translate3d(-4%, 2%, 0) scale(1.05); }
  50%  { transform: translate3d(4%, -3%, 0) scale(1.14); }
  100% { transform: translate3d(-4%, 2%, 0) scale(1.05); }
}
@keyframes vcHeroSheen {
  0%   { transform: translateX(-120%); }
  60%, 100% { transform: translateX(160%); }
}
.v2-hero-mesh {
  position: absolute; inset: -12%;
  pointer-events: none; z-index: 1;
  mix-blend-mode: screen; opacity: 0.75;
  background:
    radial-gradient(34% 38% at 22% 24%, rgba(233,106,79,0.55) 0%, rgba(233,106,79,0) 70%),
    radial-gradient(30% 34% at 78% 18%, rgba(192,21,48,0.45) 0%, rgba(192,21,48,0) 70%),
    radial-gradient(42% 46% at 62% 80%, rgba(127,164,139,0.45) 0%, rgba(127,164,139,0) 72%),
    radial-gradient(28% 32% at 26% 84%, rgba(201,168,76,0.42) 0%, rgba(201,168,76,0) 70%);
  filter: blur(26px) saturate(1.1);
  animation: vcHeroMesh 20s ease-in-out infinite;
}
.v2-hero-mesh::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: vcHeroSheen 9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .v2-hero-mesh, .v2-hero-mesh::after { animation: none !important; }
}

/* ============ Hero banner variants (A/B/C) ============ */

/* --- B: pastel diagonal bottle drift --- */
@keyframes vcDriftL { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes vcDriftR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.vc-drift-wrap {
  position: absolute; inset: -30%;
  transform: rotate(-22deg);
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  pointer-events: none;
}
.vc-drift-row { display: flex; width: max-content; will-change: transform; margin: clamp(-34px, -3.4vw, -10px) 0; }
.vc-drift-row > span { display: flex; }
.vc-drift-row img {
  height: clamp(224px, 40vw, 432px); width: auto; display: block;
  margin: 0 clamp(18px, 3vw, 40px);
  opacity: 1;
}


/* bottles point the way their row travels */
.vc-drift-row.l img { transform: rotate(-90deg); }
.vc-drift-row.r img { transform: rotate(90deg); }

.vc-drift-row.l { animation: vcDriftL linear infinite; }
.vc-drift-row.r { animation: vcDriftR linear infinite; }
.vc-pastel-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 20% 20%, #FFE1E6 0%, rgba(255,225,230,0) 70%),
    radial-gradient(55% 50% at 82% 26%, #DDEBFF 0%, rgba(221,235,255,0) 70%),
    radial-gradient(65% 60% at 60% 88%, #E4F6E9 0%, rgba(228,246,233,0) 72%),
    radial-gradient(50% 45% at 12% 82%, #FFF3D6 0%, rgba(255,243,214,0) 70%),
    linear-gradient(160deg, #FDF7F2, #F3F0FA);
}
.vc-pastel-soft {
  position: absolute; inset: 0; pointer-events: none;
  backdrop-filter: blur(0.6px);
  background: radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.32) 100%);
}

/* --- C: halo / ripple stage --- */
@keyframes vcHaloSpin  { to { transform: rotate(360deg); } }
@keyframes vcRipple {
  0%   { transform: scale(0.35); opacity: 0; }
  12%  { opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes vcHaloBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
.vc-halo-spin {
  position: absolute; left: 50%; top: 46%; width: 130%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none; filter: blur(28px); opacity: 0.75;
  background: conic-gradient(from 0deg, #E96A4F, #C01530, #7FA48B, #C9A84C, #E96A4F);
  animation: vcHaloSpin 26s linear infinite;
}
.vc-ripple {
  position: absolute; left: 50%; top: 52%; width: 78%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1.5px solid rgba(27,29,28,0.35);
  animation: vcRipple 6s cubic-bezier(.2,.7,.2,1) infinite; pointer-events: none;
}
.vc-halo-bob { animation: vcHaloBob 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .vc-drift-row, .vc-halo-spin, .vc-ripple, .vc-halo-bob { animation: none !important; }
}

/* --- mini banner devbar --- */
@keyframes vcMiniBarUp { from { transform: translate(-50%, 130%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.vc-minibar {
  position: fixed; left: 50%; bottom: 18px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  background: rgba(27,29,28,0.92); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.55);
  font-family: 'Inter', system-ui, sans-serif; color: #fff;
  animation: vcMiniBarUp 420ms cubic-bezier(.2,.7,.2,1) both;
}
.vc-minibar .vc-mini-label { font-size: 11.5px; letter-spacing: 0.04em; opacity: 0.72; white-space: nowrap; }
.vc-minibar button {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 7px 13px; font: inherit; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.82);
  transition: background 160ms, color 160ms;
}
.vc-minibar button:hover { background: rgba(255,255,255,0.2); color: #fff; }
.vc-minibar button[data-on="true"] { background: #fff; color: #1B1D1C; }
@media (max-width: 620px) {
  .vc-minibar .vc-mini-label { display: none; }
  .vc-minibar { padding: 8px; bottom: 12px; }
}

/* ============ Hero slideshow (bestsellers) ============ */
@keyframes vcSlideIn {
  0%   { opacity: 0; transform: scale(1.10) translateY(14px); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0);       filter: blur(0); }
}
@keyframes vcSlideOut {
  0%   { opacity: 1; transform: scale(1) translateY(0);        filter: blur(0); }
  100% { opacity: 0; transform: scale(0.94) translateY(-18px); filter: blur(12px); }
}
@keyframes vcSlideKen { from { transform: scale(1) } to { transform: scale(1.08) } }
.vc-slide { position: absolute; inset: 0; }
.vc-slide.in  { animation: vcSlideIn  1800ms cubic-bezier(.19,1,.22,1) both; }
.vc-slide.out { animation: vcSlideOut 1800ms cubic-bezier(.55,0,.45,1) both; }
.vc-slide img { position: absolute; inset: 0; width: 100%; height: 100%;
  animation: vcSlideKen 12s ease-out both; }

@keyframes vcLabelUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.vc-slide-label {
  position: absolute; left: 20px; right: 20px; top: 20px; z-index: 6;
  display: inline-flex; flex-direction: column; gap: 4px; pointer-events: none;
  animation: vcLabelUp 700ms cubic-bezier(.19,1,.22,1) both;
}
.vc-slide-label .chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: #1B1D1C; backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.45);
}
.vc-slide-label .name {
  align-self: flex-start; margin-top: 6px; padding: 10px 16px; border-radius: 16px;
  font-family: var(--font-display-v2, Georgia, serif); font-size: clamp(18px, 2.4vw, 26px);
  color: #fff; background: rgba(20,20,25,0.55); backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -16px rgba(0,0,0,0.6);
}
.vc-slide-dots { position: absolute; right: 20px; bottom: 24px; z-index: 6; display: flex; gap: 7px; }
.vc-slide-dots i {
  width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.45);
  transition: width 320ms ease, background 320ms ease;
}
.vc-slide-dots i[data-on="true"] { width: 22px; background: #fff; }

/* ============ Ripple CTA ============ */
@keyframes vcBtnRipple { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes vcBtnSheen  { 0% { background-position: 0% 50% } 100% { background-position: 200% 50% } }
.vc-cta-ripple {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 12px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 18px 32px; font-family: var(--font-body-v2, Inter, sans-serif);
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em; color: #fff;
  background: linear-gradient(100deg, #E96A4F, #C01530, #C9A84C, #C01530, #E96A4F);
  background-size: 200% 100%; animation: vcBtnSheen 18.4s linear infinite;
  box-shadow: 0 18px 40px -14px rgba(192,21,48,0.6);

  transition: transform 200ms cubic-bezier(.19,1,.22,1), box-shadow 200ms;
}
.vc-cta-ripple:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 24px 54px -14px rgba(192,21,48,0.72); }
.vc-cta-ripple::before, .vc-cta-ripple::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.75); pointer-events: none;
  animation: vcBtnRipple 6.8s cubic-bezier(.2,.7,.2,1) infinite;
}
.vc-cta-ripple::after { animation-delay: 3.4s; }
@media (prefers-reduced-motion: reduce) {
  .vc-slide, .vc-slide img, .vc-slide-label, .vc-cta-ripple, .vc-cta-ripple::before, .vc-cta-ripple::after { animation: none !important; }
}
