/* =========================================================
   Dreame-style frontend revamp
   1:1 visual reference: https://www.dreame.tech/
   ========================================================= */

:root {
  --dm-bg: #f0f1f2;
  --dm-white: #ffffff;
  --dm-black: #000000;
  --dm-text: #333436;
  --dm-text-secondary: #9fa1a8;
  --dm-text-muted: #87898f;
  --dm-text-body: #57585c;
  --dm-gold: #c2a067;
  --dm-gold-hover: #d5ba89;
  --dm-tab-bg: #e3e4e8;
  --dm-border: rgba(0, 0, 0, 0.08);
  --dm-radius: 0.416667rem;
  --dm-radius-lg: 0.625rem;
  --dm-header-h: 2.291667rem;
  --dm-container: 87.5rem;
  --dm-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dm-product-featured-slider {
  margin-bottom: 0.833333rem;
}

.dm-product-featured-slide img {
  border-radius: var(--dm-radius);
}

.dm-product-station .dm-featured {
  margin-bottom: 1.25rem;
}

/* ---- reset / base ---- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "MiSans", "PingFang SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
  color: var(--dm-text);
  background: var(--dm-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--dm-ease);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- utilities ---- */
.dm-container {
  width: 87.5%;
  max-width: var(--dm-container);
  min-width: 65.625rem;
  margin: 0 auto;
}

.dm-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dm-section-title h2 {
  font-size: 2.083333rem;
  font-weight: 600;
  color: var(--dm-text);
  margin-bottom: 0.625rem;
}

.dm-section-title p {
  font-size: 0.9375rem;
  color: var(--dm-text-secondary);
}

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.5625rem;
  border-radius: 5.989583rem;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: all 0.2s var(--dm-ease);
  white-space: nowrap;
}

.dm-btn-white {
  background: var(--dm-white);
  color: var(--dm-black);
}

.dm-btn-white:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dm-btn-black {
  background: var(--dm-black);
  color: var(--dm-white);
}

.dm-btn-black:hover {
  filter: brightness(1.2);
}

.dm-btn-outline {
  background: transparent;
  color: var(--dm-black);
  border: 1px solid var(--dm-black);
}

.dm-btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.03);
}

.dm-btn-outline-white {
  background: rgba(0, 0, 0, 0.2);
  color: var(--dm-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.dm-btn-outline-white:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* ---- header ---- */
.dm-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 87.5rem;
  height: var(--dm-header-h);
  background: var(--dm-white);
  z-index: 99;
  transition: background 0.3s var(--dm-ease);
}

.dm-header.dm-header-home {
  background: var(--dm-black);
  color: var(--dm-white);
}

.dm-header.dm-header-home.dm-header-scrolled {
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(0.5rem);
  backdrop-filter: blur(0.5rem);
}

.dm-header.dm-header-home.dm-header-flyout-open,
.dm-header.dm-header-home.dm-header-search-open {
  background: var(--dm-white);
  color: var(--dm-text);
}

.dm-header.dm-header-home.dm-header-flyout-open .dm-logo,
.dm-header.dm-header-home.dm-header-flyout-open .dm-header-actions,
.dm-header.dm-header-home.dm-header-search-open .dm-logo,
.dm-header.dm-header-home.dm-header-search-open .dm-header-actions {
  color: var(--dm-text);
}

.dm-header.dm-header-home.dm-header-flyout-open .dm-search-toggle:hover,
.dm-header.dm-header-home.dm-header-search-open .dm-search-toggle:hover {
  color: var(--dm-text);
}

.dm-header-inner {
  width: 87.5%;
  max-width: var(--dm-container);
  min-width: 65.625rem;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-header-left,
.dm-header-right {
  display: flex;
  align-items: center;
}

.dm-logo {
  height: 2.6rem;
  width: auto;
  margin-right: 2.5rem;
}

.dm-logo svg,
.dm-logo img {
  height: 100%;
  width: auto;
}

.dm-nav {
  display: flex;
  align-items: center;
  gap: 2.083333rem;
}

.dm-nav a {
  font-size: 0.729167rem;
  line-height: var(--dm-header-h);
  opacity: 0.9;
  text-decoration: none;
  outline: none;
}

.dm-nav a:hover,
.dm-nav a:focus {
  opacity: 1;
  color: var(--dm-gold);
  text-decoration: none;
  outline: none;
}

.dm-header.dm-header-home:hover .dm-nav a:hover,
.dm-header.dm-header-home:hover .dm-nav a:focus {
  color: inherit;
}

.dm-header-actions {
  display: flex;
  align-items: center;
  gap: 2.083333rem;
}

.dm-header-actions a {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.dm-lang-switch {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--dm-ease);
}

.dm-header-actions svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dm-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: color 0.2s var(--dm-ease);
}

.dm-search-toggle:hover {
  /*color: var(--dm-gold);*/
}

.dm-mobile-toggle {
  display: none;
}

.dm-mobile-nav {
  display: none;
}

.dm-mobile-submenu {
  display: none;
}

/* ---- flyout menu ---- */
.dm-flyout {
  position: fixed;
  top: var(--dm-header-h);
  left: 0;
  width: 100%;
  background: var(--dm-white);
  color: var(--dm-text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
  transition: none;
  z-index: 98;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08);
  padding: 2.5rem 0 3rem;
  box-sizing: border-box;
}

.dm-flyout.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dm-flyout-inner {
  width: 62.5%;
  max-width: var(--dm-container);
  margin: 0 auto;
}

.dm-flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dm-flyout-head h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dm-text);
}

