/* DigiStore Single Product — namespaced dgs-product-* (1.3.26 visual upgrade) */
:root {
  --dgs-product-bg: var(--dgs-design-bg, var(--dgs-design-bg));
  --dgs-product-surface: var(--dgs-design-card, var(--dgs-design-white));
  --dgs-product-brand: var(--dgs-design-brand, var(--dgs-design-brand));
  --dgs-product-brand-hover: var(--dgs-design-brand-hover, var(--dgs-design-brand-hover));
  --dgs-product-ink: var(--dgs-design-text, var(--dgs-design-slate));
  --dgs-product-muted: var(--dgs-design-muted, var(--dgs-design-muted));
  --dgs-product-line: var(--dgs-design-line, var(--dgs-design-line));
  --dgs-product-sale: var(--dgs-design-sale, var(--dgs-design-danger-soft));
  --dgs-product-ok: var(--dgs-design-brand-bright);
  --dgs-product-ok-bg: var(--dgs-design-tint-green);
  --dgs-product-danger-bg: #f8ecec;
  --dgs-product-info-bg: var(--dgs-design-bar);
  --dgs-product-radius: 12px;
  --dgs-product-radius-sm: 8px;
  --dgs-product-max: var(--dgs-design-max, 1240px);
  --dgs-product-serif: var(--dgs-design-serif, "Inter", "Segoe UI", system-ui, sans-serif);
  --dgs-product-sans: var(--dgs-design-sans, "Inter", "Segoe UI", system-ui, sans-serif);
}

.dgs-product-preview-shell {
  margin: 0;
  background: var(--dgs-product-bg);
  color: var(--dgs-product-ink);
  font-family: var(--dgs-product-sans);
}
.dgs-product-preview-note {
  margin: 0;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--dgs-product-muted);
  border-bottom: 1px solid var(--dgs-product-line);
  background: var(--dgs-design-white);
}
.dgs-product-preview-note code {
  font-size: 12px;
  background: #f0eee9;
  padding: 1px 6px;
  border-radius: 4px;
}

.dgs-product {
  --dgs-product-local: 1;
  color: var(--dgs-product-ink);
  font-family: var(--dgs-product-sans);
  background: var(--dgs-product-bg);
  padding: 22px 0 80px;
}
.dgs-product__wrap {
  width: min(100% - 40px, var(--dgs-product-max));
  margin: 0 auto;
  max-width: 100%;
}

.dgs-product__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 13px;
  color: var(--dgs-product-muted);
  margin-bottom: 22px;
}
.dgs-product__breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.dgs-product__breadcrumb a:hover { color: var(--dgs-product-brand); text-decoration: underline; }
.dgs-product__breadcrumb span[aria-current="page"] { color: var(--dgs-product-ink); }
.dgs-product__crumb-sep { opacity: 0.55; }

.dgs-product__main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr) minmax(250px, 320px);
  gap: 28px 22px;
  align-items: start;
}

/* Gallery */
.dgs-product__gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.dgs-product__thumbs-col { display: flex; flex-direction: column; gap: 8px; }
.dgs-product__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
  scrollbar-width: thin;
}
.dgs-product__thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-product-radius-sm);
  padding: 4px;
  background: var(--dgs-design-white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dgs-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dgs-product__thumb.is-active {
  border-color: var(--dgs-product-brand);
  box-shadow: 0 0 0 1px var(--dgs-product-brand);
}
.dgs-product__thumbs-more {
  border: 1px solid var(--dgs-product-line);
  background: var(--dgs-design-white);
  border-radius: 8px;
  height: 28px;
  cursor: pointer;
}
.dgs-product__stage {
  position: relative;
  background: var(--dgs-design-white);
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-product-radius);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dgs-product__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 12px;
  box-sizing: border-box;
}
.dgs-product__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: var(--dgs-design-radius-pill);
  border: 1px solid var(--dgs-product-line);
  background: var(--dgs-design-white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.dgs-product__zoom:hover { border-color: var(--dgs-product-brand); color: var(--dgs-product-brand); }

/* Buy column */
.dgs-product__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dgs-product__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dgs-product__badge--sale { background: #fdecea; color: var(--dgs-product-sale); }
.dgs-product__badge--stock { background: #e8f5e9; color: var(--dgs-product-ok); }
.dgs-product__badge--oos { background: #f5f5f5; color: #757575; }

.dgs-product__brand {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dgs-product-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dgs-product__title {
  margin: 0 0 10px;
  font-family: var(--dgs-product-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--dgs-product-brand);
  max-width: 28ch;
}
.dgs-product__short {
  margin: 0 0 12px;
  color: var(--dgs-product-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}
.dgs-product__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
}
.dgs-product__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--dgs-design-radius-pill);
  background: var(--dgs-product-ok-bg);
  color: var(--dgs-product-ok);
  font-size: 13px;
  font-weight: 600;
}
.dgs-product.outofstock .dgs-product__stock {
  background: var(--dgs-product-danger-bg);
  color: var(--dgs-product-sale);
}
.dgs-product__stars { color: var(--dgs-design-gold); letter-spacing: 1px; }
.dgs-product__meta-row a,
.dgs-product__meta-row button.linkish {
  color: var(--dgs-product-brand);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dgs-product__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  color: var(--dgs-product-brand);
  line-height: 1.2;
}
.dgs-product__price-row:has(+ .dgs-product__stockline--availability) {
  margin-bottom: 0;
}
.dgs-product__stockline--availability {
  margin: 6px 0 10px;
}
.dgs-product__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.dgs-product__availability.is-in {
  color: #1E7F3B;
}
.dgs-product__availability.is-backorder,
.dgs-product__availability.is-out {
  color: var(--dgs-product-muted, #5B6675);
}
.dgs-product__availability-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}
.dgs-product:has(.dgs-product__availability) .dgs-product__cart p.stock,
.dgs-product:has(.dgs-product__availability) .woocommerce-variation-availability {
  display: none;
}
.dgs-product__price {
  font-size: 30px;
  font-weight: 700;
  color: var(--dgs-product-brand);
}
.dgs-product__price.is-sale { color: var(--dgs-product-brand); }
.dgs-product__price-row del,
.dgs-product__price-row .price del {
  color: var(--dgs-product-muted);
  font-size: 18px;
  font-weight: 500;
}
.dgs-product__price-row ins {
  text-decoration: none;
  color: var(--dgs-product-brand);
}
.dgs-product__sku {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--dgs-product-muted);
}

.dgs-product__variations { margin: 18px 0 20px; }
.dgs-product__attr { margin-bottom: 16px; }
.dgs-product__attr-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
}
.dgs-product__attr-label strong { font-weight: 600; }
.dgs-product__stock-inline {
  color: var(--dgs-product-ok);
  font-size: 13px;
  font-weight: 500;
}
.dgs-product__stock-inline.is-oos { color: var(--dgs-product-sale); }
.dgs-product__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.dgs-product__swatch {
  width: 34px;
  height: 34px;
  border-radius: var(--dgs-design-radius-pill);
  border: 2px solid var(--dgs-design-white);
  box-shadow: 0 0 0 1px var(--dgs-design-line-warm);
  cursor: pointer;
  padding: 0;
}
.dgs-product__swatch.is-selected {
  box-shadow: 0 0 0 2px var(--dgs-design-white), 0 0 0 4px var(--dgs-product-ink);
}
.dgs-product__swatch:disabled,
.dgs-product__option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
}
.dgs-product__swatch:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, #999 47%, #999 53%, transparent 54%);
  border-radius: inherit;
}
.dgs-product__options { display: flex; flex-wrap: wrap; gap: 8px; }
.dgs-product__option {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--dgs-product-line);
  background: var(--dgs-design-white);
  cursor: pointer;
  font: inherit;
}
.dgs-product__option.is-selected {
  border-color: var(--dgs-product-brand);
  background: var(--dgs-design-tint-green-2);
  color: var(--dgs-product-brand);
  font-weight: 600;
}

