/* ============================================================
   digtiali-core: Single Product Template Styles
   RTL layout, Stitch design system colors, Lucide icons
============================================================ */

:root {
  --dsp-brand:                      #A020E8;
  --dsp-accent:                     #ffAC00;
  --dsp-primary:                    #A020E8;
  --dsp-primary-container:          #6a1b9a;
  --dsp-surface:                    #0D0D0D;
  --dsp-surface-container-lowest:   rgba(255,255,255,0.03);
  --dsp-surface-container-low:      rgba(255,255,255,0.05);
  --dsp-surface-container:          rgba(255,255,255,0.07);
  --dsp-surface-container-high:     rgba(255,255,255,0.09);
  --dsp-surface-container-highest:  rgba(255,255,255,0.12);
  --dsp-on-surface:                 #ffffff;
  --dsp-on-surface-variant:         rgba(255,255,255,0.55);
  --dsp-outline-variant:            rgba(255,255,255,0.1);
  --dsp-tertiary-fixed-dim:         #ffAC00;
  --dsp-green:                      #a8ff3e;
  --dsp-error:                      #ff5252;
  --dsp-on-primary:                 #ffffff;
  --dsp-radius:                     1rem;
  --dsp-radius-lg:                  2rem;
  --dsp-radius-full:                9999px;
  --dsp-wallet-radius:              12px;
  --dsp-wallet-height:              48px;
  --dsp-glow:                       rgba(160,32,232,0.22);
  --dsp-line:                       rgba(255,255,255,0.08);
  --dsp-line-2:                     rgba(255,255,255,0.15);
}

/* ── Single product: use global hero shell (style.css body::before/::after + header gradient) ── */
html:not([data-theme="light"]) body.single-product,
html:not([data-theme="light"]) body.single-product .wp-site-blocks {
  background: transparent !important;
}

body.single-product .wp-site-blocks {
  position: relative;
  z-index: 1;
}

/* ── Wrapper ── */
.digtiali-single-product {
  direction: rtl;
  font-family: 'Almarai', 'Inter', sans-serif;
  color: var(--dsp-on-surface);
  max-width: var(--digi-content-width, 1500px);
  margin: 0 auto;
  padding: 0rem 1.5rem;
  box-sizing: border-box;
}

.digtiali-single-product *,
.digtiali-single-product *::before,
.digtiali-single-product *::after {
  box-sizing: inherit;
}

.digtiali-single-product h1,
.digtiali-single-product h2,
.digtiali-single-product h3 {
  font-family: 'Almarai', sans-serif;
}

/* ── Breadcrumb row: trail + product preview (RTL: crumbs start, button end) ── */
.dsp-breadcrumb-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.dsp-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--dsp-on-surface-variant);
}

.dsp-breadcrumb__nav.woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
}

.dsp-breadcrumb__nav a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.dsp-breadcrumb__nav a:hover {
  color: #c36dff;
  text-decoration: none;
}

.dsp-breadcrumb__nav .dsp-breadcrumb__item:last-child {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}

.dsp-breadcrumb__sep {
  display: inline;
  margin: 0 0.5rem;
  padding: 0 0.15rem;
  color: var(--dsp-on-surface-variant);
  font-weight: 700;
  font-size: 0.95em;
  opacity: 0.85;
  user-select: none;
}

/*
 * Some themes overwrite the breadcrumb delimiter with an empty
 * <span class="wd-delimiter">. Theme CSS only adds "/" via ::after under .wd-breadcrumbs,
 * which this nav does not use — crumbs render with no separators. Mirror delimiter styling.
 */
.digtiali-single-product .dsp-breadcrumb__nav .wd-delimiter {
  display: inline;
  margin-inline: 0.5rem;
  color: var(--dsp-on-surface-variant);
  font-weight: 700;
  font-size: 0.95em;
  opacity: 0.85;
  user-select: none;
  vertical-align: baseline;
}

.digtiali-single-product .dsp-breadcrumb__nav .wd-delimiter::after {
  content: '\00a0/\00a0';
}

/* Top bar: معاينة المنتج (moved from sidebar) */
.dsp-preview-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  background: var(--dsp-brand);
  color: var(--dsp-on-primary);
  border-radius: var(--dsp-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dsp-preview-btn:hover {
  filter: brightness(1.08);
  color: var(--dsp-on-primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}

.dsp-preview-btn .digi-icon {
  font-size: 1.125rem;
}

/* ── WooCommerce notices ── */
.dsp-notices {
  margin-bottom: 1.5rem;
}

/* ============================================================
   HERO
============================================================ */
.dsp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.dsp-hero-info {
  min-width: 0;
}

.dsp-hero-image {
  position: sticky;
  top: 6rem;
  min-width: 0;
  overflow: hidden;
}

.dsp-hero-image__stats {
  margin-top: 1.25rem;
  justify-content: center;
}

/* Badge chips row */
.dsp-badge-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.dsp-badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem;
  border-radius: var(--dsp-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.dsp-badge-chip__label {
  font-weight: 800;
  margin-inline-end: 0.15em;
}

.dsp-badge-chip--primary {
  background: #e4cff5;
  color: #3d1462;
  border: 1px solid rgba(120, 27, 175, 0.18);
}

.dsp-badge-chip--primary .dsp-badge-chip__label {
  color: #e0b0ff;
}

.dsp-badge-chip--tertiary {
  background: var(--dsp-tertiary-fixed-dim);
  color: #261900;
}

.dsp-badge-chip--surface {
  background: var(--dsp-surface-container-highest);
  color: var(--dsp-on-surface-variant);
}

/* Title */
.dsp-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
  font-family: 'Almarai', sans-serif;
  letter-spacing: -0.02em;
}

/* Rating */
.dsp-rating {
  margin-bottom: 1rem;
}

.dsp-rating .woocommerce-product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  line-height: 1.4;
}

/* WooCommerce star font + hide rating text inside .star-rating > span */
.digtiali-single-product .star-rating {
  float: none;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  height: 1em;
  width: 5.4em;
  line-height: 1;
  font-size: 1.125rem;
  font-family: star, WooCommerce, sans-serif;
  margin: 0;
}

.digtiali-single-product .star-rating::before {
  content: "\73\73\73\73\73";
  color: rgba(255, 255, 255, 0.22);
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.digtiali-single-product .star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.digtiali-single-product .star-rating span::before {
  content: "\53\53\53\53\53";
  color: var(--dsp-tertiary-fixed-dim);
  top: 0;
  left: 0;
  position: absolute;
}

.dsp-rating .woocommerce-review-link {
  color: var(--dsp-on-surface-variant);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.dsp-rating .woocommerce-review-link:hover,
.dsp-rating .woocommerce-review-link:focus-visible {
  color: var(--dsp-on-surface);
  text-decoration: underline;
  background: transparent;
}

.dsp-rating .woocommerce-review-link .count {
  color: inherit;
  font-weight: 700;
  background: transparent;
}

/* Short description */
.dsp-short-desc {
  font-size: 1rem;
  color: var(--dsp-on-surface-variant);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Price */
.dsp-price-wrap {
  margin-bottom: 1rem;
}

.dsp-price-wrap .price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

.dsp-price-wrap .price ins {
  text-decoration: none;
}

.dsp-price-wrap .price ins .amount,
.dsp-price-wrap .price > .amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dsp-primary);
  line-height: 1;
}

.dsp-price-wrap .price del .amount {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dsp-on-surface-variant);
  text-decoration: line-through;
}

/* Add to cart (stats bar uses its own .cart — no bottom margin there; see .dsp-stats-bar) */
.digtiali-single-product .cart {
  margin-bottom: 1.5rem;
}

.digtiali-single-product .dsp-stats-bar .cart {
  margin-bottom: 0 !important;
}

.digtiali-single-product .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--dsp-primary), var(--dsp-primary-container));
  color: var(--dsp-on-primary);
  border: none;
  border-radius: var(--dsp-radius);
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem!important;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Almarai', sans-serif !important;
  transition: opacity 0.15s;
}

.digtiali-single-product .single_add_to_cart_button:hover {
  opacity: 0.9;
}

/* Trust strip */
.dsp-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-top: 1rem;
}

.dsp-trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: start;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(160,32,232,0.2);
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.025);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dsp-on-surface-variant);
}

.dsp-trust-item .digi-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: rgba(160,32,232,0.15);
  border: 1px solid rgba(160,32,232,0.4);
  color: #c36dff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.dsp-trust-item span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dsp-on-surface-variant);
}

/* Payment icons — now lives under the product image column */
.dsp-payment-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--dsp-outline-variant);
  background: transparent;
  border-radius: 0;
}

.dsp-payment-icons__title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dsp-on-surface-variant);
}

.dsp-payment-icons__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.dsp-payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 48px;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.dsp-payment-icon svg,
.dsp-payment-icon img {
  display: block;
  width: 84px;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .dsp-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product image column — gallery image fills the frame edge-to-edge */
.dsp-hero-image .woocommerce-product-gallery {
  background: var(--dsp-surface-container-lowest);
  border-radius: var(--dsp-radius);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
}

.dsp-hero-image .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.dsp-hero-image .woocommerce-product-gallery .flex-viewport {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
}

.dsp-hero-image .woocommerce-product-gallery__image {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  float: none !important;
}

.dsp-hero-image .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  cursor: default !important;
  pointer-events: none !important;
}

.dsp-hero-image .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
  cursor: default !important;
}

.dsp-hero-image .zoomImg {
  display: none !important;
}

/* ============================================================
   STATS BAR (same width as .digtiali-single-product column)
============================================================ */
.dsp-stats-scroll-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  position: relative;
  pointer-events: none;
  visibility: hidden;
}

.dsp-stats-bar-placeholder {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  transition: min-height 0.35s ease;
}

