/* EXTRA QUICKVIEW DEMOS */

/* ── Intro ── */
.dm-qv-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 48px 24px 0;
  text-align: center;
}
.dm-qv-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.dm-qv-intro h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #0b0f17;
  font-weight: 700;
}
.dm-qv-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}
.dm-qv-intro em { font-style: italic; color: #111827; }

/* ── Listing wrap (positioning context for the modal) ── */
.dm-qv-listing-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Listing grid ── */
.dm-qv-listing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.dm-qv-listing.dimmed {
  filter: blur(2px) saturate(0.8);
  opacity: 0.55;
  pointer-events: none;
}

.dm-qv-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #ececef;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.dm-qv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.25);
  border-color: #d4d4d8;
}

.dm-qv-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #f4f4f5;
}
.dm-qv-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d64545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.dm-qv-card-qv {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 12px);
  background: #fff;
  color: #111827;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s ease, background 0.18s ease;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.dm-qv-card:hover .dm-qv-card-qv {
  opacity: 1;
  transform: translate(-50%, 0);
}
.dm-qv-card-qv:hover { background: #111827; color: #fff; }

.dm-qv-card-body {
  padding: 14px 14px 16px;
}
.dm-qv-card-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dm-qv-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.dm-qv-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dm-qv-card-old {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}
.dm-qv-card-now {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

/* ── Quick-View Modal ── */
.dm-qv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.dm-qv-modal.open {
  display: flex;
}
.dm-qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: dm-qv-fade 0.2s ease both;
}
.dm-qv-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 940px;
  max-height: calc(100vh - 64px);
  overflow: hidden;
  box-shadow: 0 32px 80px -16px rgba(2, 6, 23, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.04);
  animation: dm-qv-pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes dm-qv-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dm-qv-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.dm-qv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0b0f17;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.dm-qv-close:hover { background: #fff; transform: rotate(90deg); }
.dm-qv-close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.dm-qv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(100vh - 64px);
  overflow: auto;
}

/* ── Modal: Gallery ── */
.dm-qv-gallery {
  background: #f5f5f7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dm-qv-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  background-color: #ececef;
  transition: background-image 0.2s ease;
}
.dm-qv-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dm-qv-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  background-color: #ececef;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.dm-qv-thumb:hover { transform: scale(1.04); }
.dm-qv-thumb.active { border-color: #111827; }

/* ── Modal: Details ── */
.dm-qv-details {
  padding: 36px 32px 32px;
  overflow-y: auto;
  font-family: inherit;
}
.dm-qv-d-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}
.dm-qv-d-name {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  color: #0b0f17;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.dm-qv-d-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 16px;
}
.dm-qv-stars { display: inline-flex; gap: 1px; }
.dm-qv-star { color: #d4d4d8; font-size: 14px; }
.dm-qv-star.on { color: #f5b400; }

.dm-qv-d-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dm-qv-d-old {
  font-size: 15px;
  color: #9ca3af;
  text-decoration: line-through;
}
.dm-qv-d-now {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}
.dm-qv-d-save {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.dm-qv-d-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 22px;
}

.dm-qv-d-section { margin-bottom: 18px; }
.dm-qv-d-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 8px;
}

.dm-qv-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-qv-size {
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dm-qv-size:hover { border-color: #6b7280; }
.dm-qv-size.active { background: #111827; color: #fff; border-color: #111827; }

.dm-qv-colors { display: flex; gap: 10px; }
.dm-qv-color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--c, #111);
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s;
}
.dm-qv-color:hover { transform: scale(1.08); }
.dm-qv-color.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #111827;
}

.dm-qv-d-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dm-qv-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.dm-qv-qty-btn {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #111827;
  transition: background 0.15s;
}
.dm-qv-qty-btn:hover { background: #f4f4f5; }
.dm-qv-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.dm-qv-cart-btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #0b0f17;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
}
.dm-qv-cart-btn:hover { background: #1f2937; transform: translateY(-1px); }
.dm-qv-cart-btn:active { transform: translateY(0); }

.dm-qv-wish {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.dm-qv-wish:hover { color: #111827; }

/* ── Mini Quick View ── */
.dm-qv-mini-wrap {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 32px 24px;
  background: #f7f7f8;
  border-radius: 18px;
}
.dm-qv-mini-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0b0f17;
  margin: 0 0 6px;
}
.dm-qv-mini-wrap > p {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 18px;
}
.dm-qv-mini-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dm-qv-mini-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #ececef;
  cursor: default;
}
.dm-qv-mini-img {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #f4f4f5;
  border-radius: 8px;
  margin-bottom: 10px;
}
.dm-qv-mini-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.dm-qv-mini-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  background: #0b0f17;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  width: 220px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
}
.dm-qv-mini-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #0b0f17;
}
.dm-qv-mini-tip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #fff;
}
.dm-qv-mini-tip-row {
  display: flex;
  justify-content: space-between;
  color: #c7c9d1;
  margin-top: 2px;
}
.dm-qv-mini-tip-row span:last-child { color: #fff; font-weight: 600; }
.dm-qv-mini-card:hover .dm-qv-mini-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Explain block ── */
.dm-qv-explain {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.dm-qv-explain h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #0b0f17;
  letter-spacing: -0.01em;
}
.dm-qv-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dm-qv-explain-card {
  background: #fff;
  border: 1px solid #ececef;
  padding: 22px 22px 20px;
  border-radius: 14px;
}
.dm-qv-explain-num {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.dm-qv-explain-card strong {
  display: block;
  font-size: 15px;
  color: #111827;
  margin-bottom: 6px;
  font-weight: 700;
}
.dm-qv-explain-card p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}

.dm-qv-explain-tech {
  background: #0b0f17;
  color: #d4d4d8;
  padding: 26px 28px;
  border-radius: 14px;
}
.dm-qv-explain-tech h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.dm-qv-explain-tech ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-qv-explain-tech li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dm-qv-explain-tech li:last-child { border-bottom: 0; }
.dm-qv-explain-tech li::before {
  content: '›';
  position: absolute;
  left: 4px;
  top: 8px;
  color: #6b7280;
  font-weight: 700;
}
.dm-qv-explain-tech code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dm-qv-explain-tech strong { color: #fff; }

/* ── Outro ── */
.dm-qv-outro {
  max-width: 1200px;
  margin: 48px auto;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.dm-qv-outro-kbd {
  display: inline-block;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid #d4d4d8;
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #111827;
  margin-right: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dm-qv-listing { grid-template-columns: repeat(3, 1fr); }
  .dm-qv-mini-row { grid-template-columns: repeat(3, 1fr); }
  .dm-qv-body { grid-template-columns: 1fr; }
  .dm-qv-gallery { padding: 18px; }
  .dm-qv-details { padding: 22px 22px 24px; }
  .dm-qv-explain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dm-qv-listing { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dm-qv-mini-row { grid-template-columns: repeat(2, 1fr); }
  .dm-qv-card-qv { opacity: 1; transform: translate(-50%, 0); }
  .dm-qv-d-name { font-size: 22px; }
  .dm-qv-d-now { font-size: 22px; }
  .dm-qv-d-row { flex-wrap: wrap; }
  .dm-qv-cart-btn { flex: 1 1 100%; }
}
