/*
Theme Name: Danessa Myricks Beauty Replica
Description: High-fidelity 1:1 WooCommerce storefront theme matching Danessa Myricks Beauty.
Version: 1.0.0
*/

:root {
  --dmb-black: #000000;
  --dmb-white: #ffffff;
  --dmb-gray-bg: #f7f7f7;
  --dmb-gray-border: #e5e5e5;
  --dmb-gray-muted: #666666;
  --dmb-font-heading: 'Bebas Kai', 'Impact', 'Arial Narrow', sans-serif;
  --dmb-font-body: 'Spartan', 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--dmb-white);
  color: var(--dmb-black);
  font-family: var(--dmb-font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
}

/* Announcement Bar */
.dmb-announcement {
  background: var(--dmb-black);
  color: var(--dmb-white);
  text-align: center;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */
.dmb-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--dmb-white);
  border-bottom: 1px solid var(--dmb-gray-border);
}

.dmb-header-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.dmb-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dmb-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dmb-black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dmb-mobile-menu-btn {
  display: none;
}

.dmb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dmb-black);
  white-space: nowrap;
}

.dmb-logo-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.dmb-logo-text {
  font-family: var(--dmb-font-heading);
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.dmb-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.dmb-nav-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  min-height: 44px;
}

.dmb-nav-group {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dmb-nav-item {
  position: relative;
}

.dmb-nav-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dmb-black);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.dmb-nav-link:hover {
  border-bottom-color: var(--dmb-black);
}

/* Mega Menu */
.dmb-megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 560px;
  background: var(--dmb-white);
  border: 1px solid var(--dmb-gray-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  padding: 24px 28px;
  z-index: 950;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dmb-nav-item:hover .dmb-megamenu {
  display: grid;
}

.dmb-mega-col h4 {
  margin: 0 0 10px;
  font-family: var(--dmb-font-heading);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--dmb-black);
}

.dmb-mega-col a {
  display: block;
  padding: 4px 0;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

.dmb-mega-col a:hover {
  color: var(--dmb-black);
  text-decoration: underline;
}

/* Search Overlay */
.dmb-search-bar {
  display: none;
  background: var(--dmb-white);
  border-top: 1px solid var(--dmb-gray-border);
  padding: 16px 32px;
}

.dmb-search-bar.is-open {
  display: block;
}

.dmb-search-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.dmb-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dmb-search-input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--dmb-black);
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.dmb-search-submit {
  height: 44px;
  padding: 0 24px;
  background: var(--dmb-black);
  color: var(--dmb-white);
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.dmb-search-results {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dmb-search-card {
  border: 1px solid var(--dmb-gray-border);
  padding: 8px;
  font-size: 12px;
}

.dmb-search-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 6px;
}

/* Hero Video Section */
.dmb-hero {
  position: relative;
  width: 100%;
  height: 76vh;
  min-height: 520px;
  max-height: 820px;
  background: #0d0d0d;
  overflow: hidden;
}

.dmb-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.15) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 56px 64px;
}

.dmb-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 36px;
  background: var(--dmb-white);
  color: var(--dmb-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.dmb-hero-cta:hover {
  background: var(--dmb-black);
  color: var(--dmb-white);
}

/* Section Container */
.dmb-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 32px;
}

.dmb-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.dmb-section-title {
  font-family: var(--dmb-font-heading);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.05;
}

.dmb-view-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  white-space: nowrap;
}

/* Product Grid & Cards */
.dmb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.dmb-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dmb-white);
}

.dmb-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  background: var(--dmb-gray-bg);
  overflow: hidden;
  margin-bottom: 12px;
}

.dmb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dmb-product-card:hover .dmb-card-media img {
  transform: scale(1.03);
}

.dmb-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--dmb-black);
  color: var(--dmb-white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.dmb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dmb-card-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 20px;
  flex-wrap: wrap;
}

.dmb-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  overflow: hidden;
  background: #e9d8cc;
  flex-shrink: 0;
}

.dmb-swatch-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmb-swatch-more {
  font-size: 11px;
  color: var(--dmb-gray-muted);
}

.dmb-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--dmb-black);
}