.dgs-product__actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 22px;
}
.dgs-product__qty {
  display: inline-grid;
  grid-template-columns: 36px 48px 36px;
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-design-radius-sm);
  overflow: hidden;
  background: var(--dgs-design-white);
  min-height: 48px;
}
.dgs-product__qty button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.dgs-product__qty input {
  border: 0;
  border-left: 1px solid var(--dgs-product-line);
  border-right: 1px solid var(--dgs-product-line);
  text-align: center;
  font: inherit;
  width: 100%;
  -moz-appearance: textfield;
}
.dgs-product__qty input::-webkit-outer-spin-button,
.dgs-product__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dgs-product__atc {
  border: 0;
  border-radius: var(--dgs-design-radius-sm);
  background: var(--dgs-product-brand);
  color: var(--dgs-design-white);
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dgs-product__atc:hover { background: var(--dgs-product-brand-hover); }
.dgs-product__atc:active { transform: translateY(1px); }
.dgs-product__wish {
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-design-radius-sm);
  background: var(--dgs-design-white);
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  color: var(--dgs-product-ink);
  white-space: nowrap;
}
.dgs-product__wish:hover { border-color: var(--dgs-product-brand); color: var(--dgs-product-brand); }

.dgs-product__services {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--dgs-product-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dgs-product__services li {
  text-align: center;
  font-size: 12px;
  color: var(--dgs-product-muted);
  line-height: 1.35;
}
.dgs-product__services .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: var(--dgs-design-radius-pill);
  background: var(--dgs-design-tint-green-2);
  color: var(--dgs-product-brand);
  font-size: 16px;
}
.dgs-product__services strong {
  display: block;
  color: var(--dgs-product-ink);
  font-size: 12px;
  margin-bottom: 2px;
}

.dgs-product__features {
  border: 1px solid var(--dgs-product-line);
  border-radius: 12px;
  background: var(--dgs-design-white);
  padding: 16px 18px 18px;
}
.dgs-product__features-title {
  margin: 0 0 14px;
  font-family: var(--dgs-product-serif);
  font-size: 18px;
  font-weight: 600;
}
.dgs-product__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.dgs-product__feature {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.dgs-product__feature .ico {
  width: 36px;
  height: 36px;
  border-radius: var(--dgs-design-radius-pill);
  display: grid;
  place-items: center;
  background: var(--dgs-design-tint-green-2);
  color: var(--dgs-product-brand);
}

/* Tabs */
.dgs-product__tabs-block {
  margin-top: 48px;
  background: var(--dgs-design-white);
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-design-radius);
  padding: 0 0 8px;
  overflow: hidden;
}
.dgs-product__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 22px;
  padding: 0 22px;
  border-bottom: 1px solid var(--dgs-product-line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.dgs-product__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 16px 2px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--dgs-product-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.dgs-product__tab[aria-selected="true"],
.dgs-product__tab.is-active {
  color: var(--dgs-product-brand);
  border-bottom-color: var(--dgs-product-brand);
}
.dgs-product__tab:focus-visible {
  outline: 2px solid var(--dgs-product-brand);
  outline-offset: 2px;
}
.dgs-product__panels { padding: 28px 28px 24px; }
.dgs-product__panel[hidden] { display: none !important; }
.dgs-product__desc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}
.dgs-product__desc-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dgs-product-ink);
  min-width: 0;
}
.dgs-product__desc-copy h2,
.dgs-product__desc-copy h3 {
  margin: 0 0 12px;
  font-family: var(--dgs-product-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--dgs-product-brand);
}
.dgs-product__desc-copy p {
  margin: 0 0 14px;
  color: var(--dgs-product-ink);
  line-height: 1.7;
}
.dgs-product__desc-copy ul,
.dgs-product__desc-copy ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: var(--dgs-product-ink);
}
.dgs-product__desc-copy img,
.dgs-product__desc-copy video,
.dgs-product__desc-copy iframe {
  max-width: 100%;
  height: auto;
}
.dgs-product__desc-copy table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 0 0 16px;
}
.dgs-product__desc-copy table th,
.dgs-product__desc-copy table td {
  border-bottom: 1px solid var(--dgs-product-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.dgs-product__check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dgs-product__check-list li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 10px;
  line-height: 1.45;
}
.dgs-product__check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dgs-product-brand);
  font-weight: 700;
}

.dgs-product__video-card {
  border: 1px solid var(--dgs-product-line);
  border-radius: 12px;
  overflow: hidden;
  background: #efece6;
}
.dgs-product__video-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #efece6;
}
.dgs-product__video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dgs-product__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: var(--dgs-design-radius-pill);
  background: var(--dgs-design-white);
  color: var(--dgs-product-brand);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.dgs-product__video-caption {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--dgs-product-muted);
}