.dm-flyout-head a {
  font-size: 0.8125rem;
  color: var(--dm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dm-flyout-head a:hover {
  /*color: var(--dm-gold);*/
}

.dm-flyout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dm-flyout-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--dm-radius);
  background: var(--dm-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  transition: none;
}

.dm-flyout-item:hover,
.dm-flyout-item:focus {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: none;
  text-decoration: none;
}

.dm-flyout-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--dm-radius);
  overflow: hidden;
}

.dm-flyout-thumb img,
.dm-flyout-thumb > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--dm-ease);
}

.dm-flyout-item:hover .dm-flyout-thumb img,
.dm-flyout-item:hover .dm-flyout-thumb > div {
  transform: scale(1.05);
}

.dm-flyout-item span {
  font-size: 0.9375rem;
  color: var(--dm-text);
  font-weight: 500;
}

.dm-flyout-item:hover span,
.dm-flyout-item:focus span {
  color: var(--dm-text);
}

/* ---- search modal ---- */
.dm-search-open {
  overflow: hidden;
}

.dm-search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--dm-ease), visibility 0.3s var(--dm-ease);
}

.dm-search-modal.active {
  opacity: 1;
  visibility: visible;
}

.dm-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(0.25rem);
  cursor: pointer;
}

.dm-search-panel {
  position: relative;
  width: 62.5%;
  max-width: 50rem;
  background: var(--dm-white);
  border-radius: var(--dm-radius);
  padding: 2rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transform: translateY(-1rem);
  transition: transform 0.3s var(--dm-ease);
  box-sizing: border-box;
}

.dm-search-modal.active .dm-search-panel {
  transform: translateY(0);
}

.dm-search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--dm-text-muted);
  cursor: pointer;
  transition: color 0.2s var(--dm-ease);
}

.dm-search-close:hover {
  color: var(--dm-text);
}

.dm-search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dm-search-box input {
  flex: 1;
  height: 3rem;
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius);
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--dm-text);
  background: var(--dm-white);
  outline: none;
  transition: border-color 0.2s var(--dm-ease);
}

.dm-search-box input:focus {
  border-color: var(--dm-text);
}