.dmb-card-rating {
  font-size: 12px;
  color: var(--dmb-black);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.dmb-card-price {
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 12px;
}

.dmb-card-btn {
  width: 100%;
  height: 42px;
  border: 1px solid var(--dmb-black);
  background: var(--dmb-white);
  color: var(--dmb-black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.dmb-card-btn:hover {
  background: var(--dmb-black);
  color: var(--dmb-white);
}

.dmb-card-btn.is-soldout {
  border-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* Manifesto Block */
.dmb-manifesto {
  background: var(--dmb-black);
  color: var(--dmb-white);
  text-align: center;
  padding: 80px 32px;
}

.dmb-manifesto h2 {
  font-family: var(--dmb-font-heading);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  line-height: 1.05;
}

.dmb-manifesto p {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Trio Feature Banners (Complexion / Color / Chrome) */
.dmb-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.dmb-trio-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
}

.dmb-trio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dmb-trio-card:hover img {
  transform: scale(1.04);
}

.dmb-trio-label {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 36px 24px;
  color: var(--dmb-white);
}

.dmb-trio-label h3 {
  font-family: var(--dmb-font-heading);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.dmb-trio-label span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--dmb-white);
  padding-bottom: 3px;
}

/* Shop by Categories */
.dmb-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.dmb-cat-card {
  display: block;
  text-align: center;
}

.dmb-cat-card .dmb-cat-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--dmb-gray-bg);
  margin-bottom: 10px;
}

.dmb-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dmb-cat-card:hover img {
  transform: scale(1.04);
}

.dmb-cat-card span {
  font-family: var(--dmb-font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
}

/* Brand Story Section */
.dmb-story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.dmb-story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.dmb-story-content h2 {
  font-family: var(--dmb-font-heading);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.08;
  margin: 0 0 20px;
}

.dmb-story-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 18px;
}

.dmb-story-sign {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 24px;
  margin: 22px 0 28px;
}

/* Pro Dual Blocks */
.dmb-pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.dmb-pro-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}

.dmb-pro-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmb-pro-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dmb-white);
  padding: 24px;
  text-align: center;
}

.dmb-pro-overlay h3 {
  font-family: var(--dmb-font-heading);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}

.dmb-pro-overlay span {
  display: inline-block;
  border: 1px solid var(--dmb-white);
  padding: 10px 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Collection / Shop All Page */
.dmb-col-hero {
  background: var(--dmb-gray-bg);
  padding: 44px 32px;
  text-align: center;
  border-bottom: 1px solid var(--dmb-gray-border);
}

.dmb-col-hero h1 {
  font-family: var(--dmb-font-heading);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.dmb-col-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--dmb-gray-border);
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.dmb-col-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dmb-gray-muted);
  white-space: nowrap;
}

.dmb-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dmb-sort-wrap label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.dmb-sort-select {
  height: 38px;
  border: 1px solid #ccc;
  padding: 0 12px;
  font-size: 12px;
  background: var(--dmb-white);
  color: var(--dmb-black);
}

/* Single Product Page */
.dmb-pdp-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 32px 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.dmb-pdp-gallery {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: start;
}

.dmb-pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
}

.dmb-pdp-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--dmb-gray-border);
  padding: 0;
  background: var(--dmb-gray-bg);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.dmb-pdp-thumb.is-active {
  border-color: var(--dmb-black);
  border-width: 2px;
}

.dmb-pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmb-pdp-main-img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: var(--dmb-gray-bg);
  overflow: hidden;
}

.dmb-pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmb-pdp-info {
  position: sticky;
  top: 110px;
}

.dmb-pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

.dmb-stars {
  color: var(--dmb-black);
  letter-spacing: 1px;
  font-size: 15px;
}

.dmb-pdp-title {
  font-family: var(--dmb-font-heading);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.08;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.dmb-pdp-price {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
}

.dmb-pdp-shade-header {
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dmb-pdp-shade-header strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dmb-pdp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dmb-pdp-swatch-btn {
  min-width: 38px;
  height: 38px;
  padding: 2px;
  border: 1px solid #d4d4d4;
  background: var(--dmb-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  transition: border-color 0.15s;
}

.dmb-pdp-swatch-btn.has-text {
  padding: 0 14px;
  white-space: nowrap;
}

.dmb-pdp-swatch-btn img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.dmb-pdp-swatch-btn.is-active {
  border: 2px solid var(--dmb-black);
}

.dmb-pdp-swatch-btn.is-oos {
  opacity: 0.4;
  text-decoration: line-through;
}

.dmb-pdp-buy-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 22px 0 14px;
}

.dmb-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dmb-black);
  height: 50px;
  background: var(--dmb-white);
  flex-shrink: 0;
}

.dmb-qty-box button {
  width: 38px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--dmb-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dmb-qty-box input {
  width: 38px;
  height: 100%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
}

.dmb-qty-box input::-webkit-outer-spin-button,
.dmb-qty-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dmb-atc-btn {
  flex: 1;
  height: 50px;
  background: var(--dmb-black);
  color: var(--dmb-white);
  border: 1px solid var(--dmb-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.dmb-atc-btn:hover {
  opacity: 0.88;
}

.dmb-atc-btn:disabled {
  background: #999;
  border-color: #999;
  cursor: not-allowed;
}

.dmb-pdp-ship-note {
  font-size: 12px;
  color: var(--dmb-gray-muted);
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--dmb-gray-border);
  margin-bottom: 18px;
}

.dmb-pdp-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #222;
}

/* Below-the-fold Detail Section */
.dmb-pdp-details-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 32px 56px;
  border-top: 1px solid var(--dmb-gray-border);
}