.dgs-product__spec-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 720px;
}
.dgs-product__spec-table th,
.dgs-product__spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dgs-product-line);
  font-weight: 500;
}
.dgs-product__spec-table th {
  width: 40%;
  color: var(--dgs-product-muted);
  font-weight: 600;
}
.dgs-product__demo-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--dgs-product-muted);
  background: var(--dgs-design-bg-soft);
  border: 1px dashed var(--dgs-product-line);
  border-radius: 8px;
  padding: 10px 12px;
}
.dgs-product__review,
.dgs-product__qa-item {
  border-bottom: 1px solid var(--dgs-product-line);
  padding: 14px 0;
}
.dgs-product__review h3,
.dgs-product__qa-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.dgs-product__review p,
.dgs-product__qa-item p {
  margin: 0;
  color: var(--dgs-product-muted);
  line-height: 1.55;
}
.dgs-product__review-meta {
  font-size: 13px;
  color: var(--dgs-product-muted);
  margin-bottom: 6px;
}

/* Related */
.dgs-product__related { margin-top: 48px; }
.dgs-product__related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.dgs-product__related-head h2 {
  margin: 0;
  font-family: var(--dgs-product-serif);
  font-size: 28px;
  font-weight: 600;
}
.dgs-product__related-head a {
  color: var(--dgs-product-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.dgs-product__related-head a:hover { text-decoration: underline; }
.dgs-product__related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.dgs-product__card {
  background: var(--dgs-design-white);
  border: 1px solid var(--dgs-product-line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dgs-product__card:hover {
  border-color: var(--dgs-design-line-warm);
  transform: translateY(-2px);
}
.dgs-product__card-media {
  position: relative;
  aspect-ratio: 1;
  background: #f3f1ec;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dgs-product__card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dgs-product__card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--dgs-product-brand);
  color: var(--dgs-design-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.dgs-product__card-badge.is-sale { background: var(--dgs-product-sale); }
.dgs-product__card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.dgs-product__card-rating {
  font-size: 12px;
  color: var(--dgs-product-muted);
  margin-bottom: 6px;
  min-height: 16px;
}
.dgs-product__card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dgs-product__card-price { font-weight: 700; font-size: 15px; }
.dgs-product__card-price del {
  margin-left: 6px;
  color: var(--dgs-product-muted);
  font-weight: 500;
  font-size: 12px;
}
.dgs-product__card-atc {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--dgs-product-brand);
  color: var(--dgs-design-white);
  cursor: pointer;
}

/* Sticky / overlays */
.dgs-product__sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--dgs-product-line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(110%);
  transition: transform 0.2s ease;
  display: none;
}
.dgs-product__sticky.is-visible { transform: translateY(0); }
.dgs-product__sticky-inner {
  width: min(100% - 24px, var(--dgs-product-max));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dgs-product__sticky-title {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48vw;
}
.dgs-product__sticky-price {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--dgs-product-sale);
  font-weight: 700;
}
.dgs-product__atc--sticky { min-width: 140px; min-height: 42px; }

.dgs-product__lightbox,
.dgs-product__video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 20, 20, 0.86);
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
  cursor: zoom-out;
}
.dgs-product__lightbox[hidden],
.dgs-product__video-modal[hidden] { display: none !important; }
.dgs-product__lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 80vh;
  object-fit: contain;
  background: var(--dgs-design-white);
  border-radius: var(--dgs-design-radius-sm);
  cursor: default;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.dgs-product__lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--dgs-design-radius-pill);
  background: var(--dgs-design-white);
  color: var(--dgs-design-brand);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.dgs-product__lightbox-close:hover,
.dgs-product__lightbox-close:focus-visible {
  background: var(--dgs-design-brand);
  color: var(--dgs-design-white);
  outline: none;
}
.dgs-product__lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--dgs-design-radius-pill);
  background: var(--dgs-design-white);
  color: var(--dgs-design-brand);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.dgs-product__lightbox-nav[data-dgs-product-lightbox-prev] { left: max(12px, env(safe-area-inset-left, 0px)); }
.dgs-product__lightbox-nav[data-dgs-product-lightbox-next] { right: max(12px, env(safe-area-inset-right, 0px)); }
.dgs-product__video-modal video {
  width: min(92vw, 960px);
  max-height: 80vh;
  background: #000;
  border-radius: var(--dgs-design-radius-sm);
}

