﻿/* ==========================================================================
   VELORA — EDITORIAL LUXURY MOTION, MICRO-INTERACTIONS & UI POLISH
   ========================================================================== */
:root {
  --velora-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --velora-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom Editorial Scrollbar */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: #1c050a; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.38); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.65); }

/* Frosted Glass Sticky Header Enhancement */
header, .site-header, .navbar {
  transition: background-color 0.45s var(--velora-ease), box-shadow 0.45s var(--velora-ease), backdrop-filter 0.45s var(--velora-ease);
}
header.is-scrolled, .site-header.is-scrolled, .navbar.is-scrolled {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(18, 2, 6, 0.34);
}

/* Hero Arch Smooth Crossfade & Subtle Ken Burns */
.hero-slide {
  transition: opacity 0.85s var(--velora-ease), transform 1.1s var(--velora-ease) !important;
}
.hero-slide.is-active img {
  animation: veloraKenBurns 14s var(--velora-ease) forwards;
}
@keyframes veloraKenBurns {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.055); }
}
.hero-floating-tag {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.65s var(--velora-ease), opacity 0.65s var(--velora-ease);
}

/* Luxury Product Card Elevation & GPU Image Zoom */
.product-card, .collection-panel, .room-card {
  transition: transform 0.55s var(--velora-ease), box-shadow 0.55s var(--velora-ease), border-color 0.45s var(--velora-ease) !important;
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 48px rgba(42, 7, 14, 0.14) !important;
}
.product-card img, .collection-panel img, .room-card img {
  transition: transform 0.85s var(--velora-ease), opacity 0.45s var(--velora-ease) !important;
  will-change: transform;
}
.product-card:hover img {
  transform: scale(1.045);
}

/* Champagne Gold Sheen & Tactile Press Physics on Buttons */
.btn-gold, .btn-primary, .add-to-cart-btn, .btn-magnetic {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--velora-ease), box-shadow 0.4s var(--velora-ease), background-color 0.35s var(--velora-ease) !important;
}
.btn-gold::after, .btn-primary::after, .add-to-cart-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 65%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  transition: left 0.75s var(--velora-ease);
  pointer-events: none;
}
.btn-gold:hover::after, .btn-primary:hover::after, .add-to-cart-btn:hover::after {
  left: 145%;
}
.btn-gold:active, .btn-primary:active, .add-to-cart-btn:active, .btn-magnetic:active {
  transform: scale(0.97) !important;
}

/* Staggered Scroll Reveal Utility */
.velora-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--velora-ease), transform 0.75s var(--velora-ease);
}
.velora-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cart Drawer & Quick-View Modal Silky Transitions */
.cart-drawer, .qv-modal, .modal-box {
  transition: transform 0.55s var(--velora-ease), opacity 0.45s var(--velora-ease) !important;
}

/* Mobile Layout & Overflow Fixes */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .product-card:hover { transform: none !important; }
  .filter-bar, .room-tabs, .category-pills {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-bar::-webkit-scrollbar, .room-tabs::-webkit-scrollbar, .category-pills::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   VELORA — FLAGSHIP ATELIER DETAILS, TABULAR PRICING & SWATCH INTERACTIONS
   ========================================================================== */
.price-now, .price-mrp, .tag-price, .spotlight-price, #qvPrice, #qvMrp {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Dynamic Discount Pill */
.velora-save-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.16);
  color: #7c5812;
  border: 1px solid rgba(212, 175, 55, 0.45);
  margin-left: 0.45rem;
  vertical-align: middle;
}

/* Interactive Card Swatch Active State */
.finish-dot, .swatch-dot, [data-finish] {
  cursor: pointer;
  transition: transform 0.25s var(--velora-ease), box-shadow 0.25s var(--velora-ease);
}
.finish-dot:hover, .swatch-dot:hover, [data-finish]:hover {
  transform: scale(1.22);
}
.finish-dot.is-selected, .swatch-dot.is-selected {
  box-shadow: 0 0 0 2px #fffdf9, 0 0 0 3.5px #3b0912 !important;
  transform: scale(1.18);
}

/* Cart Drawer VIP Shipping & Trust Banner */
.velora-cart-vip {
  background: linear-gradient(135deg, rgba(59, 9, 18, 0.06), rgba(212, 175, 55, 0.14));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  color: #2b050b;
}
.velora-vip-bar {
  height: 4px;
  background: rgba(59, 9, 18, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.45rem;
}
.velora-vip-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #b8892b, #d4af37);
  border-radius: 99px;
  transition: width 0.5s var(--velora-ease);
}

