/* =========================================================
   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.4rem;
  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: opacity 0.35s var(--dm-ease), transform 0.35s var(--dm-ease), visibility 0.35s;
  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: box-shadow 0.25s var(--dm-ease), transform 0.25s var(--dm-ease);
}

.dm-flyout-item:hover,
.dm-flyout-item:focus {
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  transform: translateY(-3px);
  text-decoration: none;
}

.dm-flyout-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--dm-radius);
  overflow: hidden;
  background: var(--dm-tab-bg);
}

.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;
  transition: background 0.2s var(--dm-ease), color 0.2s var(--dm-ease);
}

.dm-search-tags a:hover {
  background: var(--dm-text);
  color: var(--dm-white);
}

/* ---- hero ---- */
.dm-hero {
  position: relative;
  width: 100%;
  min-width: auto;
  height: 100vh;
  min-height: 36.5625rem;
  background: #000;
  overflow: hidden;
}

.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: 96px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.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;
}

/* ---- featured products ---- */
.dm-featured-products {
  width: 100%;
  background: #f7f7f8;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.dm-featured-header,
.dm-featured-tabs,
.dm-featured-panel {
  width: var(--dm-container);
  margin: 0 auto;
}
.dm-featured-header {
  margin-bottom: 1.5rem;
}
.dm-featured-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dm-featured-tabs {
  margin-bottom: 2rem;
}
.dm-featured-tabs .dm-tab-list {
  display: inline-flex;
  background: transparent;
  border-radius: 0;
  padding: 0;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.dm-featured-tabs .dm-tab-list button {
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 5.989583rem;
  font-size: 0.9375rem;
  color: #333;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s var(--dm-ease);
  white-space: nowrap;
}
.dm-featured-tabs .dm-tab-list button:hover {
  border-color: rgba(0,0,0,0.15);
}
.dm-featured-tabs .dm-tab-list button.active {
  color: #fff;
  background: #a67c52;
  border-color: #a67c52;
  box-shadow: none;
}
.dm-featured-panel {
  position: relative;
  display: none;
}
.dm-featured-panel.active {
  display: block;
}
.dm-featured-swiper {
  overflow: visible;
}
.dm-featured-swiper .swiper-slide {
  width: auto;
  height: auto;
}
.dm-featured-card,
.dm-featured-card:hover,
.dm-featured-card:focus,
.dm-featured-card h4,
.dm-featured-card:hover h4 {
  text-decoration: none;
}
.dm-featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
  min-width: 17rem;
}
.dm-featured-media {
  position: relative;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex: 1;
  min-height: 15rem;
}
.dm-featured-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 15rem;
  object-fit: contain;
  transition: transform 0.4s var(--dm-ease);
}
.dm-featured-card:hover .dm-featured-media img {
  transform: scale(1.05);
}
.dm-featured-card-body {
  padding: 0.5rem 1.5rem 1.75rem;
}
.dm-featured-tag {
  display: none;
}
.dm-featured-card-body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}
.dm-featured-spec {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.4;
  margin-bottom: 1rem;
  min-height: 1.25rem;
}
.dm-featured-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.dm-featured-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dm-featured-sale {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}
.dm-featured-orig {
  font-size: 0.875rem;
  color: #999;
  text-decoration: line-through;
}
.dm-featured-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 2.25rem;
  padding: 0 1.25rem;
  border-radius: 5.989583rem;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
  flex-shrink: 0;
}
.dm-featured-card:hover .dm-featured-btn {
  background: #333;
}
.dm-featured-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}
.dm-featured-prev,
.dm-featured-next {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s;
}
.dm-featured-prev:hover,
.dm-featured-next:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}
.dm-featured-prev {
  margin-left: -1.5rem;
}
.dm-featured-next {
  margin-right: -1.5rem;
}

/* ---- home category grid (ref: pudurobotics.com/en) ---- */
.dm-cat-grid-section {
  width: 100%;
  background: var(--dm-bg);
  padding: 0.625rem 1.041667rem;
  box-sizing: border-box;
}

.dm-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 64rem) {
  .dm-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dm-cat-grid-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  background: var(--dm-tab-bg);
}

.dm-cat-grid-card:hover,
.dm-cat-grid-card:focus {
  text-decoration: none;
}

.dm-cat-grid-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dm-cat-grid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
}

.dm-cat-grid-card:hover .dm-cat-grid-media img,
.dm-cat-grid-card:focus .dm-cat-grid-media img {
  transform: scale(1.1);
}

.dm-cat-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.dm-cat-grid-content {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  gap: 0.5rem;
  pointer-events: none;
  box-sizing: border-box;
}

.dm-cat-grid-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 90%;
  margin: 0;
}

.dm-cat-grid-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #fff;
  pointer-events: auto;
}

.dm-cat-grid-link svg {
  flex-shrink: 0;
}

/* ---- welcome to company (ref: ecovacscommercial.com) ---- */
.dm-welcome-section {
  width: 100%;
  background: #fff;
  padding: 5rem 1.041667rem 5rem;
  box-sizing: border-box;
}