.dsp-stats-bar {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* ============================================================
   Sticky add-to-cart — isolated layout (qty + cart + buy + express)
============================================================ */
.dsp-sticky-atc {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

/* Hero / inline product page: qty + CTAs in one row; express pay stacked below */
.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__form,
.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__variable {
  flex: 1 1 auto;
  width: 100%;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__row {
  flex-direction: row-reverse;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__qty {
  flex: 0 0 auto;
  width: auto;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__qty .quantity {
  width: auto;
  max-width: none;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__qty .quantity .qty {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  max-width: 2.75rem;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__btn,
.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-stats-btn {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--dsp-wallet-height);
  border-radius: var(--dsp-wallet-radius) !important;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-stats-cart-form--variable .woocommerce-variation-add-to-cart {
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: stretch;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-stats-cart-form--variable .single_add_to_cart_button,
.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-stats-cart-form--variable .add_to_cart_button {
  width: auto;
  flex: 1 1 0;
  min-width: min(100%, 8rem);
  min-height: var(--dsp-wallet-height);
  border-radius: var(--dsp-wallet-radius) !important;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__express {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  order: 10;
  padding-top: 0.85rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--dsp-outline-variant);
}

.dsp-sticky-atc__express:not(:empty)::before {
  content: attr(data-express-label);
  display: block;
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dsp-on-surface-variant);
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__express #wc-stripe-express-checkout-element {
  flex-direction: column;
  align-items: stretch;
}

.dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__express #wc-stripe-express-checkout-element > div {
  width: 100% !important;
  min-width: 0 !important;
}

.dsp-sticky-atc__form {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  margin-block: 0 !important;
  width: auto;
  max-width: none;
  display: block;
}

.dsp-sticky-atc__row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.dsp-sticky-atc__qty {
  flex: 0 0 auto;
}

.dsp-sticky-atc__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none !important;
  border-radius: var(--dsp-radius-full) !important;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Almarai', sans-serif;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.dsp-sticky-atc__btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsp-sticky-atc__btn--cart {
  background: var(--dsp-accent) !important;
  color: #261900 !important;
  box-shadow: 0 4px 18px rgba(255, 172, 0, 0.35) !important;
}

.dsp-sticky-atc__btn--cart:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(255, 172, 0, 0.5) !important;
}

.dsp-sticky-atc__btn--buy {
  background: linear-gradient(135deg, #A020E8, #6a1b9a) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(160, 32, 232, 0.4), 0 0 0 1px rgba(160, 32, 232, 0.3) !important;
}

.dsp-sticky-atc__btn--buy:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 28px rgba(160, 32, 232, 0.55), 0 0 0 1px rgba(160, 32, 232, 0.4) !important;
}

.dsp-sticky-atc__btn:active {
  transform: scale(0.98);
}

.dsp-sticky-atc__btn .dsp-btn-icon {
  flex-shrink: 0;
  font-size: 0.95rem !important;
  line-height: 1;
  margin: 0 !important;
}

.dsp-sticky-atc__express {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: min(9.5rem, 26vw);
  max-width: 11.5rem;
  margin: 0;
}

.dsp-sticky-atc__express:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: 0;
}

.dsp-sticky-atc__express:empty::before {
  display: none;
}

/* Stripe / wallet express buttons — full-width stacked pills */
.dsp-sticky-atc__express #wc-stripe-express-checkout-element {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
}

.dsp-sticky-atc__express #wc-stripe-express-checkout-element > div {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: var(--dsp-wallet-height);
  border-radius: var(--dsp-wallet-radius);
  overflow: hidden;
}

.dsp-sticky-atc__express #wc-stripe-express-checkout-element iframe {
  width: 100% !important;
  min-height: var(--dsp-wallet-height) !important;
  display: block !important;
}

.dsp-sticky-atc__express #wc-stripe-express-checkout-button-separator,
.dsp-sticky-atc__express .wc-stripe-express-checkout__separator {
  display: none !important;
}

.dsp-sticky-atc__express .wcpay-payment-request-wrapper,
.dsp-sticky-atc__express #wcpay-payment-request-button,
.dsp-sticky-atc__express .stripe-payment-request-button,
.dsp-sticky-atc__express #paypal-standard-container {
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--dsp-wallet-height);
  border-radius: var(--dsp-wallet-radius);
  overflow: hidden;
}