.dm-search-box button {
  height: 3rem;
  padding: 0 1.75rem;
  background: var(--dm-text);
  color: var(--dm-white);
  border: none;
  border-radius: var(--dm-radius);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s var(--dm-ease);
}

.dm-search-box button:hover {
  background: var(--dm-gold);
}

.dm-search-error {
  flex-basis: 100%;
  order: 3;
  display: block;
  color: #e74c3c;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 0.2s var(--dm-ease), transform 0.2s var(--dm-ease);
}

.dm-search-box.has-error .dm-search-error {
  opacity: 1;
  transform: translateY(0);
}

.dm-search-box.has-error input {
  border-color: #e74c3c;
}

.dm-search-hot {
  margin-top: 1.5rem;
}

.dm-search-hot h5 {
  font-size: 0.875rem;
  color: var(--dm-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.dm-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dm-search-tags a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--dm-bg);
  color: var(--dm-text);
  border-radius: 999px;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.2s var(--dm-ease), color 0.2s var(--dm-ease);
}

.dm-search-tags a:hover,
.dm-search-tags a:focus {
  background: var(--dm-text);
  color: var(--dm-white);
  text-decoration: none;
}

/* ---- hero ---- */
.dm-hero {
  position: relative;
  width: 100%;
  min-width: 87.5rem;
  height: 36.5625rem;
  background: #000;
  overflow: hidden;
}

.dm-hero.dm-hero-video {
  height: 100vh;
  min-height: 36.5625rem;
  min-width: auto;
}

.dm-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--dm-ease);
}

.dm-hero-slide.active {
  opacity: 1;
}

.dm-hero-slide img,
.dm-hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-hero-content {
  position: absolute;
  left: 7.29167%;
  bottom: 21.67%;
  color: var(--dm-white);
  z-index: 2;
  max-width: 40%;
}

.dm-hero-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.dm-hero-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.dm-hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

.dm-hero-arrows button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--dm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background 0.2s;
}

.dm-hero-arrows button:hover {
  background: rgba(0, 0, 0, 0.3);
}

.dm-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.dm-hero-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.dm-hero-dots span.active {
  background: var(--dm-gold);
}

/* ---- mid banner ---- */
.dm-mid-banner {
  position: relative;
  width: 100%;
  min-width: 71.09375rem;
  height: 31.25vw;
  min-height: 27.864583rem;
  margin: 0.416667rem 0;
  background: var(--dm-white);
  overflow: hidden;
}

.dm-mid-banner img,
.dm-mid-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-mid-banner-content {
  position: absolute;
  bottom: 21.67%;
  left: 7.29167%;
  color: var(--dm-white);
  z-index: 2;
}

.dm-mid-banner-content h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dm-mid-banner-content p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.dm-mid-banner-actions {
  display: flex;
  gap: 1.041667rem;
}

/* ---- quad banner ---- */
.dm-quad-banner {
  width: 100%;
  padding: 0 1.041667rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.041667rem;
  justify-content: space-between;
  box-sizing: border-box;
}

.dm-quad-item {
  position: relative;
  width: calc(50% - 0.52083rem);
  height: calc(50vw - 0.52083rem);
  min-height: 43.22917rem;
  background: var(--dm-white);
  overflow: hidden;
  border-radius: var(--dm-radius);
}

.dm-quad-item img,
.dm-quad-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--dm-ease);
}

.dm-quad-item:hover img,
.dm-quad-item:hover video {
  transform: scale(1.03);
}

.dm-quad-content {
  position: absolute;
  top: 31.263%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--dm-white);
  z-index: 2;
}

.dm-quad-content h4 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dm-quad-content p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

/* ---- product station ---- */
.dm-product-station {
  width: var(--dm-container);
  margin: 0 auto;
  padding: 6.25rem 0 2.083333rem;
}

.dm-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.dm-tab-list {
  display: inline-flex;
  background: var(--dm-tab-bg);
  border-radius: 5.989583rem;
  padding: 0.208333rem;
}