.dm-welcome-container {
  width: var(--dm-container);
  max-width: var(--dm-container);
  margin: 0 auto;
}

.dm-welcome-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.dm-welcome-pic {
  flex: 0 0 50%;
  position: relative;
}

.dm-welcome-pic img {
  width: 100%;
  height: auto;
  border-radius: var(--dm-radius);
  display: block;
}

.dm-welcome-txt {
  flex: 1;
}

.dm-welcome-txt em {
  display: block;
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.125rem;
  color: #000;
  margin-bottom: 1rem;
}

.dm-welcome-txt h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.dm-welcome-body {
  font-size: 1rem;
  color: #414141;
  line-height: 1.625;
  margin-bottom: 2rem;
}

.dm-welcome-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.8125rem;
  padding: 0 1.5rem;
  border: 1px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dm-welcome-more:hover,
.dm-welcome-more:focus {
  background: var(--dm-black);
  border-color: var(--dm-black);
  color: #fff;
  text-decoration: none;
}

.dm-welcome-stats {
  width: 100%;
  background: #f7f7f8;
  margin-top: 4rem;
  padding: 2.5rem 1.041667rem;
  box-sizing: border-box;
}

.dm-welcome-stats-inner {
  width: var(--dm-container);
  max-width: var(--dm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.dm-welcome-stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dm-welcome-stat span {
  font-size: 0.9375rem;
  color: #666;
}

/* ---- company video (ref: ecovacscommercial.com) ---- */
.dm-company-video {
  width: 100%;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
}

.dm-company-video-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.dm-company-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #000;
}

.dm-company-video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dm-company-video-trigger:hover img,
.dm-company-video-trigger:focus img {
  transform: scale(1.03);
}

.dm-company-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6.875rem;
  height: 6.875rem;
  border-radius: 50%;
  background: #a67c52;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0.5rem 1.5rem rgba(30, 83, 151, 0.35);
}

.dm-company-video-play svg {
  margin-left: 0.25rem;
}

.dm-company-video-play::before,
.dm-company-video-play::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: dmPlayPulse 2s linear infinite;
  z-index: -1;
}

.dm-company-video-play::after {
  animation-delay: 1s;
}

@keyframes dmPlayPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---- latest news (ref: ecovacscommercial.com) ---- */
.dm-latest-news {
  width: 100%;
  background: #fbfbfb;
  padding: 5rem 1.041667rem;
  box-sizing: border-box;
}

.dm-latest-news-container {
  width: var(--dm-container);
  max-width: var(--dm-container);
  margin: 0 auto;
}

.dm-latest-news-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.dm-latest-news-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dm-latest-news-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
  margin: 0;
}

.dm-latest-news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid #bebebe;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.dm-latest-news-more:hover,
.dm-latest-news-more:focus {
  background: #1E5397;
  border-color: #1E5397;
  color: #fff;
  text-decoration: none;
}