.dsp-sticky-atc__variable {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__express:not(:empty) {
  min-width: min(7.5rem, 24vw);
  max-width: 9rem;
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__express:not(:empty)::before {
  display: none;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__express #wc-stripe-express-checkout-element {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__express #wc-stripe-express-checkout-element > div {
  flex: 1 1 calc(50% - 0.2rem) !important;
  min-height: 2.65rem;
  border-radius: 8px;
}

/* Fixed footer: slides up when pinned (single-product.js + .dsp-stats-scroll-sentinel) */
.dsp-stats-bar.dsp-stats-bar--pinned {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100100;
  width: 100%;
  max-width: none;
  margin: 0;
  margin-bottom: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(23, 23, 24, 0.26) !important;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc {
  gap: 0.5rem;
  max-width: var(--digi-content-width, 1500px);
  margin-inline: auto;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__btn {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__form {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__row {
  min-width: 0;
  overflow: hidden;
}

/* Pinned variable products: hide selectors, keep qty + add-to-cart in one row */
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .variations_form.cart {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable table.variations,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .woocommerce-variation-description,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .reset_variations {
  display: none !important;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .single_variation_wrap {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .woocommerce-variation.single_variation {
  display: none !important;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__variable .single_add_to_cart_button {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__qty .quantity,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-stats-cart-form--variable .cart .quantity {
  min-height: 2.75rem;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__qty .quantity .minus,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__qty .quantity .plus,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-stats-cart-form--variable .quantity .minus,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-stats-cart-form--variable .quantity .plus {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  min-width: 2.35rem;
}

.dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__qty .quantity .qty,
.dsp-stats-bar.dsp-stats-bar--pinned .dsp-stats-cart-form--variable .quantity .qty {
  width: 2.35rem;
  min-width: 2.35rem;
  max-width: 2.35rem;
  font-size: 0.9375rem;
}

.dsp-stats-bar.dsp-stats-bar--pinned.dsp-stats-bar--pinned-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 1248px) {
  .dsp-stats-bar.dsp-stats-bar--pinned {
    padding-inline: max(1.5rem, calc((100vw - var(--digi-content-width, 1500px)) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsp-stats-bar.dsp-stats-bar--pinned {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}

.dsp-stats-left {
  display: flex;
  gap: 1rem;
}

.dsp-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: #F7EBFF !important;
  border-radius: var(--dsp-radius-full);
  border: 1px solid var(--dsp-outline-variant);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dsp-brand);
}

.dsp-stat-pill .digi-icon {
  font-size: 1rem;
  color: var(--dsp-primary);
}

/* Legacy stats form hook — layout lives in .dsp-sticky-atc */
.dsp-stats-cart-form {
  margin: 0;
  margin-block: 0 !important;
}

/* ── Unified quantity stepper (.minus, .qty, .plus) ── */
.dsp-stats-qty-wrap {
  flex: 0 0 auto;
}

.dsp-stats-qty-wrap .quantity,
.dsp-stats-cart-form--variable .cart .quantity {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0;
  vertical-align: middle;
  border: 2px solid rgba(78, 0, 120, 0.2);
  border-radius: var(--dsp-radius-full);
  overflow: hidden;
  background: #fff;
  min-height: 3rem;
  box-shadow: 0 2px 8px rgba(78, 0, 120, 0.07);
}

.dsp-stats-qty-wrap .quantity .minus,
.dsp-stats-qty-wrap .quantity .plus,
.dsp-stats-cart-form--variable .quantity .minus,
.dsp-stats-cart-form--variable .quantity .plus {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-width: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0 !important;
  background: #f3e8f7;
  color: var(--dsp-primary);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.dsp-stats-qty-wrap .quantity .minus:hover,
.dsp-stats-qty-wrap .quantity .plus:hover,
.dsp-stats-cart-form--variable .quantity .minus:hover,
.dsp-stats-cart-form--variable .quantity .plus:hover {
  background: #e8d5ef;
  color: #3d0052;
}

.dsp-stats-qty-wrap .quantity .minus:active,
.dsp-stats-qty-wrap .quantity .plus:active,
.dsp-stats-cart-form--variable .quantity .minus:active,
.dsp-stats-cart-form--variable .quantity .plus:active {
  background: #dfc4ea;
}

.dsp-stats-qty-wrap .quantity .qty,
.dsp-stats-cart-form--variable .quantity .qty {
  flex: 1 1 2.75rem;
  min-width: 2.5rem;
  max-width: 3.25rem;
  width: 3rem;
  min-height: 3rem;
  margin: 0;
  padding: 0 0.25rem;
  border: none !important;
  border-radius: 0 !important;
  border-inline-start: 1px solid rgba(78, 0, 120, 0.12) !important;
  border-inline-end: 1px solid rgba(78, 0, 120, 0.12) !important;
  background: #fff !important;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--dsp-on-surface);
  box-shadow: none !important;
}

.dsp-stats-qty-wrap .quantity .qty:focus,
.dsp-stats-cart-form--variable .quantity .qty:focus {
  outline: none;
  background: #fff !important;
  box-shadow: inset 0 0 0 2px rgba(78, 0, 120, 0.15) !important;
}

/* Hide number spinners */
.dsp-stats-qty-wrap .quantity .qty::-webkit-outer-spin-button,
.dsp-stats-qty-wrap .quantity .qty::-webkit-inner-spin-button,
.dsp-stats-cart-form--variable .quantity .qty::-webkit-outer-spin-button,
.dsp-stats-cart-form--variable .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dsp-stats-qty-wrap .quantity .qty[type="number"],
.dsp-stats-cart-form--variable .quantity .qty[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Fallback: WooCommerce core template without +/- buttons */
.dsp-stats-qty-wrap .quantity:not(:has(.minus)):not(:has(.plus)) .qty,
.dsp-stats-cart-form--variable .quantity:not(:has(.minus)):not(:has(.plus)) .qty {
  border-inline-start: none !important;
  border-inline-end: none !important;
  border-radius: var(--dsp-radius-full) !important;
  max-width: none;
}

/* ── CTA pills: brand = add to cart, accent = buy now ── */
.digtiali-single-product .dsp-stats-btn {
  flex: 1 1 0;
  min-width: min(100%, 6rem);
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  border: none !important;
  border-radius: var(--dsp-radius-full) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: 'Almarai', sans-serif;
  line-height: 1.25;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.dsp-stats-cta-group {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.digtiali-single-product .dsp-stats-btn .digi-icon.dsp-btn-icon,
.digtiali-single-product .dsp-btn-icon.digi-icon {
  font-size: 0.95rem !important;
  line-height: 1;
  margin-inline-end: 0.45rem;
  translate: 0 0.02rem;
}

.digtiali-single-product .dsp-stats-btn:hover {
  filter: brightness(1.06);
}

.digtiali-single-product .dsp-stats-btn:active {
  transform: scale(0.98);
}

.dsp-stats-btn--cart,
.dsp-stats-cart-form--variable .single_add_to_cart_button,
.dsp-stats-cart-form--variable .add_to_cart_button {
  background: var(--dsp-accent) !important;
  color: #261900 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(255,172,0,0.35) !important;
}

.dsp-stats-btn--cart:hover,
.dsp-stats-cart-form--variable .single_add_to_cart_button:hover,
.dsp-stats-cart-form--variable .add_to_cart_button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(255,172,0,0.5) !important;
}

/* Keep old Buy Now (used in variable products) */
.dsp-stats-btn--buy {
  background: linear-gradient(135deg, #A020E8, #6a1b9a) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(160,32,232,0.4) !important;
}

.dsp-stats-btn--buy:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 28px rgba(160,32,232,0.55) !important;
}

/* Variable / grouped form inside stats bar */
.dsp-stats-cart-form--variable .variations_form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin: 0;
}

/* ── Variations select ── */
.dsp-stats-cart-form--variable table.variations {
  width: 100%;
  margin: 0;
  border: 0;
}

.dsp-stats-cart-form--variable table.variations tbody,
.dsp-stats-cart-form--variable table.variations tr {
  display: block;
  width: 100%;
}

.dsp-stats-cart-form--variable table.variations tr + tr {
  margin-top: 0.85rem;
}

.dsp-stats-cart-form--variable table.variations th,
.dsp-stats-cart-form--variable table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  line-height: 1.4;
  text-align: right;
  vertical-align: top;
}

.dsp-stats-cart-form--variable table.variations th.label {
  margin-bottom: 0.45rem;
  padding: 0;
}

.dsp-stats-cart-form--variable table.variations th.label label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dsp-on-surface);
  letter-spacing: 0.01em;
  text-align: right;
}

.dsp-stats-cart-form--variable table.variations td.value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

/* Visually hidden select — WC variation script still uses it */
.digtiali-single-product .dsp-variation-select-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Variation options as radio pills */
.dsp-variation-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

.dsp-variation-radio {
  position: relative;
  flex: 1 1 calc(50% - 0.35rem);
  min-width: min(100%, 9.5rem);
  margin: 0;
  cursor: pointer;
}

.dsp-variation-radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.dsp-variation-radio__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius);
  background: var(--dsp-surface-container);
  color: var(--dsp-on-surface);
  font-family: 'Almarai', 'Inter', sans-serif;
  font-size: 0.92rem !important;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.dsp-variation-radio:hover .dsp-variation-radio__pill {
  border-color: rgba(195, 109, 255, 0.35);
  background: var(--dsp-surface-container-high);
}

.dsp-variation-radio__input:focus-visible + .dsp-variation-radio__pill {
  outline: none;
  border-color: rgba(195, 109, 255, 0.55);
  box-shadow: 0 0 0 3px var(--dsp-glow);
}

.dsp-variation-radio__input:checked + .dsp-variation-radio__pill {
  border-color: var(--dsp-primary);
  background: rgba(160, 32, 232, 0.2);
  color: #f4e6ff;
  box-shadow:
    0 0 0 1px rgba(160, 32, 232, 0.35),
    0 4px 16px rgba(160, 32, 232, 0.22);
}

.digtiali-single-product .dsp-stats-cart-form--variable table.variations select:not(.dsp-variation-select-sr) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  min-height: 3rem;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 1px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius);
  background-color: var(--dsp-surface-container);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23c36dff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.1rem;
  background-position: 0.85rem center;
  font-family: 'Almarai', 'Inter', sans-serif;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dsp-on-surface);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.digtiali-single-product .dsp-stats-cart-form--variable table.variations select option {
  background: #1a1228;
  color: #fff;
}

.digtiali-single-product .dsp-stats-cart-form--variable table.variations select:hover {
  border-color: rgba(195, 109, 255, 0.35);
  background-color: var(--dsp-surface-container-high);
}

.digtiali-single-product .dsp-stats-cart-form--variable table.variations select:focus,
.digtiali-single-product .dsp-stats-cart-form--variable table.variations select:focus-visible {
  outline: none;
  border-color: rgba(195, 109, 255, 0.55);
  box-shadow: 0 0 0 3px var(--dsp-glow);
}

.dsp-stats-cart-form--variable a.reset_variations {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c36dff;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--dsp-radius-full);
  border: 1px solid rgba(195, 109, 255, 0.25);
  background: rgba(160, 32, 232, 0.08);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dsp-stats-cart-form--variable a.reset_variations:hover,
.dsp-stats-cart-form--variable a.reset_variations:focus-visible {
  color: #e4c2ff;
  border-color: rgba(195, 109, 255, 0.45);
  background: rgba(160, 32, 232, 0.16);
}

.dsp-stats-cart-form--variable .single_variation_wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.dsp-stats-cart-form--variable .woocommerce-variation {
  width: 100%;
}

.dsp-stats-cart-form--variable .woocommerce-variation-price .price {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dsp-stats-cart-form--variable .woocommerce-variation-price .price ins {
  text-decoration: none;
}

.dsp-stats-cart-form--variable .woocommerce-variation-price .price ins .amount,
.dsp-stats-cart-form--variable .woocommerce-variation-price .price > .amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dsp-primary);
  line-height: 1;
}

.dsp-stats-cart-form--variable .woocommerce-variation-price .price del .amount {
  font-size: 0.95rem;
  color: var(--dsp-on-surface-variant);
  text-decoration: line-through;
}

.dsp-stats-cart-form--variable .woocommerce-variation-description {
  font-size: 0.9rem;
  color: var(--dsp-on-surface-variant);
  line-height: 1.6;
}

.dsp-stats-cart-form--variable .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.dsp-stats-cart-form--variable .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.dsp-stats-cart-form--variable .single_add_to_cart_button,
.dsp-stats-cart-form--variable .add_to_cart_button {
  min-height: 3rem;
  padding: 0.65rem 1.25rem !important;
  border: none !important;
  border-radius: var(--dsp-radius-full) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(78, 0, 120, 0.12);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.dsp-stats-cart-form--variable .single_add_to_cart_button:hover,
.dsp-stats-cart-form--variable .add_to_cart_button:hover {
  filter: brightness(1.05);
}

/* Buy-now in variable product form */
.digtiali-single-product .dsp-stats-cart-form--variable .wd-buy-now-btn {
  min-height: 3rem;
  padding: 0.65rem 1.25rem !important;
  border-radius: var(--dsp-radius-full) !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  border: none !important;
  background: var(--dsp-accent) !important;
  color: var(--dsp-on-surface) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

/* ============================================================
   MAIN CONTENT AREA (sidebar + tabs)
   Grid keeps the main column strictly bounded (minmax) so the
   affiliate strip cannot paint over the description; tabs sit
   above the sidebar in stacking order if anything still bleeds.
============================================================ */
.dsp-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

/* ============================================================
   SIDEBAR
============================================================ */
.dsp-sidebar {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

.dsp-sidebar-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.dsp-sidebar-gallery__item {
  display: block;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--dsp-outline-variant);
  background: var(--dsp-surface-container-lowest);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dsp-sidebar-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.dsp-sidebar-gallery__item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ── FBT: Frequently Bought Together (sidebar) ── */
.dsp-fbt {
  background: var(--dsp-surface-container-lowest);
  border: 1px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.dsp-fbt__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dsp-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.dsp-fbt__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsp-fbt__item {
  border-bottom: 1px solid var(--dsp-outline-variant);
  padding-bottom: 0.5rem;
}

.dsp-fbt__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dsp-fbt__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--dsp-on-surface);
}

.dsp-fbt__check {
  flex-shrink: 0;
  accent-color: var(--dsp-primary);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.dsp-fbt__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dsp-fbt__name {
  line-height: 1.3;
}

.dsp-fbt__price {
  font-weight: 700;
  color: var(--dsp-primary);
  font-size: 0.85rem;
}

.dsp-fbt__price del {
  color: var(--dsp-on-surface-variant);
  font-weight: 400;
  margin-left: 0.25rem;
}

.dsp-fbt__price ins {
  text-decoration: none;
}

.dsp-fbt__thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--dsp-outline-variant);
  display: block;
}

.dsp-fbt__thumb--placeholder {
  background: var(--dsp-surface-container-high);
}

.dsp-fbt__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.dsp-fbt__total-label {
  font-size: 0.85rem;
  color: var(--dsp-on-surface-variant);
}

.dsp-fbt__total {
  font-weight: 700;
  color: var(--dsp-primary);
  font-size: 0.95rem;
  flex: 1;
}

.dsp-fbt__btn {
  background: var(--dsp-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--dsp-radius-full) !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.dsp-fbt__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dsp-fbt__msg {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  border-radius: var(--dsp-radius);
  padding: 0.4rem 0.6rem;
}

.dsp-fbt__msg--ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.dsp-fbt__msg--err {
  background: #fdecea;
  color: var(--dsp-error);
}

/* Related products */
.dsp-related-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dsp-on-surface-variant);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dsp-related .products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dsp-related .product {
  background: var(--dsp-surface-container-lowest);
  border: 1px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius);
  padding: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.dsp-related .product a {
  display: contents;
}

.dsp-related .product img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.dsp-related .woocommerce-loop-product__title {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--dsp-on-surface);
}

.dsp-related .price {
  font-size: 0.8rem;
  color: var(--dsp-primary);
  font-weight: 700;
}

/* ============================================================
   TABS — pill navigation + polished panels
============================================================ */
.dsp-tabs {
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ── Underline tab nav ── */
.dsp-tab-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 0;
  width: 100%;
  font-family: 'Almarai', sans-serif !important;
  border-bottom: 1px solid var(--dsp-outline-variant);
}

.dsp-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  font-family: 'Almarai', sans-serif !important;
  color: var(--dsp-on-surface-variant);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.dsp-tab-link .digi-icon {
  font-size: 1rem;
}

.dsp-tab-link:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.dsp-tab-link.active {
  background: transparent;
  color: #fff;
  border-bottom-color: var(--dsp-primary);
}

/* ── Tab panels ── */
.dsp-tab-panel {
  display: none;
  border: none;
  border-radius: 0;
  padding: 2rem 0 1.5rem;
  margin-bottom: 1.5rem;
}

.dsp-tab-panel.active {
  display: block;
}

/* ── Activation notice + button ── */
.dsp-activate-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.dsp-activate-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: 'Almarai', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.55;
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.45);
  border-radius: var(--dsp-radius);
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.35);
  animation: dsp-activate-notice-pulse 2.4s ease-in-out infinite;
}

.dsp-activate-notice__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  color: #d32f2f;
}

.dsp-activate-notice__text {
  flex: 1;
  min-width: 0;
}

@keyframes dsp-activate-notice-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.28);
    border-color: rgba(198, 40, 40, 0.45);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
    border-color: rgba(198, 40, 40, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsp-activate-notice,
  .dsp-activate-btn {
    animation: none;
  }
}

html[data-theme="light"] .dsp-activate-notice {
  color: #b71c1c;
  background: rgba(183, 28, 28, 0.06);
}

/* Dark mode: lighter red for readability on purple/dark surfaces */
html:not([data-theme="light"]) .dsp-activate-notice {
  color: #ffc9c9;
  background: rgba(255, 120, 120, 0.14);
  border-color: rgba(255, 150, 150, 0.55);
  animation-name: dsp-activate-notice-pulse-dark;
}

html:not([data-theme="light"]) .dsp-activate-notice__icon {
  color: #ff9e9e;
}

@keyframes dsp-activate-notice-pulse-dark {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 140, 0.2);
    border-color: rgba(255, 150, 150, 0.5);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 140, 140, 0.14);
    border-color: rgba(255, 180, 180, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-theme="light"]) .dsp-activate-notice,
  html:not([data-theme="light"]) .dsp-activate-btn {
    animation: none;
  }
}

