/* =====================================================
   LUYUAN PRODUCT DETAIL PAGE CSS - FORMAL TEMPLATE
   For luyuanlighting.com product detail pages only
===================================================== */

:root {
  --ly-gold: #c99d73;
  --ly-dark: #111;
  --ly-text: #555;
  --ly-muted: #666;
  --ly-border: #eee;
  --ly-soft-bg: #f8f3ee;
  --ly-footer-bg: linear-gradient(180deg, #151312 0%, #0b0b0b 100%);
  --ly-content-width: 1480px;
}

/* =====================================================
   PAGE WRAPPER
===================================================== */

.ly-product-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px 24px 0;
  background: #fff;
  color: #111;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ly-product-page * {
  box-sizing: border-box;
}

.ly-product-breadcrumb,
.ly-product-hero,
.ly-section {
  max-width: var(--ly-content-width);
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   BREADCRUMB
===================================================== */

.ly-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--ly-muted);
}

.ly-product-breadcrumb a {
  color: var(--ly-muted);
  text-decoration: none;
}

.ly-product-breadcrumb a:hover {
  color: var(--ly-gold);
}

.ly-product-breadcrumb strong {
  font-weight: 400;
  color: #111;
}

/* =====================================================
   HERO
===================================================== */

.ly-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 80px;
}

.ly-product-media {
  min-width: 0;
}

/* =====================================================
   GALLERY
===================================================== */

.ly-gallery,
.ly-main-image {
  width: 100%;
  max-width: 100%;
}

.ly-gallery-main,
.ly-main-image {
  position: relative;
  background: #f5f5f5;
  border: 1px solid var(--ly-border);
  overflow: hidden;
}

.ly-gallery-main-img,
.ly-main-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: opacity .22s ease;
}

.ly-gallery-main-img.is-changing {
  opacity: .35;
}

.ly-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .46);
  color: #fff;
  font-size: 34px;
  line-height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ly-gallery-arrow:hover {
  background: rgba(0, 0, 0, .72);
}

.ly-gallery-prev {
  left: 14px;
}

.ly-gallery-next {
  right: 14px;
}

.ly-gallery-thumbs,
.ly-thumb-grid {
  margin-top: 14px;
}

.ly-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ly-gallery-thumbs::-webkit-scrollbar {
  height: 5px;
}

.ly-gallery-thumbs::-webkit-scrollbar-track {
  background: #eee;
}

.ly-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 99px;
}

.ly-gallery-thumb {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border: 1px solid var(--ly-border);
  background: #f5f5f5;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}

.ly-gallery-thumb img,
.ly-thumb-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-gallery-thumb:hover,
.ly-gallery-thumb.is-active {
  border-color: #111;
}

.ly-gallery-thumb.is-active {
  box-shadow: 0 0 0 2px #111 inset;
}

.ly-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ly-thumb-grid img {
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border: 1px solid var(--ly-border);
}

/* =====================================================
   VIDEO
===================================================== */

.ly-product-video-box,
.ly-wide-video {
  --ly-video-ratio: 16 / 9;
  width: 100%;
  background: #111;
  overflow: hidden;
}

.ly-product-video-box {
  margin-top: 16px;
}

.ly-wide-video {
  max-width: 1100px;
  margin: 0 auto;
}

.ly-product-video-box.ly-video-vertical {
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.ly-product-video-box.ly-video-square {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.ly-product-video-box video,
.ly-wide-video video,
.ly-product-video-box iframe,
.ly-wide-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ly-video-ratio);
  object-fit: contain;
  background: #111;
  border: 0;
}

.ly-product-video-box iframe,
.ly-wide-video iframe {
  min-height: 0;
}

.ly-product-video-box blockquote,
.ly-product-video-box .tiktok-embed,
.ly-product-video-box .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.ly-product-video-link {
  padding: 24px;
  text-align: center;
}

.ly-product-video-link a {
  color: #fff;
  text-decoration: underline;
}

.ly-product-video-fallback {
  background: #f6f3ef;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
}

.ly-product-video-fallback a {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ly-video-ratio);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: #111;
}

.ly-product-video-fallback img,
.ly-product-video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f6f3ef, #e9e2d8);
}

