/* 
 * Raviera Fabrics - Luxury Storefront Stylesheet
 * Inspired by Raviera Fabrics Luxury Design Aesthetic
 */

:root {
  --primary-color: #111111;
  --secondary-color: #222222;
  --accent-gold: #c5a880;
  --accent-dark-gold: #9d825c;
  --light-bg: #fbfbfb;
  --card-bg: #ffffff;
  --text-main: #1c1c1c;
  --text-muted: #666666;
  --border-light: #e8e8e8;
  --border-dark: #2c2c2c;
  --font-serif: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1360px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--card-bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
}

/* 1. Announcement Bar */
.announcement-bar {
  background-color: #111;
  color: #fff;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: .2px;
  text-align: center;
}
.announcement-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: max-content;
}
.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-separator { opacity: .65; }
@media (max-width: 700px) {
  .announcement-bar { padding: 7px 0; }
  .announcement-track {
    justify-content: flex-start;
    padding-left: 100%;
    animation: ravieraAnnouncement 18s linear infinite;
  }
}
@keyframes ravieraAnnouncement {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 2. Main Luxury Header - Transparent Initially, Sticky Solid White on Scroll */
.site-header-wrapper:not(.has-hero-header) {
  position: sticky;
  top: 0;
  z-index: 1050;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  min-height: 84px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-center a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  height: 72px;
  max-height: 76px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-tagline {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  position: relative;
  transition: opacity var(--transition-fast);
}

.icon-btn:hover {
  opacity: 0.7;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.badge-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 10px 0 14px;
    border-top: 1px solid transparent;
    transition: border-color 300ms ease;
  }
  .site-header.scrolled .desktop-nav {
    border-top: 1px solid rgba(0,0,0,0.04);
  }
  .desktop-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
  }
  .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
  }
  .desktop-nav a:hover::after {
    width: 100%;
  }
}

/* Transparent Sticky Header for Pages with Hero */
.site-header-wrapper.has-hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.site-header-wrapper.has-hero-header .announcement-bar,
.site-header-wrapper.has-hero-header .site-header {
  pointer-events: auto;
}

.site-header-wrapper.has-hero-header .announcement-bar {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.header-transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}

.site-header.header-transparent .icon-btn {
  color: #ffffff;
  transition: color 300ms ease;
}

.site-header.header-transparent .brand-logo-img {
  filter: brightness(0) invert(1);
  transition: filter 300ms ease, transform var(--transition-fast);
}

.site-header.header-transparent .desktop-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header.header-transparent .desktop-nav a {
  color: #ffffff;
  transition: color 300ms ease;
}

.site-header.header-transparent .desktop-nav a::after {
  background: #ffffff;
}

.site-header.header-transparent .header-currency-selector select {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.site-header.header-transparent .header-currency-selector select option {
  background: #1a1a1a;
  color: #ffffff;
}

.site-header.header-transparent .badge-count {
  background: #ffffff;
  color: #111111;
  transition: background 300ms ease, color 300ms ease;
}

/* Universal Scrolled State for ALL Headers (Solid White + Dark Controls) */
.site-header.scrolled,
.site-header.header-transparent.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  z-index: 1050;
}

.site-header.scrolled .icon-btn,
.site-header.header-transparent.scrolled .icon-btn {
  color: #111111 !important;
}

.site-header.scrolled .brand-logo-img,
.site-header.header-transparent.scrolled .brand-logo-img {
  filter: none !important;
}

.site-header.scrolled .desktop-nav,
.site-header.header-transparent.scrolled .desktop-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.site-header.scrolled .desktop-nav a,
.site-header.header-transparent.scrolled .desktop-nav a {
  color: #111111 !important;
}

.site-header.scrolled .desktop-nav a::after,
.site-header.header-transparent.scrolled .desktop-nav a::after {
  background: #111111 !important;
}