.dm-tab-list button {
  height: 2.291667rem;
  padding: 0 1.5625rem;
  border-radius: 5.989583rem;
  font-size: 0.875rem;
  color: var(--dm-text-muted);
  background: transparent;
  transition: color 0.2s var(--dm-ease);
}

.dm-tab-list button.active {
  color: var(--dm-text);
}

.dm-product-station .dm-section-title {
  margin-bottom: 1.25rem;
}

.dm-product-tabs {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.dm-product-tabs .dm-tab-list {
  background: #f5f5f5;
  border-radius: 5.989583rem;
  padding: 0.3125rem;
  gap: 0.3125rem;
}
.dm-product-tabs .dm-tab-list button {
  height: 2.708333rem;
  padding: 0 2rem;
  border-radius: 5.989583rem;
  font-size: 0.9375rem;
  color: #666;
  background: transparent;
  transition: all 0.25s var(--dm-ease);
}
.dm-product-tabs .dm-tab-list button:hover {
  color: #111;
}
.dm-product-tabs .dm-tab-list button.active {
  color: #fff;
  background: #111;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}

.dm-tab-panel {
  display: none;
}

.dm-tab-panel.active {
  display: block;
  animation: dmFadeIn 0.4s var(--dm-ease);
}

@keyframes dmFadeIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.dm-featured {
  position: relative;
  height: 35.416667rem;
  border-radius: var(--dm-radius);
  overflow: hidden;
  margin-bottom: 0.833333rem;
}

.dm-featured img,
.dm-featured video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-featured-content {
  position: absolute;
  bottom: 12.447917rem;
  left: 3.333333rem;
  color: var(--dm-white);
  z-index: 2;
}

.dm-featured-content h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dm-featured-content p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.dm-product-featured-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.dm-product-featured-slide.active {
  opacity: 1;
}

.dm-product-grid {
  display: flex;
  justify-content: flex-start;
  gap: 0.833333rem;
}

.dm-product-card {
  flex: 0 0 16.770833rem;
  width: 16.770833rem;
  height: 24.0625rem;
  background: var(--dm-white);
  border-radius: var(--dm-radius);
  position: relative;
  overflow: hidden;
  transition: filter 0.2s;
}

.dm-product-card:hover {
  filter: brightness(1.03);
}

.dm-product-card img {
  width: 13.333333rem;
  height: 13.333333rem;
  object-fit: contain;
  margin: 2rem auto 0;
}

.dm-product-card-info {
  position: absolute;
  bottom: 1.458333rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
}

.dm-product-card-info h4 {
  font-size: 1.041667rem;
  font-weight: 500;
  color: var(--dm-text);
  margin-bottom: 0.25rem;
}

.dm-product-card-info p {
  font-size: 0.833333rem;
  color: var(--dm-text-secondary);
}

/* ---- video carousel ---- */
.dm-video-carousel {
  position: relative;
  width: var(--dm-container);
  margin: 0 auto;
  padding: 1.041667rem 0 0.9375rem;
}

.dm-video-swiper {
  overflow: hidden;
  height: 30rem;
}

.dm-video-swiper .swiper-wrapper {
  align-items: stretch;
  height: 100%;
}

.dm-video-slide {
  width: 50rem;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--dm-radius);
  overflow: hidden;
}

.dm-video-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-video-play {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 5.989583rem;
  background: var(--dm-black);
  color: var(--dm-white);
  border: 1px solid var(--dm-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.dm-video-play svg {
  flex-shrink: 0;
}

.dm-video-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
  z-index: 3;
}

.dm-video-arrows button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: var(--dm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* ---- video lightbox modal ---- */
.dm-video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--dm-ease), visibility 0.3s var(--dm-ease);
}

.dm-video-modal.active {
  opacity: 1;
  visibility: visible;
}

.dm-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(0.25rem);
  cursor: pointer;
}

