/* Girmiad 2.0 — catalog, product cards, product page, offers, reviews. */

/* ---------- Product grid & card (a voucher with a tear-off stub) ---------- */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.products::before,
ul.products::after {
  display: none;
}
.dmx-product-card {
  --stub: 52px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.dmx-product-card:hover {
  transform: translate(2px, -2px);
  box-shadow: var(--v-shadow-hover);
}
/* Notches where the stub tears off. */
.dmx-product-card::before,
.dmx-product-card::after {
  content: "";
  position: absolute;
  bottom: calc(var(--stub) - 9px);
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 2px solid var(--v-edge);
  border-radius: 50%;
  background: var(--v-paper);
}
.dmx-product-card::before {
  right: -11px;
  clip-path: inset(0 50% 0 0);
}
.dmx-product-card::after {
  left: -11px;
  clip-path: inset(0 0 0 50%);
}
.dmx-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 0;
  color: var(--v-ink);
}
.dmx-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--v-edge);
  border-radius: calc(var(--v-radius) - 6px);
  background: var(--v-card-2);
}
.dmx-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.dmx-product-card:hover .dmx-card-image img {
  transform: scale(1.04);
}
.dmx-product-art {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: var(--v-dots) 0 0 / 14px 14px, color-mix(in srgb, var(--tone, var(--v-primary)) 18%, var(--v-card));
}
.dmx-product-art b {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--v-edge);
  border-radius: 18px;
  background: var(--tone, var(--v-primary));
  color: #fff;
  box-shadow: var(--v-shadow-sm);
  font: 400 34px/1 var(--v-display);
  transform: rotate(-5deg);
}
.dmx-product-art span {
  padding: 0 10px;
  border-radius: 999px;
  background: var(--v-card);
  color: var(--v-ink);
  font-size: 12px;
  font-weight: 700;
}
.dmx-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 12px 6px 14px;
}
.dmx-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--v-muted);
  font-size: 12px;
  font-weight: 700;
}
.dmx-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--v-ink);
}
.dmx-card-rating .dmx-icon {
  width: 14px;
  height: 14px;
  fill: var(--v-yellow);
  stroke: var(--v-edge);
}
.woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 3em;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--v-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dmx-card-availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--v-muted);
  font-size: 12.5px;
}
.dmx-card-availability .dmx-icon {
  width: 15px;
  height: 15px;
}
.dmx-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.dmx-card-price small {
  color: var(--v-muted);
  font-size: 12px;
}
.dmx-card-price .price,
.dmx-card-price .price .amount {
  color: var(--v-ink);
  font: 400 21px/1.2 var(--v-display);
}
.dmx-product-card > .button {
  min-height: var(--stub);
  margin: 0;
  border: 0;
  border-top: 2px dashed var(--v-edge);
  border-radius: 0 0 calc(var(--v-radius) - 2px) calc(var(--v-radius) - 2px);
  background: transparent;
  color: var(--v-ink);
  box-shadow: none;
  justify-content: space-between;
  padding-inline: 18px;
}
.dmx-product-card > .button:hover {
  transform: none;
  box-shadow: none;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
.dmx-product-card > .button:active {
  transform: none;
}

/* ---------- Catalog archive ---------- */
.dmx-catalog-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 26px 30px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-dots) 0 0 / 16px 16px, var(--v-primary);
  color: var(--v-on-primary);
  box-shadow: var(--v-shadow-card);
  overflow: hidden;
}
.dmx-catalog-intro h1 {
  margin: 4px 0;
  color: inherit;
}
.dmx-catalog-intro p {
  margin: 0;
  opacity: 0.9;
}
.dmx-catalog-intro .eyebrow {
  color: var(--v-yellow);
}
.dmx-catalog-symbol {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border: 2px solid var(--v-edge);
  border-radius: 22px;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  transform: rotate(8deg);
  box-shadow: var(--v-shadow-sm);
}
.dmx-catalog-symbol .dmx-icon {
  width: 44px;
  height: 44px;
}
.dmx-catalog-symbol .dmx-icon + .dmx-icon {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 28px;
  height: 28px;
  color: #fff;
  fill: #fff;
}
.term-description,
.page-description {
  margin: 0 0 18px;
  color: var(--v-muted);
}
.dmx-category-rail {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.dmx-category-rail a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--v-edge);
  border-radius: 999px;
  background: var(--v-card);
  color: var(--v-ink);
  font-weight: 800;
  white-space: nowrap;
}
.dmx-category-rail a .dmx-icon {
  width: 17px;
  height: 17px;
  color: var(--tone, var(--v-primary));
}
.dmx-category-rail a:hover {
  background: var(--v-card-2);
}
.dmx-category-rail a[aria-current="page"] {
  background: var(--v-ink);
  color: var(--v-card);
}
.dmx-category-rail a[aria-current="page"] .dmx-icon {
  color: var(--v-yellow);
}
.dmx-catalog-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.dmx-filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.dmx-filter-panel {
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
}
.dmx-filter-panel > summary {
  display: none;
}
.dmx-filter-content {
  display: grid;
  gap: 2px;
  padding: 18px;
}
.dmx-filter-content h2 {
  margin: 0 0 6px;
  font: 400 19px/1.4 var(--v-display);
}
.dmx-filter-content > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--v-radius-sm);
  color: var(--v-text);
  font-weight: 700;
}
.dmx-filter-content > a small {
  min-width: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--v-card-2);
  color: var(--v-muted);
  font-size: 11.5px;
  text-align: center;
}
.dmx-filter-content > a:hover {
  background: var(--v-card-2);
}
.dmx-filter-content > a[aria-current="page"] {
  background: var(--v-ink);
  color: var(--v-card);
}
.dmx-filter-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--v-line);
}
.dmx-filter-group h3 {
  margin: 0;
  font-size: 14px;
}
.dmx-filter-group h3 small {
  color: var(--v-muted);
  font-weight: 600;
}
.dmx-filter-group label {
  display: grid;
  gap: 3px;
  font-size: 12.5px;
}
.dmx-filter-group .button {
  width: 100%;
  margin-top: 4px;
}
.dmx-clear-filters {
  color: var(--v-coral);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.dmx-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.woocommerce-result-count {
  margin: 0;
  color: var(--v-muted);
  font-weight: 700;
}
.woocommerce-ordering {
  margin: 0;
}
.woocommerce-ordering select {
  width: auto;
  min-width: 190px;
  border-color: var(--v-edge);
  font-weight: 700;
}
.dmx-catalog-products {
  min-width: 0;
  transition: opacity 0.2s ease;
}
.dmx-catalog-products.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.dmx-catalog-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 24px;
  border: 2px dashed var(--v-line);
  border-radius: var(--v-radius);
  background: var(--v-card);
  text-align: center;
}
.dmx-catalog-empty .dmx-icon {
  width: 42px;
  height: 42px;
  color: var(--v-primary);
}
.dmx-catalog-empty p {
  color: var(--v-muted);
}