/* ── Activation button ── */
.dsp-activate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--dsp-accent) !important;
  color: #fff !important;
  font-family: 'Almarai', sans-serif !important;
  font-size: 0.875rem;
  font-weight: 700;
  border: none !important;
  border-radius: var(--dsp-radius-full) !important;
  cursor: pointer;
  margin-bottom: 0;
  transition: opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  align-self: flex-start;
  box-shadow:
    0 2px 10px rgba(255, 172, 0, 0.3),
    0 0 0 0 rgba(255, 172, 0, 0.4);
  animation: dsp-activate-btn-glow 2.4s ease-in-out infinite;
}

@keyframes dsp-activate-btn-glow {
  0%,
  100% {
    box-shadow:
      0 2px 10px rgba(255, 172, 0, 0.28),
      0 0 0 0 rgba(255, 172, 0, 0.35);
  }
  50% {
    box-shadow:
      0 4px 18px rgba(255, 172, 0, 0.5),
      0 0 0 6px rgba(255, 172, 0, 0.22);
  }
}

html:not([data-theme="light"]) .dsp-activate-btn {
  animation-name: dsp-activate-btn-glow-dark;
}

@keyframes dsp-activate-btn-glow-dark {
  0%,
  100% {
    box-shadow:
      0 2px 12px rgba(255, 172, 0, 0.35),
      0 0 0 0 rgba(255, 190, 60, 0.4);
  }
  50% {
    box-shadow:
      0 4px 22px rgba(255, 172, 0, 0.55),
      0 0 0 8px rgba(255, 190, 60, 0.2);
  }
}

.dsp-activate-btn:hover {
  opacity: 0.92;
  color: #fff !important;
}

.dsp-activate-btn .digi-icon {
  font-size: 1.1rem;
}

/* ── Activation modal ── */
.dsp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100200;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dsp-modal-overlay.open {
  display: flex;
}

.dsp-modal-card {
  background: #fff;
  border-radius: var(--dsp-radius);
  max-width: min(94vw, 820px);
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: dsp-modal-in 0.22s ease;
}

@keyframes dsp-modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.dsp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--dsp-outline-variant);
  gap: 1rem;
}

.dsp-modal-title {
  font-family: 'Almarai', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dsp-on-surface);
  margin: 0;
}

.dsp-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dsp-on-surface-variant);
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.dsp-modal-close:hover {
  background: var(--dsp-surface-container);
  color: var(--dsp-on-surface);
}

.dsp-modal-close .digi-icon {
  font-size: 1.375rem;
}

.dsp-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--dsp-on-surface);
  font-family: 'Almarai', sans-serif;
}

.dsp-modal-body p {
  margin: 0 0 0.875rem;
}

.dsp-modal-body p:last-child {
  margin-bottom: 0;
}

/* ── Activation wizard (3 steps) ── */
.dsp-activate-wizard__card {
  max-width: min(94vw, 860px);
}

.dsp-activate-wizard__steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 0;
  counter-reset: none;
}

.dsp-activate-wizard__step-indicator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  position: relative;
  min-width: 0;
}

.dsp-activate-wizard__step-indicator:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: calc(-50% + 1.25rem);
  right: calc(50% + 1.25rem);
  height: 2px;
  background: var(--dsp-outline-variant);
  z-index: 0;
}

.dsp-activate-wizard__step-indicator.is-done:not(:last-child)::after,
.dsp-activate-wizard__step-indicator.is-active:not(:last-child)::after {
  background: var(--dsp-accent);
}

.dsp-activate-wizard__step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Almarai', sans-serif;
  background: var(--dsp-surface-container);
  color: var(--dsp-on-surface-variant);
  border: 2px solid var(--dsp-outline-variant);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dsp-activate-wizard__step-indicator.is-active .dsp-activate-wizard__step-num,
.dsp-activate-wizard__step-indicator.is-done .dsp-activate-wizard__step-num {
  background: var(--dsp-accent);
  border-color: var(--dsp-accent);
  color: #fff;
}

.dsp-activate-wizard__step-indicator.is-skipped .dsp-activate-wizard__step-num {
  opacity: 0.45;
}

.dsp-activate-wizard__step-label {
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--dsp-on-surface-variant);
  font-family: 'Almarai', sans-serif;
}

.dsp-activate-wizard__step-indicator.is-active .dsp-activate-wizard__step-label {
  color: var(--dsp-on-surface);
  font-weight: 700;
}

.dsp-activate-wizard__panels {
  padding: 0 1.5rem 0.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.dsp-activate-wizard__panel {
  display: none;
}

.dsp-activate-wizard__panel.is-active {
  display: block;
}

.dsp-activate-wizard__panel-title {
  margin: 0 0 0.5rem;
  font-family: 'Almarai', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dsp-on-surface);
}

.dsp-activate-wizard__lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--dsp-on-surface-variant);
  font-family: 'Almarai', sans-serif;
}

.dsp-activate-wizard__info.dsp-modal-body {
  padding: 0;
  max-height: none;
}

.dsp-activate-wizard__hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--dsp-on-surface-variant);
  background: var(--dsp-surface-container-low);
  border-radius: var(--dsp-radius);
  font-family: 'Almarai', sans-serif;
}

.dsp-activate-wizard__hint .digi-icon {
  flex-shrink: 0;
  color: var(--dsp-accent);
  margin-top: 0.1rem;
}

.dsp-activate-field {
  display: block;
  margin-bottom: 1rem;
}

.dsp-activate-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dsp-on-surface);
  font-family: 'Almarai', sans-serif;
}

.dsp-activate-field__label .required {
  color: #c62828;
}

.dsp-activate-field__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  font-family: 'Almarai', sans-serif;
  border: 1px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius-sm, 8px);
  background: var(--dsp-surface);
  color: var(--dsp-on-surface);
  box-sizing: border-box;
}

.dsp-activate-field__input:focus {
  outline: 2px solid var(--dsp-accent);
  outline-offset: 1px;
  border-color: var(--dsp-accent);
}

.dsp-activate-wizard__error {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #b71c1c;
  background: rgba(183, 28, 28, 0.08);
  border-radius: var(--dsp-radius-sm, 8px);
  font-family: 'Almarai', sans-serif;
}

.dsp-activate-summary {
  margin: 0;
  padding: 1rem;
  background: var(--dsp-surface-container-lowest);
  border-radius: var(--dsp-radius);
  border: 1px solid var(--dsp-outline-variant);
}

.dsp-activate-summary__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.35rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dsp-outline-variant);
  font-family: 'Almarai', sans-serif;
  font-size: 0.875rem;
}

.dsp-activate-summary__row:last-child {
  border-bottom: none;
}

.dsp-activate-summary__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--dsp-on-surface-variant);
}

.dsp-activate-summary__row dd {
  margin: 0;
  color: var(--dsp-on-surface);
  word-break: break-word;
}

.dsp-activate-summary__row--stack {
  grid-template-columns: 1fr;
}

.dsp-activate-summary__row--stack dd {
  font-size: 0.8125rem;
}

.dsp-activate-wizard__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--dsp-outline-variant);
  flex-wrap: wrap;
}

.dsp-activate-wizard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  font-family: 'Almarai', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--dsp-radius-full);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.dsp-activate-wizard__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dsp-activate-wizard__btn--ghost {
  background: transparent;
  color: var(--dsp-on-surface-variant);
  border: 1px solid var(--dsp-outline-variant);
  margin-inline-end: auto;
}

.dsp-activate-wizard__btn--ghost:hover:not(:disabled) {
  background: var(--dsp-surface-container);
  color: var(--dsp-on-surface);
}

.dsp-activate-wizard__btn--primary {
  background: var(--dsp-accent) !important;
  color: #fff !important;
}

.dsp-activate-wizard__btn--primary:hover:not(:disabled) {
  opacity: 0.9;
}

/* Info-only modal (graphic design tools) */
.dsp-activate-modal--info .dsp-modal-card {
  max-width: min(94vw, 760px);
}

.dsp-activate-modal__footer {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--dsp-outline-variant);
}

.dsp-product-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--dsp-on-surface-variant);
  background: var(--dsp-surface-container-lowest);
  border-radius: var(--dsp-radius);
  padding: 1.75rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Per-character spans from some editors/exports — neutralize box layout */
.dsp-product-description .ng-star-inserted {
  display: contents;
}

.dsp-product-description h1,
.dsp-product-description h2,
.dsp-product-description h3 {
  color: var(--dsp-on-surface);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.dsp-product-description h1 { font-size: 1.4rem; }
.dsp-product-description h2 { font-size: 1.2rem; }
.dsp-product-description h3 { font-size: 1rem; }

.dsp-product-description p {
  margin-bottom: 1rem;
}

.dsp-product-description ul,
.dsp-product-description ol {
  padding-right: 1.25rem;
  margin-bottom: 1rem;
}

.dsp-product-description li {
  margin-bottom: 0.375rem;
}

.dsp-product-description table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.dsp-product-description th,
.dsp-product-description td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--dsp-outline-variant);
  text-align: right;
}