.dmb-pdp-details-wrap h2,
.dmb-pdp-details-wrap h3 {
  font-family: var(--dmb-font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dmb-pdp-details-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.dmb-detail-content {
  display: block;
}

.dmb-detail-content ul {
  padding-left: 20px;
}

/* Force hidden tab panels from scraped HTML to be cleanly displayed in blocks */
.dmb-detail-content [hidden],
.dmb-detail-content .tab-content,
.dmb-detail-content .product-tabs__panel,
.dmb-detail-content [style*="display: none"],
.dmb-detail-content [style*="display:none"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.dmb-detail-content .dmb-tabs-nav,
.dmb-detail-content ul:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0 0 16px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--dmb-gray-border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dmb-detail-content img {
  margin: 16px 0;
  max-height: 620px;
  width: auto;
  object-fit: contain;
}

.dmb-detail-content .product-detail-imgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Reviews Section */
.dmb-reviews-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 32px;
  border-top: 1px solid var(--dmb-gray-border);
}

.dmb-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.dmb-review-card {
  border: 1px solid var(--dmb-gray-border);
  padding: 20px;
  background: var(--dmb-white);
}

.dmb-review-author {
  font-weight: 600;
  font-size: 13px;
  margin: 8px 0 6px;
}

.dmb-review-body {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* Cart Drawer (Strict 3-part Flex Layout) */
.dmb-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
}

.dmb-drawer-backdrop.is-open {
  display: block;
}

.dmb-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--dmb-white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.14);
}

.dmb-cart-drawer.is-open {
  transform: translateX(0);
}

.dmb-drawer-head {
  flex-shrink: 0;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--dmb-gray-border);
}

.dmb-drawer-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dmb-drawer-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.dmb-drawer-title span.label {
  font-family: var(--dmb-font-heading);
  font-size: 32px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.dmb-drawer-title span.count {
  font-size: 13px;
  color: var(--dmb-gray-muted);
}

.dmb-drawer-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--dmb-black);
  padding: 0;
}

.dmb-ship-bar-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  margin-bottom: 6px;
}

.dmb-ship-bar-track {
  width: 100%;
  height: 3px;
  background: #e2e2e2;
  overflow: hidden;
}

.dmb-ship-bar-fill {
  height: 100%;
  background: var(--dmb-black);
  transition: width 0.25s ease;
}

.dmb-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
}

.dmb-drawer-empty {
  text-align: center;
  padding: 48px 16px;
}

.dmb-drawer-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #efefef;
}

.dmb-drawer-item-img {
  width: 76px;
  height: 76px;
  background: var(--dmb-gray-bg);
  object-fit: cover;
}

.dmb-drawer-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.dmb-drawer-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.dmb-drawer-item-price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dmb-drawer-item-var {
  font-size: 12px;
  color: var(--dmb-gray-muted);
  margin: 4px 0 10px;
}

.dmb-drawer-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dmb-mini-qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dmb-mini-qty button {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: var(--dmb-black);
  padding: 0;
}

.dmb-mini-qty span {
  font-size: 13px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.dmb-drawer-remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--dmb-black);
  cursor: pointer;
}

.dmb-drawer-upsell {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--dmb-gray-border);
}

.dmb-drawer-upsell h4 {
  font-family: var(--dmb-font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.dmb-upsell-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dmb-upsell-card {
  border: 1px solid #ececec;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dmb-upsell-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dmb-upsell-card .title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.dmb-upsell-card button {
  width: 100%;
  height: 34px;
  border: 1px solid var(--dmb-black);
  background: var(--dmb-white);
  color: var(--dmb-black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dmb-upsell-card button:hover {
  background: var(--dmb-black);
  color: var(--dmb-white);
}

.dmb-drawer-foot {
  flex-shrink: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--dmb-black);
  background: var(--dmb-white);
}

.dmb-drawer-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dmb-drawer-est-ship {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--dmb-gray-muted);
  margin-bottom: 14px;
}

.dmb-drawer-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  height: 48px;
  border: 1px solid var(--dmb-black);
  background: var(--dmb-black);
  color: var(--dmb-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.dmb-drawer-checkout-btn:hover {
  opacity: 0.88;
}

.dmb-drawer-viewcart {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--dmb-gray-muted);
  text-decoration: underline;
}

/* Standalone /cart/ Page (1:1 Source Layout) */
.dmb-cart-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.dmb-cart-page h1 {
  font-family: var(--dmb-font-heading);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0 0 22px;
}

.dmb-cart-page-progress {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.dmb-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.dmb-cart-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 8px;
  border-bottom: 1px solid var(--dmb-gray-border);
}

.dmb-cart-table th.col-qty { text-align: center; }
.dmb-cart-table th.col-total { text-align: right; }

.dmb-cart-table td {
  padding: 22px 8px;
  border-bottom: 1px solid var(--dmb-gray-border);
  vertical-align: middle;
}

.dmb-cart-prod-cell {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dmb-cart-prod-cell img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: var(--dmb-gray-bg);
}

.dmb-cart-summary {
  max-width: 380px;
  margin-left: auto;
}

.dmb-cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 10px;
}

.dmb-cart-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid var(--dmb-gray-border);
}