.ly-product-video-fallback a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.22);
}

.ly-product-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 28px;
  line-height: 1;
  padding-left: 4px;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.ly-product-video-button {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #111;
  color: #fff;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* =====================================================
   SUMMARY
===================================================== */

.ly-product-summary {
  position: sticky;
  top: 28px;
}

.ly-b2b-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ly-product-summary h1 {
  margin: 0 0 20px;
  color: #111;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
}

.ly-product-intro {
  margin: 0 0 22px;
  color: var(--ly-text);
  font-size: 16.5px;
  line-height: 1.75;
}

.ly-product-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.ly-product-highlights li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: #333;
  font-size: 15.5px;
  line-height: 1.55;
}

.ly-product-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ly-gold);
  font-weight: 700;
}

/* =====================================================
   INFO GRID
===================================================== */

.ly-b2b-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 26px;
  border: 1px solid var(--ly-border);
}

.ly-b2b-info-grid div {
  padding: 18px 20px;
  border-right: 1px solid var(--ly-border);
  border-bottom: 1px solid var(--ly-border);
}

.ly-b2b-info-grid div:nth-child(2n) {
  border-right: none;
}

.ly-b2b-info-grid div:nth-last-child(-n+2) {
  border-bottom: none;
}

.ly-b2b-info-grid span {
  display: block;
  margin-bottom: 6px;
  color: #888;
  font-size: 13px;
}

.ly-b2b-info-grid strong {
  display: block;
  color: #111;
  font-size: 15px;
}

/* =====================================================
   QUOTE BOX + BUTTONS
===================================================== */

.ly-quote-box {
  margin-bottom: 18px;
  padding: 24px 24px 26px;
  background: var(--ly-soft-bg);
  border-left: 4px solid var(--ly-gold);
}

.ly-quote-box h3 {
  margin: 0 0 10px;
  color: #111;
  font-size: 22px;
}

.ly-quote-box p {
  margin: 0 0 20px;
  color: var(--ly-text);
  font-size: 15px;
  line-height: 1.7;
}

.ly-quote-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
}

.ly-btn-primary {
  background: var(--ly-gold);
  color: #fff;
  border: 1px solid var(--ly-gold);
}

.ly-btn-primary:hover,
.ly-btn-outline:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ly-btn-outline {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}

.ly-no-retail-note {
  padding: 16px 18px;
  border: 1px solid var(--ly-border);
  color: var(--ly-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* =====================================================
   SECTIONS
===================================================== */

.ly-section {
  margin-bottom: 78px;
}

.ly-section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.ly-section-head h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 34px;
  line-height: 1.2;
}

.ly-section-head p {
  margin: 0;
  color: var(--ly-muted);
  font-size: 16px;
  line-height: 1.7;
}

.ly-long-content {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.ly-long-content p {
  margin: 0 0 18px;
  color: var(--ly-text);
  font-size: 16px;
  line-height: 1.85;
  text-align: left;
}


/* =====================================================
   BUYER SUMMARY
===================================================== */

.ly-buyer-summary-section {
  padding-top: 18px;
}

.ly-buyer-summary-box {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 32px;
  background: #f8f4ef;
  border: 1px solid #eadfd2;
  border-radius: 18px;
}

.ly-buyer-summary-box span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ly-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ly-buyer-summary-box p {
  margin: 0;
  color: var(--ly-text);
  font-size: 17px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .ly-buyer-summary-box {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .ly-buyer-summary-box p {
    font-size: 15px;
    line-height: 1.75;
  }
}

/* =====================================================
   TABLES + CARDS
===================================================== */

.ly-spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #e8e8e8;
  border-left: 1px solid #e8e8e8;
}

.ly-spec-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.ly-spec-table span {
  padding: 15px 18px;
  background: #f7f7f7;
  border-right: 1px solid #e8e8e8;
  color: var(--ly-muted);
  font-size: 14px;
}

.ly-spec-table strong {
  padding: 15px 18px;
  color: #111;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.ly-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ly-detail-card {
  background: #fff;
  border: 1px solid var(--ly-border);
}

.ly-detail-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ly-detail-card h3 {
  margin: 22px 22px 10px;
  color: #111;
  font-size: 21px;
}

.ly-detail-card p {
  margin: 0 22px 24px;
  color: var(--ly-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =====================================================
   PROCESS + APPLICATION + FAQ
===================================================== */

.ly-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.ly-process-grid div {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--ly-border);
}

.ly-process-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--ly-gold);
  font-size: 32px;
  font-weight: 800;
}

.ly-process-grid h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 20px;
}