.dm-video-modal-content {
  position: relative;
  width: 80%;
  max-width: 75rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--dm-radius);
  overflow: hidden;
  z-index: 1;
  transform: scale(0.96);
  transition: transform 0.3s var(--dm-ease);
}

.dm-video-modal.active .dm-video-modal-content {
  transform: scale(1);
}

.dm-video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dm-video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--dm-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 2;
}

.dm-video-modal-close:hover {
  opacity: 0.7;
}

body.dm-video-modal-open {
  overflow: hidden;
}

/* ---- brand story ---- */
.dm-brand-story {
  width: var(--dm-container);
  margin: 0 auto;
  padding: 4.166667rem 0 0;
}

.dm-brand-grid {
  display: flex;
  justify-content: center;
  gap: 1.041667rem;
  margin-top: 2.5rem;
}

.dm-brand-item {
  position: relative;
  width: 20.208333rem;
  height: 26.71875rem;
  border-radius: var(--dm-radius);
  overflow: hidden;
}

.dm-brand-item img,
.dm-brand-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--dm-ease);
}

.dm-brand-item:hover img,
.dm-brand-item:hover video {
  transform: scale(1.03);
}

.dm-brand-item-content {
  position: absolute;
  top: 7.447917rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--dm-white);
  z-index: 2;
}

.dm-brand-item-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.dm-brand-item-content a {
  font-size: 0.729167rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.125rem;
}

.dm-brand-item-content a:hover {
  color: var(--dm-gold);
}

/* ---- membership ---- */
.dm-membership {
  padding: 3.333333rem 0 4.6875rem;
}

.dm-membership .dm-section-title {
  margin-bottom: 2.5rem;
}

.dm-membership-carousel {
  position: relative;
  width: var(--dm-container);
  margin: 0 auto;
  overflow: hidden;
}

.dm-membership-track {
  display: flex;
  gap: 1.041667rem;
  transition: transform 0.5s var(--dm-ease);
}

.dm-membership-card {
  flex: 0 0 21.09375rem;
  width: 21.09375rem;
  height: 30.736607rem;
  background: var(--dm-white);
  border-radius: var(--dm-radius);
  position: relative;
  overflow: hidden;
}

.dm-membership-card-text {
  position: absolute;
  top: 1.5625rem;
  left: 1.5625rem;
  z-index: 2;
}

.dm-membership-card-text h4 {
  font-size: 1.458333rem;
  font-weight: 600;
  color: var(--dm-text);
  margin-bottom: 0.375rem;
}

.dm-membership-card-text p {
  font-size: 0.833333rem;
  color: var(--dm-text-body);
}

.dm-membership-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--dm-white);
}

.dm-membership-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

.dm-membership-arrows button {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: var(--dm-text);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background 0.2s;
}

.dm-membership-arrows button:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ---- footer ---- */
.dm-footer {
  width: 100%;
  min-width: 87.5rem;
  background: var(--dm-white);
  color: var(--dm-text);
}

.dm-footer-inner {
  width: 62.5%;
  max-width: var(--dm-container);
  margin: 0 auto;
  padding: 7.8125rem 0 3.75rem;
}

.dm-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dm-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dm-text);
  margin-bottom: 1rem;
}

.dm-footer-col a {
  display: block;
  font-size: 0.75rem;
  color: var(--dm-text-muted);
  margin-bottom: 0.625rem;
}

.dm-footer-col a:hover {
  color: var(--dm-gold-hover);
}

.dm-footer-divider {
  border: none;
  border-top: 0.052083rem solid var(--dm-text);
  opacity: 0.1;
  margin: 1.302083rem 0;
}

.dm-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  color: var(--dm-text-muted);
  text-align: center;
}

.dm-footer-logo {
  text-align: center;
  margin-top: 5.3125rem;
}

.dm-footer-logo img,
.dm-footer-logo svg {
  height: 1.5rem;
  width: auto;
  margin: 0 auto;
}