.dgs-product__toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--dgs-product-ink);
  color: var(--dgs-design-white);
  padding: 12px 16px;
  border-radius: var(--dgs-design-radius-sm);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 70;
  max-width: min(92vw, 420px);
  text-align: center;
}
.dgs-product__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Native WooCommerce cart / variations — visual wrap only */
.dgs-product__buy {
  min-width: 0;
}
.dgs-product__cart {
  margin: 14px 0 10px;
}
.dgs-product__cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.dgs-product__cart form.variations_form {
  display: block;
}
.dgs-product__cart form.variations_form .variations {
  width: 100%;
  margin: 0 0 14px;
  border: 0;
}
.dgs-product__cart form.variations_form .variations th,
.dgs-product__cart form.variations_form .variations td {
  display: block;
  text-align: left;
  padding: 0 0 8px;
  border: 0;
  font-weight: 600;
  font-size: 13px;
}
.dgs-product__cart form.variations_form select {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-product-radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  background: var(--dgs-design-white);
  font: inherit;
}
.dgs-product__cart form.variations_form .single_variation_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.dgs-product__cart .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-product-radius-sm);
  overflow: hidden;
  background: var(--dgs-design-input);
  color: var(--dgs-design-text);
  min-height: 46px;
  width: auto;
}
.dgs-product__cart .quantity.dgs-product__quantity--stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(48px, 72px) 44px;
}
.dgs-product__cart .quantity .qty {
  width: 64px;
  min-width: 0;
  min-height: 46px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 4px;
  background: transparent;
  color: var(--dgs-product-ink);
  box-shadow: none;
  outline: none;
  -moz-appearance: textfield;
}
.dgs-product__cart .quantity.dgs-product__quantity--stepper .qty {
  width: 100%;
  border-left: 1px solid var(--dgs-product-line);
  border-right: 1px solid var(--dgs-product-line);
}
.dgs-product__cart .quantity .qty::-webkit-outer-spin-button,
.dgs-product__cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dgs-product__qty-btn {
  border: 0;
  background: var(--dgs-design-bg-soft);
  color: var(--dgs-product-brand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  min-height: 46px;
  padding: 0;
}
.dgs-product__qty-btn:hover,
.dgs-product__qty-btn:focus-visible {
  background: var(--dgs-product-ok-bg);
  color: var(--dgs-product-brand);
  outline: none;
}
.dgs-product__qty-btn:active {
  background: #dce8e1;
}
.dgs-product__cart .single_add_to_cart_button,
.dgs-product__cart .button.alt,
.dgs-product .woocommerce-variation-add-to-cart .button {
  border: 0;
  background: var(--dgs-product-brand);
  color: var(--dgs-design-white);
  border-radius: var(--dgs-product-radius-sm);
  min-height: 48px;
  height: 48px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
}
.dgs-product__cart .single_add_to_cart_button:hover,
.dgs-product__cart .button.alt:hover {
  background: var(--dgs-product-brand-hover);
  color: var(--dgs-design-white);
}
.dgs-product__cart .single_add_to_cart_button:disabled,
.dgs-product__cart .single_add_to_cart_button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dgs-product__cart a.buy-now,
.dgs-product__cart button.buy-now,
.dgs-product__cart .buy-now-button,
.dgs-product__cart .wc-buy-now-btn,
.dgs-product__cart .button.buy_now,
.dgs-product__cart [class*="buy-now"]:not(div):not(span):not(p) {
  min-height: 48px;
  height: 48px;
  border-radius: var(--dgs-product-radius-sm);
  padding: 0 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* PC buy actions: fixed button widths; qty unchanged. Mobile keeps 100% via product-responsive. */
@media (min-width: 721px) {
  .dgs-product__cart form.cart,
  .dgs-product__cart form.variations_form .single_variation_wrap {
    align-items: stretch;
  }
  .dgs-product__cart .single_add_to_cart_button,
  .dgs-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 220px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 220px;
  }
  .dgs-product__cart a.buy-now,
  .dgs-product__cart button.buy-now,
  .dgs-product__cart .buy-now-button,
  .dgs-product__cart .wc-buy-now-btn,
  .dgs-product__cart .button.buy_now,
  .dgs-product__cart [class*="buy-now"]:not(div):not(span):not(p) {
    width: 180px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 180px;
  }
}
.dgs-product__cart .group_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.dgs-product__price-row .price,
.dgs-product__price-row .woocommerce-Price-amount,
.dgs-product__sticky-price .woocommerce-Price-amount {
  font-weight: 700;
  color: var(--dgs-product-brand);
}
.dgs-product__price-row del {
  color: var(--dgs-product-muted);
  font-weight: 500;
  margin-left: 6px;
}

/* PAngV meta — do not inherit 30px/700 from .dgs-product__price-row.
 * No !important: Fine-tune (0,4,2) must be able to restyle unit/legal hooks. */
.dgs-product__price-row .dgs-price-meta,
.dgs-product__price-row .dgs-unit-price,
.dgs-product__price-row .dgs-unit-price .price-unit,
.dgs-product__price-row .dgs-unit-price .wc-gzd-additional-info,
.dgs-product__price-row .dgs-unit-price p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--dgs-product-muted);
  opacity: 1;
  margin: 0;
}
.dgs-product__price-row .dgs-price-meta,
.dgs-product__price-row .dgs-legal-info,
.dgs-product__price-row .dgs-legal-info .wc-gzd-additional-info,
.dgs-product__price-row .dgs-legal-info .legal-price-info,
.dgs-product__price-row .dgs-legal-info p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--dgs-product-muted, #5B6675);
  margin: 0;
}
.dgs-product__price-row .dgs-legal-info a,
.dgs-product__price-row .dgs-price-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 400;
}
.dgs-product__price-row .dgs-price-wrap {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  width: 100%;
  flex-basis: 100%;
  gap: 4px 8px;
}
.dgs-product__price-row .dgs-price-main {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.dgs-product__price-row .dgs-energy-sheet-line,
.dgs-product__price-row .dgs-price-meta {
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
}
.dgs-product__price-row .dgs-legal-info__tax,
.dgs-product__price-row .dgs-legal-info,
.dgs-product__price-row .dgs-legal-delivery {
  white-space: nowrap;
}
.dgs-product__price-row .dgs-legal-info__ship {
  display: inline;
}
.dgs-product__cats,
.dgs-product__sku {
  font-size: 13px;
  color: var(--dgs-product-muted);
  margin: 4px 0;
}
.dgs-product__cats a {
  color: var(--dgs-product-brand);
  text-decoration: none;
  font-weight: 600;
}
.dgs-product__cats a:hover { text-decoration: underline; }
.dgs-product__features { margin-top: 16px; }

/* Buy-column compact attributes (real Woo data only) */
.dgs-product__highlights {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-product-radius);
  background: var(--dgs-design-white);
  display: grid;
  gap: 8px;
}
.dgs-product__highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 12px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.35;
}
.dgs-product__highlight dt {
  margin: 0;
  color: var(--dgs-product-muted);
  font-weight: 600;
}
.dgs-product__highlight dd {
  margin: 0;
  color: var(--dgs-product-ink);
  font-weight: 600;
  text-align: right;
}
.dgs-product__policy-link {
  margin: 8px 0 0;
  font-size: 13px;
}
.dgs-product__policy-link a {
  color: var(--dgs-product-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reviews form — brand submit / inputs */
.dgs-product__panel #reviews,
.dgs-product__panel .woocommerce-Reviews {
  max-width: 720px;
}
.dgs-product__panel #reviews .woocommerce-Reviews-title,
.dgs-product__panel #reply-title {
  font-family: var(--dgs-product-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--dgs-product-brand);
  margin: 0 0 14px;
}
.dgs-product__panel .comment-form-rating label,
.dgs-product__panel .comment-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dgs-product-ink);
}
.dgs-product__panel .comment-form-rating p.stars {
  margin: 0 0 14px;
}
.dgs-product__panel .comment-form-rating p.stars a {
  color: var(--dgs-design-text);
  font-size: 18px;
}
.dgs-product__panel .comment-form-rating p.stars a::before {
  color: var(--dgs-design-star);
}
.dgs-product__panel .comment-form input[type="text"],
.dgs-product__panel .comment-form input[type="email"],
.dgs-product__panel .comment-form textarea,
.dgs-product__panel #comment {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--dgs-product-line);
  border-radius: 12px;
  background: var(--dgs-design-input);
  color: var(--dgs-design-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  min-height: 46px;
  box-shadow: none;
}
.dgs-product__panel .comment-form textarea,
.dgs-product__panel #comment {
  min-height: 140px;
  resize: vertical;
}
.dgs-product__panel .comment-form input:focus,
.dgs-product__panel .comment-form textarea:focus,
.dgs-product__panel #comment:focus {
  outline: none;
  border-color: var(--dgs-product-brand);
  box-shadow: 0 0 0 3px var(--dgs-design-shadow-brand-12);
}
.dgs-product__panel .comment-form .form-submit {
  margin: 12px 0 0;
}
.dgs-product__panel .comment-form #submit,
.dgs-product__panel .comment-form input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--dgs-product-brand) !important;
  color: var(--dgs-design-white) !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.dgs-product__panel .comment-form #submit:hover,
