/* Dr.Melaxin 1:1 High-Fidelity Design System */
:root {
  --dmx-font: 'Outfit', 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --dmx-ink: #232323;
  --dmx-muted: #6e6e6e;
  --dmx-border: #e6e6e6;
  --dmx-bg: #ffffff;
  --dmx-soft: #f7f7f7;
  --dmx-blue: #0f5298;
  --dmx-burgundy: #750B1B;
  --dmx-burgundy-dark: #540611;
  --dmx-gold: #e8c68a;
  --dmx-btn: #1a1a1a;
  --dmx-max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--dmx-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--dmx-ink);
  background: var(--dmx-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

/* Remove browser native number input spin arrows globally */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.dmx-container { max-width: var(--dmx-max); margin: 0 auto; padding: 0 28px; width: 100%; }
@media (max-width: 768px) { .dmx-container { padding: 0 16px; } }

/* Top Announcement Bar */
.dmx-announcement {
  background: linear-gradient(90deg, #3c050d 0%, #750B1B 50%, #3c050d 100%);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
}
.dmx-announcement__text { color: #f6dcb2; white-space: nowrap; }
.dmx-countdown { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dmx-cd-unit { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.dmx-cd-val { font-size: 14px; font-weight: 700; color: #fff; }
.dmx-cd-lbl { font-size: 8px; opacity: 0.85; letter-spacing: 0.04em; margin-top: 2px; }
.dmx-cd-sep { opacity: 0.7; font-size: 12px; }
@media (max-width: 640px) {
  .dmx-announcement { gap: 8px; font-size: 11px; padding: 8px 10px; }
  .dmx-cd-val { font-size: 12px; }
}

/* Sticky Header & Mega Menu */
.dmx-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}
.dmx-header__inner {
  max-width: var(--dmx-max);
  margin: 0 auto;
  padding: 0 28px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dmx-logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.dmx-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dmx-nav > li { position: relative; flex-shrink: 0; }
.dmx-nav > li > a {
  display: inline-flex;
  align-items: center;
  height: 74px;
  font-size: 13px;
  font-weight: 500;
  color: #232323;
  white-space: nowrap;
  transition: color 0.15s;
}
.dmx-nav > li > a:hover, .dmx-nav > li > a.is-active { color: var(--dmx-burgundy); }
.dmx-nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.dmx-icon-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dmx-cart-badge {
  position: absolute;
  top: 0;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.dmx-mobile-menu-btn { display: none; }

/* Mega Menu Dropdown */
.dmx-mega {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 118px;
  background: #ffffff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #e2e2e2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 0 34px;
  z-index: 890;
}
.dmx-nav > li.has-mega:hover .dmx-mega,
.dmx-nav > li.has-mega:focus-within .dmx-mega { display: block; }
.dmx-mega__grid {
  max-width: var(--dmx-max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 180px 210px 210px 1fr;
  gap: 28px;
}
.dmx-mega__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.dmx-mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dmx-mega__col--2col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.dmx-mega__col a { font-size: 13px; color: #444; white-space: nowrap; }
.dmx-mega__col a:hover { color: #111; text-decoration: underline; }

@media (max-width: 1180px) {
  .dmx-nav { gap: 13px; }
  .dmx-nav > li > a { font-size: 12px; }
}
@media (max-width: 991px) {
  .dmx-header__inner { height: 60px; padding: 0 14px; }
  .dmx-nav { display: none; }
  .dmx-mobile-menu-btn { display: inline-flex; }
  .dmx-logo { font-size: 20px; }
}

/* Search Bar Overlay */
.dmx-search-bar {
  display: none;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 0;
}
.dmx-search-bar.is-open { display: block; }
.dmx-search-form {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid #232323;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.dmx-search-form input {
  flex: 1;
  border: none;
  padding: 11px 16px;
  font-size: 15px;
  outline: none;
}
.dmx-search-form button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile Drawer Menu */
.dmx-mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 980;
}
.dmx-mobile-nav-overlay.is-open { display: block; }
.dmx-mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -340px;
  width: 310px;
  max-width: 88vw;
  height: 100vh;
  background: #fff;
  z-index: 990;
  transition: left 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
}
.dmx-mobile-nav-drawer.is-open { left: 0; }
.dmx-mobile-nav-drawer a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid #efefef;
  font-size: 14px;
  font-weight: 600;
}

/* Hero Slideshow */
.dmx-hero { position: relative; width: 100%; overflow: hidden; background: #f6f6f6; }
.dmx-hero-track { display: flex; transition: transform 0.55s cubic-bezier(.22,.61,.36,1); width: 100%; }
.dmx-hero-slide { flex: 0 0 100%; width: 100%; position: relative; display: block; }
.dmx-hero-slide img.hero-pc { width: 100%; height: auto; max-height: 540px; object-fit: cover; display: block; }
.dmx-hero-slide img.hero-mo { width: 100%; height: auto; display: none; }
.dmx-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dmx-hero-arrow.prev { left: 18px; }
.dmx-hero-arrow.next { right: 18px; }
.dmx-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 36px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dmx-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(150, 150, 150, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}
.dmx-hero-dot.is-active { background: #1a1a1a; transform: scale(1.15); }
@media (max-width: 767px) {
  .dmx-hero-slide img.hero-pc { display: none; }
  .dmx-hero-slide img.hero-mo { display: block; }
  .dmx-hero-dots { left: 50%; transform: translateX(-50%); }
}

/* Home Sections */
.dmx-sec { padding: 52px 0; }
.dmx-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.dmx-tab-btns { display: flex; align-items: center; gap: 22px; }
.dmx-tab-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  color: #9e9e9e;
  cursor: pointer;
  transition: color 0.15s;
}
.dmx-tab-btn.is-active { color: #111; }
.dmx-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #232323;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #232323;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dmx-view-all-btn:hover { background: #232323; color: #fff; }
.dmx-sec-title { font-size: 28px; font-weight: 700; margin: 0 0 24px; color: #111; }
@media (max-width: 640px) {
  .dmx-sec { padding: 34px 0; }
  .dmx-tab-btn, .dmx-sec-title { font-size: 21px; }
  .dmx-tab-btns { gap: 14px; }
}

/* Product Grid & Cards */
.dmx-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}
@media (max-width: 1024px) { .dmx-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dmx-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }

.dmx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}
.dmx-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  overflow: hidden;
  border-radius: 4px;
}
.dmx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.dmx-card__media img.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.dmx-card:hover .dmx-card__media img.hover-img { opacity: 1; }
.dmx-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.dmx-card__badge--sale { background: #1e4b8a; }
.dmx-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 2px 4px;
}
.dmx-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1c1c;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.dmx-card__tags {
  font-size: 12px;
  color: #777;
  line-height: 1.35;
  margin: 0 0 6px;
  min-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dmx-stars { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 12px; color: #333; }
.dmx-stars svg { width: 13px; height: 13px; fill: #111; }
.dmx-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 16px;
}
.dmx-price-now { font-weight: 700; color: var(--dmx-blue); }
.dmx-price-reg { font-size: 13px; color: #9a9a9a; text-decoration: line-through; }

.dmx-card__swatches {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 5px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.dmx-card__swatches::-webkit-scrollbar { display: none; }
.dmx-chip {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #333;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.dmx-chip.is-active { border-color: #111; background: #111; color: #fff; }
.dmx-chip:disabled { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }

.dmx-add-btn {
  margin-top: auto;
  width: 100%;
  height: 42px;
  background: var(--dmx-btn);
  color: #fff;
  border: 1px solid var(--dmx-btn);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.dmx-add-btn:hover { background: #333; }
.dmx-add-btn:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; }

/* Skin Concerns */
.dmx-concerns-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 991px) { .dmx-concerns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dmx-concern-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #ececec;
}
.dmx-concern-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.dmx-concern-card:hover img { transform: scale(1.04); }
.dmx-concern-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.18) 100%);
}
.dmx-concern-card span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.dmx-concern-card i {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  color: #fff;
  font-style: normal;
  font-size: 16px;
}

/* Product Lines */
.dmx-lines-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .dmx-lines-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}
.dmx-line-card { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 660 / 1120; background: #f2f2f2; }
.dmx-line-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.dmx-line-card:hover img { transform: scale(1.03); }

/* Brand Story Split */
.dmx-brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9e9e9;
  min-height: 490px;
}
@media (max-width: 860px) { .dmx-brand-split { grid-template-columns: 1fr; } }
.dmx-brand-split__copy {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin-left: auto;
}
@media (max-width: 860px) { .dmx-brand-split__copy { padding: 36px 20px; margin: 0; } }
.dmx-brand-split__copy h2 { font-size: 32px; font-weight: 700; margin: 0 0 14px; }
.dmx-brand-split__copy p { font-size: 15px; color: #333; margin: 0 0 22px; line-height: 1.65; }
.dmx-news-form { display: flex; gap: 10px; margin-bottom: 10px; }
.dmx-news-form input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #bdbdbd;
  background: #fff;
  font-size: 14px;
  border-radius: 3px;
}
.dmx-news-form button {
  height: 44px;
  padding: 0 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dmx-brand-split__img { background: #ddd; overflow: hidden; min-height: 360px; }
.dmx-brand-split__img img { width: 100%; height: 100%; object-fit: cover; }

/* Minimal Clean Legal Footer Strip */
.dmx-footer-strip {
  background: #141414;
  color: #cfcfcf;
  padding: 26px 0;
  font-size: 13px;
}
.dmx-footer-strip__inner {
  max-width: var(--dmx-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.dmx-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.dmx-footer-links a:hover { color: #fff; text-decoration: underline; }

/* Collection & Shop Toolbar */
.dmx-page-banner {
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  padding: 26px 0;
  margin-bottom: 24px;
}
.dmx-page-banner h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.dmx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 18px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.dmx-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.dmx-sort-wrap label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin: 0;
}
.dmx-sort-wrap select {
  height: 38px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  color: #232323;
}
.dmx-col-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.dmx-col-chips::-webkit-scrollbar { display: none; }
.dmx-col-chip {
  border: 1px solid #dedede;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: #333;
  background: #fff;
}
.dmx-col-chip.is-active { background: #111; color: #fff; border-color: #111; }

/* Single Product Page (PDP) */
.dmx-pdp-wrap { padding: 28px 0 64px; }
.dmx-breadcrumb { font-size: 13px; color: #777; margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.dmx-pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .dmx-pdp-grid { grid-template-columns: 1fr; gap: 24px; } }
.dmx-pdp-gallery { position: sticky; top: 94px; }
@media (max-width: 900px) { .dmx-pdp-gallery { position: static; } }
.dmx-pdp-main-img {
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.dmx-pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.dmx-pdp-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dmx-pdp-thumb {
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  background: #f6f6f6;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.dmx-pdp-thumb.is-active { border-color: #111; }
.dmx-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dmx-pdp-title { font-size: 28px; font-weight: 700; margin: 0 0 10px; line-height: 1.25; }
.dmx-pdp-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.dmx-pdp-pill { border: 1px solid #d8d8d8; border-radius: 4px; padding: 4px 10px; font-size: 12px; color: #555; background: #fff; }
.dmx-pdp-price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 22px; }
.dmx-save-badge { background: var(--dmx-burgundy); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.dmx-var-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #333; }
.dmx-var-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dmx-var-pill {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #232323;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dmx-var-pill.is-active { border-color: #111; background: #111; color: #fff; font-weight: 600; }
.dmx-var-pill:disabled { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }

.dmx-buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.dmx-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  height: 48px;
  background: #fff;
  flex-shrink: 0;
}
.dmx-qty-box:focus-within { border-color: #111; }
.dmx-qty-btn {
  width: 38px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #232323;
}
.dmx-qty-input {
  width: 44px;
  height: 100%;
  border: none;
  outline: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
}
.dmx-pdp-add {
  flex: 1;
  height: 48px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.dmx-pdp-add:hover { background: #333; }
.dmx-pdp-add:disabled { background: #999; cursor: not-allowed; }
.dmx-ship-note {
  background: #f9f6f6;
  border: 1px solid #eadede;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 13px;
  color: #333;
  margin-bottom: 18px;
}

/* Accordions */
.dmx-acc-list { border-top: 1px solid #e6e6e6; margin-top: 20px; }
.dmx-acc-item { border-bottom: 1px solid #e6e6e6; }
.dmx-acc-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  text-align: left;
}
.dmx-acc-body { padding: 0 0 16px; font-size: 14px; color: #444; line-height: 1.65; display: none; }
.dmx-acc-item.is-open .dmx-acc-body { display: block; }

/* Infographics & Reviews */
.dmx-infographics { max-width: 920px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 0; }
.dmx-infographics img { width: 100%; height: auto; display: block; }
.dmx-reviews-sec { margin-top: 56px; padding-top: 40px; border-top: 1px solid #e6e6e6; }
.dmx-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
@media (max-width: 820px) { .dmx-review-grid { grid-template-columns: 1fr; } }
.dmx-review-card { border: 1px solid #e8e8e8; border-radius: 6px; padding: 18px; background: #fafafa; }

/* Slide-Out Cart Drawer (1:1 UpCart Burgundy) */
.dmx-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 9990;
}
.dmx-drawer-backdrop.is-open { display: block; }
#halo-cart-sidebar {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9995;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  transition: right 0.28s cubic-bezier(.22,.61,.36,1);
}
#halo-cart-sidebar.is-open { right: 0; }
.dmx-drawer__head {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #efefef;
}
.dmx-drawer__title { font-size: 18px; font-weight: 700; color: #171717; }
.dmx-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f5f2ed;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.dmx-drawer__progress { padding: 14px 20px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.dmx-progress-msg { font-size: 13px; text-align: center; margin-bottom: 10px; color: #171717; }
.dmx-progress-track { height: 7px; border-radius: 999px; background: #EDE7E7; overflow: hidden; margin-bottom: 8px; }
.dmx-progress-fill { height: 100%; background: var(--dmx-burgundy); transition: width 0.3s ease; }
.dmx-tiers-row { display: flex; justify-content: space-between; font-size: 11px; color: #777; text-align: center; }
.dmx-tiers-row span.is-unlocked { color: var(--dmx-burgundy); font-weight: 700; }

.dmx-drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.dmx-drawer-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.dmx-drawer-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 4px; background: #f6f6f6; }
.dmx-mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  height: 30px;
}
.dmx-mini-qty button { width: 28px; height: 100%; border: none; background: transparent; cursor: pointer; font-size: 14px; }
.dmx-mini-qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; }

.dmx-upsell-box { background: #F7F5F5; border-radius: 8px; padding: 12px; margin-top: 14px; }
.dmx-upsell-card { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 8px; }
.dmx-upsell-card img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; }
.dmx-upsell-add {
  background: var(--dmx-burgundy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dmx-drawer__foot { padding: 16px 20px; border-top: 1px solid #ececec; background: #fff; }
.dmx-drawer-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: var(--dmx-burgundy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}
.dmx-drawer-checkout:hover { color: var(--dmx-gold); }

/* Cart Page (/cart/) */
.dmx-cart-page { padding: 36px 0 72px; }
.dmx-cart-page h1 { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.dmx-cart-layout { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 36px; align-items: start; }
.dmx-cart-layout > * { min-width: 0; }
@media (max-width: 900px) { .dmx-cart-layout { grid-template-columns: 1fr; gap: 24px; } }
.dmx-cart-table { width: 100%; border-collapse: collapse; border: 1px solid #e6e6e6; }
.dmx-cart-table th {
  background: #fafafa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
}
.dmx-cart-table td { padding: 16px; border-bottom: 1px solid #efefef; vertical-align: middle; }
@media (max-width: 767px) {
  .dmx-cart-page { padding: 24px 0 56px; }
  .dmx-cart-page h1 { font-size: 23px; margin-bottom: 16px; }
  .dmx-cart-table { border: none; }
  .dmx-cart-table thead { display: none; }
  .dmx-cart-table, .dmx-cart-table tbody { display: block; width: 100%; }
  .dmx-cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 14px 36px 14px 14px;
    margin-bottom: 12px;
    position: relative;
    background: #fff;
  }
  .dmx-cart-table td { display: block; padding: 0; border: none; width: auto; }
  .dmx-cart-table td:first-child { grid-column: 1 / -1; }
  .dmx-cart-table td:nth-child(2) { grid-column: 1; font-size: 14px; }
  .dmx-cart-table td:nth-child(3) { grid-column: 2; justify-self: end; }
  .dmx-cart-table td:nth-child(4) { grid-column: 1 / -1; font-size: 14px; color: #333; padding-top: 6px; border-top: 1px dashed #ececec; display: flex; justify-content: space-between; }
  .dmx-cart-table td:nth-child(4)::before { content: "Line Total"; color: #777; font-weight: 500; }
  .dmx-cart-table td:last-child { position: absolute; top: 8px; right: 8px; }
}
.dmx-cart-summary { border-top: 2px solid #111; padding-top: 16px; }
.dmx-cart-summary h2 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px; }
.dmx-sum-row { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 0; border-bottom: 1px solid #efefef; }
.dmx-btn-black {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 3px;
  margin-top: 16px;
  cursor: pointer;
}
.dmx-btn-grey {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: #888;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  margin-top: 10px;
}

/* Pagination & Blog Grid */
.dmx-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .dmx-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dmx-blog-grid { grid-template-columns: 1fr; } }
.dmx-empty-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 44px; }
@media (max-width: 680px) { .dmx-empty-trust { grid-template-columns: 1fr; } }
.dmx-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 38px; flex-wrap: wrap; }
.dmx-pagination a, .dmx-pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}
.dmx-pagination .current { background: #111; color: #fff; border-color: #111; }