.site-header.scrolled .header-currency-selector select,
.site-header.header-transparent.scrolled .header-currency-selector select {
  background: #f7f7f7 !important;
  border-color: #e2e2e2 !important;
  color: #1a1a1a !important;
}

.site-header.scrolled .header-currency-selector select option,
.site-header.header-transparent.scrolled .header-currency-selector select option {
  background: #ffffff !important;
  color: #1a1a1a !important;
}

.site-header.scrolled .badge-count,
.site-header.header-transparent.scrolled .badge-count {
  background: #111111 !important;
  color: #ffffff !important;
}

.site-header-wrapper.has-hero-header ~ main .hero-banner,
.site-header-wrapper.has-hero-header ~ main .home-builder-canvas .hero-banner,
.site-header-wrapper.has-hero-header ~ .home-builder-canvas .hero-banner {
  min-height: 640px;
}

/* 3. Off-Canvas Drawer (Raviera navigation layout) */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: #ffffff;
  z-index: 2001;
  overflow-y: auto;
  padding: 24px;
  transition: transform var(--transition-smooth);
}

.menu-drawer {
  left: 0;
  transform: translateX(-100%);
}

.menu-drawer.open {
  transform: translateX(0);
}

.cart-drawer {
  right: 0;
  transform: translateX(100%);
}

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

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.drawer-menu-list {
  list-style: none;
}

.drawer-menu-list li {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.drawer-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: #222;
}

.drawer-menu-list a:hover {
  color: var(--accent-gold);
}

.drawer-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

/* 4. Hero Slider / Editorial Banner */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  max-width: 800px;
}

.hero-sub {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #e5d3be;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 14px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid #fff;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-dark {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid #111;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-dark:hover {
  background: #333;
  border-color: #333;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #111;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid #111;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

/* 5. Section Titles */
.section-header {
  text-align: center;
  padding: 50px 20px 30px;
  position: relative;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 6. Product Grid & Cards (Raviera product grid) */
.product-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px 40px;
  }
}

.product-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast);
}

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  background: #f4f4f4;
  overflow: hidden;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image-box img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.product-info {
  padding: 14px 0 0;
}

/* Color Swatches on Card */
.swatches-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.swatch-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  background-size: cover;
}

.swatch-dot:hover, .swatch-dot.active {
  transform: scale(1.2);
  border-color: #111;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111;
}

.swatch-more {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111;
}

.product-fabric-type {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.product-price {
  font-weight: 700;
  color: #111;
}

.product-meter-rate {
  font-size: 11px;
  color: #888;
}

/* 7. Category Showcase Tiles (Raviera category tiles) */
.category-tiles {
  max-width: var(--container-max);
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .category-tiles {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin-bottom: 40px;
  }
}

.category-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: #fff;
}

.category-tile img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.8s ease, opacity 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.category-tile-content {
  position: relative;
  z-index: 2;
}

.category-tile-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.category-tile-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 3px;
}

/* 8. Video Reels Section: "Moments That Move Millions" */
.reels-section {
  background: #fdfdfd;
  padding: 50px 0 70px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.reels-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  position: relative;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.reel-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.reel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 13px;
}

/* 9. Product Detail Page Styling */
.product-detail-wrap {
  max-width: var(--container-max);
  margin: 40px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .product-detail-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
    padding: 0 16px;
  }
}

.pdp-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: zoom-in;
}

.pdp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f8f8;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.pdp-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s ease;
  letter-spacing: 0.3px;
}

.pdp-gallery-main:hover .pdp-zoom-hint {
  opacity: 0;
}

/* Gallery-Grade HD Lightbox (Phone & Desktop Gallery Experience) */
.rv-gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overflow: hidden;
}

.rv-gallery-modal.active {
  display: flex;
}

.rv-gallery-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: auto;
}