.dgs-product__panel .comment-form input[type="submit"]:hover {
  background: var(--dgs-product-brand-hover) !important;
}
.dgs-product__panel .comment-form #submit:focus-visible,
.dgs-product__panel .comment-form input[type="submit"]:focus-visible {
  outline: 2px solid var(--dgs-product-brand);
  outline-offset: 2px;
}
.dgs-product__panel .comment-form #submit:disabled,
.dgs-product__panel .comment-form input[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/*
 * WooCommerce notices — document flow, brand-aligned.
 * Scope: single product page (wrapper may sit in .dgs-product__wrap).
 */
body.single-product .woocommerce-notices-wrapper,
.dgs-product .woocommerce-notices-wrapper {
  margin: 0 0 18px;
  width: 100%;
  max-width: 100%;
}
body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-info,
body.single-product .woocommerce-notices-wrapper .woocommerce-error,
.dgs-product .woocommerce-message,
.dgs-product .woocommerce-info,
.dgs-product .woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: var(--dgs-product-radius);
  border: 1px solid var(--dgs-product-line);
  box-shadow: none;
  list-style: none !important;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dgs-product-ink);
  word-break: break-word;
}
body.single-product .woocommerce-message,
.dgs-product .woocommerce-message,
body.single-product .woocommerce-info,
.dgs-product .woocommerce-info,
body.single-product .woocommerce-error,
.dgs-product .woocommerce-error {
  background: var(--dgs-design-card);
  color: var(--dgs-design-text);
  border: 1px solid var(--dgs-design-line);
  border-left: 3px solid var(--dgs-design-brand);
  border-radius: 8px;
}
body.single-product .woocommerce-message,
.dgs-product .woocommerce-message {
  border-left-color: var(--dgs-design-success);
}
body.single-product .woocommerce-info,
.dgs-product .woocommerce-info {
  border-left-color: var(--dgs-design-brand);
}
body.single-product .woocommerce-error,
.dgs-product .woocommerce-error {
  border-left-color: var(--dgs-design-sale);
}
body.single-product .woocommerce-message::before,
body.single-product .woocommerce-info::before,
body.single-product .woocommerce-error::before,
.dgs-product .woocommerce-message::before,
.dgs-product .woocommerce-info::before,
.dgs-product .woocommerce-error::before {
  display: none;
}
body.single-product .woocommerce-message .button,
body.single-product .woocommerce-info .button,
body.single-product .woocommerce-error .button,
.dgs-product .woocommerce-message .button,
.dgs-product .woocommerce-info .button,
.dgs-product .woocommerce-error .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  float: none !important;
  order: 2;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--dgs-product-radius-sm);
  background: var(--dgs-product-brand) !important;
  color: var(--dgs-design-white) !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
}
body.single-product .woocommerce-message .button:hover,
.dgs-product .woocommerce-message .button:hover {
  background: var(--dgs-product-brand-hover) !important;
}

/* Specs + reviews readability */
.dgs-product__spec-table th {
  width: 36%;
  color: var(--dgs-product-muted);
  font-weight: 600;
  font-size: 14px;
}
.dgs-product__spec-table td {
  color: var(--dgs-product-ink);
  font-size: 14px;
}
.dgs-product__panel .woocommerce-Reviews,
.dgs-product__panel #reviews {
  max-width: 720px;
}
.dgs-product__panel .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dgs-product__panel .comment_container {
  border-bottom: 1px solid var(--dgs-product-line);
  padding: 14px 0;
}
.dgs-product__panel .star-rating {
  color: var(--dgs-design-star);
}

/* Related cards reuse archive card markup */
.dgs-product__related { margin-top: 40px; }
.dgs-product__related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dgs-product__related-grid .dgs-archive__card {
  background: var(--dgs-product-surface);
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-product-radius);
  padding: 10px;
  margin: 0;
  min-width: 0;
}
.dgs-product__related-grid .dgs-archive__card:hover {
  border-color: var(--dgs-design-line-warm);
  box-shadow: 0 8px 20px var(--dgs-design-shadow-brand-08);
}
.dgs-product__related-grid .dgs-archive__card-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--dgs-design-radius-sm);
  overflow: hidden;
  display: block;
  background: var(--dgs-design-white);
  margin-bottom: 10px;
}
.dgs-product__related-grid .dgs-archive__card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  box-sizing: border-box;
}
.dgs-product__related-grid .dgs-archive__card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
}
.dgs-product__related-grid .dgs-archive__card-title a {
  color: var(--dgs-product-brand);
  text-decoration: none;
}
.dgs-product__related-grid .dgs-archive__card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dgs-product__related-grid .dgs-archive__price {
  font-weight: 700;
  color: var(--dgs-product-brand);
}
.dgs-product__related-grid .dgs-archive__price del {
  color: var(--dgs-product-muted);
  font-weight: 500;
  font-size: 12px;
}
.dgs-product__related-grid .dgs-archive__atc {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--dgs-design-radius-sm);
  background: var(--dgs-product-brand);
  color: var(--dgs-design-white);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.dgs-product__feature {
  background: var(--dgs-design-white);
  border: 1px solid var(--dgs-product-line);
  border-radius: var(--dgs-design-radius-sm);
  padding: 12px;
}
.dgs-product__feature strong { display: block; font-size: 13px; }
.dgs-product__feature span { font-size: 12px; color: var(--dgs-product-muted); }