/* ---------- Product page ---------- */
.dmx-product-page {
  display: grid;
  gap: 26px;
}
.dmx-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 32px;
}
.dmx-gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 12px;
}
.dmx-gallery-stage {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
}
.dmx-gallery-stage a,
.dmx-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dmx-gallery-stage .dmx-product-art b {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  font-size: 58px;
}
.dmx-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.dmx-gallery-thumbs a {
  flex: none;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 2px solid var(--v-line);
  border-radius: var(--v-radius-sm);
}
.dmx-gallery-thumbs a[aria-current="true"],
.dmx-gallery-thumbs a:hover {
  border-color: var(--v-edge);
}
.dmx-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dmx-product-info {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.dmx-product-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dmx-product-kicker .dmx-badge {
  background: var(--v-card);
  color: var(--v-primary);
}
.dmx-product-kicker a {
  color: var(--v-muted);
  font-size: 13px;
  font-weight: 700;
}
.dmx-product-kicker a:hover {
  color: var(--v-link);
}
.dmx-product-info h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}
.dmx-product-excerpt {
  color: var(--v-muted);
  font-size: 15px;
}
.dmx-product-excerpt p:last-child {
  margin: 0;
}
.dmx-product-buybox {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
}
.dmx-buybox-label {
  color: var(--v-muted);
  font-size: 13px;
  font-weight: 700;
}
.dmx-product-buybox .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--v-ink);
  font: 400 clamp(28px, 3vw, 36px) / 1.2 var(--v-display);
}
.dmx-product-buybox .price small {
  color: var(--v-muted);
  font: 700 13px/1 var(--v-body);
}
.dmx-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px dashed var(--v-line);
}
.dmx-product-actions > .button:first-child {
  flex: 1 1 200px;
}
.dmx-favorite-toggle[aria-pressed="true"] {
  --btn-bg: color-mix(in srgb, var(--v-coral) 14%, var(--v-card));
  color: var(--v-coral);
}
.dmx-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dmx-product-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--v-line);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-ink);
  font-size: 13px;
  font-weight: 700;
}
.dmx-product-facts .dmx-icon {
  color: var(--v-primary);
}
.product_meta {
  color: var(--v-muted);
  font-size: 13px;
}
.product_meta a {
  color: var(--v-link);
  font-weight: 700;
}
.dmx-product-nav {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 2px solid var(--v-edge);
  border-radius: 14px;
  background: var(--v-card);
  box-shadow: var(--v-shadow-sm);
  overflow-x: auto;
}
.dmx-product-nav a {
  flex: none;
  padding: 7px 14px;
  border-radius: 10px;
  color: var(--v-text);
  font-weight: 800;
  white-space: nowrap;
}
.dmx-product-nav a:hover,
.dmx-product-nav a.is-active {
  background: var(--v-ink);
  color: var(--v-card);
}
.dmx-product-section {
  padding: 24px 26px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
}
.dmx-product-section > h2 {
  margin-bottom: 14px;
  font: 400 24px/1.4 var(--v-display);
}
.dmx-product-section p:last-child {
  margin-bottom: 0;
}
.woocommerce-product-attributes,
.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-product-attributes th,
.woocommerce-product-attributes td,
.shop_attributes th,
.shop_attributes td {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--v-line);
  text-align: start;
  vertical-align: top;
}
.woocommerce-product-attributes th,
.shop_attributes th {
  width: 32%;
  color: var(--v-muted);
  font-weight: 700;
}
.woocommerce-product-attributes td p,
.shop_attributes td p {
  margin: 0;
}
.related.products > h2,
.upsells.products > h2 {
  margin: 10px 0 16px;
  font: 400 26px/1.4 var(--v-display);
}