.ly-process-grid p {
  margin: 0;
  color: var(--ly-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.ly-application-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.ly-application-grid div {
  padding: 18px 14px;
  background: var(--ly-soft-bg);
  border: 1px solid #eaded1;
  color: #333;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.ly-faq-list {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--ly-border);
}

.ly-faq-list details {
  padding: 20px 0;
  border-bottom: 1px solid var(--ly-border);
}

.ly-faq-list summary {
  cursor: pointer;
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.ly-faq-list p {
  margin: 14px 0 0;
  color: var(--ly-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* =====================================================
   CENTERED WHITE BOTTOM CTA
===================================================== */

.ly-product-page .ly-bottom-cta {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 58px 24px;
  background: #fff;
  color: #111;
  border-top: 1px solid #eee7df;
  border-bottom: 1px solid #eee7df;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .035);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.ly-bottom-cta-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.ly-bottom-cta-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ly-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ly-bottom-cta h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.6px;
  text-align: center;
}

.ly-bottom-cta p {
  margin: 0;
  color: #5f5f5f;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
}

.ly-bottom-cta-action {
  width: auto;
  margin: 0 auto;
  text-align: center;
}

.ly-bottom-cta-btn,
.ly-bottom-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 36px;
  background: var(--ly-gold);
  color: #fff;
  border: 1px solid var(--ly-gold);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  transition: all .22s ease;
}

.ly-bottom-cta-btn:hover,
.ly-bottom-cta a:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* =====================================================
   FULL-WIDTH FOOTER CONNECTION
===================================================== */

.ly-site-footer {
  width: 100vw !important;
  max-width: none !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  background: var(--ly-footer-bg) !important;
  border-top: none !important;
  box-shadow: none !important;
}

.ly-footer-inner {
  max-width: var(--ly-content-width) !important;
  margin: 0 auto !important;
  padding: 60px 24px 28px !important;
}

.turbo-footer-template,
#tahefobu-footer,
#tahefobu-footer .elementor,
#tahefobu-footer .elementor-section,
#tahefobu-footer .elementor-container,
#tahefobu-footer .elementor-column,
#tahefobu-footer .elementor-widget-wrap,
#tahefobu-footer .elementor-widget-html,
#tahefobu-footer .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

#page > hr,
#page > #footer,
#footer,
body > hr,
.wp-site-blocks > hr,
.wp-block-separator,
.elementor-divider,
.elementor-widget-divider {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {
  .ly-product-hero {
    grid-template-columns: 1fr;
  }

  .ly-product-summary {
    position: static;
  }

  .ly-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ly-application-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ly-product-page {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 18px 14px 0 !important;
  }

  .ly-product-breadcrumb {
    margin-bottom: 18px !important;
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .ly-product-hero {
    display: block !important;
    margin-bottom: 54px !important;
  }

  .ly-product-media {
    width: 100% !important;
    margin-bottom: 28px !important;
  }

  .ly-gallery-main-img,
  .ly-main-image img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  .ly-gallery-arrow {
    width: 36px !important;
    height: 36px !important;
    font-size: 28px !important;
    line-height: 32px !important;
  }

  .ly-gallery-prev {
    left: 8px !important;
  }

  .ly-gallery-next {
    right: 8px !important;
  }

  .ly-gallery-thumbs {
    gap: 8px !important;
    margin-top: 10px !important;
    padding-bottom: 8px !important;
  }

  .ly-gallery-thumb {
    flex: 0 0 74px !important;
    width: 74px !important;
    height: 74px !important;
  }

  .ly-thumb-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  .ly-product-video-box {
    margin-top: 12px !important;
  }

  .ly-product-summary {
    position: static !important;
  }

  .ly-b2b-label {
    margin-bottom: 14px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .ly-product-summary h1 {
    margin-bottom: 16px !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .ly-product-intro {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .ly-product-highlights li {
    margin-bottom: 9px !important;
    font-size: 14px !important;
  }

  .ly-b2b-info-grid {
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 20px !important;
  }

  .ly-b2b-info-grid div {
    padding: 14px 12px !important;
  }

  .ly-b2b-info-grid span {
    font-size: 12px !important;
  }

  .ly-b2b-info-grid strong {
    font-size: 13px !important;
  }

  .ly-quote-box {
    padding: 20px 18px !important;
  }

  .ly-quote-box h3 {
    font-size: 20px !important;
  }

  .ly-quote-buttons {
    display: block !important;
  }

  .ly-btn {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .ly-section {
    margin-bottom: 54px !important;
  }

  .ly-section-head {
    margin-bottom: 24px !important;
    text-align: left !important;
  }

  .ly-section-head h2 {
    font-size: 26px !important;
  }

  .ly-section-head p {
    font-size: 14px !important;
  }

  .ly-spec-table {
    display: block !important;
    border-top: 1px solid #e8e8e8 !important;
    border-left: 1px solid #e8e8e8 !important;
  }

  .ly-spec-table div {
    display: block !important;
    border-right: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
  }

  .ly-spec-table span {
    display: block !important;
    padding: 11px 14px !important;
    border-right: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    font-size: 13px !important;
  }

  .ly-spec-table strong {
    display: block !important;
    padding: 12px 14px !important;
    font-size: 13.5px !important;
  }

  .ly-detail-grid,
  .ly-process-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .ly-application-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .ly-application-grid div {
    padding: 14px 10px !important;
    font-size: 13px !important;
  }

  .ly-faq-list summary {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .ly-product-page .ly-bottom-cta {
    padding: 40px 22px !important;
    gap: 20px !important;
  }

  .ly-bottom-cta h2 {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .ly-bottom-cta p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .ly-bottom-cta-action {
    width: 100% !important;
  }

  .ly-bottom-cta-btn,
  .ly-bottom-cta a {
    width: 100% !important;
    max-width: 360px !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }

  .ly-site-footer {
    width: 100vw !important;
    max-width: none !important;
  }

  .ly-footer-inner {
    padding: 44px 24px 24px !important;
  }
}

@media (max-width: 480px) {
  .ly-product-summary h1 {
    font-size: 25px !important;
  }

  .ly-thumb-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .ly-gallery-thumb {
    flex: 0 0 66px !important;
    width: 66px !important;
    height: 66px !important;
  }

  .ly-b2b-info-grid {
    grid-template-columns: 1fr !important;
  }

  .ly-b2b-info-grid div {
    border-right: none !important;
  }

  .ly-b2b-info-grid div:last-child {
    border-bottom: none !important;
  }

  .ly-application-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =====================================================
   LUYUAN PRODUCT PRO UPGRADES
   Social share / archive / usability / reduced motion
===================================================== */

.ly-product-page {
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

.ly-product-page a { text-decoration: none; }

.ly-social-share {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--ly-border);
  background: #fff;
}

.ly-social-share-title {
  margin-bottom: 12px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.ly-social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ly-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #e7e1db;
  background: #fff;
  color: #222;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all .22s ease;
}

.ly-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.ly-share-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.ly-share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: #111;
  background: #111;
}

.ly-share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.ly-share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.ly-share-pinterest:hover { background: #bd081c; border-color: #bd081c; }
.ly-share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.ly-share-x:hover { background: #000; border-color: #000; }
.ly-share-instagram:hover { background: #e4405f; border-color: #e4405f; }
.ly-share-copy.is-copied { background: var(--ly-gold); border-color: var(--ly-gold); color: #fff; }

.ly-product-archive-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 58px 24px 80px;
  background: #fff;
  color: #111;
  box-sizing: border-box;
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

.ly-product-archive-page * { box-sizing: border-box; }
.ly-product-archive-page a { text-decoration: none; }

.ly-product-archive-hero,
.ly-product-archive-layout {
  max-width: var(--ly-content-width, 1480px);
  margin-left: auto;
  margin-right: auto;
}

.ly-product-archive-hero {
  padding: 52px 46px;
  margin-bottom: 42px;
  background: var(--ly-soft-bg, #f8f3ee);
  border: 1px solid #eaded1;
}

.ly-product-archive-hero span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ly-gold, #c99d73);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ly-product-archive-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  color: #111;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -1.5px;
}

.ly-product-archive-hero p {
  max-width: 920px;
  margin: 0;
  color: #666;
  font-size: 16.5px;
  line-height: 1.75;
}

.ly-product-archive-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.ly-product-archive-sidebar {
  border: 1px solid var(--ly-border, #eee);
  background: #fff;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.ly-product-archive-sidebar h3 {
  margin: 0 0 18px;
  color: #111;
  font-size: 18px;
}

.ly-product-archive-sidebar ul,
.ly-product-archive-sidebar li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ly-product-archive-sidebar li + li { margin-top: 12px; }

.ly-product-archive-sidebar a {
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.ly-product-archive-sidebar a:hover { color: var(--ly-gold, #c99d73); }


.ly-sidebar-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ly-border, #eee);
}

.ly-sidebar-section h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
}

.ly-sidebar-products {
  display: grid;
  gap: 14px;
}

.ly-sidebar-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
}

.ly-sidebar-product-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border: 1px solid var(--ly-border, #eee);
  overflow: hidden;
}

.ly-sidebar-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
}

.ly-sidebar-product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f3ee, #eee);
}

.ly-sidebar-product-body {
  display: block;
  min-width: 0;
}

.ly-sidebar-product-model {
  display: block;
  margin-bottom: 5px;
  color: var(--ly-gold, #c99d73);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.ly-sidebar-product strong {
  display: block;
  color: #111;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.ly-sidebar-product:hover strong,
.ly-sidebar-category-title:hover {
  color: var(--ly-gold, #c99d73);
}

.ly-sidebar-category-item + .ly-sidebar-category-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #e7e7e7;
}

.ly-sidebar-category-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #111;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .9px;
}

.ly-sidebar-empty {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
}

.ly-products-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.ly-product-card-pro {
  border: 1px solid var(--ly-border, #eee);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ly-product-card-pro:hover {
  transform: translateY(-6px);
  border-color: var(--ly-gold, #c99d73);
  box-shadow: 0 22px 48px rgba(0,0,0,.07);
}

.ly-product-card-pro a { display: block; color: inherit; }

.ly-product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  overflow: hidden;
}

.ly-product-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f7f7f7;
  transition: transform .35s ease;
}

.ly-product-card-pro:hover .ly-product-card-img img { transform: scale(1.045); }

.ly-product-card-body { padding: 22px 22px 24px; }

.ly-product-card-body span {
  display: block;
  margin-bottom: 9px;
  color: var(--ly-gold, #c99d73);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.ly-product-card-body h2 {
  margin: 0 0 10px;
  color: #111;
  font-size: 19px;
  line-height: 1.25;
}

.ly-product-card-body p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

.ly-product-pagination { margin-top: 44px; }

@media (max-width: 1100px) {
  .ly-product-archive-layout { grid-template-columns: 1fr; gap: 28px; }
  .ly-product-archive-sidebar { position: static; }
  .ly-sidebar-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  
.ly-sidebar-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ly-border, #eee);
}

.ly-sidebar-section h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
}

.ly-sidebar-products {
  display: grid;
  gap: 14px;
}

.ly-sidebar-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
}

.ly-sidebar-product-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border: 1px solid var(--ly-border, #eee);
  overflow: hidden;
}

.ly-sidebar-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
}

.ly-sidebar-product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f3ee, #eee);
}

.ly-sidebar-product-body {
  display: block;
  min-width: 0;
}

.ly-sidebar-product-model {
  display: block;
  margin-bottom: 5px;
  color: var(--ly-gold, #c99d73);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.ly-sidebar-product strong {
  display: block;
  color: #111;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.ly-sidebar-product:hover strong,
.ly-sidebar-category-title:hover {
  color: var(--ly-gold, #c99d73);
}

.ly-sidebar-category-item + .ly-sidebar-category-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #e7e7e7;
}

.ly-sidebar-category-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #111;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .9px;
}

.ly-sidebar-empty {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
}

.ly-products-grid-pro { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ly-product-video-box.ly-video-vertical,
  .ly-product-video-box.ly-video-square {
    max-width: 100%;
  }
  .ly-social-share { padding: 16px 14px; }
  .ly-social-share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ly-share-btn { width: 100%; min-height: 42px; }
  .ly-product-archive-page { width: 100%; margin: 0; padding: 26px 14px 56px; }
  .ly-product-archive-hero { padding: 32px 22px; margin-bottom: 28px; }
  
.ly-sidebar-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ly-border, #eee);
}

.ly-sidebar-section h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
}

.ly-sidebar-products {
  display: grid;
  gap: 14px;
}

.ly-sidebar-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
}

.ly-sidebar-product-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border: 1px solid var(--ly-border, #eee);
  overflow: hidden;
}

.ly-sidebar-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
}

.ly-sidebar-product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f3ee, #eee);
}

.ly-sidebar-product-body {
  display: block;
  min-width: 0;
}

.ly-sidebar-product-model {
  display: block;
  margin-bottom: 5px;
  color: var(--ly-gold, #c99d73);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.ly-sidebar-product strong {
  display: block;
  color: #111;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.ly-sidebar-product:hover strong,
.ly-sidebar-category-title:hover {
  color: var(--ly-gold, #c99d73);
}

.ly-sidebar-category-item + .ly-sidebar-category-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #e7e7e7;
}

.ly-sidebar-category-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #111;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .9px;
}

.ly-sidebar-empty {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
}

.ly-products-grid-pro { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ly-product-page *, .ly-product-archive-page * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   RELATED LINKS / BUYER RESOURCES
===================================================== */

.ly-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.ly-links-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.ly-link-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ly-border, #eee);
  border-radius: 18px;
}

.ly-link-panel h3 {
  margin: 0 0 18px;
  color: #111;
  font-size: 21px;
  line-height: 1.25;
}

.ly-link-list {
  display: grid;
  gap: 12px;
}

.ly-resource-link {
  display: block;
  padding: 16px 18px;
  background: var(--ly-soft-bg, #faf7f3);
  border: 1px solid #eaded1;
  color: #111;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ly-resource-link:hover {
  transform: translateY(-2px);
  border-color: var(--ly-gold, #c99d73);
  box-shadow: 0 14px 28px rgba(0,0,0,.06);
}

.ly-resource-link strong {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-size: 15.5px;
  line-height: 1.35;
}

.ly-resource-link span {
  display: block;
  color: var(--ly-muted, #666);
  font-size: 14px;
  line-height: 1.6;
}

.ly-external-links .ly-resource-link::after {
  content: "External reference";
  display: inline-block;
  margin-top: 10px;
  color: var(--ly-gold, #c99d73);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .ly-links-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ly-link-panel {
    padding: 22px 18px;
    border-radius: 14px;
  }
}

/* =====================================================
   IMAGE ADAPTIVE DISPLAY PATCH - v2.1.5
   Keep product, scene, spec and detail images visible without cropping.
   This only changes image fitting behavior; layout/content/import logic unchanged.
===================================================== */

.ly-gallery-main,
.ly-main-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f5f5f5 !important;
}

.ly-gallery-main-img,
.ly-main-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f5f5f5 !important;
}

.ly-gallery-thumb img,
.ly-thumb-grid img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f5f5f5 !important;
}

.ly-detail-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f7f7f7 !important;
}

.ly-product-card-img img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f4f4f4 !important;
}


/* LUYUAN v0.2.0: Lighting-shop support and related products */
.ly-support-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ly-support-columns>div{background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:22px}.ly-support-columns h3{margin:0 0 12px}.ly-support-columns ul{margin:0;padding-left:20px}.ly-support-columns li{margin:7px 0}.ly-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.ly-related-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit;background:#fff;border:1px solid #e8e8e8;border-radius:16px;overflow:hidden;padding-bottom:16px}.ly-related-image{display:block;aspect-ratio:1/1;background:#f7f7f7;overflow:hidden}.ly-related-image img{width:100%;height:100%;object-fit:cover}.ly-related-card strong,.ly-related-model{padding:0 14px}.ly-related-model{font-size:12px;letter-spacing:.05em;text-transform:uppercase;opacity:.65}.ly-datasheet-link{white-space:nowrap}@media(max-width:900px){.ly-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ly-support-columns{grid-template-columns:1fr}}@media(max-width:560px){.ly-related-grid{grid-template-columns:1fr}}


/* =====================================================
   v0.2.3 — Clean adaptive product gallery
   - contain images without cropping
   - stable desktop stage (no layout jump between ratios)
   - no hover lens overlay
   - zoom icon + simple fullscreen viewer
===================================================== */

.ly-gallery-main,
.ly-main-image {
  position: relative;
  width: 100%;
  height: clamp(520px, 58vw, 720px);
  min-height: 0;
  aspect-ratio: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid var(--ly-border);
}

.ly-gallery-main-img,
.ly-main-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.ly-gallery-thumb {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  background: #fff;
}

.ly-gallery-thumb img,
.ly-thumb-grid img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

.ly-gallery-zoom-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ly-gallery-zoom-button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.ly-gallery-zoom-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ly-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.94);
  padding: 24px;
}

.ly-gallery-lightbox.is-open { display: flex; }
body.ly-gallery-lightbox-open { overflow: hidden; }

.ly-gallery-lightbox-stage {
  width: min(94vw, 1500px);
  height: min(90vh, 1100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ly-gallery-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ly-gallery-lightbox-close,
.ly-gallery-lightbox-prev,
.ly-gallery-lightbox-next {
  position: absolute;
  z-index: 3;
  border: 0;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
}

.ly-gallery-lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.ly-gallery-lightbox-prev,
.ly-gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 58px;
  border-radius: 999px;
  font-size: 34px;
}
.ly-gallery-lightbox-prev { left: 18px; }
.ly-gallery-lightbox-next { right: 18px; }

.ly-gallery-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .ly-gallery-main,
  .ly-main-image {
    height: min(78vh, 620px);
  }
  .ly-gallery-thumb {
    flex-basis: 86px;
    width: 86px;
    height: 86px;
  }
  .ly-gallery-zoom-button {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  .ly-gallery-lightbox { padding: 12px; }
  .ly-gallery-lightbox-stage { width: 100%; height: 86vh; }
  .ly-gallery-lightbox-prev { left: 8px; }
  .ly-gallery-lightbox-next { right: 8px; }
  .ly-gallery-lightbox-close { top: 8px; right: 8px; }
}

@media (max-width: 560px) {
  .ly-gallery-main,
  .ly-main-image {
    height: min(70vh, 520px);
  }
}

/* =====================================================
   v0.2.4 — Borderless natural-ratio gallery
   - main stage follows each image's real aspect ratio
   - no visible grey/white frame around portrait/landscape images
   - no forced square canvas
   - zoom/lightbox controls retained
===================================================== */

.ly-product-media .ly-gallery {
  width: 100%;
  max-width: 100%;
}

.ly-product-media .ly-gallery-main,
.ly-product-media .ly-main-image {
  position: relative !important;
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ly-product-media .ly-gallery-main-img,
.ly-product-media .ly-main-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(78vh, 760px) !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep controls attached to the real image footprint instead of a fake square canvas. */
.ly-product-media .ly-gallery-prev { left: 14px !important; }
.ly-product-media .ly-gallery-next { right: 14px !important; }
.ly-product-media .ly-gallery-zoom-button { top: 14px !important; right: 14px !important; }

/* Thumbnails stay compact but no artificial grey canvas. */
.ly-product-media .ly-gallery-thumb {
  background: transparent !important;
}
.ly-product-media .ly-gallery-thumb img,
.ly-product-media .ly-thumb-grid img {
  background: transparent !important;
}

@media (max-width: 900px) {
  .ly-product-media .ly-gallery-main-img,
  .ly-product-media .ly-main-image img {
    max-height: min(72vh, 640px) !important;
  }
}

@media (max-width: 560px) {
  .ly-product-media .ly-gallery-main,
  .ly-product-media .ly-main-image {
    width: 100% !important;
  }
  .ly-product-media .ly-gallery-main-img,
  .ly-product-media .ly-main-image img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 68vh !important;
  }
}