.dm-service-hotline {
  font-size: 0.875rem;
  color: var(--dm-text-muted);
  margin-top: 0.5rem;
}

/* ---- service float ---- */
.dm-service-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
}

.dm-service-float a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dm-white);
  color: var(--dm-text);
  padding: 10px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.dm-service-float a svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.dm-service-float a:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ---- hide old bootstrap noise on new pages ---- */
.dm-page .top_menu,
.dm-page .open_content,
.dm-page .footer_nav,
.dm-page footer .copyright {
  display: none;
}

/* ---- scroll helpers ---- */
.dm-product-grid,
.dm-brand-grid,
.dm-membership-track,
.dm-tab-list {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dm-product-grid::-webkit-scrollbar,
.dm-brand-grid::-webkit-scrollbar,
.dm-membership-track::-webkit-scrollbar,
.dm-tab-list::-webkit-scrollbar {
  display: none;
}

body.dm-menu-open {
  overflow: hidden;
}

/* ---- responsive ---- */
@media (max-width: 87.499rem) {
  .dm-header,
  .dm-hero,
  .dm-mid-banner,
  .dm-footer,
  .dm-category-wrap {
    min-width: auto;
  }
  .dm-container,
  .dm-header-inner,
  .dm-product-station,
  .dm-brand-story,
  .dm-membership-carousel,
  .dm-footer-inner,
  .dm-category-container {
    width: 94%;
    min-width: auto;
  }
  .dm-quad-item {
    min-height: 28rem;
  }
  .dm-product-grid {
    flex-wrap: wrap;
  }
  .dm-product-card {
    flex: 0 0 calc(25% - 0.625rem);
    width: auto;
    height: 22rem;
  }
  .dm-video-slide {
    flex: 0 0 42rem;
    width: 42rem;
    height: 100%;
  }
  .dm-video-arrows {
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .dm-brand-grid {
    flex-wrap: wrap;
  }
  .dm-brand-item {
    flex: 0 0 calc(50% - 0.5rem);
    width: auto;
    height: 20rem;
  }
  .dm-membership-arrows {
    left: 0;
    right: 0;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .dm-footer-inner {
    padding: 4rem 0 2.5rem;
  }
  .dm-footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .dm-footer-col {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
  .dm-hero-arrows {
    padding: 0 1rem;
  }
  .dm-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 1.25rem;
    max-width: 55%;
  }
  .dm-flyout-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .dm-flyout-inner {
    width: 80%;
  }
}

@media (max-width: 64rem) {
  .dm-header {
    height: 3.125rem;
  }
  .dm-nav,
  .dm-flyout {
    display: none;
  }
  .dm-mobile-toggle {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    background: none;
    border: none;
    color: inherit;
  }
  .dm-mobile-nav {
    display: none;
    position: fixed;
    top: 3.125rem;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 3.125rem);
    overflow-y: auto;
    background: var(--dm-white);
    color: var(--dm-text);
    padding: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.08);
    z-index: 98;
    box-sizing: border-box;
  }
  .dm-mobile-nav.active {
    display: block;
  }
  .dm-mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--dm-border);
    font-size: 0.9375rem;
  }
  .dm-mobile-submenu {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--dm-white);
    color: var(--dm-text);
    z-index: 1001;
    padding: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--dm-ease);
    overflow-y: auto;
    box-sizing: border-box;
  }
  .dm-mobile-submenu.active {
    transform: translateX(0);
  }
  .dm-mobile-submenu-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--dm-text-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .dm-mobile-submenu-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
  }
  .dm-mobile-submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .dm-mobile-submenu-grid .dm-flyout-item {
    padding: 0.75rem;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
  }
  .dm-mobile-submenu-grid .dm-flyout-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.5rem;
  }
  .dm-mobile-submenu-grid .dm-flyout-item span {
    font-size: 0.8125rem;
  }
  .dm-header-actions {
    gap: 1rem;
  }
}