.dsp-product-description th {
  background: var(--dsp-surface-container-low);
  font-weight: 700;
  color: var(--dsp-on-surface);
}

/* ── Reviews panel ── */
.dsp-reviews-wrap {
  background: var(--dsp-surface-container-lowest);
  border-radius: var(--dsp-radius);
  padding: 1.75rem;
  border: 1px solid rgba(208, 194, 211, 0.2);
}

/* Hide duplicate page title inside reviews (we use dsp-reviews-header) */
.dsp-reviews-wrap .woocommerce-Reviews-title {
  display: none;
}

/* Optional rating breakdown rows; we use .dsp-reviews-summary instead */
.dsp-reviews-wrap .wd-rating-summary-wrap {
  display: none !important;
}

.dsp-reviews-wrap .wd-reviews-tools {
  justify-content: flex-end;
}

.dsp-reviews-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dsp-outline-variant);
}

.dsp-reviews-header__lead {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.dsp-reviews-header__icon {
  flex-shrink: 0;
  color: var(--dsp-tertiary-fixed-dim);
  font-size: 2rem;
  margin-top: 0.125rem;
}

.dsp-reviews-header__titles {
  min-width: 0;
}

.dsp-reviews-header__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dsp-on-surface);
  margin: 0 0 0.35rem;
  font-family: 'Almarai', sans-serif;
}

.dsp-reviews-header__subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dsp-on-surface-variant);
}

.dsp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  margin-inline-start: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  border-radius: var(--dsp-radius-full);
  background: rgba(78, 0, 120, 0.12);
  color: var(--dsp-primary);
  vertical-align: middle;
}

.dsp-reviews-summary {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--dsp-radius);
  background: linear-gradient(135deg, rgba(78, 0, 120, 0.08) 0%, rgba(120, 27, 175, 0.06) 100%);
  border: 1px solid rgba(120, 27, 175, 0.2);
}

@media (max-width: 480px) {
  .dsp-reviews-summary { grid-template-columns: 1fr; }
}

.dsp-reviews-summary__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  border-inline-end: 1px solid var(--dsp-outline-variant);
  padding-inline-end: 1.25rem;
}

@media (max-width: 480px) {
  .dsp-reviews-summary__left {
    border-inline-end: none;
    border-bottom: 1px solid var(--dsp-outline-variant);
    padding-inline-end: 0;
    padding-bottom: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.dsp-reviews-summary__score {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dsp-primary);
  font-family: 'Almarai', sans-serif;
}

.dsp-reviews-summary__left .star-rating {
  float: none;
  margin: 0;
  font-size: 1.1rem;
}

.dsp-reviews-summary__count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dsp-on-surface-variant);
  white-space: nowrap;
}

/* Rating breakdown bars */
.dsp-reviews-summary__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.dsp-rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Almarai', sans-serif;
  font-size: 0.8rem;
}

.dsp-rating-bar-label {
  flex-shrink: 0;
  min-width: 2.5rem;
  color: var(--dsp-on-surface-variant);
  font-weight: 600;
  text-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.dsp-rating-bar-star {
  display: inline-flex;
  line-height: 0;
}

.dsp-rating-bar-star .digi-star-icon {
  width: 12px;
  height: 12px;
}

.dsp-rating-bar-star path {
  fill: var(--digi-star-empty, #f0f2f4);
}

.dsp-rating-bar-track {
  flex: 1;
  height: 7px;
  border-radius: 9999px;
  background: var(--dsp-outline-variant);
  overflow: hidden;
}

.dsp-rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dsp-primary), #a855f7);
  border-radius: 9999px;
  min-width: 0;
  transition: width 0.6s ease;
}

.dsp-rating-bar-pct {
  flex-shrink: 0;
  min-width: 2.75rem;
  font-weight: 700;
  color: var(--dsp-on-surface);
  text-align: start;
}

.dsp-rating-bar-count {
  flex-shrink: 0;
  color: var(--dsp-on-surface-variant);
  font-size: 0.75rem;
}

/* ── WooCommerce review card list ── */
.dsp-reviews-wrap ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dsp-reviews-wrap ol.commentlist li.comment {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dsp-reviews-wrap .comment_container {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--dsp-radius);
  background: linear-gradient(135deg, rgba(120, 27, 175, 0.04) 0%, rgba(78, 0, 120, 0.03) 100%);
  border: 1px solid rgba(120, 27, 175, 0.14) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dsp-reviews-wrap .comment_container:hover {
  border-color: rgba(120, 27, 175, 0.35) !important;
  box-shadow: 0 3px 16px rgba(120, 27, 175, 0.1);
}

/* Reset avatar — theme may absolute-position or float it outside the flex row */
.dsp-reviews-wrap .comment_container .avatar {
  position: relative !important;
  float: none !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  border-radius: 50%;
  border: 2px solid rgba(120, 27, 175, 0.45);
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.dsp-reviews-wrap .comment-text,
.digtiali-single-product #reviews #comments ol.commentlist li .comment-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: none !important;
}

.dsp-reviews-wrap .comment-text .star-rating {
  float: none;
  font-size: 0.95rem;
  margin: 0;
}

.dsp-reviews-wrap .comment-text p.meta {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  font-size: 0.84rem;
  color: var(--dsp-on-surface-variant);
}

.dsp-reviews-wrap .woocommerce-review__author {
  font-weight: 700;
  color: var(--dsp-on-surface);
  font-family: 'Almarai', sans-serif;
}

.dsp-reviews-wrap .woocommerce-review__dash { display: none; }

.dsp-reviews-wrap .woocommerce-review__published-date {
  font-size: 0.78rem;
  color: var(--dsp-on-surface-variant);
}

.dsp-reviews-wrap .woocommerce-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  color: var(--digi-primary, var(--dsp-primary));
  background: rgba(120, 27, 175, 0.1);
  border: 1px solid rgba(120, 27, 175, 0.28);
  padding: 0.1rem 0.5rem 0.1rem 0.35rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.dsp-reviews-wrap .woocommerce-review__verified::before {
  content: '✓';
  font-style: normal;
  font-weight: 900;
}

.dsp-reviews-wrap .comment-text .description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--dsp-on-surface-variant);
  margin: 0.1rem 0 0;
}

.dsp-reviews-wrap .comment-text .description p { margin: 0; }

/* "No reviews" WC message */
.dsp-reviews-wrap .woocommerce-noreviews {
  font-size: 0.9rem;
  color: var(--dsp-on-surface-variant);
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.dsp-reviews-empty-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  margin-bottom: 1.5rem;
  border-radius: var(--dsp-radius);
  background: var(--dsp-surface-container-low);
  border: 1px dashed var(--dsp-outline-variant);
  color: var(--dsp-on-surface-variant);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dsp-reviews-empty-hint .digi-icon {
  flex-shrink: 0;
  color: var(--dsp-primary);
  font-size: 1.5rem;
  margin-top: 0.1rem;
}

.dsp-reviews-empty-hint p {
  margin: 0;
}

/* Review form: single overall rating */
.dsp-reviews-wrap #review_form_wrapper,
.dsp-reviews-wrap #review_form,
.dsp-reviews-wrap #review_form label,
.dsp-reviews-wrap #review_form input,
.dsp-reviews-wrap #review_form textarea,
.dsp-reviews-wrap #review_form select,
.dsp-reviews-wrap #review_form .comment-reply-title {
  font-family: 'Almarai', sans-serif;
}

.dsp-reviews-wrap .dsp-review-form-rating {
  margin-bottom: 1rem;
}

.dsp-reviews-wrap .dsp-review-form-rating > label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--dsp-on-surface);
}