/* ---------- Offers (seller comparison) ---------- */
.dmx-offers {
  display: grid;
  gap: 14px;
}
.dmx-offers-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.dmx-offers-heading > div:first-child {
  flex: 1 1 280px;
}
.dmx-offers-heading h2 {
  margin: 2px 0;
  font: 400 clamp(24px, 2.6vw, 30px) / 1.4 var(--v-display);
}
.dmx-offers-heading p {
  margin: 0;
  color: var(--v-muted);
}
.dmx-offer-instant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  font-weight: 800;
  cursor: pointer;
}
.dmx-offer-instant:has(input:checked) {
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
.dmx-offer-sort {
  display: grid;
  gap: 2px;
  color: var(--v-muted);
  font-size: 12px;
}
.dmx-offer-sort select {
  min-width: 190px;
  border-color: var(--v-edge);
  color: var(--v-ink);
  font-weight: 700;
}
.dmx-offer-list {
  display: grid;
  gap: 14px;
}
.dmx-offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto minmax(220px, auto);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.dmx-offer:hover {
  transform: translate(1px, -1px);
  box-shadow: var(--v-shadow-card);
}
.dmx-offer:target {
  box-shadow: 0 0 0 4px var(--v-focus), var(--v-shadow-card);
}
.dmx-offer-official {
  background: linear-gradient(90deg, transparent calc(100% - 8px), var(--v-yellow) 0), var(--v-card);
}
.dmx-offer > .dmx-official-label,
.dmx-offer > .dmx-sponsored-label {
  position: absolute;
  top: -13px;
  inset-inline-start: 18px;
}
.dmx-offer-official > .dmx-sponsored-label {
  inset-inline-start: 220px;
}
.dmx-offer-seller {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.dmx-offer-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--v-edge);
  border-radius: 50%;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  font: 400 22px/1 var(--v-display);
}
.dmx-offer-seller > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dmx-offer-seller a {
  justify-self: start;
  color: var(--v-ink);
  font-size: 15px;
  font-weight: 800;
}
.dmx-offer-seller a:hover {
  color: var(--v-link);
}
.dmx-offer-seller .dmx-badge {
  justify-self: start;
}
.dmx-offer-reputation,
.dmx-offer-history {
  color: var(--v-muted);
  font-size: 12.5px;
}
.dmx-offer-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.dmx-signal {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--v-card-2);
  color: var(--v-muted);
  font-size: 11.5px;
  font-weight: 700;
}
.dmx-signal.is-online {
  background: color-mix(in srgb, var(--v-mint) 16%, transparent);
  color: var(--v-mint);
}
.dmx-signal.is-online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: currentColor;
}
.dmx-offer-delivery {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-inline-start: 16px;
  border-inline-start: 2px dashed var(--v-line);
  font-size: 13px;
}
.dmx-offer-delivery strong {
  color: var(--v-ink);
}
.dmx-offer-delivery small {
  color: var(--v-muted);
}
.dmx-offer-conditions {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dmx-instant-badge {
  justify-self: start;
  padding: 0 8px;
  border: 1.5px solid var(--v-edge);
  border-radius: 999px;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  font-size: 11.5px;
  font-weight: 800;
}
.dmx-offer-price {
  color: var(--v-ink);
  font: 400 24px/1.2 var(--v-display);
  white-space: nowrap;
}
.dmx-offer .dmx-order-field {
  grid-column: 1 / -1;
}
.dmx-offer-purchase {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: end;
  gap: 4px 10px;
  padding-inline-start: 18px;
  border-inline-start: 2px dashed var(--v-edge);
}
.dmx-offer-quantity {
  display: grid;
  gap: 2px;
  color: var(--v-muted);
  font-size: 12px;
}
.dmx-offer-quantity input {
  text-align: center;
}
.dmx-offer-purchase .button {
  white-space: nowrap;
}
.dmx-stock-hint {
  grid-column: 1 / -1;
  color: var(--v-muted);
  font-size: 11.5px;
}
.dmx-buy-result {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px 12px;
  border-radius: var(--v-radius-sm);
  background: color-mix(in srgb, var(--v-mint) 14%, transparent);
  color: var(--v-ink);
  font-weight: 700;
}
.dmx-buy-result.error {
  background: color-mix(in srgb, var(--v-coral) 14%, transparent);
}
.dmx-buy-result .button {
  min-height: 34px;
  padding: 2px 12px;
}
.dmx-order-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.dmx-order-field .required {
  color: var(--v-coral);
}
.dmx-protection {
  padding: 16px 18px;
  border: 2px dashed var(--v-mint);
  border-radius: var(--v-radius);
  background: color-mix(in srgb, var(--v-mint) 8%, var(--v-card));
}
.dmx-protection strong {
  color: var(--v-ink);
}
.dmx-protection p {
  margin: 4px 0 0;
  color: var(--v-muted);
}
.dmx-offers > .dmx-empty {
  margin: 0;
}

/* ---------- Reviews ---------- */
.dmx-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.dmx-reviews-head h2 {
  margin: 0;
  font: 400 24px/1.4 var(--v-display);
}
.dmx-reviews-head p {
  margin: 0;
  color: var(--v-muted);
}
.dmx-rating-summary {
  display: grid;
  justify-items: center;
  min-width: 112px;
  padding: 10px 16px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  font: 400 30px/1.1 var(--v-display);
  transform: rotate(-3deg);
}
.dmx-rating-summary small {
  font: 700 12px/1.6 var(--v-body);
}
.dmx-review-list {
  display: grid;
  gap: 12px;
}
.dmx-public-review {
  padding: 14px 16px;
  border: 2px solid var(--v-line);
  border-radius: var(--v-radius-sm);
  background: var(--v-card-2);
}
.dmx-public-review header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dmx-public-review header strong {
  padding: 0 8px;
  border: 1.5px solid var(--v-edge);
  border-radius: 8px;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
.dmx-public-review header time {
  margin-inline-start: auto;
  color: var(--v-muted);
  font-size: 12px;
}
.dmx-public-review > small {
  display: block;
  margin-top: 6px;
  color: var(--v-muted);
}
.dmx-public-review p {
  margin: 6px 0 0;
  color: var(--v-ink);
  line-height: 2;
}
.dmx-review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed var(--v-line);
}
.dmx-review-form .wide,
.dmx-review-form > p,
.dmx-review-form > .button {
  grid-column: 1 / -1;
}
.dmx-review-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.dmx-review-form > .button {
  justify-self: start;
}
details:has(> .dmx-review-form) > summary,
.dmx-reviews details > summary {
  display: inline-flex;
  margin-top: 16px;
  color: var(--v-link);
  font-weight: 800;
  cursor: pointer;
}
.dmx-review-locked {
  margin-top: 14px;
  color: var(--v-muted);
}

/* Quantity fields */
.quantity {
  display: inline-flex;
}
.quantity input.qty {
  width: 78px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dmx-offer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .dmx-offer-purchase {
    grid-column: 1 / -1;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 14px 0 0;
    border-inline-start: 0;
    border-top: 2px dashed var(--v-edge);
  }
}
@media (max-width: 900px) {
  .dmx-catalog-layout,
  .dmx-product-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .dmx-filters,
  .dmx-gallery {
    position: static;
  }
  .dmx-filter-panel > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
  }
  .dmx-filter-panel > summary::-webkit-details-marker {
    display: none;
  }
  .dmx-filter-panel > summary span {
    margin-inline-start: auto;
  }
  .dmx-filter-panel[open] > summary {
    border-bottom: 2px dashed var(--v-line);
  }
  .dmx-gallery-stage {
    aspect-ratio: 16 / 10;
  }
  .dmx-catalog-intro {
    padding: 20px;
  }
  .dmx-catalog-symbol {
    width: 70px;
    height: 70px;
  }
  .dmx-catalog-symbol .dmx-icon {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 640px) {
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .dmx-product-card {
    --stub: 44px;
  }
  .dmx-card-main {
    padding: 6px 6px 0;
  }
  .dmx-card-copy {
    padding: 8px 4px 10px;
  }
  .woocommerce-loop-product__title {
    font-size: 13.5px;
  }
  .dmx-card-price .price,
  .dmx-card-price .price .amount {
    font-size: 17px;
  }
  .dmx-card-price small {
    display: none;
  }
  .dmx-product-card > .button {
    padding-inline: 12px;
    font-size: 12.5px;
  }
  .dmx-product-art b {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
  .dmx-product-art span {
    display: none;
  }
  .dmx-catalog-symbol {
    display: none;
  }
  .dmx-offer {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px 16px;
  }
  .dmx-offer-delivery {
    padding: 10px 0 0;
    border-inline-start: 0;
    border-top: 2px dashed var(--v-line);
  }
  .dmx-offer-price {
    font-size: 26px;
  }
  .dmx-offer-official > .dmx-sponsored-label {
    inset-inline-start: auto;
    inset-inline-end: 18px;
  }
  .dmx-product-facts span {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    font-size: 12px;
    text-align: center;
  }
  .dmx-product-section {
    padding: 18px 16px;
  }
  .dmx-review-form {
    grid-template-columns: 1fr;
  }
  .dmx-share-button .dmx-share-url {
    display: none;
  }
}

/* Fixed plans and per-unit offers (2.4). */
.dmx-plan-picker {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
.dmx-plan-picker-title {
  color: var(--v-muted);
  font-size: 13px;
  font-weight: 700;
}
.dmx-plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dmx-plan-chip {
  display: grid;
  gap: 1px;
  min-width: 120px;
  padding: 9px 14px;
  border: 2px solid var(--v-line);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dmx-plan-chip b {
  font-size: 15px;
}
.dmx-plan-chip small {
  color: var(--v-muted);
  font-size: 11.5px;
}
.dmx-plan-chip em {
  color: var(--v-muted);
  font-size: 11px;
  font-style: normal;
}
.dmx-plan-chip:hover:not([disabled]) {
  border-color: var(--v-edge);
}
.dmx-plan-chip[aria-checked="true"] {
  border-color: var(--v-edge);
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  box-shadow: 3px 3px 0 var(--v-edge);
}
.dmx-plan-chip[aria-checked="true"] small,
.dmx-plan-chip[aria-checked="true"] em {
  color: inherit;
  opacity: 0.8;
}
.dmx-plan-chip[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.dmx-plan-chip:focus-visible {
  outline: 3px solid var(--v-focus);
  outline-offset: 2px;
}
form.dmx-offer[data-plan-off] {
  display: none;
}
.dmx-offer-price small {
  display: block;
  color: var(--v-muted);
  font: 600 11.5px/1.4 var(--v-body);
}
.dmx-offer-purchase:has([data-unit]) {
  grid-template-columns: 112px minmax(0, 1fr);
}
.dmx-offer-total {
  grid-column: 1 / -1;
  font-weight: 800;
}
@media (max-width: 760px) {
  .dmx-plan-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .dmx-plan-chip {
    flex: none;
    scroll-snap-align: start;
  }
}

/* Seller sale prices and public discount codes (2.4). */
.dmx-sale-was {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--v-muted);
  font: 600 13px/1.4 var(--v-body);
}
.dmx-sale-badge {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--v-coral);
  color: #fff;
  font-size: 11.5px;
}
.dmx-sale-ends {
  display: block;
  color: var(--v-muted);
  font: 600 11px/1.5 var(--v-body);
}
.dmx-offer-coupon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-self: start;
  gap: 2px 8px;
  margin-top: 4px;
  padding: 4px 10px;
  border: 1.5px dashed var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: color-mix(in srgb, var(--v-yellow) 22%, var(--v-card));
  color: var(--v-text);
  font: inherit;
  font-size: 12px;
  text-align: start;
  cursor: pointer;
}
.dmx-offer-coupon b {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.05em;
}
.dmx-offer-coupon[data-copied] {
  border-style: solid;
  border-color: var(--v-mint);
}
.dmx-offer-coupon:focus-visible {
  outline: 3px solid var(--v-focus);
  outline-offset: 2px;
}

/* 2.6: rail «همهٔ دسته‌ها», subcategories, folded empty categories */
.dmx-category-rail a[aria-current="true"] {
  border-color: var(--v-ink);
  background: var(--v-card-2);
}
.dmx-rail-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 40px;
  padding: 0 14px;
  border: 2px dashed var(--v-edge);
  border-radius: 999px;
  background: transparent;
  color: var(--v-ink);
  font: 800 14px/1 var(--v-body);
  cursor: pointer;
}
.dmx-rail-more .dmx-icon {
  width: 17px;
  height: 17px;
}
.dmx-subcategory-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -10px 0 20px;
}
.dmx-subcategory-rail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid var(--v-line);
  border-radius: 999px;
  background: var(--v-card);
  color: var(--v-text);
  font-size: 13px;
  font-weight: 700;
}
.dmx-subcategory-rail a small {
  color: var(--v-muted);
  font-size: 11px;
}
.dmx-subcategory-rail a[aria-current="page"] {
  border-color: var(--v-ink);
  background: var(--v-ink);
  color: var(--v-card);
}
.dmx-subcategory-rail a.is-empty {
  border-style: dashed;
  color: var(--v-muted);
}
.dmx-filter-content > a[aria-current="true"] {
  background: var(--v-card-2);
}
.dmx-filter-children {
  display: grid;
  gap: 1px;
  margin: 2px 14px 4px 0;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--v-line);
}
.dmx-filter-children a {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--v-text);
  font-size: 13px;
}
.dmx-filter-children a[aria-current="page"] {
  background: var(--v-ink);
  color: var(--v-card);
}
.dmx-filter-children small {
  color: var(--v-muted);
  font-size: 11px;
}
.dmx-filter-soon {
  margin-top: 6px;
  color: var(--v-muted);
}
.dmx-filter-soon summary {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.dmx-filter-soon a {
  display: block;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--v-muted);
  font-size: 13px;
}
.dmx-filter-soon a:hover,
.dmx-filter-soon a[aria-current="page"] {
  background: var(--v-card-2);
  color: var(--v-text);
}
.dmx-catalog-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.dmx-live-badge {
  justify-self: start;
  width: fit-content;
  padding: 1px 9px;
  border: 1.5px solid var(--v-coral);
  border-radius: 999px;
  color: var(--v-coral);
  font-size: 11.5px;
  font-weight: 800;
}