/* Product Detail Atelier Spec Strip */
.velora-atelier-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(59, 9, 18, 0.12);
}
.velora-trust-cell {
  background: #fbf6ed;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  text-align: center;
}
.velora-trust-cell strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b0912;
  margin-bottom: 0.15rem;
}
.velora-trust-cell span {
  font-size: 0.66rem;
  color: #6b4c52;
}
@media (max-width: 540px) {
  .velora-atelier-trust { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VELORA — CATALOG ANTI-JITTER, LOCKED ASPECT RATIOS & SILKY RE-RENDER
   ========================================================================== */
.product-card {
  transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  transition: box-shadow 0.4s var(--velora-ease), border-color 0.35s var(--velora-ease) !important;
}
.product-card:hover {
  transform: translate3d(0, 0, 0) !important;
  box-shadow: 0 18px 42px rgba(42, 7, 14, 0.13) !important;
  border-color: rgba(212, 175, 55, 0.55) !important;
}

/* Lock image container aspect-ratio so cards NEVER jump or bounce on load */
.product-media, .product-img-wrap, .product-card > a:first-child {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f5efe6;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1) translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.75s var(--velora-ease), opacity 0.35s ease !important;
}
.product-card:hover img {
  transform: scale(1.038) translateZ(0) !important;
}

/* Prevent scroll-reveal jitter on dynamically re-rendered catalog grids */
#shopGrid .product-card,
#bestsellersGrid .product-card,
#relatedGrid .product-card {
  opacity: 1 !important;
  transform: none !important;
  animation: veloraCardFade 0.38s var(--velora-ease) both;
}
@keyframes veloraCardFade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* Lock price box height so % OFF pill never shifts card bottom */
.product-price-box {
  min-height: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Exact Root-Cause Fix: Stop .product-card translateY hover-edge bounce while keeping smooth image zoom */
.product-card {
  transform: none !important;
  contain: layout style !important;
  transition: box-shadow 0.4s var(--velora-ease), border-color 0.35s var(--velora-ease) !important;
}
.product-card:hover {
  transform: none !important;
  box-shadow: 0 18px 42px rgba(43, 5, 11, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.55) !important;
}
.product-card:hover .product-img-main {
  transform: scale(1.038) !important;
}



html, body { max-width: 100%; overflow-x: clip; }

/* Mobile touch scroll safeguard */
html, body {
  max-width: 100%;
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: auto;
}
.preloader[style*="display: none"] { pointer-events: none !important; visibility: hidden !important; }

/* Lightweight smoothness & mobile GPU relief */
html {
  scroll-behavior: auto !important;
}
header.is-scrolled,
.site-header.is-scrolled,
.navbar.is-scrolled {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 6px 18px rgba(18, 2, 6, 0.22) !important;
}
.hero-slide {
  animation: none !important;
  transition: opacity 0.25s ease !important;
}
.velora-reveal,
.collection-panel,
.room-card,
.pillar-item,
.spotlight-grid > div,
.why-card,
.review-card {
  will-change: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.22s ease, opacity 0.22s ease !important;
}

/* PC Smooth UI Motion & Lightweight Hover Polish */
button,
a.btn,
[class*="btn"],
.nav-link,
.mobile-nav-link,
.finish-pill,
.hotspot-pin {
  transition: transform 0.2s var(--velora-ease), opacity 0.2s var(--velora-ease), background-color 0.22s var(--velora-ease), border-color 0.22s var(--velora-ease), box-shadow 0.25s var(--velora-ease);
}

.velora-reveal {
  opacity: 1;
  transform: translate3d(0, 12px, 0);
  transition: transform 0.32s var(--velora-ease), opacity 0.28s var(--velora-ease);
}
.velora-reveal.is-revealed,
.velora-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .product-card,
  .room-card,
  .why-card,
  .collection-panel {
    transition: transform 0.26s var(--velora-ease), box-shadow 0.26s var(--velora-ease), border-color 0.24s var(--velora-ease);
  }
  .product-card:hover,
  .room-card:hover,
  .why-card:hover {
    transform: translate3d(0, -4px, 0) !important;
  }
  .product-card:hover .product-img-main,
  .room-card:hover img,
  .collection-panel:hover img {
    transform: scale(1.035);
    transition: transform 0.32s var(--velora-ease);
  }
}