.dsp-reviews-wrap .dsp-review-form-rating select#rating {
  display: none !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars {
  display: flex !important;
  align-items: center;
  gap: 2px;
  margin: 0.25rem 0 0 !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars span a {
  display: inline-block !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  text-align: center !important;
  text-indent: 0 !important;
  font-size: 0 !important;
  position: relative !important;
  color: transparent !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars span a::before {
  content: '' !important;
  font-size: 0 !important;
  background-color: var(--digi-star-empty, #f0f2f4) !important;
  -webkit-mask: var(--digi-star-icon-url) center / contain no-repeat;
  mask: var(--digi-star-icon-url) center / contain no-repeat;
  position: absolute !important;
  inset: 0 !important;
  transition: background-color 0.15s ease !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars:hover span a::before {
  background-color: var(--dsp-primary) !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars span a:hover ~ a::before {
  background-color: var(--digi-star-empty, #f0f2f4) !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars.selected span a.active::before {
  background-color: var(--dsp-primary) !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars.selected span a.active ~ a::before {
  background-color: var(--digi-star-empty, #f0f2f4) !important;
}

.dsp-reviews-wrap .dsp-review-form-rating p.stars.selected span a:not(.active):not(.active ~ a)::before {
  background-color: var(--dsp-primary) !important;
}

.dsp-reviews-wrap #review_form .comment-form-comment textarea {
  border-radius: var(--dsp-radius);
  border: 1px solid var(--dsp-outline-variant);
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dsp-reviews-wrap #review_form #submit,
.dsp-reviews-wrap #review_form .submit {
  background: linear-gradient(135deg, var(--dsp-primary), #6a1b9a) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--dsp-radius) !important;
  padding: 0.65rem 1.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.dsp-reviews-wrap #review_form #submit:hover,
.dsp-reviews-wrap #review_form .submit:hover {
  opacity: 0.88 !important;
}

/* ── FAQ panel — matches .digi-faq-cpt / page-faqs brand accordion ── */
.dsp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dpf-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: justify;
}

.dpf-accordion-item:hover {
  border-color: rgba(155, 45, 212, 0.35);
}

.dpf-accordion-item:has(.dpf-question.open) {
  border-color: rgba(155, 45, 212, 0.45);
  background: rgba(120, 27, 175, 0.06);
  box-shadow: none;
}

.dpf-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-align: start;
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.45;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: var(--digi-ink, #f4edf8) !important;
  font-family: 'Almarai', sans-serif !important;
  transition: color 0.2s ease;
}

.dpf-question span {
  flex: 1;
  min-width: 0;
}

.dpf-question:hover,
.dpf-question.open {
  color: var(--digi-ink, #f4edf8) !important;
  border-bottom: none !important;
}

.dpf-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9a1f5;
  transition: transform 0.25s ease, color 0.2s ease;
}

.dpf-chevron .digi-icon,
.dpf-chevron svg {
  width: 1.25rem;
  height: 1.25rem;
}

.dpf-question.open .dpf-chevron {
  transform: rotate(180deg);
  color: #d9a1f5;
}

.dpf-answer {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dpf-answer.open {
  max-height: 600px;
}

.dpf-answer__inner {
  padding: 0 18px 16px;
  margin-top: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--digi-ink-dim, #b8aec4);
  border-top: none;
}

.dpf-answer__inner a {
  color: #d9a1f5;
  text-decoration: underline;
}

.dpf-answer__inner a:hover {
  color: #fff;
}

.dpf-answer__inner p {
  margin: 0 0 0.75em;
}

.dpf-answer__inner p:last-child {
  margin-bottom: 0;
}

/* Empty FAQ state */
.dsp-faq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--dsp-on-surface-variant);
  font-size: 0.95rem;
  text-align: center;
  padding: 3rem 2rem;
}

.dsp-faq-empty .digi-icon {
  font-size: 2.5rem;
  color: var(--dsp-outline-variant);
}

.dsp-faq-empty p {
  margin: 0;
}

/* FAQ dot indicator */
.dsp-faq-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--dsp-radius-full);
  background: var(--dsp-primary);
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
============================================================ */
@media (max-width: 768px) {
  .digtiali-single-product {
    padding: 1rem;
  }

  .dsp-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dsp-hero-image {
    position: static;
    order: -1;
  }

  .dsp-title {
    font-size: 1.5rem;
  }

  .dsp-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .dsp-stats-bar:not(.dsp-stats-bar--pinned) {
    padding: 0;
  }

  .dsp-stats-bar--pinned {
    padding-inline: 0.75rem;
  }

  .dsp-sticky-atc {
    gap: 0.45rem;
  }

  .dsp-sticky-atc__btn {
    min-height: 2.65rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.75rem;
  }

  .dsp-sticky-atc__btn .dsp-btn-icon {
    font-size: 0.85rem !important;
  }

  .dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__express {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__btn-label {
    display: none;
  }

  .dsp-stats-bar:not(.dsp-stats-bar--pinned) .dsp-sticky-atc__btn {
    flex: 1 1 0;
    min-width: 2.65rem;
    padding-inline: 0.55rem;
  }

  .dsp-stats-bar.dsp-stats-bar--pinned .dsp-sticky-atc__express {
    min-width: min(6.5rem, 22vw);
    max-width: 7.25rem;
  }

  .dsp-stats-bar--pinned .dsp-sticky-atc__btn-label {
    display: none;
  }

  .dsp-stats-bar--pinned .dsp-sticky-atc__btn {
    flex: 0 0 2.65rem;
    width: 2.65rem;
    min-width: 2.65rem;
    padding: 0;
  }

  .dsp-stats-bar--pinned .dsp-sticky-atc__btn--cart,
  .dsp-stats-bar--pinned .dsp-sticky-atc__btn--buy {
    flex: 1 1 0;
    width: auto;
    min-width: 2.65rem;
    max-width: none;
  }

  .dsp-sticky-atc__qty .quantity,
  .dsp-stats-cart-form--variable .cart .quantity {
    min-height: 2.65rem;
  }

  .dsp-sticky-atc__qty .quantity .minus,
  .dsp-sticky-atc__qty .quantity .plus,
  .dsp-stats-cart-form--variable .quantity .minus,
  .dsp-stats-cart-form--variable .quantity .plus {
    flex: 0 0 2.15rem;
    width: 2.15rem;
    min-width: 2.15rem;
  }

  .dsp-sticky-atc__qty .quantity .qty,
  .dsp-stats-cart-form--variable .quantity .qty {
    width: 2.15rem;
    min-width: 2.15rem;
    max-width: 2.15rem;
    font-size: 0.875rem;
  }

  .dsp-stats-left {
    flex-wrap: wrap;
  }

  .dsp-content {
    grid-template-columns: 1fr;
  }

  .dsp-sidebar {
    width: 100%;
    max-width: none;
    order: 1;
  }

  .dsp-tabs {
    order: 0;
  }
}

/* ============================================================
   RELATED PRODUCTS FOOTER — horizontal scroll, Stitch-style cards
============================================================ */
.dsp-related-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--dsp-outline-variant);
}

.dsp-related-footer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.dsp-related-footer__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dsp-on-surface);
  margin: 0;
}

.dsp-related-footer__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dsp-primary);
  text-decoration: none;
  transition: opacity 0.15s;
}

.dsp-related-footer__view-all:hover {
  opacity: 0.75;
}

.dsp-related-footer__view-all .digi-icon {
  font-size: 1rem;
}

/* Product grid — card styles from archive-product.css via .digtiali-shop-archive */
.dsp-related-footer .digtiali-shop-archive {
  padding: 0;
}

.dsp-related-footer .digtiali-shop-archive ul.products {
  margin: 0;
}

/* Individual card (legacy dsp-rc — kept for backwards compat) */
.dsp-rc {
  flex: unset;
  scroll-snap-align: start;
  background: var(--dsp-surface-container-lowest);
  border: 1px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dsp-rc:hover {
  box-shadow: 0 8px 24px rgba(78, 0, 120, 0.12);
  transform: translateY(-2px);
}

/* Image link — no padding, flush to card edges */
.dsp-rc__link {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

/* Badges — overlaid on image */
.dsp-rc__badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  z-index: 1;
}

.dsp-rc__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--dsp-radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.dsp-rc__badge--original {
  background: #e8f5e9;
  color: #2e7d32;
}

.dsp-rc__badge--discount {
  background: #fdecea;
  color: #c62828;
}

/* Image — full card width, square */
.dsp-rc__img-wrap {
  width: 100%;
  aspect-ratio: auto 600 / 600;
  overflow: hidden;
  background: var(--dsp-surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.dsp-rc__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dsp-rc__img-placeholder .digi-icon {
  font-size: 2rem;
  color: var(--dsp-on-surface-variant);
}

/* Title link */
.dsp-rc__title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.5rem 0.75rem 0;
}

/* Title */
.dsp-rc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  color: var(--dsp-on-surface);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stars */
.dsp-rc__stars {
  display: flex;
  gap: 0.1rem;
  padding: 0.25rem 0.75rem;
}

.dsp-rc__star {
  font-size: 0.85rem;
  color: var(--dsp-outline-variant);
}

.dsp-rc__star--filled {
  color: var(--dsp-tertiary-fixed-dim);
}

/* Price row */
.dsp-rc__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0.5rem 0.75rem 0.75rem;
  gap: 0.5rem;
}

/* Price amount + strikethrough stacked on the right */
.dsp-rc__price-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.dsp-rc__price-amount .woocommerce-Price-amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dsp-on-surface);
}

.dsp-rc__price-original {
  font-size: 0.72rem;
  color: var(--dsp-on-surface-variant);
  text-decoration: line-through;
}

.dsp-rc__price-original .woocommerce-Price-amount {
  color: inherit;
}

/* Add-to-cart icon button */
.dsp-rc__atc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--dsp-primary);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.dsp-rc__atc-btn:hover {
  background: var(--dsp-primary-container, #6a1b9a);
  transform: scale(1.08);
  opacity: 1;
  color: #fff;
}

.dsp-rc__atc-btn .digi-icon {
  font-size: 1.1rem;
  color: #fff;
  opacity: 1;
}

/* ============================================================
   Custom Services — before add-to-cart
============================================================ */

.dcs-services {
  margin-bottom: 1rem;
  direction: rtl;
}

.dcs-services__heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dsp-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.dcs-services__heading .digi-icon {
  font-size: 1rem;
}

.dcs-services__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Each service row */
.dcs-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--dsp-outline-variant);
  border-radius: var(--dsp-radius);
  background: var(--dsp-surface-container-lowest);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  user-select: none;
}

.dcs-service-item:hover {
  border-color: var(--dsp-primary);
  background: #f9f3ff;
}

/* Hide native checkbox */
.dcs-service-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Custom checkbox indicator */
.dcs-service-item__check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--dsp-outline-variant);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  transition: background 0.15s, border-color 0.15s;
}

.dcs-service-item__check .digi-icon {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.12s;
  font-variation-settings: 'FILL' 1;
}

/* Checked state */
.dcs-service-item:has(.dcs-service-checkbox:checked) {
  border-color: var(--dsp-primary);
  background: #f3e8ff;
  box-shadow: 0 0 0 3px rgba(120, 27, 175, 0.12);
}

.dcs-service-item:has(.dcs-service-checkbox:checked) .dcs-service-item__check {
  background: var(--dsp-primary);
  border-color: var(--dsp-primary);
}

.dcs-service-item:has(.dcs-service-checkbox:checked) .dcs-service-item__check .digi-icon {
  opacity: 1;
}

/* Body */
.dcs-service-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dcs-service-item__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dcs-service-item__icon {
  font-size: 1.05rem;
  color: var(--dsp-primary);
}

.dcs-service-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dsp-on-surface);
  flex: 1;
}

.dcs-service-item__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dsp-primary);
  white-space: nowrap;
  background: rgba(120, 27, 175, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: var(--dsp-radius-full);
}

.dcs-service-item__desc {
  font-size: 0.78rem;
  color: var(--dsp-on-surface-variant);
  line-height: 1.4;
}

/* ── Cart page: services per item ── */
.dcs-cart-services {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dcs-cart-svc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  background: #f3e8ff;
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
  width: fit-content;
}

.dcs-cart-svc__label {
  color: #4a1b6a;
  font-weight: 500;
}

.dcs-cart-svc__price {
  color: #781BAF;
  font-weight: 700;
}

.dcs-cart-svc__remove {
  color: #9b59b6;
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
  margin-right: 2px;
}

.dcs-cart-svc__remove:hover {
  opacity: 1;
  color: #c0392b;
}

/* ============================================================
   DARK THEME — permanent overrides for hardcoded light colors
============================================================ */