.dm-latest-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.dm-latest-news-card {
  background: #fff;
  overflow: hidden;
  border-radius: var(--dm-radius);
  transition: all 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.dm-latest-news-card:hover {
  transform: scale3d(1.01, 1.01, 1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dm-latest-news-card a {
  display: block;
  color: inherit;
}

.dm-latest-news-card a:hover,
.dm-latest-news-card a:focus {
  text-decoration: none;
}

.dm-latest-news-media {
  width: 100%;
  aspect-ratio: 680 / 372;
  overflow: hidden;
}

.dm-latest-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dm-latest-news-card:hover .dm-latest-news-media img {
  transform: scale(1.03);
}

.dm-latest-news-body {
  padding: 1rem 1.25rem 1.25rem;
}

.dm-latest-news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.dm-latest-news-body p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dm-latest-news-body em {
  display: inline-block;
  font-size: 0.75rem;
  color: #999;
  font-style: normal;
}

/* ---- article detail ---- */
.dm-article-wrap {
  width: 100%;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

.dm-article-container {
  width: var(--dm-container);
  max-width: var(--dm-container);
  margin: 0 auto;
}

.dm-article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}

.dm-article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.dm-article-meta {
  display: inline-block;
  font-size: 0.875rem;
  color: #999;
}

.dm-article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.dm-article-content p {
  margin-bottom: 1rem;
}

.dm-article-content img {
  max-width: 100%;
  height: auto;
}

.dm-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  font-size: 0.9375rem;
  color: #666;
}

.dm-article-nav a {
  color: #1E5397;
  text-decoration: none;
}

.dm-article-nav a:hover {
  text-decoration: underline;
}

.dm-article-related {
  margin-top: 3rem;
}

.dm-article-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem;
}

.dm-article-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dm-article-related-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.dm-article-related-list li a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.dm-article-related-list li a:hover {
  color: #1E5397;
}

.dm-article-related-list li span {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #999;
}

/* ---- news list ---- */
.dm-news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.dm-news-tabs a {
  display: inline-block;
  padding: 0.75rem 0.25rem;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dm-news-tabs a:hover,
.dm-news-tabs a.active {
  color: #1E5397;
  border-bottom-color: #1E5397;
}

.dm-list-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000;
}

.dm-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dm-news-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dm-news-card:hover {
  text-decoration: none;
}

.dm-news-thumb {
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.dm-news-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.dm-news-card:hover .dm-news-thumb img {
  transform: scale(1.05);
}

.dm-news-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.dm-news-info span {
  font-size: 0.875rem;
  color: #999;
}

.dm-news-page {
  margin-top: 2.5rem;
}

.dm-news-page .page {
  text-align: center;
}

.dm-news-page .page a,
.dm-news-page .page span {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  margin: 0 0.25rem;
  border: 1px solid #e5e5e5;
  color: #333;
  text-decoration: none;
  border-radius: 0.25rem;
}

.dm-news-page .page a:hover {
  background: #1E5397;
  color: #fff;
  border-color: #1E5397;
}

.dm-news-page .page .current {
  background: #1E5397;
  color: #fff;
  border-color: #1E5397;
}

@media (max-width: 62rem) {
  .dm-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .dm-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 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;
  }
  .dm-welcome-section {
    padding: 3rem 1rem 0;
  }
  .dm-welcome-inner {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }
  .dm-welcome-pic {
    flex: 0 0 auto;
    width: 100%;
  }
  .dm-welcome-txt h2 {
    font-size: 2rem;
  }
  .dm-welcome-stats {
    margin-top: 3rem;
    padding: 2rem 1rem;
  }
  .dm-welcome-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .dm-welcome-stat strong {
    font-size: 2rem;
  }
  .dm-company-video-play {
    width: 5rem;
    height: 5rem;
  }
  .dm-latest-news {
    padding: 3rem 1rem;
  }
  .dm-latest-news-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .dm-latest-news-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 48rem) {
  html {
    font-size: 14px;
  }
  body {
    overflow-x: hidden;
  }
  .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: auto;
    aspect-ratio: 16 / 9;
    min-height: 40vh;
    max-height: 70vh;
  }
  .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-featured-products {
    padding: 3rem 0 2.5rem;
  }
  .dm-featured-header,
  .dm-featured-tabs,
  .dm-featured-panel {
    width: 94%;
  }
  .dm-featured-header h2 {
    font-size: 1.75rem;
  }
  .dm-featured-tabs .dm-tab-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dm-featured-tabs .dm-tab-list::-webkit-scrollbar {
    display: none;
  }
  .dm-featured-tabs .dm-tab-list button {
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.8125rem;
  }
  .dm-featured-media {
    min-height: 10rem;
    padding: 1.25rem 1rem 0.75rem;
  }
  .dm-featured-media img {
    max-height: 10rem;
  }
  .dm-featured-card {
    min-width: 14rem;
  }
  .dm-featured-card-body {
    padding: 0.5rem 1rem 1.25rem;
  }
  .dm-featured-card-body h4 {
    font-size: 1rem;
  }
  .dm-featured-sale {
    font-size: 1rem;
  }
  .dm-featured-btn {
    height: 2rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
  }
  .dm-featured-prev,
  .dm-featured-next {
    display: none;
  }
  .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: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }
  .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;
  }
  .dm-cat-grid-section {
    padding: 0.5rem;
  }
  .dm-cat-grid {
    gap: 0.5rem;
  }
  .dm-cat-grid-card {
    aspect-ratio: 16 / 10;
  }
  .dm-cat-grid-content {
    top: auto;
    bottom: 1.25rem;
    transform: none;
    padding: 0 0.75rem;
    gap: 0.375rem;
  }
  .dm-cat-grid-content h3 {
    font-size: 1.125rem;
  }
  .dm-cat-grid-link {
    font-size: 0.8125rem;
  }
  .dm-welcome-section {
    padding: 2rem 0.75rem 0;
  }
  .dm-welcome-container,
  .dm-welcome-stats-inner {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
  .dm-welcome-pic img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .dm-welcome-txt h2 {
    font-size: 1.75rem;
  }
  .dm-welcome-txt em {
    font-size: 1rem;
  }
  .dm-welcome-body {
    font-size: 0.9375rem;
  }
  .dm-welcome-stats {
    margin-top: 2rem;
    padding: 1.5rem 0.75rem;
  }
  .dm-welcome-stats-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .dm-welcome-stat strong {
    font-size: 1.75rem;
  }
  .dm-company-video-trigger {
    aspect-ratio: 16 / 9;
  }
  .dm-company-video-play {
    width: 3.75rem;
    height: 3.75rem;
  }
  .dm-company-video-play svg {
    width: 1.25rem;
    height: 1.5rem;
  }
  .dm-latest-news {
    padding: 2rem 0.75rem;
  }
  .dm-latest-news-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .dm-latest-news-title h2 {
    font-size: 1.75rem;
  }
  .dm-latest-news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ---- 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);
}

@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;
  }
}