/* Policy / Generic Page */
.dmb-page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  min-height: 55vh;
}

.dmb-page-content h1 {
  font-family: var(--dmb-font-heading);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 24px;
}

/* Footer */
.dmb-footer {
  background: var(--dmb-black);
  color: var(--dmb-white);
  padding: 64px 32px 36px;
}

.dmb-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #262626;
}

.dmb-footer h4 {
  font-family: var(--dmb-font-heading);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  color: var(--dmb-white);
}

.dmb-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dmb-footer li {
  margin-bottom: 9px;
}

.dmb-footer a {
  font-size: 12.5px;
  color: #cccccc;
}

.dmb-footer a:hover {
  color: var(--dmb-white);
  text-decoration: underline;
}

.dmb-newsletter-form {
  display: flex;
  margin-top: 14px;
}

.dmb-newsletter-form input {
  flex: 1;
  height: 42px;
  border: 1px solid #555;
  background: transparent;
  color: var(--dmb-white);
  padding: 0 12px;
  font-size: 12px;
}

.dmb-newsletter-form button {
  height: 42px;
  padding: 0 20px;
  background: var(--dmb-white);
  color: var(--dmb-black);
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.dmb-footer-bottom {
  max-width: 1440px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #888;
}

/* Mobile Drawer Menu */
.dmb-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dmb-white);
  z-index: 9995;
  padding: 20px 24px;
  overflow-y: auto;
}

.dmb-mobile-nav.is-open {
  display: block;
}

.dmb-mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: var(--dmb-font-heading);
  font-size: 24px;
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 1024px) {
  .dmb-product-grid { grid-template-columns: repeat(3, 1fr); }
  .dmb-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .dmb-pdp-wrap { grid-template-columns: 1fr; }
  .dmb-pdp-info { position: static; }
  .dmb-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dmb-header-top { padding: 10px 12px; gap: 6px; grid-template-columns: auto 1fr auto; }
  .dmb-header-left { gap: 8px; }
  .dmb-header-right { gap: 8px; }
  .dmb-nav-bar { display: none; }
  .dmb-mobile-menu-btn { display: inline-flex; }
  .dmb-logo { justify-content: center; gap: 6px; }
  .dmb-logo-text { font-size: 13.5px; letter-spacing: 0.05em; }
  .dmb-logo-mark { font-size: 18px; }
  .dmb-icon-btn { font-size: 10px; gap: 4px; }
  .dmb-hide-mobile { display: none !important; }
  .dmb-hero { height: 56vh; min-height: 360px; }
  .dmb-hero-overlay { padding: 28px 20px; }
  .dmb-section { padding: 40px 16px; }
  .dmb-section-title { font-size: 30px; }
  .dmb-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .dmb-trio-grid { grid-template-columns: 1fr; }
  .dmb-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dmb-story { grid-template-columns: 1fr; gap: 28px; }
  .dmb-pro-grid { grid-template-columns: 1fr; }
  .dmb-pdp-wrap { padding: 20px 16px 32px; gap: 24px; }
  .dmb-pdp-gallery { grid-template-columns: 1fr; }
  .dmb-pdp-thumbs { flex-direction: row; order: 2; }
  .dmb-reviews-grid { grid-template-columns: 1fr; }
  .dmb-cart-page { padding: 28px 16px 48px; }
  .dmb-cart-table thead { display: none; }
  .dmb-cart-table, .dmb-cart-table tbody, .dmb-cart-table tr, .dmb-cart-table td { display: block; width: 100%; }
  .dmb-cart-table td { padding: 10px 0; border: none; }
  .dmb-cart-table tr { border-bottom: 1px solid var(--dmb-gray-border); padding: 14px 0; }
  .dmb-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