/* Hero image: dark frame (image covers full area via rules above) */
.dsp-hero-image .woocommerce-product-gallery {
  background: var(--dsp-surface, #0f0a1e) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 1.125rem !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(160,32,232,0.15) !important;
}

/* Price wrap: bordered card (price only) */
.dsp-price-wrap {
  padding: 1.125rem 1.25rem;
  border: 1px solid rgba(160,32,232,0.3);
  border-radius: 0.875rem;
  background: linear-gradient(180deg, rgba(160,32,232,0.1), rgba(160,32,232,0.02));
}

/* Stats bar: no card bg — transparent in all modes */
.dsp-stats-bar {
  background: transparent !important;
  border: none !important;
}

.dsp-stats-bar.dsp-stats-bar--pinned {
  background: #17171833 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.45) !important;
}

/* Stat pill: dark */
.dsp-stat-pill {
  background: rgba(160,32,232,0.12) !important;
  border-color: rgba(160,32,232,0.3) !important;
  color: rgba(255,255,255,0.75) !important;
}

.dsp-stat-pill .digi-icon {
  color: #c36dff !important;
}

/* Badge chip dark */
html:not([data-theme="light"]) .dsp-badge-chip--primary {
  background: rgba(160,32,232,0.2);
  color: #e0b0ff;
}

/* Quantity stepper: dark */
.dsp-stats-qty-wrap .quantity,
.dsp-stats-cart-form--variable .cart .quantity {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(160,32,232,0.35) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

.dsp-stats-qty-wrap .quantity .minus,
.dsp-stats-qty-wrap .quantity .plus,
.dsp-stats-cart-form--variable .quantity .minus,
.dsp-stats-cart-form--variable .quantity .plus {
  background: rgba(160,32,232,0.15) !important;
  color: #c36dff !important;
}

.dsp-stats-qty-wrap .quantity .minus:hover,
.dsp-stats-qty-wrap .quantity .plus:hover,
.dsp-stats-cart-form--variable .quantity .minus:hover,
.dsp-stats-cart-form--variable .quantity .plus:hover {
  background: rgba(160,32,232,0.28) !important;
  color: #fff !important;
}

.dsp-stats-qty-wrap .quantity .qty,
.dsp-stats-cart-form--variable .quantity .qty {
  background: rgba(255,255,255,0.04) !important;
  color: #fff !important;
  border-inline-start-color: rgba(160,32,232,0.2) !important;
  border-inline-end-color: rgba(160,32,232,0.2) !important;
}

/* Tab count badge: dark */
.dsp-tab-count {
  background: rgba(160,32,232,0.2);
  color: #c36dff;
}

/* Description area: dark */
.dsp-product-description {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Reviews wrap: dark */
.dsp-reviews-wrap {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}

.dsp-reviews-summary {
  background: linear-gradient(135deg, rgba(160,32,232,0.12) 0%, rgba(120,27,175,0.08) 100%);
  border-color: rgba(160,32,232,0.25);
}

.dsp-reviews-wrap .comment_container {
  background: rgba(160,32,232,0.06) !important;
  border-color: rgba(160,32,232,0.18) !important;
}

.dsp-reviews-wrap .comment_container:hover {
  border-color: rgba(160,32,232,0.4) !important;
  box-shadow: 0 3px 16px rgba(160,32,232,0.15) !important;
}

.dsp-reviews-wrap .woocommerce-review__verified {
  color: var(--digi-primary, var(--dsp-primary));
  background: rgba(120, 27, 175, 0.12);
  border-color: rgba(120, 27, 175, 0.32);
}

.dsp-reviews-wrap #review_form input[type="text"],
.dsp-reviews-wrap #review_form input[type="email"],
.dsp-reviews-wrap #review_form textarea,
.dsp-reviews-wrap #review_form select {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

.dsp-reviews-wrap #review_form input::placeholder,
.dsp-reviews-wrap #review_form textarea::placeholder {
  color: rgba(255,255,255,0.35) !important;
}

.dsp-reviews-wrap #review_form input:focus,
.dsp-reviews-wrap #review_form textarea:focus {
  border-color: rgba(160,32,232,0.6) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(160,32,232,0.15) !important;
}

.dsp-reviews-wrap #review_form label,
.dsp-reviews-wrap #review_form .comment-notes,
.dsp-reviews-wrap #review_form .comment-reply-title {
  color: var(--dsp-on-surface) !important;
}

/* FAQ accordion uses .digi-faq-cpt tokens — see dark/light blocks below */

/* Custom services: dark */
.dcs-service-item:hover {
  border-color: var(--dsp-primary);
  background: rgba(160,32,232,0.1) !important;
}

.dcs-service-item:has(.dcs-service-checkbox:checked) {
  background: rgba(160,32,232,0.12) !important;
  box-shadow: 0 0 0 3px rgba(160,32,232,0.15) !important;
}

.dcs-cart-svc {
  background: rgba(160,32,232,0.15);
}