@media (max-width: 900px) {
  .dgs-product__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ——— APP download card (Website PDP; mirrors checkout gate) ——— */
.dgs-product__app-card {
  --dgs-co-card: var(--dgs-product-surface);
  --dgs-co-brand: var(--dgs-product-brand);
  --dgs-co-text: var(--dgs-product-ink);
  --dgs-co-muted: var(--dgs-product-muted);
  --dgs-co-line: var(--dgs-product-line);
  --dgs-co-serif: var(--dgs-product-serif);
  margin: 14px 0 0;
  background: var(--dgs-product-surface);
  border: 1px solid var(--dgs-product-line);
  border-radius: 14px;
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
}
.dgs-product__app-card .dgs-co__app-gate__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dgs-product__app-card .dgs-co__app-gate__title {
  margin: 0 0 8px;
  font-family: var(--dgs-product-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--dgs-product-brand);
  letter-spacing: -0.02em;
}
.dgs-product__app-card .dgs-co__app-gate__text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dgs-product-ink);
}
.dgs-product__app-card .dgs-co__app-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.dgs-product__app-card .dgs-co__app-gate__actions .dgs-dl-group {
  flex-direction: column;
  width: 100%;
}
.dgs-product__app-card .dgs-co__app-gate__actions .dgs-dl-btn {
  width: 100%;
  box-sizing: border-box;
}
.dgs-product__app-card .dgs-co__app-gate__open {
  display: inline-block;
  margin-top: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--dgs-product-brand);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.dgs-product__app-card .dgs-co__app-gate__qr {
  order: 2;
  text-align: center;
}
.dgs-product__app-card .dgs-co__app-gate__qr img {
  display: inline-block;
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--dgs-product-line);
  background: var(--dgs-design-white);
}
.dgs-product__app-card .dgs-co__app-gate__copy {
  order: 1;
}
@media (min-width: 769px) {
  .dgs-product__app-card .dgs-co__app-gate__inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .dgs-product__app-card .dgs-co__app-gate__qr {
    order: 0;
    flex: 0 0 160px;
  }
  .dgs-product__app-card .dgs-co__app-gate__copy {
    order: 1;
    flex: 1;
  }
}
@media (max-width: 768px) {
  .dgs-product__app-card .dgs-co__app-gate__qr {
    display: none;
  }
}