.rv-gallery-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-gallery-badge {
  background: rgba(182, 156, 104, 0.2);
  color: #d4af37;
  border: 1px solid rgba(182, 156, 104, 0.5);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.rv-zoom-level {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  font-family: monospace;
}

.rv-gallery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-g-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.rv-g-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.rv-g-btn.rv-g-close {
  background: rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.5);
  font-size: 20px;
  margin-left: 4px;
}

.rv-g-btn.rv-g-close:hover {
  background: rgba(220, 38, 38, 0.7);
}

.rv-gallery-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.rv-gallery-viewport.grabbing {
  cursor: grabbing;
}

.rv-gallery-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.05s linear;
  will-change: transform;
}

.rv-gallery-stage.animating {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.rv-gallery-stage img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  pointer-events: none;
}

.rv-gallery-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  pointer-events: none;
  text-align: center;
}

.pdp-thumbnails {
  display: flex;
  gap: 12px;
}

.pdp-thumb {
  width: 80px;
  height: 90px;
  background: #f7f7f7;
  cursor: pointer;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.pdp-thumb.active {
  border-color: #111;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-header h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 8px;
}

.pdp-sku {
  font-size: 11px;
  letter-spacing: 1px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pdp-price-box {
  margin: 16px 0;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: 2px;
}

.pdp-live-price {
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.pdp-unit-math {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* Meter Selector Radio / Tabs */
.cut-selector {
  margin: 24px 0;
}

.selector-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.cut-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cut-option-card {
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cut-option-card:hover {
  border-color: #888;
}

.cut-option-card.active {
  border-color: #111;
  background: #fafafa;
  box-shadow: 0 0 0 1px #111;
}

.cut-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
}

.cut-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.custom-meters-input-box {
  margin-top: 15px;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 2px;
  display: none;
}

.custom-meters-input-box.show {
  display: block;
}

.custom-meters-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #111;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.meter-step-btn {
  background: #fff;
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
  padding: 0;
  line-height: 1;
}

.meter-step-btn:hover {
  background: #f1f5f9;
}

.meter-step-btn:active {
  background: #111;
  color: #fff;
}

.custom-meters-stepper input[type="number"] {
  width: 72px;
  height: 44px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  border-radius: 0;
  padding: 0 4px;
  background: #fff;
  -moz-appearance: textfield;
}

.custom-meters-stepper input[type="number"]::-webkit-outer-spin-button,
.custom-meters-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Color Variant Pills & Photo Swatches */
.color-variants-wrap {
  margin: 24px 0;
}

.color-photo-swatches,
.color-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  min-height: 40px;
  outline: none;
}

.color-pill:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.color-pill.active {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 0 0 1.5px #111111, 0 3px 8px rgba(0,0,0,0.08);
  font-weight: 600;
  color: #000000;
}

.color-swatch-btn {
  padding: 5px 14px 5px 6px;
}

.swatch-photo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.swatch-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swatch-color-text {
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.color-pill-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}

/* Trust Elements Near Add to Cart (Requirement #18) */
.trust-indicators {
  margin: 20px 0;
  padding: 14px;
  background: #fcf8f2;
  border: 1px dashed var(--accent-gold);
  border-radius: 2px;
  font-size: 12px;
  color: #4a3b2c;
  line-height: 1.6;
}

.live-visitors {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #27ae60;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.trust-badges-row {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.trust-badge-item svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
  display: block;
}

/* 10. Luxury Footer (Raviera footer layout) */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 60px 0 20px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top-story {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
  font-size: 13px;
  line-height: 1.8;
  color: #bbb;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 40px;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-fast);
}

.social-icon-link:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #222;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #999;
  font-size: 13px;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-newsletter button {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.footer-newsletter button:hover {
  background: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* 11. Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.whatsapp-notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #ff3b30;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* 12. Cart Slide-out Drawer */
.cart-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  margin: 20px 0;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 70px;
  height: 80px;
  object-fit: cover;
  background: #f7f7f7;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
}

.cart-item-cut {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}

.cart-drawer-summary {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}


/* Frontend polish: mobile product gallery + footer/overflow stability */
.pdp-gallery-main { touch-action: manipulation; overscroll-behavior-x: contain; cursor: grab; }
.pdp-gallery-main:active { cursor: grabbing; }
.pdp-gallery-main img { user-select: none; -webkit-user-drag: none; }
.pdp-thumbnails { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; scroll-behavior: smooth; }
.pdp-thumb { flex: 0 0 80px; border: 1px solid var(--border-light); background: #f7f7f7; }
.pdp-thumb:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.site-footer { width: 100%; overflow: hidden; }
.footer-inner { width: 100%; max-width: var(--container-max); margin: 0 auto; box-sizing: border-box; }
.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Trust & Craftsmanship Pillars — responsive grid (fixes right-side overflow on mobile) */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  text-align: center;
}
.trust-grid > .trust-item { min-width: 0; position: relative; padding: 20px; }
.trust-grid > .trust-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: #e2e2e2;
}
.trust-icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f5f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.trust-icon-circle svg {
  width: 40px;
  height: 40px;
  color: #171717;
}
.trust-item h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.trust-divider {
  display: block;
  width: 26px;
  height: 1px;
  background: #171717;
  margin: 0 auto 18px;
}
.trust-item p {
  font-size: 12.5px;
  color: #777;
  line-height: 1.7;
  max-width: 210px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .trust-grid > .trust-item:nth-child(2n)::before { display: none; }
  .trust-grid > .trust-item:nth-child(n+3) { margin-top: 10px; }
}
@media (max-width: 380px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > .trust-item::before { display: none; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-wrap { overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; }
  .cut-options-grid { grid-template-columns: 1fr; }
  .pdp-gallery-main { margin-bottom: 10px; }
}

/* Tablet Header Sizing */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner {
    min-height: 80px;
    padding: 8px 20px;
  }
  .brand-logo-img {
    height: 64px;
    max-height: 68px;
  }
}

/* Issue #1: Mobile Header Balance & Luxury Realignment */
@media (max-width: 768px) {
  .site-header {
    overflow: visible;
  }
  .header-inner {
    position: relative;
    min-height: 70px;
    height: auto;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-left {
    flex: 0 0 auto;
    gap: 8px;
    z-index: 2;
  }
  .header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 220px;
    text-align: center;
    z-index: 1;
    pointer-events: auto;
  }
  .header-center a {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .brand-logo-img {
    height: 54px !important;
    max-height: 56px !important;
    width: auto !important;
    object-fit: contain;
  }
  .header-right {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
    justify-content: flex-end;
    z-index: 2;
  }
  .header-currency-selector {
    margin-right: 0 !important;
  }
  .header-currency-selector select {
    padding: 3px 4px !important;
    font-size: 11px !important;
    max-width: 58px;
    height: 28px;
    letter-spacing: 0 !important;
  }
  .header-track-btn {
    display: none !important;
  }
  .icon-btn {
    padding: 5px;
  }
}

/* Luxury Checkout Responsive UI/UX */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 580px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Live Purchase Notification (Pakistani Social Proof Toast, Bottom-Left) */
.live-purchase-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1400;
  max-width: 325px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.live-purchase-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.live-toast-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.live-toast-close:hover {
  color: #0f172a;
}

.live-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.live-toast-img-wrap {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.live-toast-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-toast-text {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}

.live-toast-title {
  font-size: 12px;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 2px;
}

.live-toast-title span {
  font-weight: 700;
}

.live-toast-product {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.live-toast-meta {
  font-size: 10px;
  color: #64748b;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-verified-badge {
  color: #16a34a;
  font-weight: 600;
}

@media (max-width: 640px) {
  .live-purchase-toast {
    bottom: 16px;
    left: 12px;
    max-width: calc(100vw - 92px);
    padding: 8px 10px;
  }
  .live-toast-img-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .live-toast-title {
    font-size: 11px;
  }
  .live-toast-product {
    font-size: 10.5px;
  }
}