@media (max-width: 48rem) {
  html {
    font-size: 14px;
  }
  .dm-header {
    height: 3.125rem;
  }
  .dm-header-inner {
    width: 94%;
  }
  .dm-search-modal {
    padding-top: 5vh;
  }
  .dm-search-panel {
    width: 94%;
    padding: 1.25rem;
  }
  .dm-search-box {
    flex-direction: column;
    margin-top: 1rem;
  }
  .dm-search-box input,
  .dm-search-box button {
    width: 100%;
  }
  .dm-hero {
    height: 100vw;
    min-height: auto;
    max-height: 50rem;
  }
  .dm-hero.dm-hero-video {
    height: 100vh;
    max-height: none;
  }
  .dm-hero-content {
    left: 5%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    max-width: 90%;
  }
  .dm-hero-content h2 {
    font-size: 1.75rem;
  }
  .dm-mid-banner {
    height: 60vw;
    min-height: auto;
  }
  .dm-mid-banner-content {
    left: 5%;
    bottom: 15%;
  }
  .dm-quad-banner {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }
  .dm-quad-item {
    width: 100%;
    height: 60vw;
    min-height: auto;
  }
  .dm-product-station {
    padding: 3rem 0 2rem;
  }
  .dm-tab-list {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 5.989583rem;
  }
  .dm-tab-list button {
    white-space: nowrap;
  }
  .dm-product-tabs .dm-tab-list button {
    height: 2.25rem;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
  }
  .dm-featured {
    height: 60vw;
  }
  .dm-featured-content {
    left: 5%;
    bottom: 15%;
  }
  .dm-product-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }
  .dm-product-card {
    flex: 0 0 9.21875rem;
    width: 9.21875rem;
    height: 14rem;
  }
  .dm-product-card img {
    width: 7rem;
    height: 7rem;
    margin-top: 1rem;
  }
  .dm-video-swiper {
    height: 18rem;
  }
  .dm-video-slide {
    flex: 0 0 90vw;
    width: 90vw;
    height: 100%;
  }
  .dm-video-slide-content {
    flex-direction: column;
    gap: 0.5rem;
    right: 5%;
    bottom: 5%;
  }
  .dm-brand-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .dm-brand-item {
    flex: 0 0 15rem;
    width: 15rem;
    height: 20rem;
  }
  .dm-membership-carousel {
    width: 94%;
    overflow: visible;
  }
  .dm-membership-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
  }
  .dm-membership-card {
    flex: 0 0 15.625rem;
    width: 15.625rem;
    height: 22.75rem;
  }
  .dm-membership-arrows,
  .dm-video-arrows,
  .dm-hero-arrows {
    display: none;
  }
  .dm-footer-inner {
    padding: 3rem 0 2rem;
  }
  .dm-footer-col {
    flex: 0 0 calc(50% - 1rem);
  }
  .dm-footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .dm-section-title h2 {
    font-size: 1.5rem;
  }
  .dm-section-title p {
    font-size: 0.8125rem;
  }
  .dm-service-float {
    bottom: 16px;
    right: 16px;
  }
  .dm-service-float a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .dm-product-grid,
  .dm-brand-grid,
  .dm-membership-track {
    cursor: grab;
  }
  .dm-product-grid:active,
  .dm-brand-grid:active,
  .dm-membership-track:active {
    cursor: grabbing;
  }
}

/* ---- category list ---- */
.dm-category-wrap {
  width: 100%;
  background: var(--dm-bg);
  padding: 2.5rem 0 4rem;
}

.dm-category-container {
  width: 87.5%;
  max-width: 85.3125rem;
  margin: 0 auto;
}

.dm-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dm-category-title {
  font-size: 1.421875rem;
  font-weight: 600;
  color: #333;
  line-height: 1.45;
}

.dm-category-count {
  font-size: 0.975rem;
  color: #333;
}