/* R4 product page */
body.dgs-design-body .dgs-product__stage,
body.dgs-design-body .dgs-product__thumb {
  background: var(--dgs-design-surface);
  border: 1px solid var(--dgs-design-line);
}
body.dgs-design-body .dgs-product__thumb.is-active {
  border: 2px solid var(--dgs-design-brand);
  box-shadow: none;
}
body.dgs-design-body .dgs-product__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__subtitle,
body.dgs-design-body .dgs-product__rating,
body.dgs-design-body .dgs-product__rating a {
  color: var(--dgs-design-muted);
  text-decoration: none;
}
.dgs-product__highlights {
  margin: 8px 0 12px;
  padding-left: 1.2em;
  list-style: disc;
  font-size: 15px;
  line-height: 1.45;
  color: var(--dgs-design-muted, var(--dgs-product-muted));
}
.dgs-product__highlights li {
  margin: 0 0 4px;
}
.dgs-product__highlights li:last-child {
  margin-bottom: 0;
}
body.dgs-design-body .dgs-product__rating .stars,
body.dgs-design-body .dgs-product__rating .star-rating,
body.dgs-design-body .dgs-product__rating .star-rating::before,
body.dgs-design-body .dgs-product__rating .star-rating span::before {
  color: #F6A203;
}
body.dgs-design-body .dgs-product__price-row,
body.dgs-design-body .dgs-product__price-row .price,
body.dgs-design-body .dgs-product__price-row .woocommerce-Price-amount {
  color: var(--dgs-design-text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}
body.dgs-design-body .dgs-product__price-row del,
body.dgs-design-body .dgs-product__price-row del .woocommerce-Price-amount {
  color: var(--dgs-design-muted);
  font-size: 18px;
  font-weight: 500;
}
body.dgs-design-body .dgs-product__price-row p.price.price-unit,
body.dgs-design-body .dgs-product__price-row .price-unit {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--dgs-design-muted);
  margin: 0;
}
body.dgs-design-body .dgs-product__price-row .dgs-unit-price .price-unit,
body.dgs-design-body .dgs-product__price-row .dgs-unit-price .price-unit * {
  font-size: 14px;
  font-weight: 500;
  color: var(--dgs-design-muted);
  line-height: 1.4;
}
body.dgs-design-body .dgs-product__plugin,
body.dgs-design-body .dgs-product__price-row .woocommerce-price-suffix {
  color: var(--dgs-design-muted);
  font-size: 14px;
  font-weight: 500;
}
body.dgs-design-body .dgs-product__stockline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__bullets {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
body.dgs-design-body .dgs-product__bullets li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dgs-design-brand);
}
body.dgs-design-body .dgs-product__buy {
  background: var(--dgs-design-card);
  border: 1px solid var(--dgs-design-line);
  border-radius: 16px;
  padding: 16px;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__cart .quantity.dgs-product__quantity--stepper {
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}
body.dgs-design-body .dgs-product__cart .quantity .qty,
body.dgs-design-body .dgs-product__qty-btn {
  background: var(--dgs-design-input);
  color: var(--dgs-design-text);
  border-color: var(--dgs-design-line);
}
body.dgs-design-body .dgs-product__qty-btn:hover,
body.dgs-design-body .dgs-product__qty-btn:focus-visible,
body.dgs-design-body .dgs-product__qty-btn:active {
  background: var(--dgs-design-surface);
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__cart table.variations {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.dgs-design-body .dgs-product__picker { margin: 0 0 14px; }
body.dgs-design-body .dgs-product__picker-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dgs-design-text); }
body.dgs-design-body .dgs-product__swatches,
body.dgs-design-body .dgs-product__options { display: flex; flex-wrap: wrap; gap: 8px; }
body.dgs-design-body .dgs-product__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}
body.dgs-design-body .dgs-product__swatch.is-selected,
body.dgs-design-body .dgs-product__option.is-selected {
  border: 2px solid var(--dgs-design-brand);
  outline: none;
}
body.dgs-design-body .dgs-product__swatch.is-out,
body.dgs-design-body .dgs-product__option.is-out {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}
body.dgs-design-body .dgs-product__swatch.is-out { position: relative; }
body.dgs-design-body .dgs-product__swatch.is-out::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: #e8eef5;
  transform: rotate(-32deg);
}
body.dgs-design-body .dgs-product__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--dgs-design-line);
  background: #FFFFFF;
  color: var(--dgs-design-text);
  cursor: pointer;
}
body.dgs-design-body .dgs-product__option small { display: inline; color: var(--dgs-design-muted); font-size: 12px; }
body.dgs-design-body .dgs-product__buy form.cart,
body.dgs-design-body .dgs-product__buy .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
body.dgs-design-body .dgs-product__buy .quantity,
body.dgs-design-body .dgs-product__buy .quantity.dgs-product__quantity--stepper {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-width: none;
  box-sizing: border-box;
}
body.dgs-design-body .dgs-product__buy .single_add_to_cart_button,
body.dgs-design-body .dgs-product__buy .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  width: 100%;
  max-width: none;
  min-height: 48px;
  height: 48px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: var(--dgs-design-brand);
  color: #fff;
  font-weight: 700;
}
body.dgs-design-body .dgs-product__buy .single_add_to_cart_button:not(:disabled):not(.disabled) {
  opacity: 1;
  background: var(--dgs-design-brand);
  color: #fff;
  cursor: pointer;
}
body.dgs-design-body .dgs-product__cart .quantity:not(.dgs-product__quantity--stepper) {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}
body.dgs-design-body .dgs-product__cart .quantity.dgs-product__quantity--stepper {
  display: inline-grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  align-items: stretch;
}
body.dgs-design-body .dgs-product__cart .quantity.dgs-product__quantity--stepper .dgs-product__qty-btn {
  width: 40px;
  height: 100%;
  min-width: 40px;
  min-height: 0;
  flex: 0 0 40px;
  padding: 0;
  box-sizing: border-box;
}
body.dgs-design-body .dgs-product__cart .quantity.dgs-product__quantity--stepper .qty {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  text-align: center;
}
body.dgs-design-body .dgs-product__assurance {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--dgs-design-muted);
  font-size: 14px;
}
body.dgs-design-body .dgs-product__assurance a { color: var(--dgs-design-text); }
body.dgs-design-body .dgs-product__iconrow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
body.dgs-design-body .dgs-product__iconrow li { color: var(--dgs-design-text); font-size: 13px; }
body.dgs-design-body .dgs-product__iconrow strong,
body.dgs-design-body .dgs-product__iconrow em { display: block; font-style: normal; }
body.dgs-design-body .dgs-product__iconrow em { color: var(--dgs-design-muted); }
body.dgs-design-body .dgs-product__lower {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
body.dgs-design-body .dgs-product__tab.is-active { color: var(--dgs-design-text); border-color: var(--dgs-design-brand); }
body.dgs-design-body .dgs-product__tabs-block {
  background: var(--dgs-design-card);
  border-color: var(--dgs-design-line);
  color: var(--dgs-design-text);
  height: auto;
  align-self: start;
}
body.dgs-design-body .dgs-product__tab { color: var(--dgs-design-muted); }
body.dgs-design-body .dgs-product__tabs { border-bottom-color: rgba(255, 255, 255, 0.08); }
body.dgs-design-body .dgs-product__desc-copy,
body.dgs-design-body .dgs-product__desc-copy p,
body.dgs-design-body .dgs-product__spec-table,
body.dgs-design-body .dgs-product__spec-table th,
body.dgs-design-body .dgs-product__spec-table td { color: var(--dgs-design-text); }
body.dgs-design-body .dgs-product__panel .comment-form input[type="text"],
body.dgs-design-body .dgs-product__panel .comment-form input[type="email"],
body.dgs-design-body .dgs-product__panel .comment-form textarea,
body.dgs-design-body .dgs-product__panel #comment {
  background: var(--dgs-design-input);
  color: var(--dgs-design-text);
  border-color: var(--dgs-design-line);
}
body.dgs-design-body .dgs-product__reviews {
  background: var(--dgs-design-card);
  border-radius: 16px;
  padding: 16px;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
body.dgs-design-body .dgs-product__bar > span { display: block; height: 100%; background: #f5c451; }
body.dgs-design-body .dgs-product__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.dgs-design-body .dgs-product__bars li { display: grid; grid-template-columns: 72px 1fr 36px; gap: 8px; align-items: center; font-size: 13px; }
body.dgs-design-body .dgs-product__review-notice {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--dgs-design-muted);
}
body.dgs-design-body .dgs-product__review-notice a { color: var(--dgs-design-text); }
body.dgs-design-body .dgs-product__upsell-grid,
body.dgs-design-body .dgs-product__related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body.dgs-design-body .dgs-product__upsell {
  background: var(--dgs-design-card);
  border-radius: 12px;
  padding: 12px;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__woo-gallery {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.dgs-design-body .dgs-product__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dgs-design-card);
  color: var(--dgs-design-text);
  border: 1px solid var(--dgs-design-line);
  cursor: pointer;
}
body.dgs-design-body .dgs-product__nav[data-dgs-product-prev] { left: 8px; }
body.dgs-design-body .dgs-product__nav[data-dgs-product-next] { right: 8px; }
body.dgs-design-body .dgs-product__counter {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--dgs-design-card);
  color: var(--dgs-design-text);
  border: 1px solid var(--dgs-design-line);
  font-size: 13px;
}
body.dgs-design-body .dgs-product__topbar,
body.dgs-design-body .dgs-product__buybar { display: none; }
body.dgs-consent-open .dgs-product__buybar,
body.dgs-consent-open .dgs-product__topbar,
body:has(#dgs-consent-root:not([hidden])) .dgs-product__buybar,
body:has(#dgs-consent-root:not([hidden])) .dgs-product__topbar {
  display: none !important;
}
@media (min-width: 981px) {
  body.dgs-design-body .dgs-product__topbar.is-on {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--dgs-design-card);
    color: var(--dgs-design-text);
    border-bottom: 1px solid var(--dgs-design-line);
  }
  body.admin-bar.dgs-design-body .dgs-product__topbar.is-on { top: 32px; }
  body.dgs-design-body .dgs-product__topbar img { width: 42px; height: 42px; object-fit: contain; }
  body.dgs-design-body .dgs-product__topbar button {
    margin-left: auto;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--dgs-design-brand);
    color: #fff;
    font-weight: 700;
    padding: 0 14px;
  }
}
@media (max-width: 980px) {
  body.dgs-design-body .dgs-product__counter { display: inline-flex; }
  body.dgs-design-body .dgs-product__lower,
  body.dgs-design-body .dgs-product__iconrow,
  body.dgs-design-body .dgs-product__upsell-grid,
  body.dgs-design-body .dgs-product__related-grid { grid-template-columns: 1fr 1fr; }
  body.dgs-design-body .dgs-product__tabs,
  body.dgs-design-body .dgs-product__panels { display: contents; }
  body.dgs-design-body .dgs-product__tab {
    display: flex;
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  body.dgs-design-body .dgs-product__buybar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--dgs-design-card);
    color: var(--dgs-design-text);
    border-top: 1px solid var(--dgs-design-line);
  }
  body.dgs-design-body .dgs-product__buybar button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--dgs-design-brand);
    color: #fff;
    font-weight: 700;
    padding: 0 14px;
  }
  body.dgs-design-body .dgs-product__buybar small { display: block; color: var(--dgs-design-muted); font-size: 12px; }
}
@media (max-width: 640px) {
  body.dgs-design-body .dgs-product__iconrow,
  body.dgs-design-body .dgs-product__upsell-grid,
  body.dgs-design-body .dgs-product__lower { grid-template-columns: 1fr; }
  body.dgs-design-body .dgs-product__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
body.dgs-design-body .dgs-product__panel #review_form input,
body.dgs-design-body .dgs-product__panel #review_form textarea,
body.dgs-design-body .dgs-product__panel .comment-form input,
body.dgs-design-body .dgs-product__panel .comment-form textarea {
  background: var(--dgs-design-input);
  color: var(--dgs-design-text);
  border: 1px solid var(--dgs-design-line);
}
body.dgs-design-body .dgs-product__panel #review_form .submit,
body.dgs-design-body .dgs-product__panel .comment-form .submit {
  background: var(--dgs-design-brand);
  color: var(--dgs-design-on-accent, #fff);
  border: 0;
  min-height: 44px;
  padding: 0 16px;
}
body.dgs-design-body .dgs-product__panel p.stars a {
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__panel p.stars a::before {
  color: var(--dgs-design-star);
}
body.dgs-design-body #comment,
body.dgs-design-body #review_form textarea,
body.dgs-design-body #review_form input[type="text"],
body.dgs-design-body #review_form input[type="email"],
body.dgs-design-body .comment-form textarea,
body.dgs-design-body .comment-form input[type="text"],
body.dgs-design-body .comment-form input[type="email"] {
  background: var(--dgs-design-input) !important;
  color: var(--dgs-design-text) !important;
  border: 1px solid var(--dgs-design-line) !important;
}
body.dgs-design-body .dgs-product__panel .commentlist,
body.dgs-design-body .dgs-product__panel .commentlist .comment_container {
  background: transparent;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__review-list {
  margin-top: 32px;
  width: 100%;
  max-width: none;
  text-align: left;
}
body.dgs-design-body .dgs-product__review-list .woocommerce-Reviews,
body.dgs-design-body .dgs-product__review-list #reviews {
  max-width: none;
  width: 100%;
  text-align: left;
}
body.dgs-design-body .dgs-product__review-list .woocommerce-Reviews-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
  text-align: left;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__review-list .commentlist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
body.dgs-design-body .dgs-product__review-list #reviews #comments ol.commentlist > li,
body.dgs-design-body .dgs-product__review-list .commentlist > li {
  margin: 0 0 12px;
  background: var(--dgs-design-card);
  border: 1px solid var(--dgs-design-line);
  border-radius: 12px;
  padding: 16px;
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__review-list .comment_container {
  border: 0;
  padding: 0;
}
body.dgs-design-body .dgs-product__review-list #reviews #comments ol.commentlist li .comment-text,
body.dgs-design-body .dgs-product__review-list .commentlist li .comment-text {
  border: 0;
  padding: 0;
  margin-left: 52px;
}
body.dgs-design-body .dgs-product__review-list #reviews #comments ol.commentlist li img.avatar,
body.dgs-design-body .dgs-product__review-list .commentlist li img.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}
body.dgs-design-body .dgs-product__review-list .star-rating,
body.dgs-design-body .dgs-product__review-list .star-rating::before,
body.dgs-design-body .dgs-product__review-list .star-rating span::before {
  color: var(--dgs-design-star, #F6A203);
}
body.dgs-design-body .dgs-product__review-list .comment-form input[type="text"],
body.dgs-design-body .dgs-product__review-list .comment-form input[type="email"],
body.dgs-design-body .dgs-product__review-list .comment-form textarea,
body.dgs-design-body .dgs-product__review-list #comment {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--dgs-design-line);
  border-radius: var(--dgs-design-radius-sm, 8px);
  background: var(--dgs-design-input);
  color: var(--dgs-design-text);
  font-family: var(--dgs-design-font-body, inherit);
  font-size: 16px;
}
body.dgs-design-body .dgs-product__review-list .comment-form textarea,
body.dgs-design-body .dgs-product__review-list #comment {
  min-height: 140px;
}
body.dgs-design-body .dgs-product__review-list #respond input#submit,
body.dgs-design-body .dgs-product__review-list .comment-form input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 22px;
  background: var(--dgs-design-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
body.dgs-design-body .dgs-product__review-list p.stars a {
  color: var(--dgs-design-text);
}
body.dgs-design-body .dgs-product__review-list p.stars a::before {
  color: var(--dgs-design-star);
}
body.dgs-design-body .dgs-product__buy-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
body.dgs-design-body .dgs-product__buy-row .dgs-product__cart {
  flex: 1 1 auto;
  min-width: 0;
}
body.dgs-design-body .dgs-product__buy-row .dgs-product__cart {
  margin-bottom: 0;
}
body.dgs-design-body .dgs-product__wish {
  align-self: flex-end;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--dgs-design-line);
  background: var(--dgs-design-card);
  color: var(--dgs-design-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
body.dgs-design-body .dgs-product__wish.is-active,
body.dgs-design-body .dgs-product__wish[aria-pressed="true"] {
  color: var(--dgs-design-sale);
}
body.dgs-design-body .dgs-product__wish.is-active svg,
body.dgs-design-body .dgs-product__wish[aria-pressed="true"] svg {
  fill: currentColor;
}

