/* ================================================= */
/* 0. GLOBAL RESET & VARIABLES */
/* ================================================= */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
  --primary-color: #f7f7f7;
  --secondary-color: #2c2c2c;
  --text-color: #444;
  --accent-color: #ab7f3e;

  /* Luxury Variables */
  --lux-bg: #f9f9f9;
  --lux-text: #1a1a1a;
  --lux-gold: #ab7f3e;
  --lux-dark: #151515;
  --lux-font-serif: "Cormorant Garamond", serif;
  --lux-font-sans: "Manrope", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* adapts to browser chrome on real phones */
  overflow: hidden;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  background: #fff;
}

/* ================================================= */
/* LOADING SCREEN */
/* ================================================= */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--lux-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(171, 127, 62, 0.3);
  border-top-color: var(--lux-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================= */
/* PHẦN 1: CSS CHO TRANG CHỦ (INDEX.HTML) */
/* ================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  z-index: 1000;
  font-weight: 700;
  background-color: transparent;
  height: 80px;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.digital-catalog-page .header {
  display: none;
}

.header-label {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-family: var(--lux-font-serif);
  opacity: 0.7;
}

/* Ensure no arrow icons or pseudo-elements appear above the header label */
.header .fa-chevron-left,
.header .fa-chevron-right,
.header .nav-arrow,
.header-label::before,
.header-label::after {
  display: none !important;
  content: none !important;
}

/* Extra safeguard: hide any top-level slide hint icons on desktop */
@media (min-width: 769px) {
  body > .slide-arrow,
  body > .slide-arrow i {
    display: none !important;
    visibility: hidden !important;
  }
}

.contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--secondary-color);
}

.contact .phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--secondary-color);
  text-decoration: none;
}

.contact i {
  color: var(--accent-color);
}

.container {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  height: 100dvh;
  width: max-content;
  overflow: visible;
  will-change: transform;
}

body.digital-catalog-page .container {
  display: none;
}