/* ===== 2.8: buy box, mobile buy bar, short seller list ===== */
.dmx-buy-now { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--v-line); }
.dmx-buy-now-seller { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dmx-buy-now-seller span { color: var(--v-muted); font-size: 13px; }
.dmx-buy-now-meta { color: var(--v-muted); font-size: 13px; }
.dmx-buy-now .button { min-height: 50px; font-size: 16px; justify-content: center; }
.dmx-buybar { display: none; }
.dmx-offers-more { display: flex; margin: 14px auto 0; }
form.dmx-offer.is-folded { display: none; }
form.dmx-offer .dmx-offer-history,
form.dmx-offer .dmx-offer-signals { display: none; }
form.dmx-offer.is-detailed .dmx-offer-history,
form.dmx-offer.is-detailed .dmx-offer-signals { display: block; }
.dmx-offer-more { margin-top: 6px; padding: 0; min-height: 0; border: 0; background: none; color: var(--v-link); font-size: 12px; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) {
  .dmx-buybar { position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--v-card); border-top: 1px solid var(--v-line); box-shadow: 0 -6px 20px #17193b14; }
  .dmx-buybar[hidden] { display: none; }
  .dmx-buybar small { display: block; color: var(--v-muted); font-size: 11px; }
  .dmx-buybar strong { font-size: 16px; color: var(--v-ink); }
  .dmx-buybar .button { flex: 0 0 auto; min-height: 46px; padding-inline: 22px; }
  body.single-product { padding-bottom: 76px; }
  .dmx-buy-now { display: none; }
}