.dm-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.125rem;
}

.dm-category-card,
a.dm-category-card:hover,
a.dm-category-card:focus {
  display: block;
  background: var(--dm-white);
  border-radius: 0.40625rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--dm-ease), box-shadow 0.3s var(--dm-ease);
}

.dm-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.dm-category-card:hover .dm-category-card-body h3 {
  text-decoration: none;
}

.dm-category-card-media {
  position: relative;
  width: 100%;
  /*height: 18.75rem;*/
  overflow: hidden;
  background: #f7f7f8;
}

.dm-category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--dm-ease);
}

.dm-category-card:hover .dm-category-card-media img {
  transform: scale(1.05);
}

.dm-category-card-body {
  padding: 1rem 1.625rem 1.625rem;
}

.dm-category-card-body h3 {
  font-size: 0.975rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-category-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.dm-category-pagination a,
.dm-category-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin: 0 0.25rem;
  padding: 0 0.625rem;
  border: 1px solid #e3e4e8;
  border-radius: 0.40625rem;
  background: var(--dm-white);
  color: var(--dm-text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s var(--dm-ease);
}

.dm-category-pagination a:hover {
  background: #f5f5f5;
}

.dm-category-pagination .current {
  background: var(--dm-text);
  color: var(--dm-white);
  border-color: var(--dm-text);
}

.dm-category-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--dm-text-muted);
  font-size: 1rem;
  background: var(--dm-white);
  border-radius: 0.5rem;
}

@media (max-width: 75rem) {
  .dm-category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 62rem) {
  .dm-category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 48rem) {
  .dm-category-wrap { min-width: auto; padding: 1.5rem 0 2.5rem; }
  .dm-category-container { width: 94%; min-width: auto; }
  .dm-category-header { flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
  .dm-category-title { font-size: 1.25rem; }
  .dm-category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .dm-category-card-media { height: 14rem; }
  .dm-category-card-body { padding: 0.75rem 1rem 1rem; }
  .dm-category-card-body h3 { font-size: 0.875rem; }
  .dm-category-pagination { margin-top: 2rem; }
}

/* ---- product detail ---- */
.dm-product-detail-wrap {
  padding-top: 2rem;
}

.dm-product-category {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.dm-product-detail-main {
  display: grid;
  grid-template-columns: 25rem 1fr;
  gap: 3rem;
  background: var(--dm-white);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.dm-product-gallery {
  width: 25rem;
  min-width: 0;
}

.dm-product-main-image {
  position: relative;
  width: 100%;
  height: 25rem;
  background: #f7f7f8;
  border-radius: var(--dm-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-product-main-image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.dm-product-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

#pic-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

#pic-page a {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #e3e4e8;
  border-radius: 0.25rem;
  overflow: hidden;
  transition: border-color 0.2s var(--dm-ease);
}

#pic-page a.active,
#pic-page a:hover {
  border-color: var(--dm-text);
}

#pic-page a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dm-product-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.dm-product-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--dm-text-body);
  line-height: 1.8;
}

.dm-product-meta li {
  margin-bottom: 0.5rem;
}

.dm-product-meta li:empty {
  display: none;
}

.dm-product-meta form {
  margin-top: 1.5rem;
}

.dm-product-content {
  background: var(--dm-white);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  color: var(--dm-text-body);
  line-height: 1.8;
}

.dm-product-content img {
  max-width: 100%;
  height: auto;
}

.dm-product-point {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--dm-text-muted);
}

.dm-product-point a {
  color: var(--dm-text);
}

.dm-product-related {
  margin-bottom: 2rem;
}

.dm-product-related > h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

@media (max-width: 62rem) {
  .dm-product-detail-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .dm-product-gallery {
    width: 100%;
  }

  .dm-product-title {
    font-size: 1.5rem;
  }

  .dm-product-content,
  .dm-product-detail-main {
    padding: 1.5rem;
  }
}