.section {
  flex: 0 0 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(24px) scale(0.995);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

.section.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.section.leaving-left {
  opacity: 0;
  transform: translateX(-24px) scale(0.995);
}

.section.leaving-right {
  opacity: 0;
  transform: translateX(24px) scale(0.995);
}

/* Parallax nhẹ cho nội dung */
.section .product-info,
.section .intro-content {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.section .image-wrapper {
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  transition:
    opacity 0.7s ease,
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 0.12s;
}

.section.active .product-info,
.section.active .intro-content {
  opacity: 1;
  transform: translateY(-6px);
}

.section.active .image-wrapper {
  opacity: 1;
  transform: translateY(6px) scale(1);
}

/* INTRO SECTION */
.intro-section {
  background: radial-gradient(
    120% 120% at 20% 20%,
    #ffffff 0%,
    #f4f2ef 45%,
    #f7f7f7 100%
  );
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding-left: clamp(2rem, 6vw, 6rem);
  padding-right: clamp(2rem, 6vw, 6rem);
}

.intro-content {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.intro-eyebrow {
  display: inline-block;
  font-family: var(--lux-font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.55);
  margin-bottom: 1rem;
}

.intro-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  text-transform: uppercase;
  color: var(--lux-gold);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-family: inherit; /* match product page collection-tag (uses body font) */
  white-space: nowrap;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-indent: 0;
  padding-right: 0;
  animation: fadeInUp 1s ease;
}

@media (min-width: 992px) {
  /* Nudge homepage intro title slightly left on desktop */
  .intro-content h1 {
    transform: translateX(0.02cm);
    left: -0.02cm !important;
  }
}

/* Ensure Steinway & Sons text on mobile uses the same desktop serif font and spacing */
@media (max-width: 767px) {
  .intro-content h1,
  .steinway-brand,
  .mobile-slide-company,
  .site-company,
  .collection-tag {
    font-family: inherit !important;
    letter-spacing: 3px !important;
  }
}

.intro-content h1 img {
  max-width: clamp(250px, 50vw, 500px);
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.18s ease;
  transform-origin: center;
}

/* Scale the intro logo: mobile = 1.07x, desktop = 1.8x */
@media (max-width: 767px) {
  .steinway-brand img,
  .intro-content h1 img {
    transform: scale(1.07);
    /* keep image centered and prevent overflow */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .steinway-brand img,
  .intro-content h1 img {
    transform: scale(1.8);
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.intro-content p {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-color);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.intro-cta {
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 127, 62, 0.55);
  background: transparent;
  color: var(--secondary-color);
  font-family: var(--lux-font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
}

.intro-cta:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.intro-cta:focus-visible {
  outline: 2px solid rgba(171, 127, 62, 0.7);
  outline-offset: 3px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* PIANO SECTIONS */
.piano-section {
  background-color: var(--primary-color);
  justify-content: space-between;
  cursor: default;
  transition: background-color 0.3s ease;
}

.product-info {
  flex: 1;
  padding-left: 5rem;
}

.product-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #888;
  font-weight: 300;
}

.product-info h3 {
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--secondary-color);
  margin: 0.5rem 0 1rem;
  transition: color 0.3s ease;
}

.product-info p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  line-height: 1.6;
}

/* Mobile typography: unify and balance sizes for slides (<=767px) */
@media (max-width: 767px) {
  .header-label {
    font-size: 0.72rem;
    letter-spacing: 0.12rem;
  }

  .contact,
  .nav-contact,
  .phone-link {
    font-size: 0.72rem !important;
  }

  .intro-content h1,
  .steinway-brand {
    font-size: 2rem !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    white-space: normal !important;
    margin-bottom: 0.6rem;
  }

  /* Product titles and model names */
  .product-info h3,
  .model-name-luxury {
    font-size: 1.6rem !important;
    line-height: 1.15;
    font-weight: 300;
  }

  /* Supporting text under images / captions */
  .product-info p,
  #lightbox-caption,
  .hero-quote {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: var(--text-color);
  }

  /* Ensure intro CTA and small labels remain balanced */
  .intro-cta { font-size: 0.9rem; }
  .mobile-slide-company { font-size: 0.62rem; }

  /* Reduce vertical spacing (line-height/margins) for slides from the 2nd onward */
  .container > .section:nth-child(n+2) .product-info p {
    line-height: 1.2 !important;
    margin-bottom: 0.6rem !important;
  }

  .container > .section:nth-child(n+2) .product-info h3 {
    line-height: 1.05 !important;
    margin: 0 0 0.35rem !important; /* remove top margin and reduce bottom */
  }

  /* Reduce gap between collection label and product title on mobile slides (2+) */
  .container > .section:nth-child(n+2) .collection-tag {
    margin-top: 1rem !important; /* keep top spacing */
    margin-bottom: 0.25rem !important; /* reduce gap to title */
    font-size: 1rem !important;
    letter-spacing: 3px !important;
  }

  /* Slightly reduce horizontal padding on mobile for product info to save vertical space */
  .container > .section:nth-child(n+2) .product-info {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }
}

.view-more {
  margin-top: 1.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 44, 44, 0.25);
  background: transparent;
  color: var(--secondary-color);
  font-family: var(--lux-font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more:hover {
  border-color: rgba(171, 127, 62, 0.7);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.view-more:focus-visible {
  outline: 2px solid rgba(171, 127, 62, 0.7);
  outline-offset: 3px;
}

.image-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
    order: 2;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 2.8rem 0; /* keep increased gap applied earlier */
    display: flex;
    align-items: center;
    padding: 0 1.2rem; /* match homepage image wrapper padding on mobile */
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Homepage: enforce uniform image frame for product slides (desktop) */
body:not(.digital-catalog-page) .piano-section .image-wrapper {
  max-width: 50%;
  height: 75vh;
  padding: 0 3rem;
}

body:not(.digital-catalog-page) .piano-section .image-wrapper .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
}

/* SCROLL PROGRESS INDICATOR */
.scroll-progress {
  position: fixed;
  bottom: 30px;
  left: auto;
  right: 30px;
  transform: none;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

/* Desktop: subtle scroll hint (bottom-left) to indicate using mouse wheel/trackpad to navigate
   Design: minimal, slightly translucent icon that pulses twice on load then rests. */
.desktop-arrows { display: none; }

body.digital-catalog-page .scroll-progress {
  display: none;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(44, 44, 44, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.progress-dot:hover {
  background: rgba(171, 127, 62, 0.6);
  transform: scale(1.2);
}

.progress-dot.active {
  background: var(--accent-color);
  transform: scale(1.3);
}

/* Persistent centered company label displayed on desktop */
.site-company {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-family: var(--lux-font-serif);
  font-size: 0.63rem;
  color: var(--secondary-color);
  opacity: 0.85;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  pointer-events: none;
}

/* Ensure any per-slide company label is hidden by default (desktop) */
.mobile-slide-company {
  display: none;
}

/* hide on small screens and on digital catalog page */
@media (max-width: 768px) {
  .site-company { display: none; }
}

@media (min-width: 769px) {
  .desktop-arrows {
    display: block;
  }

  /* Pin each desktop arrow to its side so when the other is hidden the remaining
     arrow stays in the correct edge rather than collapsing to center/left. */
  .desktop-arrow {
    pointer-events: auto;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
    background: transparent;
    border: none;
    color: rgba(44,44,44,0.48);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 22px;
    opacity: 0.5;
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
    cursor: pointer;
  }

  .desktop-arrow:hover {
    opacity: 0.95;
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.04);
  }

  .desktop-prev { left: 12px; }
  .desktop-next { right: 12px; }
}

/* Brief flash state for desktop arrows when activated by JS (soft gold glow) */
@media (min-width: 769px) {
  .desktop-arrow.flash {
    opacity: 1 !important;
    color: var(--accent-color) !important;
    filter: drop-shadow(0 0 10px rgba(171, 127, 62, 0.6)) !important;
    transform: translateY(-50%) scale(1.12) !important;
    transition: opacity 0.1s ease, transform 0.1s ease, color 0.1s ease, filter 0.1s ease !important;
  }
}

/* Persistent scroll-direction highlight (stays lit while user is actively scrolling) */
@media (min-width: 769px) {
  .desktop-arrow.scroll-active {
    opacity: 0.9 !important;
    color: var(--accent-color) !important;
    filter: drop-shadow(0 0 8px rgba(171, 127, 62, 0.45)) !important;
    transform: translateY(-50%) scale(1.06) !important;
    transition: opacity 0.2s ease, color 0.2s ease, filter 0.2s ease, transform 0.2s ease !important;
  }
}

/* Mobile-only label shown on the homepage first slide, positioned above pagination dots */
@media (max-width: 768px) {
  body:not(.digital-catalog-page) .mobile-slide-company {
    display: none; /* default hidden until first slide is active */
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 1001;
    font-family: var(--lux-font-serif);
    font-size: 0.60rem;
    color: var(--secondary-color);
    opacity: 0.95;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
  }

  /* Show only when the intro (first) slide is active */
  body:not(.digital-catalog-page) .intro-section.active .mobile-slide-company {
    display: block;
  }
}

/* Show company label on digital catalog pages and position bottom-left */
body.digital-catalog-page .site-company {
  display: block;
  right: 30px;
  left: auto;
  bottom: 30px;
  transform: none;
  text-align: right;
  pointer-events: none;
}

/* Ensure the company label is hidden on small screens even on the digital catalog page */
@media (max-width: 768px) {
  body.digital-catalog-page .site-company { display: none; }
}

/* NAV ARROWS */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  width: 102px;
  height: 102px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(44, 44, 44, 0.6);
  font-size: 78px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.arrow-prev {
  left: 22px;
}

.arrow-next {
  right: 22px;
}

.nav-arrow:hover {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.05);
}

.nav-arrow:focus-visible {
  outline: 2px solid rgba(171, 127, 62, 0.7);
  outline-offset: 3px;
}

/* ================================================= */
/* PHẦN 2: CSS CHO TRANG CHI TIẾT (LUXURY DESIGN) */
/* ================================================= */

html.digital-catalog-page,
body.digital-catalog-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh;
  background: radial-gradient(
    120% 120% at 20% 20%,
    #ffffff 0%,
    #f4f2ef 45%,
    #f7f7f7 100%
  );
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
}

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

body:not(.digital-catalog-page) .fixed-nav {
  display: none;
}

.nav-logo {
  font-family: var(--lux-font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  color: #000;
  pointer-events: auto;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phone-link {
  color: inherit;
  text-decoration: none;
}

.phone-icon {
  margin-right: 6px;
  font-size: 0.9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone-link:hover {
  color: var(--accent-color);
}

.nav-line {
  width: 40px;
  height: 1px;
  background: #fff;
}

.scroll-container {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 100vh;
  will-change: transform;
}

body:not(.digital-catalog-page) .scroll-container {
  display: none;
}

.panel {
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* PANEL 1: HERO */
.panel-hero {
  width: 100vw;
  background: radial-gradient(
    120% 120% at 20% 20%,
    #ffffff 0%,
    #f4f2ef 45%,
    #f7f7f7 100%
  );
  display: flex;
  align-items: center;
}

.hero-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
}

.hero-text-group {
  flex: 0 0 40%;
  padding-left: 8vw;
  z-index: 2;
}

.collection-tag {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lux-gold);
  margin-bottom: 1rem;
}

.model-name-luxury {
  font-family: var(--lux-font-serif);
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.9;
  font-weight: 300;
  font-style: normal;
  color: var(--lux-text);
  margin-bottom: 0.8rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-quote {
  font-family: var(--lux-font-serif);
  font-size: 1.5rem;
  color: #555;
  border-left: 2px solid var(--lux-text);
  padding-left: 20px;
}

.hero-img-container {
  flex: 1;
  height: 78%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-main-img {
  width: 95%;
  max-width: 900px;
  height: auto;
  object-fit: contain;
  transform: translateX(1cm);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
}

/* PANEL 2: BLUEPRINT */
.panel-blueprint {
  width: 100vw;
  background-color: var(--lux-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-wrapper {
  display: flex;
  width: 90%;
  height: 85%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blueprint-sidebar {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.blueprint-header {
  text-align: left;
  width: 100%;
}

.tech-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lux-gold);
  border: 1px solid var(--lux-gold);
  padding: 5px 10px;
  margin-bottom: 1.5rem;
}

.blueprint-header h2 {
  font-family: var(--lux-font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.blueprint-header h2 em {
  color: var(--lux-gold);
  font-weight: 300;
  font-style: italic;
}

.separator-line {
  width: 60px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.spec-item {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 0.5rem;
}

.spec-value {
  font-family: var(--lux-font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--lux-gold);
}

.blueprint-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 2rem;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.tech-drawing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  height: 80%;
  position: relative;
  justify-content: center;
}

.card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
}

/* Make the 'Kích thước' emphasis white in the blueprint header */
.blueprint-header h2 em {
  color: #ffffff;
}

.tech-svg {
  width: 100%;
  max-height: 350px;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2s ease-out;
}

.tech-svg.active {
  stroke-dashoffset: 0;
}

.svg-dim-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  fill: #ab7f3e;
  font-size: 18px;
  text-anchor: middle;
  stroke: none;
  paint-order: fill;
  letter-spacing: 0.5px;
}

/* PANEL 3: CONTINUOUS GALLERY */
.panel-gallery-continuous {
  width: max-content;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
}

.gallery-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding-left: 8vw;
  padding-right: 15vw;
  height: 100%;
  gap: 3rem;
}

.gallery-intro-block {
  width: 25vw;
  margin-right: 2rem;
  flex-shrink: 0;
}

.gallery-intro-block h2 {
  font-family: var(--lux-font-serif);
  font-size: 3.5rem;
  margin: 1rem 0;
  color: var(--lux-text);
}

.gallery-intro-block p {
  font-size: 1.1rem;
  color: #666;
  max-width: 28ch; /* ~8 words per line (adjust as needed) */
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
}

.chapter-no {
  font-family: var(--lux-font-serif);
  font-size: 5rem;
  opacity: 0.1;
  line-height: 0.5;
}

.gallery-item {
  flex-shrink: 0;
  position: relative;
}

.item-large {
  width: 35vw;
}
.item-small {
  width: 25vw;
}
.pos-top {
  align-self: flex-start;
  margin-top: 10vh;
}

/* Mobile: center or slightly shift product intro description */
@media (max-width: 767px) {
  .gallery-strip {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1.25rem;
  }
  .gallery-intro-block {
    width: 100%;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers heading and paragraph */
    padding-left: 0;
  }
  .gallery-intro-block p {
    text-align: justify;
    text-justify: inter-word;
    max-width: calc(100% - 2rem);
    color: #666;
  }
  /* Mobile: smaller title for product detail page (reduce by ~2 size steps) */
  .gallery-intro-block h2 {
    font-size: 2.5rem;
    white-space: nowrap; /* keep title on a single line when it fits */
    overflow: hidden;
    text-overflow: ellipsis; /* truncate with ellipsis if it doesn't fit */
    display: block;
    max-width: 100%;
  }
  /* If you prefer shifting the block ~1cm to the right instead of centering,
         uncomment the following rule and comment out align-items:center/text-align:center above */
  /*
    .gallery-intro-block {
        align-items: flex-start;
        padding-left: 1cm;
    }
    .gallery-intro-block p { text-align: left; }
    */
}
.pos-center {
  align-self: center;
}
.pos-bottom {
  align-self: flex-end;
  margin-bottom: 10vh;
}

.hover-reveal {
  position: relative;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hover-reveal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hover-reveal img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1s ease;
  object-fit: cover;
}

.hover-reveal:hover img {
  transform: scale(1.1);
}

.hover-reveal figcaption {
  display: none;
}

/* PANEL 3.5: PRODUCT VIDEO */
.panel-product-video {
  width: 100vw;
  background: linear-gradient(135deg, #111 0%, #1c1c1c 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-video-wrapper {
  width: min(1100px, 90vw);
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(171, 127, 62, 0.35);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.product-video-wrapper h2 {
  font-family: var(--lux-font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 2px;
  margin-bottom: 1.8rem;
  color: var(--lux-gold);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-radius: 12px;
}

/* Đảm bảo iframe full khung */
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile refinement for video panel */
@media (max-width: 768px) {
  .product-video-wrapper {
    padding: 2rem 1rem;
  }
}

/* PANEL 4: FOOTER */
.panel-footer {
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.footer-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.footer-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}

.footer-content h2 {
  font-family: var(--lux-font-serif);
  font-size: 4rem;
  margin-bottom: 1rem;
}

.btn-luxury {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 3rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.btn-luxury:hover {
  background: #fff;
  color: #000;
}

.floating-back {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  mix-blend-mode: difference;
  pointer-events: auto;
}

.floating-back .line {
  width: 30px;
  height: 1px;
  background: #fff;
  transition: width 0.3s;
}

.floating-back:hover .line {
  width: 50px;
}

body:not(.digital-catalog-page) .floating-back {
  display: none;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border: 2px solid #333;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

#lightbox-caption {
  margin-top: 6px;
  color: rgba(230, 230, 230, 0.9);
  font-family: var(--lux-font-serif);
  font-size: 1.5rem;
  text-align: center;
  font-style: italic;
  width: 80%;
  transform: translateY(-1cm);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  line-height: 1;
  z-index: 100000;
}

.close-lightbox:hover {
  color: var(--lux-gold);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ================================================= */
/* RESPONSIVE */
/* ================================================= */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  body.digital-catalog-page .fixed-nav {
    mix-blend-mode: normal;
    color: #111;
  }

  body.digital-catalog-page .nav-logo {
    display: none;
  }

  body.digital-catalog-page .nav-contact {
    flex-wrap: nowrap;
    pointer-events: auto;
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: auto;
    top: auto;
    gap: 0;
  }

  body.digital-catalog-page .phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lux-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.digital-catalog-page .phone-text {
    display: none;
  }

  body.digital-catalog-page .phone-icon {
    margin-right: 0;
  }

  body.digital-catalog-page .phone-link i {
    font-size: 16px;
  }

  body.digital-catalog-page .floating-back {
    display: none;
  }

  body.digital-catalog-page .nav-contact .nav-line {
    display: none;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .intro-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  body:not(.digital-catalog-page) .intro-content {
    transform: none;
    transform-origin: initial;
    /* Use proper sizing instead of scale hack */
  }

  .product-info {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  body:not(.digital-catalog-page) .piano-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body:not(.digital-catalog-page) .piano-section .product-info {
    display: contents;
    padding: 0;
  }

  body:not(.digital-catalog-page) .piano-section .product-info h2,
  body:not(.digital-catalog-page) .piano-section .product-info h3 {
    order: 1;
  }

  body:not(.digital-catalog-page) .piano-section .product-info h2 {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper {
    order: 2;
    width: 100%;
    justify-content: center;
    padding-top: 0.4rem;
    padding-bottom: 0.6rem;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.digital-catalog-page) .piano-section .product-info p {
    order: 3;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0.4rem;
  }

  body:not(.digital-catalog-page) .piano-section .view-more {
    order: 4;
    margin: 1rem auto 0;
  }

  .product-info h2 {
    font-size: 0.95rem;
  }

  .product-info h3 {
    font-size: clamp(1.6rem, 7.5vw, 2.2rem);
  }

  .product-info p {
    font-size: clamp(1rem, 3.6vw, 1.2rem);
    line-height: 1.4;
  }

  .product-image {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    max-height: 70vh;
  }

  .image-wrapper {
    padding-top: 0.6rem;
  }

  .scroll-progress {
    bottom: 15px;
    left: 50%;
    right: auto;
    gap: 6px;
    transform: translateX(-45%);
  }

  .progress-dot {
    width: 8px;
    height: 8px;
  }
  /* Mobile homepage: shrink progress dots from slide 2 onward */
  body:not(.digital-catalog-page) .scroll-progress .progress-dot {
    width: 8px !important;
    height: 8px !important;
    transform: none !important;
  }

  body:not(.digital-catalog-page)
    .scroll-progress
    .progress-dot:nth-child(n + 2) {
    width: 6px !important;
    height: 6px !important;
  }

  /* Keep active indicator subtle for slides 2+ on mobile (don't scale up to match first slide) */
  body:not(.digital-catalog-page)
    .scroll-progress
    .progress-dot:nth-child(n + 2).active {
    width: 6px !important;
    height: 6px !important;
    transform: none !important;
  }

  body:not(.digital-catalog-page) .scroll-progress .progress-dot:first-child {
    width: 8px !important;
    height: 8px !important;
  }

  /* When body has .progress-right (homepage mobile, from slide 2), move dots to bottom-right horizontally */
  body:not(.digital-catalog-page).progress-right .scroll-progress {
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    transform: none !important;
    flex-direction: row !important;
    gap: 4px !important;
  }

  body:not(.digital-catalog-page).progress-right
    .scroll-progress
    .progress-dot {
    width: 6px !important;
    height: 6px !important;
  }

  /* Don't enlarge the active dot when progress is moved to bottom-right; keep it smaller than first slide */
  body:not(.digital-catalog-page).progress-right
    .scroll-progress
    .progress-dot.active {
    width: 6px !important;
    height: 6px !important;
    transform: none !important;
  }

  /* Shrink "Xem thêm" / .view-more on homepage mobile when on slides 2+ */
  body:not(.digital-catalog-page).progress-right .view-more {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.72rem !important;
    min-width: 120px !important;
  }

/* Mobile: hide pagination dots and show arrows at product edges */
.slide-arrow { display: none; }

@media (max-width: 768px) {
  /* hide dots on small screens (mobile UI) */
  .scroll-progress { display: none !important; }

  /* Mobile arrows: hidden — navigation is swipe-only on mobile */
  .slide-arrow,
  .mobile-arrow,
  .mobile-prev,
  .mobile-next {
    display: none !important;
    pointer-events: none !important;
  }

  /* Responsive tuning: ensure slides scale well on narrow phones */
  .section {
    padding-left: clamp(0.5rem, 3vw, 2rem);
    padding-right: clamp(0.5rem, 3vw, 2rem);
  }

  /* Mobile product sections: vertically balanced — image centred above text */
  body:not(.digital-catalog-page) .piano-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 70px;  /* accounts for transparent header height (~0.5cm + content) */
    padding-bottom: 1.5rem;
    gap: 0;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper {
    flex: 0 0 46vh;
    width: 100%;
    max-width: 100%;
    height: 46vh;
    max-height: 46vh;
    padding: 0.4rem clamp(1rem, 5vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
  }

  body:not(.digital-catalog-page) .piano-section .product-info {
    flex: 1 1 auto;
    width: 100%;
    padding-left: clamp(1rem, 5vw, 2rem) !important;
    padding-right: clamp(1rem, 5vw, 2rem) !important;
    padding-top: 0.3rem;
    text-align: center;
    order: 2;
  }

  /* Push location/quote text and CTA down from model name */
  body:not(.digital-catalog-page) .piano-section .product-info p {
    margin-top: 1rem !important;
    font-size: clamp(0.88rem, 3.5vw, 1rem);
  }

  body:not(.digital-catalog-page) .piano-section .view-more {
    margin-top: 0.5rem !important;
  }

  .product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Ensure large images shrink on narrow phones so they fit between the left/right arrows
     without being cropped. Keeps image aspect ratio (contain). The 96px gap accounts for
     arrow touch areas + comfortable margin; adjust if you change arrow size/spacing. */
  .product-image {
    display: block;
    margin: 0 auto;
    /* Let the image scale to the largest possible size without cropping.
       Use both max-width and max-height so portrait or landscape images fill available space. */
    width: auto !important;
    max-width: calc(100vw - 88px) !important;
    max-height: 45vh !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .product-info h3 { font-size: clamp(1.15rem, 4.5vw, 1.45rem); }
  .product-info p { font-size: clamp(0.92rem, 3.5vw, 1rem); }

  /* Flash: arrow lights up gold in swipe direction */
  .mobile-arrow.flash {
    transform: scale(1.12);
    opacity: 1 !important;
    color: var(--lux-gold) !important;
    filter: drop-shadow(0 0 8px rgba(171, 127, 62, 0.75));
    transition: opacity 0.1s ease, transform 0.1s ease, color 0.1s ease, filter 0.1s ease;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper .product-image {
    object-fit: contain !important;
    width: 100% !important;
    max-width: calc(100vw - 56px) !important;
    height: auto !important;
    max-height: 45vh !important;
  }

  /* ensure icons inside buttons are visible */
  .mobile-arrow i { pointer-events: none; }
}

  .intro-content h1 {
    letter-spacing: 0.2rem;
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    line-height: 1.05;
    margin-bottom: 0.75rem;
  }

  .intro-content h1 img {
    max-width: clamp(200px, 70vw, 350px);
    height: auto;
  }

  .intro-content p {
    margin-bottom: 1.6rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .intro-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    min-width: 170px;
  }

  .intro-actions {
    gap: 1rem;
  }

  .view-more {
    padding: 0.5rem 1.05rem;
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
  }

  .nav-arrow {
    display: none;
  }

/* Place arrows inside the .container on the homepage so they don't overlap the header */
body:not(.digital-catalog-page) .container { position: relative; }
body:not(.digital-catalog-page) .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

/* On desktop, ensure nav arrows inside the homepage container are visible (product arrows)
   and style them to sit at the left/right of the product area (not near header). */
@media (min-width: 769px) {
  body:not(.digital-catalog-page) .nav-arrow {
    display: grid !important;
    width: 56px !important;
    height: 56px !important;
    font-size: 38px !important;
    color: rgba(44,44,44,0.8) !important;
    background: transparent !important;
    place-items: center !important;
    box-shadow: none !important;
    transition: transform 0.18s ease, color 0.18s ease !important;
  }

  /* position prev/next relative to container edges */
  body:not(.digital-catalog-page) .arrow-prev { left: 8px !important; }
  body:not(.digital-catalog-page) .arrow-next { right: 8px !important; }

  body:not(.digital-catalog-page) .nav-arrow:hover {
    transform: translateY(-50%) scale(1.06) !important;
    color: var(--accent-color) !important;
  }
}

  body.digital-catalog-page .model-name-luxury {
    font-size: clamp(1.8rem, 7.5vw, 2.2rem);
    white-space: normal;
  }

  /* Detail page responsive */
  body.digital-catalog-page .scroll-container {
    width: 100vw;
    height: auto;
    flex-direction: column;
  }

  body.digital-catalog-page .panel {
    width: 100vw;
    height: auto;
    padding: 3rem 1rem;
  }

  body.digital-catalog_page .panel-hero {
    height: 100vh;
    flex-direction: column;
    justify-content: center;
  }

  body.digital-catalog-page .hero-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  body.digital-catalog-page .hero-text-group {
    display: contents;
  }

  /* Mobile hero layout: label (collection-tag) above name, image center, arrow below */
  body.digital-catalog-page .collection-tag {
    display: block;
    order: 1;
    font-size: 1rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: var(--lux-gold);
    margin-bottom: 0.35rem;
    font-family: var(--lux-font-serif);
  }

  body.digital-catalog-page .model-name-luxury {
    order: 2;
    margin-top: 0;
    font-size: clamp(1.8rem, 7.5vw, 2.2rem);
    color: var(--lux-text);
  }

  body.digital-catalog-page .hero-img-container {
    order: 2;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 2rem 0; /* match homepage product slide element spacing */
  }

  body.digital-catalog-page .hero-main-img {
    width: 90%;
    max-width: 520px;
    transform: none;
    margin: 0 auto;
  }

  body.digital-catalog-page .hero-quote {
    order: 3;
    margin: 0.7rem auto 0; /* match product description p margin-top on homepage */
    border-left: none;
    padding-left: 0;
    position: relative;
    letter-spacing: 0.03rem; /* match homepage model-name letter-spacing */
  }

  body.digital-catalog-page .hero-quote::after {
    content: "↓";
    display: block;
    margin-top: 0.5rem;
    font-size: 1.4rem;
    color: var(--lux-gold);
    opacity: 0.8;
    animation: arrow-bounce 1.6s ease-in-out infinite;
  }

  body.digital-catalog-page .hero-quote::after {
    content: "↓";
    display: block;
    margin-top: 0.5rem;
    font-size: 1.4rem;
    color: var(--lux-gold);
    opacity: 0.8;
    animation: arrow-bounce 1.6s ease-in-out infinite;
  }

  .blueprint-wrapper {
    flex-direction: column;
    border: none;
    height: auto;
  }

  .blueprint-sidebar {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 2rem 0;
    margin-bottom: 2rem;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .blueprint-main {
    flex-direction: column;
    padding-left: 0;
    gap: 3rem;
  }

  .tech-drawing-card {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }

  .panel-gallery-continuous {
    width: 100vw;
    height: auto;
  }

  .gallery-strip {
    flex-direction: column;
    padding: 0;
    width: 100%;
    gap: 3rem;
  }

  .gallery-intro-block {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 2rem;
  }
  body.digital-catalog-page .panel-gallery-continuous .gallery-intro-block h2 {
    font-size: 2.5rem;
  }
  /* Mobile: ensure the intro description is centered under the title */
  body.digital-catalog-page .panel-gallery-continuous .gallery-intro-block p {
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
    max-width: 90%;
    color: #666;
  }

  .gallery-item {
    width: 100%;
    margin: 0 !important;
  }

  .item-large,
  .item-small {
    width: 100%;
  }

  .pos-top,
  .pos-center,
  .pos-bottom {
    align-self: center;
    margin: 0;
  }

  .close-lightbox {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }
}

#product-video-panel {
  display: none;
}

/* MOBILE: dọc; DESKTOP: ngang giữ nguyên */
@media (max-width: 768px) {
  html.digital-catalog-page,
  body.digital-catalog-page {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .scroll-container {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }
  /* Show gallery intro text on mobile for product detail page (was hidden) */
  body.digital-catalog-page .panel-gallery-continuous .gallery-intro-block {
    display: block;
  }

  /* Mobile homepage: make product images display full from slide 2 onward
       (site adds `progress-right` to body when navigating past first slide) */
  body:not(.digital-catalog-page).progress-right .piano-section .image-wrapper {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    justify-content: center;
  }

  body:not(.digital-catalog-page).progress-right
    .piano-section
    .image-wrapper
    .product-image {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
  }
}

/* ================================================= */
/* MOBILE ARROW HINT ANIMATIONS                      */
/* ================================================= */
@keyframes hint-right {
  0%, 100% { opacity: 0.5; transform: translateX(0); color: rgba(171, 127, 62, 0.5); }
  50%       { opacity: 0.9; transform: translateX(5px); color: var(--lux-gold); filter: drop-shadow(0 0 6px rgba(171,127,62,0.5)); }
}
@keyframes hint-left {
  0%, 100% { opacity: 0.5; transform: translateX(0); color: rgba(171, 127, 62, 0.5); }
  50%       { opacity: 0.9; transform: translateX(-5px); color: var(--lux-gold); filter: drop-shadow(0 0 6px rgba(171,127,62,0.5)); }
}

/* Intro slide: swipe-right hint arrow removed (CTA button is the only entry point on mobile) */

@media (max-width: 768px) {
  /* Hint on first slide: right arrow pulses twice to suggest swiping left (next) */
  .mobile-arrow.hint-right {
    animation: hint-right 1.6s ease-in-out 2;
  }
  /* Hint on last slide: left arrow pulses twice to suggest swiping right (prev) */
  .mobile-arrow.hint-left {
    animation: hint-left 1.6s ease-in-out 2;
  }
  /* Never show dots on mobile homepage */
  body:not(.digital-catalog-page) .scroll-progress {
    display: none !important;
  }
}

/* ================================================= */
/* LAYOUT OPTIMIZATION FOR ~390×844 PHONES           */
/* ================================================= */
@media (max-width: 430px) {
  body:not(.digital-catalog-page) .piano-section {
    padding-top: 70px !important;
    padding-bottom: 1rem !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper {
    flex: 0 0 38vh !important;
    height: 38vh !important;
    max-height: 38vh !important;
    padding: 0.3rem 0.5rem !important;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper .product-image {
    max-height: 37vh !important;
    max-width: calc(100vw - 80px) !important;
  }

  body:not(.digital-catalog-page) .piano-section .product-info h2,
  body:not(.digital-catalog-page) .piano-section .collection-tag {
    font-size: 0.78rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.12rem !important;
    letter-spacing: 2px !important;
  }

  body:not(.digital-catalog-page) .piano-section .product-info h3 {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
  }

  body:not(.digital-catalog-page) .piano-section .product-info p {
    margin-top: 0.8rem !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
  }

  body:not(.digital-catalog-page) .piano-section .view-more {
    margin-top: 0.4rem !important;
    padding: 0.38rem 0.8rem !important;
    font-size: 0.75rem !important;
  }

  /* Arrow position: JS positionMobileArrows() overrides top at runtime */
  .mobile-prev,
  .mobile-next {
    top: calc(70px + 17vh) !important;
  }
}

/* ================================================= */
/* LAYOUT OPTIMIZATION FOR SMALL PHONES (≤375px)     */
/* ================================================= */
@media (max-width: 375px) {
  body:not(.digital-catalog-page) .piano-section {
    padding-top: 70px !important;
    padding-bottom: 0.75rem !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper {
    flex: 0 0 34vh !important;
    height: 34vh !important;
    max-height: 34vh !important;
    padding: 0.2rem 0.5rem !important;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper .product-image {
    max-height: 33vh !important;
    max-width: calc(100vw - 72px) !important;
  }

  body:not(.digital-catalog-page) .piano-section .collection-tag {
    font-size: 0.72rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 0.1rem !important;
  }

  body:not(.digital-catalog-page) .piano-section .product-info h3 {
    font-size: 1.25rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
  }

  body:not(.digital-catalog-page) .piano-section .product-info p {
    margin-top: 0.6rem !important;
    font-size: 0.82rem !important;
    line-height: 1.28 !important;
    margin-bottom: 0 !important;
  }

  body:not(.digital-catalog-page) .piano-section .view-more {
    margin-top: 0.3rem !important;
    padding: 0.28rem 0.65rem !important;
    font-size: 0.7rem !important;
  }

  /* Arrow position: JS positionMobileArrows() overrides top at runtime */
  .mobile-prev,
  .mobile-next {
    top: calc(70px + 15vh) !important;
  }
}

/* ================================================= */
/* MOBILE UX PRO MAX — COMPREHENSIVE OPTIMIZATION    */
/* ================================================= */

/* ---------- 1. HEADER: Transparent — matches section background ---------- */
@media (max-width: 768px) {
  /* Header: transparent, text starts 0.5 cm from the top (safe-area aware) */
  .header {
    height: auto !important;
    min-height: 56px !important;
    padding: max(env(safe-area-inset-top, 0.5cm), 0.5cm) 1.2rem 0.5rem !important;
    align-items: center !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none;
  }

  /* Phone link: small gold pill button */
  .header .contact a.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(171, 127, 62, 0.1);
    color: var(--lux-gold);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(171, 127, 62, 0.25);
    min-height: 36px;
    letter-spacing: 0.03rem;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .header .contact a.phone-link:active {
    background: rgba(171, 127, 62, 0.2);
  }

  .header .contact i {
    font-size: 0.7rem;
  }
}

/* ---------- 2. INTRO SECTION: Proper mobile layout ---------- */
@media (max-width: 768px) {
  body:not(.digital-catalog-page) .intro-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    justify-content: center;
    gap: 0;
  }

  /* Logo image - larger on mobile without scale hack */
  body:not(.digital-catalog-page) .intro-content h1 img,
  body:not(.digital-catalog-page) .steinway-brand img {
    max-width: clamp(240px, 72vw, 360px) !important;
    transform: none !important;
    filter: drop-shadow(0 6px 24px rgba(171, 127, 62, 0.12));
  }

  body:not(.digital-catalog-page) .intro-content p {
    font-size: clamp(1.18rem, 3.5vw, 1.35rem) !important;
    color: #777;
    line-height: 1.6;
    margin-bottom: 1.6rem;
    max-width: 26ch;
    margin-left: auto;
    margin-right: auto;
  }

  /* CTA button: filled gold on mobile for better tap affordance */
  body:not(.digital-catalog-page) .intro-cta {
    background: var(--lux-gold) !important;
    color: #fff !important;
    border-color: var(--lux-gold) !important;
    box-shadow: 0 8px 24px rgba(171, 127, 62, 0.35) !important;
    padding: 0.85rem 2.2rem !important;
    font-size: 0.83rem !important;
    min-height: 48px !important;
    min-width: 190px !important;
    letter-spacing: 0.16rem !important;
    border-radius: 999px !important;
    -webkit-tap-highlight-color: transparent;
  }

  body:not(.digital-catalog-page) .intro-cta:active {
    transform: scale(0.97) !important;
    box-shadow: 0 4px 12px rgba(171, 127, 62, 0.3) !important;
  }

  /* Intro company label */
  body:not(.digital-catalog-page) .intro-section.active .mobile-slide-company {
    bottom: 22px;
    font-size: 0.58rem;
    letter-spacing: 0.2rem;
    opacity: 0.7;
  }
}

/* ---------- Mobile: header label and phone size parity with product detail ---------- */
@media (max-width: 768px) {
  .header-label {
    font-size: 0.82rem !important; /* match detail nav logo */
    letter-spacing: 0.28rem !important;
    font-family: var(--lux-font-serif) !important;
    color: var(--secondary-color) !important;
    opacity: 0.7 !important;
    font-weight: 400 !important; /* remove bold on mobile */
  }

  .header .contact .phone-link {
    font-size: 0.82rem !important; /* match detail phone pill */
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.32rem !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 999px !important;
    background: rgba(171, 127, 62, 0.1) !important;
    color: var(--lux-gold) !important;
    border: 1px solid rgba(171, 127, 62, 0.25) !important;
    -webkit-tap-highlight-color: transparent !important;
    font-weight: 400 !important; /* remove bold on phone pill */
  }

  .header .contact .phone-text {
    display: inline !important;
  }
}

/* ---------- 3. PRODUCT SLIDES: Balanced layout + font synchronization ---------- */
@media (max-width: 768px) {
  /* Override justify-content and padding-top here with !important */
  body:not(.digital-catalog-page) .piano-section {
    justify-content: center !important;
    padding-top: 70px !important;
    padding-bottom: 1.5rem !important;
  }

  /* Collection label: same size as .spec-label for visual consistency */
  body:not(.digital-catalog-page) .piano-section .collection-tag {
    font-size: 0.82rem !important;
    letter-spacing: 0.28rem !important;
    color: var(--lux-gold) !important;
    opacity: 1 !important;
    text-transform: uppercase;
    margin-top: 0.4rem !important;
    margin-bottom: 0.15rem !important;
    display: block;
    font-family: var(--lux-font-sans) !important;
  }

  /* Model name: same font/weight as .spec-value, matches 1.8rem spec scale */
  body:not(.digital-catalog-page) .piano-section .product-info h3 {
    font-family: var(--lux-font-serif) !important;
    font-size: clamp(1.8rem, 7.5vw, 2.2rem) !important;
    font-weight: 300 !important;
    color: var(--secondary-color) !important;
    letter-spacing: 0.03rem !important;
    margin: 0 0 0.1rem !important;
    line-height: 1.1 !important;
  }

  /* Quote/description text: synced to spec-label body scale */
  body:not(.digital-catalog-page) .piano-section .product-info p {
    font-size: clamp(0.9rem, 3.2vw, 0.96rem) !important;
    line-height: 1.55 !important;
    color: #888 !important;
    max-width: 26ch;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.7rem !important;
    margin-bottom: 0 !important;
  }

  /* "Xem thêm" button: larger touch target, gold outline */
  body:not(.digital-catalog-page) .piano-section .view-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 130px !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 999px !important;
    border: 1.5px solid rgba(171, 127, 62, 0.45) !important;
    color: var(--lux-gold) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.16rem !important;
    margin-top: 0.7rem !important;
    background: transparent !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent;
  }

  body:not(.digital-catalog-page) .piano-section .view-more:active {
    background: rgba(171, 127, 62, 0.1) !important;
    border-color: var(--lux-gold) !important;
    transform: scale(0.97) !important;
  }

  /* Image container: match detail page hero — full width, auto height */
  body:not(.digital-catalog-page) .piano-section .image-wrapper {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }

  body:not(.digital-catalog-page) .piano-section .image-wrapper .product-image {
    width: 100% !important;
    height: auto !important;
    max-width: 600px !important;
    object-fit: contain !important;
  }
}

/* ---------- 4. MOBILE ARROWS: Hidden — swipe-only navigation ---------- */
@media (max-width: 768px) {
  .slide-arrow,
  .mobile-arrow,
  .mobile-prev,
  .mobile-next {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ---------- 5. DIGITAL CATALOG — MOBILE PANELS ---------- */
@media (max-width: 768px) {
  /* Show fixed-nav as transparent header bar — like homepage */
  body.digital-catalog-page .fixed-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    mix-blend-mode: normal !important;
    background: transparent !important;
    padding: max(env(safe-area-inset-top, 0.5cm), 0.5cm) 1.2rem 0.5rem !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: var(--secondary-color) !important;
    z-index: 1000;
    pointer-events: none;
    box-shadow: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
  }

  /* Nav bar gets a frosted background once the user scrolls past the hero */
  body.digital-catalog-page .fixed-nav.nav-scrolled {
    background: rgba(247, 247, 247, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07) !important;
  }

  /* Show “Digital Catalog” label — styled like homepage header-label */
  body.digital-catalog-page .nav-logo {
    display: block !important;
    font-family: var(--lux-font-serif) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.28rem !important;
    text-transform: uppercase !important;
    color: var(--secondary-color) !important;
    opacity: 0.7 !important;
    pointer-events: auto;
    text-decoration: none;
  }

  /* Nav-contact: inline at top right (not FAB) */
  body.digital-catalog-page .nav-contact {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  /* Phone link: same gold pill style as homepage */
  body.digital-catalog-page .phone-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.32rem !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 999px !important;
    background: rgba(171, 127, 62, 0.1) !important;
    color: var(--lux-gold) !important;
    border: 1px solid rgba(171, 127, 62, 0.25) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    min-height: 36px !important;
    letter-spacing: 0.03rem !important;
    width: auto !important;
    height: auto !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease !important;
  }

  body.digital-catalog-page .phone-link:active {
    background: rgba(171, 127, 62, 0.2) !important;
    transform: none !important;
    box-shadow: none !important;
  }

  body.digital-catalog-page .phone-link i {
    font-size: 0.75rem !important;
    margin-right: 0 !important;
  }

  /* Show phone number text */
  body.digital-catalog-page .phone-text {
    display: inline !important;
  }

  body.digital-catalog-page .nav-line {
    display: none !important;
  }

  /* Back button: bottom-left corner with safe area */
  body.digital-catalog-page .floating-back {
    display: flex !important;
    position: fixed;
    top: auto !important;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px)) !important;
    left: 24px !important;
    height: auto !important;
    padding: 0 !important;
    z-index: 1010;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--secondary-color);
    mix-blend-mode: normal;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  body.digital-catalog-page .floating-back .line {
    width: 24px !important;
    height: 1px !important;
    background: var(--secondary-color); /* no !important — allows JS contrast override */
    transition: width 0.2s ease !important;
  }

  body.digital-catalog-page .floating-back span {
    font-size: 0.78rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--secondary-color);
  }

  body.digital-catalog-page .floating-back:active .line {
    width: 36px !important;
  }

  /* Hero panel: full viewport height on mobile */
  body.digital-catalog-page .panel-hero {
    min-height: 100svh;
    padding: 5.5rem 1.4rem 2.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Hero image: larger and prominent on mobile */
  body.digital-catalog-page .hero-main-img {
    width: 100% !important;
    max-width: 600px !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  }

  /* FONT SYNC: catalog hero matches spec hierarchy — keep in sync with homepage product slide values */
  body.digital-catalog-page .collection-tag {
    font-size: 1rem !important;
    letter-spacing: 0.28rem !important;
    text-transform: uppercase !important;
    font-family: var(--lux-font-sans) !important;
    margin-top: 0.4rem !important;   /* matches homepage .collection-tag margin-top */
    margin-bottom: 0.15rem !important; /* matches homepage .collection-tag margin-bottom */
    color: var(--lux-gold) !important;
  }

  body.digital-catalog-page .model-name-luxury {
    font-size: clamp(1.8rem, 7.5vw, 2.2rem) !important; /* matches homepage h3 font-size */
    letter-spacing: 0.03rem !important;  /* matches homepage h3 */
    margin: 0 0 0.4rem !important;       /* increased to create breathing room above hero image */
    font-family: var(--lux-font-serif) !important;
    font-weight: 300 !important;
  }

  body.digital-catalog-page .hero-quote {
    font-size: 1rem !important;  /* = spec-label-body range */
    font-style: italic;
    font-family: var(--lux-font-serif) !important;
    color: #777;
    max-width: 28ch;
    margin: 0.7rem auto !important;  /* match homepage product description top spacing */
    line-height: 1.55;
    text-align: center;
  }

  /* FONT SYNC: spec panel — consistent with desktop spec sizes */
  body.digital-catalog-page .spec-label {
    font-size: 0.75rem !important;
    letter-spacing: 0.2rem !important;
    text-transform: uppercase !important;
    color: #999 !important;
  }

  body.digital-catalog-page .spec-value {
    font-size: 1.8rem !important;
    font-family: var(--lux-font-serif) !important;
    color: var(--lux-gold) !important;
  }

  /* Blueprint panel: card-style spec grid */
  body.digital-catalog-page .panel-blueprint {
    padding: 3rem 1.2rem !important;
  }

  /* Prevent h2 text from wrapping — keep on a single line */
  body.digital-catalog-page .panel h2 {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  body.digital-catalog-page .blueprint-header h2 {
    font-size: 2rem !important;
    line-height: 1.15;
    margin-bottom: 1rem !important;
  }

  body.digital-catalog-page .tech-badge {
    font-size: 0.66rem !important;
    letter-spacing: 0.15rem !important;
    margin-bottom: 0.9rem !important;
  }

  body.digital-catalog-page .spec-item {
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.digital-catalog-page .spec-value {
    font-size: 1.5rem !important;
    color: var(--lux-gold);
  }

  body.digital-catalog-page .spec-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.12rem !important;
    color: #888;
  }

  /* Gallery panel: better padding */
  body.digital-catalog-page .panel-gallery-continuous {
    padding: 3rem 0 !important;
  }

  body.digital-catalog-page .gallery-strip {
    padding: 0 1.2rem !important;
    gap: 1.5rem !important;
  }

  body.digital-catalog-page .gallery-intro-block h2 {
    font-size: 2.2rem !important;
    line-height: 1.15;
    margin-bottom: 0.6rem !important;
  }

  body.digital-catalog-page .gallery-intro-block p {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 1.2rem !important;
  }

  /* Video panel */
  body.digital-catalog-page .product-video-wrapper {
    padding: 1.5rem 1rem !important;
    border-radius: 12px !important;
  }

  body.digital-catalog-page .product-video-wrapper h2 {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    margin-bottom: 1.2rem !important;
  }

  /* Footer panel */
  body.digital-catalog-page .footer-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    line-height: 1.2;
    margin-bottom: 0.6rem !important;
  }

  body.digital-catalog-page .btn-luxury {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.75rem 2.2rem !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.18rem !important;
    -webkit-tap-highlight-color: transparent;
  }

  body.digital-catalog-page .btn-luxury:active {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #111 !important;
  }
}

/* ---------- 6. LOADING SCREEN: Mobile refinement ---------- */
@media (max-width: 768px) {
  .loading-screen {
    background: linear-gradient(135deg, var(--lux-dark) 0%, #1e1a15 100%);
  }

  .loader {
    width: 42px;
    height: 42px;
    border-width: 2.5px;
  }
}

/* ---------- 7. PROGRESS DOTS: Mobile - vertical side indicator ---------- */
/* On mobile, dots are hidden; mobile arrows handle navigation.
   This provides a fallback vertical scroll indicator when visible. */
@media (max-width: 768px) {
  .scroll-progress {
    gap: 5px !important;
  }

  .progress-dot {
    border-radius: 50% !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
  }
}

/* ---------- 8. ACCESSIBILITY & PERFORMANCE ---------- */
@media (max-width: 768px) {
  /* Ensure all interactive elements have 44×44px minimum touch target */
  .view-more,
  .intro-cta,
  .btn-luxury,
  .mobile-arrow,
  .progress-dot {
    position: relative;
  }

  /* Prevent text selection on swipe */
  body:not(.digital-catalog-page) .container {
    -webkit-user-select: none;
    user-select: none;
  }

  /* Remove 300ms tap delay on iOS buttons only (not container to preserve swipe) */
  .view-more,
  .intro-cta,
  .btn-luxury,
  .mobile-arrow,
  .desktop-arrow,
  .progress-dot,
  .header .contact a,
  .phone-link {
    touch-action: manipulation;
  }

  /* Smooth momentum scrolling on digital catalog */
  body.digital-catalog-page {
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- 9. SAFE AREA: iPhone notch/home indicator ---------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    /* Add safe-area to base 56px padding so content never hides behind home indicator */
    body:not(.digital-catalog-page) .piano-section {
      padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    body.digital-catalog-page .floating-back {
      padding-top: env(safe-area-inset-top, 0px);
    }
  }
}

/* ---------- 10. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .section,
  .product-info,
  .image-wrapper,
  .mobile-arrow,
  .loader,
  .tech-svg {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