.dcs-cart-svc__label { color: #c36dff; }
.dcs-cart-svc__price { color: #A020E8; }

/* Modal: dark */
.dsp-modal-card {
  background: #1a0f2e;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.dsp-modal-header {
  border-bottom-color: rgba(255,255,255,0.08);
}

.dsp-modal-title {
  color: #fff;
}

.dsp-modal-close {
  color: rgba(255,255,255,0.55);
}

.dsp-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dsp-modal-body {
  color: rgba(255,255,255,0.75);
}

/* Trust strip in sidebar: fill full width */
.dsp-sidebar .dsp-trust-strip {
  margin-bottom: 1rem;
}

/* Sidebar gallery: dark */
.dsp-sidebar-gallery__item {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

/* FBT: dark */
.dsp-fbt {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.08);
}

.dsp-fbt__item {
  border-bottom-color: rgba(255,255,255,0.06);
}

.dsp-fbt__msg--ok {
  background: rgba(168,255,62,0.1);
  color: #a8ff3e;
}

.dsp-fbt__msg--err {
  background: rgba(255,82,82,0.1);
  color: #ff8282;
}

/* Breadcrumb row tweaks */
.dsp-breadcrumb-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.5rem;
}

html[data-theme="light"] .dsp-reviews-wrap .comment_container:hover {
  border-color: rgba(120, 27, 175, 0.3);
  background: #f5f0fa;
}

/* Dark mode: FAQ accordion (matches landing / page-faqs) */
html:not([data-theme="light"]) .dpf-accordion-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

html:not([data-theme="light"]) .dpf-accordion-item:hover {
  border-color: rgba(155, 45, 212, 0.35);
  box-shadow: none;
}

html:not([data-theme="light"]) .dpf-accordion-item:has(.dpf-question.open) {
  border-color: rgba(155, 45, 212, 0.45);
  background: rgba(120, 27, 175, 0.06);
}

html:not([data-theme="light"]) .dpf-question,
html:not([data-theme="light"]) .dpf-question:hover,
html:not([data-theme="light"]) .dpf-question.open {
  color: #fff !important;
}

html:not([data-theme="light"]) .dpf-chevron,
html:not([data-theme="light"]) .dpf-question.open .dpf-chevron {
  color: #d9a1f5;
}

html:not([data-theme="light"]) .dpf-answer__inner {
  color: rgba(184, 174, 196, 1);
}

/* Dark mode: stat pills */
html:not([data-theme="light"]) .dsp-stat-pill {
  background: rgba(120, 27, 175, 0.15) !important;
  border-color: rgba(120, 27, 175, 0.3);
}

/* Dark mode: quantity stepper */
html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .cart .quantity {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(120, 27, 175, 0.3);
  box-shadow: none;
}

html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity .minus,
html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity .plus,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .quantity .minus,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .quantity .plus {
  background: rgba(120, 27, 175, 0.15);
  color: #d4a8f0;
}

html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity .minus:hover,
html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity .plus:hover,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .quantity .minus:hover,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .quantity .plus:hover {
  background: rgba(120, 27, 175, 0.28);
  color: #e8c8ff;
}

html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity .qty,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .quantity .qty {
  background: transparent !important;
  color: var(--dsp-on-surface);
  border-inline-start-color: rgba(120, 27, 175, 0.2) !important;
  border-inline-end-color: rgba(120, 27, 175, 0.2) !important;
}

html:not([data-theme="light"]) .dsp-stats-qty-wrap .quantity .qty:focus,
html:not([data-theme="light"]) .dsp-stats-cart-form--variable .quantity .qty:focus {
  background: transparent !important;
  box-shadow: inset 0 0 0 2px rgba(120, 27, 175, 0.2) !important;
}

/* ============================================================
   LIGHT MODE — explicit resets when data-theme="light" is active
   Overrides the "DARK THEME" block above so the page remains usable.
============================================================ */

/* ── Override CSS custom properties so everything built on them automatically adjusts ── */
html[data-theme="light"] body.single-product {
  --dsp-surface:                    #f9f5ff;
  --dsp-on-surface:                 #1a0f2e;
  --dsp-on-surface-variant:         rgba(26,15,46,0.58);
  --dsp-surface-container-lowest:   rgba(26,15,46,0.03);
  --dsp-surface-container-low:      rgba(26,15,46,0.05);
  --dsp-surface-container:          rgba(26,15,46,0.07);
  --dsp-surface-container-high:     rgba(26,15,46,0.09);
  --dsp-surface-container-highest:  rgba(26,15,46,0.12);
  --dsp-outline-variant:            rgba(26,15,46,0.1);
  --dsp-line:                       rgba(26,15,46,0.08);
  --dsp-line-2:                     rgba(26,15,46,0.15);
  --dsp-glow:                       rgba(160,32,232,0.08);
}

/* Hide glow blobs in light mode */
html[data-theme="light"] body.single-product::before,
html[data-theme="light"] body.single-product::after {
  display: none;
}

/* Fix hardcoded #fff / rgba(255,255,255,*) text that doesn't use variables */
html[data-theme="light"] .digtiali-single-product .star-rating::before {
  color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .dsp-rating .woocommerce-review-link {
  color: var(--dsp-on-surface-variant);
}

html[data-theme="light"] .dsp-rating .woocommerce-review-link:hover,
html[data-theme="light"] .dsp-rating .woocommerce-review-link:focus-visible {
  color: var(--dsp-on-surface);
}

html[data-theme="light"] .dsp-title {
  color: #1a0f2e !important;
}

html[data-theme="light"] .dsp-badge-chip--primary {
  background: #e4cff5 !important;
  color: #3d1462 !important;
  border: 1px solid rgba(120, 27, 175, 0.22) !important;
}

html[data-theme="light"] .dsp-badge-chip--primary .dsp-badge-chip__label {
  color: #2f004b !important;
}

html[data-theme="light"] .dsp-tab-link:hover,
html[data-theme="light"] .dsp-tab-link.active {
  color: #1a0f2e !important;
}

html[data-theme="light"] .dsp-breadcrumb__nav a {
  color: rgba(26,15,46,0.45) !important;
}

html[data-theme="light"] .dsp-breadcrumb__nav a:hover {
  color: var(--dsp-brand) !important;
}

html[data-theme="light"] .dsp-breadcrumb__nav .dsp-breadcrumb__item:last-child {
  color: rgba(26,15,46,0.75) !important;
}

html[data-theme="light"] .dsp-breadcrumb__sep,
html[data-theme="light"] .dsp-breadcrumb__nav .wd-delimiter {
  color: rgba(26,15,46,0.45) !important;
}

/* Trust strip icon squares: ensure readable in light mode */
html[data-theme="light"] .dsp-trust-item .digi-icon {
  color: var(--dsp-brand) !important;
  background: rgba(160,32,232,0.08) !important;
  border-color: rgba(160,32,232,0.25) !important;
}

/* Hero gallery: light */
html[data-theme="light"] .dsp-hero-image .woocommerce-product-gallery {
  background: #f5f0fa !important;
  border-color: rgba(120,27,175,0.15) !important;
  box-shadow: 0 8px 32px rgba(120,27,175,0.1) !important;
}

/* Trust strip: light */
html[data-theme="light"] .dsp-trust-item {
  background: rgba(120,27,175,0.04) !important;
  border-color: rgba(120,27,175,0.15) !important;
  color: #4a1b6a;
}

/* Stat pills: light */
html[data-theme="light"] .dsp-stat-pill {
  background: #f4d9ff !important;
  border-color: rgba(120,27,175,0.2) !important;
  color: #4a1b6a !important;
}

html[data-theme="light"] .dsp-stat-pill .digi-icon {
  color: var(--dsp-primary) !important;
}

/* Stats bar: light — stays transparent */
html[data-theme="light"] .dsp-stats-bar {
  background: transparent !important;
  border: none !important;
}

html[data-theme="light"] .dsp-price-wrap {
  background: linear-gradient(180deg, rgba(120, 27, 175, 0.06), rgba(120, 27, 175, 0.02));
  border-color: rgba(120, 27, 175, 0.18);
}

/* Add-to-cart amber button: same in light mode, just ensure dark text stays */
html[data-theme="light"] .dsp-stats-btn--cart,
html[data-theme="light"] .dsp-stats-cart-form--variable .single_add_to_cart_button,
html[data-theme="light"] .dsp-stats-cart-form--variable .add_to_cart_button {
  color: #261900 !important;
  border: none !important;
}

html[data-theme="light"] .dsp-stats-bar.dsp-stats-bar--pinned {
  background: rgba(255,255,255,0.97) !important;
  border-top-color: rgba(120,27,175,0.12) !important;
  box-shadow: 0 -8px 32px rgba(120,27,175,0.08) !important;
}

/* Qty stepper: light */
html[data-theme="light"] .dsp-stats-qty-wrap .quantity,
html[data-theme="light"] .dsp-stats-cart-form--variable .cart .quantity {
  background: #fff !important;
  border-color: rgba(120,27,175,0.2) !important;
  box-shadow: 0 2px 8px rgba(78,0,120,0.07) !important;
}

html[data-theme="light"] .dsp-stats-qty-wrap .quantity .minus,
html[data-theme="light"] .dsp-stats-qty-wrap .quantity .plus,
html[data-theme="light"] .dsp-stats-cart-form--variable .quantity .minus,
html[data-theme="light"] .dsp-stats-cart-form--variable .quantity .plus {
  background: #f3e8f7 !important;
  color: var(--dsp-primary) !important;
}

html[data-theme="light"] .dsp-stats-qty-wrap .quantity .qty,
html[data-theme="light"] .dsp-stats-cart-form--variable .quantity .qty {
  background: #fff !important;
  color: #1a0f2e !important;
}

/* Variations: light */
html[data-theme="light"] .dsp-stats-cart-form--variable table.variations th.label label {
  color: #1a0f2e;
}

html[data-theme="light"] .dsp-variation-radio__pill {
  background: #fff;
  border-color: rgba(120, 27, 175, 0.18);
  color: #1a0f2e;
  box-shadow: 0 1px 3px rgba(78, 0, 120, 0.06);
}

html[data-theme="light"] .dsp-variation-radio:hover .dsp-variation-radio__pill {
  border-color: rgba(78, 0, 120, 0.28);
}

html[data-theme="light"] .dsp-variation-radio__input:checked + .dsp-variation-radio__pill {
  border-color: var(--dsp-primary);
  background: rgba(120, 27, 175, 0.1);
  color: #4e0078;
  box-shadow: 0 0 0 1px rgba(120, 27, 175, 0.25);
}

html[data-theme="light"] .digtiali-single-product .dsp-stats-cart-form--variable table.variations select:not(.dsp-variation-select-sr) {
  background-color: #fff;
  border-color: rgba(120, 27, 175, 0.18);
  color: #1a0f2e;
  box-shadow: 0 1px 3px rgba(78, 0, 120, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%234e0078' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="light"] .dsp-stats-cart-form--variable table.variations select option {
  background: #fff;
  color: #1a0f2e;
}

html[data-theme="light"] .digtiali-single-product .dsp-stats-cart-form--variable table.variations select:hover {
  border-color: rgba(78, 0, 120, 0.28);
}

html[data-theme="light"] .dsp-stats-cart-form--variable a.reset_variations {
  color: var(--dsp-primary);
  border-color: rgba(120, 27, 175, 0.2);
  background: rgba(120, 27, 175, 0.06);
}

html[data-theme="light"] .dsp-stats-cart-form--variable a.reset_variations:hover,
html[data-theme="light"] .dsp-stats-cart-form--variable a.reset_variations:focus-visible {
  color: #4e0078;
  border-color: rgba(78, 0, 120, 0.35);
  background: rgba(120, 27, 175, 0.1);
}

/* Description: light */
html[data-theme="light"] .dsp-product-description {
  background: #faf6ff !important;
  border-color: rgba(120,27,175,0.1) !important;
  color: #2d1650;
}

/* Reviews: light */
html[data-theme="light"] .dsp-reviews-wrap {
  background: #fff !important;
  border-color: rgba(120,27,175,0.12) !important;
}

html[data-theme="light"] .dsp-reviews-summary {
  background: linear-gradient(135deg, rgba(120,27,175,0.05), rgba(78,0,120,0.03)) !important;
  border-color: rgba(120,27,175,0.15) !important;
}

html[data-theme="light"] .dsp-reviews-wrap .comment_container {
  background: #faf6ff !important;
  border-color: rgba(120,27,175,0.15) !important;
}

html[data-theme="light"] .dsp-reviews-wrap .comment_container:hover {
  background: #f3e8ff !important;
  border-color: rgba(120,27,175,0.35) !important;
  box-shadow: 0 3px 16px rgba(120,27,175,0.1) !important;
}

html[data-theme="light"] .dsp-reviews-wrap #review_form input[type="text"],
html[data-theme="light"] .dsp-reviews-wrap #review_form input[type="email"],
html[data-theme="light"] .dsp-reviews-wrap #review_form textarea {
  background: #fff !important;
  border-color: rgba(120,27,175,0.2) !important;
  color: #1a0f2e !important;
}

/* FAQ: light */
html[data-theme="light"] .dpf-accordion-item {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(120, 27, 175, 0.15) !important;
}

html[data-theme="light"] .dpf-accordion-item:hover {
  border-color: rgba(120, 27, 175, 0.3) !important;
}

html[data-theme="light"] .dpf-accordion-item:has(.dpf-question.open) {
  border-color: rgba(155, 45, 212, 0.45) !important;
  background: rgba(120, 27, 175, 0.06) !important;
}

html[data-theme="light"] .dpf-question,
html[data-theme="light"] .dpf-question:hover,
html[data-theme="light"] .dpf-question.open {
  color: #1a1025 !important;
}

html[data-theme="light"] .dpf-chevron,
html[data-theme="light"] .dpf-question.open .dpf-chevron {
  color: var(--digi-purple-2, #9b2dd4) !important;
}

html[data-theme="light"] .dpf-answer__inner {
  color: #5a4d6a;
}

html[data-theme="light"] .dpf-answer__inner a {
  color: var(--digi-purple-2, #9b2dd4);
}

html[data-theme="light"] .dpf-answer__inner a:hover {
  color: var(--digi-purple, #781baf);
}

/* Tab count badge: light */
html[data-theme="light"] .dsp-tab-count {
  background: rgba(120,27,175,0.1);
  color: var(--dsp-primary);
}

/* Sidebar gallery: light */
html[data-theme="light"] .dsp-sidebar-gallery__item {
  border-color: rgba(120,27,175,0.12) !important;
  background: #faf6ff !important;
}

/* FBT: light */
html[data-theme="light"] .dsp-fbt {
  background: #faf6ff !important;
  border-color: rgba(120,27,175,0.12) !important;
}

/* Modal: light */
html[data-theme="light"] .dsp-modal-card {
  background: #fff !important;
  border: 1px solid rgba(120,27,175,0.12) !important;
  color: #1a0f2e !important;
}

html[data-theme="light"] .dsp-modal-title {
  color: #1a0f2e !important;
}

html[data-theme="light"] .dsp-modal-body {
  color: #3d1462 !important;
}

/* Custom services: light */
html[data-theme="light"] .dcs-service-item:hover {
  background: #faf6ff !important;
}

html[data-theme="light"] .dcs-service-item:has(.dcs-service-checkbox:checked) {
  background: #f3e8ff !important;
  box-shadow: 0 0 0 3px rgba(120,27,175,0.12) !important;
}

html[data-theme="light"] .dcs-cart-svc {
  background: #f3e8ff !important;
}

html[data-theme="light"] .dcs-cart-svc__label { color: #4a1b6a !important; }
html[data-theme="light"] .dcs-cart-svc__price { color: var(--dsp-primary) !important; }
