/* SarvTheme product-page.css — built from modules. Edit modules + run npm run build */

/* --- layout1.css --- */
/**
 * SarvTheme — Product Layout 1 styles.
 *
 * Enqueued only on single product pages by ProductLayoutManager. Built on the
 * theme's design tokens (--st-*). Shared, layout-agnostic product tokens live on
 * the `.st-product` scope so future layouts can reuse the same spacing,
 * typography and colors. Layout-1 specific rules use the `.st-pl1` namespace.
 * All directional spacing uses CSS logical properties for full RTL/LTR support.
 */

/* ---------- Shared product tokens (reusable by future layouts) ---------- */
.st-product {
  --st-product-gap: 20px;
  --st-product-space-xs: 6px;
  --st-product-space-sm: 10px;
  --st-product-space-md: 16px;
  --st-product-space-lg: 24px;
  --st-product-space-xl: 32px;

  --st-product-surface: var(--st-surface, #f8f9fa);
  --st-product-border: var(--st-border, #e5e7eb);
  --st-product-text: var(--st-text, #111827);
  --st-product-muted: color-mix(
    in srgb,
    var(--st-text, #111827) 55%,
    transparent
  );
  --st-product-radius: var(--st-radius-md, 12px);
  --st-product-radius-sm: calc(var(--st-radius-md, 12px) - 4px);

  --st-product-sale: #e11d48;
  --st-product-in-stock: #16a34a;
  --st-product-out-stock: #dc2626;

  --st-product-title-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  --st-product-section-title-size: 1.05rem;
}


/* ---------- Layout shell ---------- */
.st-pl1 {
  display: flex;
  flex-direction: column;
  gap: var(--st-product-gap);
  color: var(--st-product-text);
}

/* Layout columns — scoped to Layout1 shell so Theme Builder widgets
   using the same BEM classes are not forced into the 30%/flex column layout. */
.st-pl1 .st-pl1__flex {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: var(--st-product-gap);
}

/* Left column: information + attributes + purchase stacked.
   The gallery is first in the DOM, so in the RTL layout it sits on the right
   while this content column sits on the left. */
.st-pl1 .st-pl1__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--st-product-gap);
}

/* ---------- Product information ---------- */
.st-pl1__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--st-product-space-md, 20px);
}
.st-pl1__info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--st-product-space-md);
  border-bottom: 1px solid var(--st-product-border);
}

.st-pl1__quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--st-product-space-sm);
  margin-bottom: 10px;
}

.st-pl1__quick-action {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--st-product-muted);
  background: #fff;
  border: 1px solid var(--st-product-border);
  border-radius: var(--st-product-radius-sm);
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.st-pl1__quick-action:hover {
  color: var(--st-color-primary, #0d6efd);
  border-color: var(--st-color-primary, #0d6efd);
  transform: none;
}

.st-pl1__quick-action svg {
  width: 18px;
  height: 18px;
  display: block;
}

.st-pl1__countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 0.5rem 0.75rem;
  background-color: var(--st-color-primary, #0d6efd);
  color: #fff;
  border-radius: var(--st-product-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

.st-pl1__countdown div {
  white-space: nowrap;
}

.st-pl1__title-row {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--st-product-space-md);
}

.st-pl1__title {
  font-size: var(--st-product-title-size) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-pl1__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 96px;
}

.st-pl1__brand-link {
  display: inline-flex;
}

.st-pl1__brand-logo-img {
  max-width: 88px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.st-pl1__brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-product-muted);
  white-space: nowrap;
}

.st-pl1__title {
  margin: 0;
  font-size: var(--st-product-title-size);
  font-weight: 700;
  line-height: 1.45;
}

.st-pl1 .st-pl1__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--st-product-gap);
}

.st-pl1__attrs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-product-space-md);
  margin-bottom: var(--st-product-space-md);
}

.st-pl1 .st-pl1__body-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st-pl1 .st-pl1__body-right .st-pl1__body-right-inner{
  padding: 20px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 90px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st-pl1 .st-pl1__body-left {
  flex: 0 0 auto;
  max-width: 320px;
  width: 100%;
}

.st-pl1__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--st-product-space-sm) var(--st-product-space-lg);
  padding-top: var(--st-product-space-md);
  padding-bottom: var(--st-product-space-md);
  border-bottom: 1px dashed var(--st-product-border);
  border-top: 1px dashed var(--st-product-border);
  font-size: 0.875rem;
  color: var(--st-product-muted);
}

.st-pl1__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--st-product-muted);
  text-decoration: none;
}

a.st-pl1__meta-item:hover {
  color: var(--st-color-primary, #0d6efd);
}

.st-pl1__meta-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--st-product-muted);
}

.st-pl1__meta-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.st-pl1__meta-item--rating .st-pl1__meta-icon {
  color: #f59e0b;
}

.st-pl1__meta-value {
  color: var(--st-product-text);
  font-weight: 600;
  text-decoration: none;
}

a.st-pl1__meta-value:hover {
  color: var(--st-color-primary, #0d6efd);
}

.st-pl1__sku-value {
  color: var(--st-product-text);
  font-weight: 600;
}

.st-pl1__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--st-product-space-sm);
}

.st-pl1__rating .star-rating {
  margin: 0;
  font-size: 0.95em;
  color: #f59e0b;
}

.st-pl1__review-count {
  color: var(--st-product-muted);
  text-decoration: none;
}

.st-pl1__review-count:hover {
  color: var(--st-color-primary, #0d6efd);
}

/* ---------- Attributes ---------- */
.st-pl1__section-title {
  margin: 0 0 var(--st-product-space-md);
  font-size: var(--st-product-section-title-size) !important;
  font-weight: 700;
}

.st-pl1__attrs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--st-product-space-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-block-end: var(--st-product-space-sm);
  scrollbar-width: thin;
}

.st-pl1__attrs-list::-webkit-scrollbar {
  height: 6px;
}

.st-pl1__attrs-list::-webkit-scrollbar-thumb {
  background: var(--st-product-border);
  border-radius: var(--st-radius-pill, 999px);
}

.st-pl1__attrs-item {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 160px;
  font-size: 0.9rem;
  background-color: #f0f0f1;
  border-radius: var(--st-product-radius-sm);
  padding: var(--st-product-space-sm);
  white-space: nowrap;
}

.st-pl1__attrs-label {
  color: var(--st-product-muted);
  flex: 0 0 auto;
}

.st-pl1__attrs-value {
  color: var(--st-product-text);
  font-weight: 600;
  text-align: end;
}

.st-pl1__attrs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  background: transparent;
  color: var(--st-color-primary, #0d6efd);
  border: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.st-pl1__attrs-toggle:hover {
  background: transparent !important;
}

.st-pl1__attrs-toggle-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.2s ease;
}

.st-pl1__attrs-toggle[aria-expanded="true"] .st-pl1__attrs-toggle-icon svg {
  transform: rotate(180deg);
}

/* ---------- Warranty notice ---------- */
.st-pl1__warranty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.st-pl1__warranty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--st-color-primary, #0d6efd);
  background: color-mix(in srgb, var(--st-color-primary, #0d6efd) 10%, #fff);
}

.st-pl1__warranty-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.st-pl1__warranty-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--st-product-muted, #6b7280);
}

/* ---------- Gallery (SarvTheme component — layout shell only) ---------- */
/* Column width only inside Layout1. Theme Builder / standalone widgets stay full-width. */
.st-pl1__gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.st-pl1 .st-pl1__gallery {
  flex: 0 0 30%;
  max-width: 30%;
}

.st-pl1__gallery .st-gallery {
  margin-bottom: 0 !important;
  width: 100% !important;
}

/* ---------- Purchase box ---------- */
.st-pl1__purchase {
  width: 100%;
  padding: var(--st-product-space-lg);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 90px rgba(0, 0, 0, 0.05);
}
.st-pl1__purchase-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--st-product-space-md);
}

.st-pl1__price-container {
  display: flex;
  flex-direction: column;
  gap: var(--st-product-space-md);
}

.st-pl1__sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--st-color-primary, var(--st-product-sale));
  border-radius: var(--st-radius-pill, 999px);
  box-shadow: 0 6px 14px
    color-mix(in srgb, var(--st-color-primary, #7c3aed) 30%, transparent);
}

.st-pl1__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.2;
}

/* Card-style price markup (reused from the product card) on the product page. */
.single_variation_wrap{
  display: flex;
  flex-direction: column;
  gap: var(--st-product-space-md);
}
.st-pl1__price .d-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-pl1 .sarv-product-card__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--st-color-primary, #0d6efd);
  border-radius: 6px;
}

.st-pl1 .sarv-product-card__old-price,
.woocommerce-variation .woocommerce-variation-price del bdi  {
  color: var(--st-product-muted, #999);
  font-size: 0.9rem;
  font-weight: 500;
}
.woocommerce-variation .woocommerce-variation-price del{
  text-decoration-color: var(--st-product-muted, #999);
  font-size: 0.9rem;
  font-weight: 500;
}

.st-pl1 .sarv-product-card__current-price,
.woocommerce-variation .woocommerce-variation-price bdi{
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--st-product-text, inherit);
}

.woocommerce-variation .woocommerce-variation-price ins{
  text-decoration: none !important;
}

.woocommerce-variation .woocommerce-variation-price bdi .woocommerce-Price-currencySymbol{
  font-size: 0.9rem;
}

.woocommerce-variation .woocommerce-variation-price .price{
  display: flex;
  flex-direction: column;
}

.st-pl1 .sarv-product-card__price-prefix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-product-muted, #666);
  margin-inline-end: 2px;
}

.st-pl1 .sarv-product-card__currency {
  font-size: 0.9rem;
  font-weight: 600;
  margin-inline-start: 2px;
}

.st-pl1__stock {
  display: inline-flex;
  align-items: center;
  gap: var(--st-product-space-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.st-pl1__stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--st-product-out-stock);
}

.st-pl1__stock--instock {
  color: var(--st-product-in-stock);
}

.st-pl1__stock--instock .st-pl1__stock-dot {
  background: var(--st-product-in-stock);
}

.st-pl1__stock--onbackorder {
  color: #d97706;
}

.st-pl1__stock--onbackorder .st-pl1__stock-dot {
  background: #d97706;
}

.st-pl1__stock--outofstock {
  color: var(--st-product-out-stock);
}

.st-pl1__purchase form.cart {
  margin-bottom: 0 !important;
}

.woocommerce div.product form.cart .variations {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.woocommerce div.product form.cart .variations tbody {
  display: contents;
}

.woocommerce div.product form.cart .variations tr {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
  display: block;
  width: 100%;
  padding: 0;
}

/*
 * The native add-to-cart form fills the purchase box. A 2-column grid puts the
 * quantity (label + stepper) on the first row and the add-to-cart + buy-now
 * buttons on the second row, matching the Layout 1 design.
 */
.st-pl1__cart .cart,
.st-pl1__cart .woocommerce-variation-add-to-cart,
.st-pl1__cart .st-product-cart__compat .cart,
.st-pl1__cart .st-product-cart__compat .woocommerce-variation-add-to-cart {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--st-product-space-sm) var(--st-product-space-md);
}

.st-pl1__qty-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-product-text);
}

.st-pl1__cart .quantity {
  justify-self: start;
  margin: 0;
}

.st-pl1__cart .single_add_to_cart_button,
.st-pl1__cart .st-product-cart__add {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.st-pl1__cart .cart button[type="submit"],
.st-pl1__cart .st-product-cart__add {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  background: transparent !important;
  color: var(--st-color-primary, #0d6efd) !important;
}

.st-pl1__buy-now .st-pl1__action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.st-pl1__cart .st-product-cart__compat .variations_form .variations,
.st-pl1__cart .variations_form .variations {
  margin-block-end: var(--st-product-space-md);
}

/* Quantity stepper styling lives in the shared component
   (assets/css/modules/frontend/quantity-stepper.css → .st-qty). */

/* Secondary actions — labeled text buttons in a divided row. */
.st-pl1__actions {
  display: flex;
  align-items: center;
  gap: var(--st-product-space-sm);
  padding-block-start: var(--st-product-space-md);
  border-block-start: 1px solid
    color-mix(
      in srgb,
      var(--st-color-primary, #7c3aed) 14%,
      var(--st-product-border)
    );
}

.st-pl1__action {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st-product-space-sm);
  padding: 6px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-product-muted);
  background: transparent;
  border: 0;
  border-radius: var(--st-product-radius-sm);
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease;
}

.st-pl1__action:hover {
  color: var(--st-color-primary, #0d6efd);
  background: transparent;
  transform: none;
}

.st-pl1__action-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------- Benefits ---------- */
.st-product-benefits {
  margin: 60px 0;
}

.st-product-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--st-product-space-lg);
}

.st-product-benefits__item {
  display: flex;
  align-items: center;
  text-align: right;
  gap: var(--st-product-space-sm);
  padding-inline: var(--st-product-space-md);
}

.st-product-benefits__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--st-color-primary, #0d6efd);
}

.st-product-benefits__icon svg {
  width: 64px;
  height: 64px;
}

.st-product-benefits__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.st-product-benefits__title {
  font-size: 0.95rem;
  font-weight: 700;
}

.st-product-benefits__desc {
  font-size: 0.8rem;
  color: var(--st-product-muted);
  line-height: 1.6;
}

/* ---------- Tabs ----------
   Product tabs are now rendered by the reusable ProductTabs component
   (inc/theme/WooCommerce/ProductTabs), which ships its own styles (tabs.css).
   Layout 1 only provides the outer .st-pl1__tabs spacing wrapper. */

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  /* Tablet: keep two columns but tighten the gap. */
  .st-pl1 .st-pl1__flex {
    column-gap: var(--st-product-space-lg);
  }

  .st-product-benefits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--st-product-space-md);
  }

  .st-product-benefits__item:not(:last-child) {
    border-inline-end: 0;
  }
}

@media (max-width: 767px) {
  /* Mobile: single column — gallery on top, then the content column. */
  .st-pl1 .st-pl1__flex {
    flex-direction: column;
  }

  .st-pl1 .st-pl1__gallery {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .st-pl1__attrs-list {
    grid-template-columns: 1fr;
  }

  .st-pl1__cart .single_add_to_cart_button {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .st-product-benefits__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Share modal ---------- */
.st-share[hidden] {
  display: none;
}

.st-share {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--st-product-space-md, 20px);
}

.st-share__overlay {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(2px);
}

.st-share__dialog {
  --st-share-fg: #25356b;
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  color: var(--st-share-fg);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 0.25);
  animation: st-share-in 0.18s ease;
}

@keyframes st-share-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--st-color-border, #e5e7eb);
}

.st-share__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.st-share__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
}

.st-share__close svg {
  width: 20px;
  height: 20px;
}

.st-share__close:hover {
  background: color-mix(in srgb, var(--st-share-fg) 8%, transparent);
  transform: none;
}

.st-share__lead {
  margin: 16px 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.st-share__product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
  border-block: 1px solid var(--st-color-border, #e5e7eb);
}

.st-share__product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-color-primary, var(--st-share-fg));
  line-height: 1.6;
}

.st-share__product-thumb {
  flex: 0 0 auto;
}

.st-share__product-thumb img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.st-share__channels {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding-block: 18px;
}

.st-share__channel {
  flex: 1 1 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}

.st-share__channel:hover {
  background: color-mix(in srgb, var(--st-share-fg) 6%, transparent);
  color: inherit;
}

.st-share__channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-share__channel-icon svg {
  width: 30px;
  height: 30px;
}

.st-share__channel-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.st-share__copy {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px;
  color: var(--st-share-fg);
  background: transparent;
  border: 0;
  border-block-start: 1px solid var(--st-color-border, #e5e7eb);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.st-share__copy:hover {
  color: var(--st-color-primary, var(--st-share-fg));
  background: transparent;
  transform: none;
}

.st-share__copy svg {
  width: 20px;
  height: 20px;
}

.st-share__copy.is-copied {
  color: #16a34a;
}

body.st-share-open {
  overflow: hidden;
}

/* --- product-cart.css --- */
/**
 * Single-product cart component styles.
 *
 * Reusable across all product layouts. Layout-specific overrides may live in
 * the active layout stylesheet (e.g. Layout1/layout1.css).
 */

.st-product-cart {
  position: relative;
  width: 100%;
}

.st-product-cart__ui {
  display: flex;
  flex-direction: column;
  gap: var(--st-product-space-sm, 12px);
}

/* Hide native qty + submit when the custom UI is active. */
.st-product-cart:not(.st-product-cart--native) .st-product-cart__compat .quantity,
.st-product-cart:not(.st-product-cart--native) .st-product-cart__compat .single_add_to_cart_button,
.st-product-cart:not(.st-product-cart--native) .st-product-cart__compat button[type="submit"] {
  display: none !important;
}

.st-product-cart--native .st-product-cart__ui {
  display: none;
}

.st-product-cart__add {
  position: relative;
  width: 100%;
  min-height: var(--st-control-height, 44px);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--st-radius-sm, 8px);
}

.st-product-cart__add[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.st-product-cart__unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: var(--st-control-height, 44px);
  padding: 12px 16px;
  border-radius: var(--st-radius-sm, 8px);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.st-product-cart__unavailable[hidden] {
  display: none !important;
}

.st-product-cart__unavailable-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #c2410c;
}

.st-product-cart__qty {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--st-control-height, 44px);
  background: var(--st-color-surface, #fff);
  border: 1px solid var(--st-color-border, #dee2e6);
  border-radius: var(--st-radius-sm, 8px);
  overflow: hidden;
}

.st-product-cart__btn {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--st-text, inherit);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.st-product-cart__btn:hover {
  background: color-mix(in srgb, var(--st-color-primary, #0d6efd) 8%, transparent);
  color: var(--st-color-primary, #0d6efd);
}

.st-product-cart__qty .st-product-cart__count {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.st-product-cart__icon-remove {
  display: block;
}

.st-product-cart__spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid color-mix(in srgb, currentColor 20%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  transform-origin: center center;
  animation: st-product-cart-spin 0.65s linear infinite;
}

.st-product-cart__spinner--qty {
  z-index: 1;
  pointer-events: none;
}

.st-product-cart.is-updating .st-product-cart__add-text,
.st-product-cart.is-updating .st-product-cart__count,
.st-product-cart.is-updating .st-product-cart__btn {
  opacity: 0.35;
}

.st-product-cart.is-updating .st-product-cart__spinner,
.st-product-cart__qty.is-updating .st-product-cart__spinner--qty {
  display: block;
}

.st-product-cart__compat form.cart {
  margin-bottom: 0;
}

@keyframes st-product-cart-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- tabs.css --- */
/**
 * SarvTheme — Product Tabs component styles.
 *
 * Enqueued only on single product pages by TabsManager. Built entirely on the
 * theme design tokens (--st-*) and a local set of --st-tabs-* variables so the
 * whole look (colors, radius, spacing, indicator, sticky offset) can be themed
 * from Theme Settings later without editing this file.
 *
 * Version 1 ships the "classic" modern style: a rounded, soft-shadowed nav bar
 * with an animated underline indicator, smooth transitions and a horizontally
 * scrollable (snap) navigation on mobile. Other navigation modes (pills,
 * minimal, card, sidebar, accordion, timeline) are reserved via the
 * [data-st-tabs-style="..."] hook and can be added later with CSS only.
 *
 * All directional spacing uses CSS logical properties for full RTL/LTR support.
 */

/* ---------- Tokens ---------- */
.st-tabs {
  --st-tabs-space: clamp(20px, 3vw, 36px);
  --st-tabs-gap: clamp(16px, 2vw, 28px);

  --st-tabs-surface: var(--st-surface, #fff);
  --st-tabs-border: var(--st-border, #e5e7eb);
  --st-tabs-text: var(--st-text, #111827);
  --st-tabs-muted: color-mix(in srgb, var(--st-text, #111827) 55%, transparent);
  --st-tabs-primary: var(--st-color-primary, #0d6efd);

  --st-tabs-radius: var(--st-radius-md, 12px);
  --st-tabs-nav-radius: var(--st-product-radius, 999px);
  --st-tabs-shadow: 0 6px 24px -8px rgba(17, 24, 39, 0.18),
    0 2px 6px -2px rgba(17, 24, 39, 0.08);

  --st-tabs-nav-padding-block: 8px;
  --st-tabs-nav-padding-inline: 8px;
  --st-tabs-tab-padding-block: 12px;
  --st-tabs-tab-padding-inline: 20px;

  --st-tabs-indicator-color: var(--st-tabs-primary);
  --st-tabs-indicator-height: 3px;

  --st-tabs-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Set at runtime by tabs.js from the header height + data-scroll-offset.
     Used both for anchor scroll-margin and for the sticky top offset. */
  --st-tabs-scroll-offset: 0px;
  --st-tabs-sticky-offset: calc(var(--st-admin-bar-offset, 0px) + var(--st-tabs-scroll-offset, 0px));

  display: flex;
  flex-direction: column;
  gap: var(--st-tabs-space);
  color: var(--st-tabs-text);
}

/* ---------- Navigation shell ---------- */
.st-tabs__nav {
  position: relative;
  z-index: 2;
}

.st-tabs__nav-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--st-tabs-nav-padding-block) var(--st-tabs-nav-padding-inline);
  background: #F8F8F8;
  border-radius: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.st-tabs__nav-track::-webkit-scrollbar {
  display: none;
}

/* ---------- Tabs ---------- */
.st-tabs__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: var(--st-tabs-tab-padding-block) var(--st-tabs-tab-padding-inline);
  border: 0;
  border-radius: 60px;
  background: transparent;
  color: var(--st-tabs-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color var(--st-tabs-transition),
    background-color var(--st-tabs-transition);
}

.st-tabs__tab:hover {
  color: var(--st-tabs-text);
  background: color-mix(in srgb, var(--st-tabs-primary) 8%, transparent);
}

.st-tabs__tab.is-active {
  color: #fff;
  background: var(--st-color-primary, #0d6efd);
}

.st-tabs__tab:focus-visible {
  outline: none;
  box-shadow: var(--st-focus-ring, 0 0 0 3px rgba(13, 110, 253, 0.25));
}

.st-tabs__tab-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.st-tabs__tab-icon svg {
  width: 100%;
  height: 100%;
}

.st-tabs__tab-label {
  display: inline-block;
}

/* ---------- Animated indicator (underline) ---------- */
.st-tabs__indicator {
  position: absolute;
  bottom: 4px;
  /* Anchored to the physical LEFT edge on purpose. JS positions the indicator
     with translateX() using the active tab's offsetLeft, which is ALWAYS
     measured from the left of the scroll track — even in RTL. Using a logical
     inset-inline-start here would flip the origin to the right in RTL and the
     two would disagree, putting the underline in the wrong place. */
  left: 0;
  width: var(--st-tabs-indicator-width, 0px);
  height: var(--st-tabs-indicator-height);
  border-radius: var(--st-radius-pill, 999px);
  background: var(--st-tabs-indicator-color);
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--st-tabs-indicator-x, 0px));
  transition: transform var(--st-tabs-transition),
    width var(--st-tabs-transition), opacity var(--st-tabs-transition);
}

.st-tabs.is-ready .st-tabs__indicator {
  opacity: 1;
}

/* animation = fade : indicator cross-fades instead of sliding. */
.st-tabs[data-st-tabs-animation='fade'] .st-tabs__indicator {
  transition: width var(--st-tabs-transition), opacity var(--st-tabs-transition);
}

/* animation = none : no movement transition. */
.st-tabs[data-st-tabs-animation='none'] .st-tabs__indicator {
  transition: none;
}

/* ---------- Panels ---------- */
.st-tabs__panels {
  display: flex;
  flex-direction: column;
  gap: var(--st-tabs-gap);
}

/* Behavior: panels (classic). JS adds .is-enhanced once it controls visibility,
   so without JS every section stays visible (graceful fallback / SEO). Only the
   active panel is shown; switching is instant with a soft content fade-in. */
.st-tabs.is-enhanced[data-st-tabs-behavior='panels'] .st-tabs__panel {
  display: none;
}

.st-tabs.is-enhanced[data-st-tabs-behavior='panels'] .st-tabs__panel.is-active {
  display: block;
  animation: st-tabs-fade-in var(--st-tabs-transition);
}

@media (prefers-reduced-motion: reduce) {
  .st-tabs.is-enhanced[data-st-tabs-behavior='panels'] .st-tabs__panel.is-active {
    animation: none;
  }
}

@keyframes st-tabs-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-tabs__panel {
  scroll-margin-block-start: calc(
    var(--st-tabs-sticky-offset, 0px) + var(--st-tabs-space)
  );
  padding: var(--st-tabs-space);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 90px rgba(0, 0, 0, 0.05);
}

.st-tabs__panel:focus {
  outline: none;
}

.st-tabs__panel:focus-visible {
  box-shadow: var(--st-focus-ring, 0 0 0 3px rgba(13, 110, 253, 0.25));
}

.st-tabs__panel-title {
  margin-block: 0 var(--st-tabs-gap);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--st-tabs-text);
}

.st-tabs__panel-content > :first-child {
  margin-block-start: 0;
}

.st-tabs__panel-content > :last-child {
  margin-block-end: 0;
}

/* ---------- Sticky navigation ----------
   Enabled via data-st-tabs-sticky="true" (auto for scroll-spy behavior).
   Base stickiness is CSS position: sticky. tabs.js toggles .is-stuck for
   elevation when the nav is pinned. */
.st-tabs[data-st-tabs-sticky='true'] .st-tabs__nav {
  position: sticky;
  inset-block-start: var(--st-tabs-sticky-offset, 0px);
  z-index: 30;
  /* Keep panels from showing through the nav while stuck. */
  background: color-mix(in srgb, var(--st-tabs-surface, #fff) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-block: 4px;
  margin-block: -4px;
}

.st-tabs[data-st-tabs-sticky='true'] .st-tabs__nav.is-stuck .st-tabs__nav-track {
  box-shadow: 0 10px 30px -10px rgba(17, 24, 39, 0.28);
}

/* ---------- Position variants (architecture) ----------
   v1 renders top. Bottom is a pure ordering tweak; left/right (sidebar) and
   accordion are reserved for future navigation modes. */
.st-tabs[data-st-tabs-position='bottom'] {
  flex-direction: column-reverse;
}

/* ---------- Panel content collapse (show more) ---------- */
.st-tabs__collapse {
  --st-tabs-collapse-max-h: 280px;
  --st-tabs-collapse-fade: var(--st-tabs-surface, #fff);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.st-tabs__collapse.is-collapsed .st-tabs__collapse-body {
  max-height: var(--st-tabs-collapse-max-h);
  overflow: hidden;
}

.st-tabs__collapse:not(.is-collapsed) .st-tabs__collapse-body {
  max-height: none;
  overflow: visible;
}

.st-tabs__collapse-fade {
  display: none;
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  inset-block-end: 3.25rem;
  height: 5.5rem;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--st-tabs-collapse-fade) 0%, transparent),
    var(--st-tabs-collapse-fade)
  );
}

.st-tabs__collapse.is-collapsed .st-tabs__collapse-fade {
  display: block;
}

.st-tabs__collapse.is-collapsed.is-short .st-tabs__collapse-fade,
.st-tabs__collapse.is-collapsed.is-short .st-tabs__collapse-more {
  display: none;
}

.st-tabs__collapse.is-collapsed.is-short .st-tabs__collapse-body {
  max-height: none;
  overflow: visible;
}

.st-tabs__collapse-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0.45rem;
  margin-block-start: 1rem;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid color-mix(in srgb, var(--st-tabs-primary) 45%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-tabs-primary) 10%, #fff);
  color: var(--st-tabs-primary);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--st-tabs-transition), border-color var(--st-tabs-transition),
    color var(--st-tabs-transition);
}

.st-tabs__collapse-more:hover {
  background: color-mix(in srgb, var(--st-tabs-primary) 18%, #fff);
  border-color: var(--st-tabs-primary);
}

.st-tabs__collapse-more:focus-visible {
  outline: 2px solid var(--st-tabs-primary);
  outline-offset: 2px;
}

.st-tabs__collapse-more-icon {
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--st-tabs-transition);
  margin-block-start: -0.15rem;
}

.st-tabs__collapse:not(.is-collapsed) .st-tabs__collapse-more-icon {
  transform: rotate(-135deg);
  margin-block-start: 0.15rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .st-tabs__nav-track {
    scroll-behavior: auto;
  }

  .st-tabs__indicator,
  .st-tabs__tab {
    transition: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .st-tabs {
    --st-tabs-tab-padding-inline: 16px;
  }

  .st-tabs__nav-track {
    display: flex;
    width: 100%;
    scroll-snap-type: x mandatory;
  }

  .st-tabs__panel {
    padding: clamp(16px, 5vw, 24px);
  }
}

/* --- additional-information.css --- */
/**
 * SarvTheme — Additional Information tab (product attributes).
 *
 * Matches the list-style spec sheet: green start accent, dashed row
 * dividers, bold label + muted value on one line (RTL-friendly).
 *
 * Markup (WooCommerce core):
 *   .woocommerce-Tabs-panel--additional_information
 *     table.woocommerce-product-attributes.shop_attributes
 *       tr.woocommerce-product-attributes-item
 *         th.woocommerce-product-attributes-item__label
 *         td.woocommerce-product-attributes-item__value
 */

.woocommerce-Tabs-panel--additional_information {
	--st-ai-accent: var(--st-color-primary, #8cc63f);
	--st-ai-label: #2f3438;
	--st-ai-value: #8a9199;
	--st-ai-divider: #d8dde3;
	--st-ai-pad-block: 1.15rem;
	--st-ai-pad-inline-start: 1rem;
	--st-ai-gap: 0.35rem;
	--st-ai-accent-width: 3px;
	--st-ai-font-size: 0.95rem;
}

/* ---------- Reset table → list layout ---------- */
.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes,
.woocommerce-Tabs-panel--additional_information .shop_attributes {
	display: block;
	width: 100%;
	border: none !important;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
	color: var(--st-ai-label);
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes tbody {
	display: block;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--st-ai-gap);
	padding: 10px 0;
	border-block-end: 1px dashed #e6e6e6be;
	background: transparent;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item:last-child {
	border-block-end: 0;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__label,
.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__value {
	display: inline;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	vertical-align: baseline;
	text-align: start;
	font-size: var(--st-ai-font-size);
	line-height: 1.7;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__label {
	flex: 0 0 25%;
	color: var(--st-ai-label);
	font-weight: 700 !important;
	border-bottom: none !important;
	background: transparent !important;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__label::after {
	content: ':';
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__value {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--st-ai-value);
	font-weight: 400;
	background: transparent !important;
    border-bottom: none !important;
    font-style: normal !important;
    padding: 8px;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__value p {
	display: inline;
	margin: 0;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__value p + p {
	margin-inline-start: 0.25em;
}

.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes-item__value a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- product-feedback-chrome.css --- */
/**
 * Shared chrome for Product Q&A + Product Reviews.
 *
 * Keeps existing class names (JS/PHP contracts unchanged) and collapses
 * proven-identical layout/shell declarations into grouped selectors.
 *
 * Component-local tokens (--st-qa-* / --st-reviews-*) remain on each root;
 * shared rules use theme tokens or hardcoded values that already matched.
 */

/* ---------- Toolbar shell ---------- */
.st-qa__toolbar,
.st-reviews__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-qa__toolbar-start,
.st-qa__toolbar-end,
.st-reviews__toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- Sort dropdown shell ---------- */
.st-qa__sort-wrap,
.st-reviews__sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.st-qa__sort,
.st-reviews__sort {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: min(100%, 13rem);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  border: none;
  border-radius: 60px !important;
  background: #f6f6f6 !important;
  color: #575757 !important;
  cursor: pointer;
}

.st-qa__sort-label,
.st-reviews__sort-label {
  flex: 1;
  text-align: start;
}

.st-qa__sort-chevron,
.st-reviews__sort-chevron {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--st-text, #111827) 55%, transparent);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.st-qa__sort-wrap.is-open .st-qa__sort-chevron,
.st-reviews__sort-wrap.is-open .st-reviews__sort-chevron {
  transform: rotate(180deg);
}

.st-qa__sort:focus-visible,
.st-reviews__sort:focus-visible {
  outline: none;
  box-shadow: var(--st-focus-ring, 0 0 0 3px rgba(13, 110, 253, 0.25));
}

.st-qa__sort-menu,
.st-reviews__sort-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 6px);
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--st-product-border, var(--st-border, #e5e7eb));
  border-radius: var(--st-product-radius, var(--st-radius-md, 12px));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.st-qa__sort-menu[hidden],
.st-reviews__sort-menu[hidden] {
  display: none !important;
}

.st-qa__sort-option-btn,
.st-reviews__sort-option-btn {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: start;
  color: var(--st-text, #111827);
  background: transparent;
  border: none;
  border-radius: calc(var(--st-product-radius, var(--st-radius-md, 12px)) - 4px);
  cursor: pointer;
  transition:
    background-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
    color 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.st-qa__sort-option-btn:hover,
.st-qa__sort-option-btn:focus-visible,
.st-reviews__sort-option-btn:hover,
.st-reviews__sort-option-btn:focus-visible {
  background: color-mix(in srgb, var(--st-color-primary, #0d6efd) 8%, transparent);
  outline: none;
}

.st-qa__sort-option-btn.is-active,
.st-reviews__sort-option-btn.is-active {
  color: var(--st-color-primary, #0d6efd);
  background: color-mix(in srgb, var(--st-color-primary, #0d6efd) 10%, transparent);
  font-weight: 600;
}

/* ---------- Card shell + body copy ---------- */
.st-qa-item,
.st-review {
  background: #f0f0f0;
  border-radius: var(--st-radius-md, 12px);
  padding: 20px 20px 0;
}

.st-qa-item__container,
.st-review__container {
  border-radius: var(--st-radius-md, 12px) var(--st-radius-md, 12px) 0 0;
  background-color: #fff;
  padding: 20px 20px 0;
}

.st-qa-item__content,
.st-qa-answer__content,
.st-review__content {
  font-size: 0.875rem;
  line-height: 2.5;
  color: #979797;
}

.st-qa-item__content p:last-child,
.st-qa-answer__content p:last-child,
.st-review__content p:last-child {
  margin-block-end: 0;
}

.st-qa-item__footer,
.st-review__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-start: 14px;
}

/* ---------- List stack ---------- */
.st-qa__list,
.st-reviews__list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}

/* ---------- Reply arrow geometry (QA + review replies) ---------- */
.st-qa-reply-arrow,
.st-review-reply-arrow {
  position: absolute;
  /* QA uses --st-qa-reply-indent; reviews use --st-review-reply-indent (may nest). */
  inset-inline-start: calc(
    -1 * var(--st-qa-reply-indent, var(--st-review-reply-indent, 39px))
  );
  top: 0;
  width: 39px;
  height: 81px;
  color: #d3d3d3;
  pointer-events: none;
  line-height: 0;
}

.st-qa-reply-arrow svg,
.st-review-reply-arrow svg {
  display: block;
  width: 39px;
  height: 81px;
}

[dir="ltr"] .st-qa-reply-arrow,
[dir="ltr"] .st-review-reply-arrow {
  transform: scaleX(-1);
}

/* ---------- Answer / user-reply author row + avatar shell ---------- */
.st-qa-answer__head .st-qa-answer__author,
.st-review-user-reply__head {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 8px;
}

.st-qa-answer__avatar,
.st-review-user-reply__avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

/* --- reviews.css --- */
/**
 * SarvTheme — Product Reviews component styles.
 *
 * Enqueued via the product-page bundle on single product pages. Built on theme
 * design tokens (--st-*) and local --st-reviews-* variables so the look can be
 * themed from Theme Settings later without editing this file.
 *
 * All directional spacing uses CSS logical properties for full RTL/LTR support.
 */

/* ---------- Tokens ---------- */
.st-reviews {
  --st-reviews-space: clamp(16px, 2.5vw, 28px);
  --st-reviews-gap: clamp(12px, 1.5vw, 20px);
  --st-reviews-card-gap: clamp(14px, 2vw, 22px);

  --st-reviews-surface: var(--st-surface, #fff);
  --st-reviews-border: var(--st-border, #e5e7eb);
  --st-reviews-text: var(--st-text, #111827);
  --st-reviews-muted: color-mix(
    in srgb,
    var(--st-text, #111827) 55%,
    transparent
  );
  --st-reviews-primary: var(--st-color-primary, #0d6efd);

  --st-reviews-radius: var(--st-radius-md, 12px);
  --st-reviews-shadow:
    0 4px 20px -6px rgba(17, 24, 39, 0.12),
    0 2px 6px -2px rgba(17, 24, 39, 0.06);

  --st-reviews-pro: #16a34a;
  --st-reviews-con: #dc2626;
  --st-reviews-star: #f59e0b;
  --st-reviews-verified: #0d9488;
  --st-reviews-recommend-yes: #90c742;
  --st-reviews-recommend-no: #ef2029;

  --st-reviews-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  flex-direction: column;
  gap: var(--st-reviews-space);
  color: var(--st-reviews-text);
}

.st-reviews[data-radius] {
  --st-reviews-radius: attr(data-radius px, 12px);
}

/* ---------- Header ---------- */
.st-reviews__header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 30px;
}

.st-reviews__header svg {
  width: 40px;
  height: 40px;
  color: var(--st-reviews-text);
}

.st-reviews__title {
  margin: 0;
  font-size: var(--st-product-section-title-size, 1.05rem) !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

.st-reviews__title strong {
  color: var(--st-reviews-primary);
}

.st-reviews__summary {
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 30px;
}

/* ---------- Summary grid ---------- */
.st-reviews__summary-grid {
  display: grid;
  grid-template-columns: minmax(120px, 50%) 1px 1fr;
  gap: var(--st-reviews-gap);
  align-items: stretch;
}

.st-reviews__summary-divider {
  width: 1px;
  background: var(--st-reviews-border);
  align-self: stretch;
}

@media (max-width: 768px) {
  .st-reviews__summary-grid {
    grid-template-columns: 1fr;
  }

  .st-reviews__summary-divider {
    display: none;
  }
}

/* Score card */
.st-reviews__score {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding-block: 4px;
}

.st-reviews__score-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.st-reviews__score-content-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--st-reviews-text);
}

.st-reviews__score-content-description {
  font-size: 0.85rem;
  color: var(--st-reviews-muted);
  font-weight: 400;
  line-height: 2;
  text-align: start;
}

.st-reviews__write-btn {
  width: fit-content !important;
  border-radius: 60px !important;
  padding: 12px 30px !important;
  background-color: #2d2d2d !important;
  color: #fff !important;
}

.st-reviews__score-value-container {
  flex: 0 0 30%;
}

.st-reviews__score-value {
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.st-reviews__score-count {
  font-size: 0.85rem;
  color: var(--st-reviews-muted);
}

.st-reviews__score-count strong {
  font-weight: 700;
  color: var(--st-reviews-text);
}

.st-reviews__score .st-reviews__write-btn {
  width: 100%;
  margin-block-start: 6px;
  padding: 10px 16px;
  font-size: 0.875rem;
  border-radius: var(--st-product-radius, var(--st-reviews-radius));
}

/* Stars (shared) */
.st-reviews__stars {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 3px;
  unicode-bidi: isolate;
}

.st-reviews__stars-base {
  color: color-mix(
    in srgb,
    var(--st-reviews-star) 25%,
    var(--st-reviews-border)
  );
}

.st-reviews__stars-fill {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--st-reviews-star);
  pointer-events: none;
}

/* Distribution bars */
.st-reviews__bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding-block: 4px;
}

.st-reviews__bar-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}

.st-reviews__bar-pct {
  font-weight: 600;
  color: var(--st-reviews-text);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.st-reviews__bar-label {
  color: var(--st-reviews-muted);
  font-weight: 500;
  white-space: nowrap;
}

.st-reviews__bar-track {
  display: block;
  height: 3px;
  background: color-mix(in srgb, #d9d9d9 70%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

.st-reviews__bar-fill {
  display: block;
  height: 100%;
  background: var(--st-reviews-star);
  border-radius: inherit;
  transition: width var(--st-reviews-transition);
}

/* ---------- Toolbar (shell shared via product-feedback-chrome.css) ---------- */
/* Reviews-only: sort hover uses a border tint (border is none; kept for parity). */
.st-reviews__sort:hover {
  border-color: color-mix(
    in srgb,
    var(--st-reviews-primary) 35%,
    var(--st-reviews-border)
  );
}

.st-reviews__write-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--st-reviews-primary);
  border: none;
  border-radius: calc(var(--st-reviews-radius) - 2px);
  cursor: pointer;
  transition:
    opacity var(--st-reviews-transition),
    transform var(--st-reviews-transition);
}

.st-reviews__write-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ---------- Review card (shell shared via product-feedback-chrome.css) ---------- */
.st-review__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-block-end: 14px;
}

.st-review__avatar {
  flex-shrink: 0;
}

.st-review__avatar img,
.st-review__avatar .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.st-review__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.st-review__meta-row {
  border-left: 1px dashed #e5e7eb;
  padding-left: 20px;
}

.st-review__author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.st-review__author {
  font-size: 0.95rem;
}

.st-review__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.st-review__badge--verified {
  color: var(--st-reviews-verified);
  background: color-mix(in srgb, var(--st-reviews-verified) 12%, transparent);
}

.st-review__badge--recommended {
  color: var(--st-reviews-recommend-yes);
  background: color-mix(
    in srgb,
    var(--st-reviews-recommend-yes) 12%,
    transparent
  );
}

.st-review__badge--not_recommended {
  color: var(--st-reviews-recommend-no);
  background: color-mix(
    in srgb,
    var(--st-reviews-recommend-no) 12%,
    transparent
  );
}

.st-review__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--st-reviews-muted);
}

.st-review__rating {
  flex-shrink: 0;
  font-size: 14px;
}

.st-review__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8f8f8;
  padding: 10px;
  border-radius: 60px;
}

.st-review__helpful-btn--yes {
  color: var(--st-reviews-recommend-yes) !important;
  background: color-mix(
    in srgb,
    var(--st-reviews-recommend-yes) 12%,
    transparent
  ) !important;
  border:none !important;
}

.st-review__helpful-btn--no {
  color: var(--st-reviews-recommend-no) !important;
  background: color-mix(
    in srgb,
    var(--st-reviews-recommend-no) 12%,
    transparent
  ) !important;
  border:none !important;
}
.st-review__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Pros / cons on card */
.st-review__pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-block-start: 14px;
  padding: 14px 16px;
  border-top: 5px solid #f1f1f1;
}

@media (max-width: 600px) {
  .st-review__pc {
    grid-template-columns: 1fr;
  }
}

.st-review__pros,
.st-review__cons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.st-review__pros li,
.st-review__cons li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.st-review__pc-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-block-start: 2px;
}

.st-review__pc-icon--pro {
  color: var(--st-reviews-pro);
}
.st-review__pc-icon--con {
  color: var(--st-reviews-con);
}

/* Gallery slot (future) */
.st-review__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 12px;
}

.st-review__gallery-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--st-reviews-border);
}

/* Footer actions (shell shared via product-feedback-chrome.css) */
.st-review__helpful {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.st-review__helpful-label {
  color: var(--st-reviews-muted);
}

.st-review__helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--st-reviews-border) 40%, transparent);
  border: 1px solid var(--st-reviews-border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--st-reviews-transition),
    border-color var(--st-reviews-transition);
}

.st-review__helpful-btn:hover {
  background: color-mix(in srgb, var(--st-reviews-primary) 10%, transparent);
  border-color: var(--st-reviews-primary);
}

.st-review__helpful-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--st-reviews-primary) 15%, transparent);
  border-color: var(--st-reviews-primary);
  color: var(--st-reviews-primary);
}

.st-review__footer:empty {
  display: none;
}

/* Empty state */
.st-reviews__empty {
  text-align: center;
  padding: var(--st-reviews-space);
  color: var(--st-reviews-muted);
}

.st-reviews__empty .st-reviews__write-btn {
  margin-block-start: 12px;
  margin-inline: auto;
}

.st-reviews__verification-required {
  font-size: 0.88rem;
  color: var(--st-reviews-muted);
  padding: 12px;
  background: color-mix(in srgb, var(--st-reviews-border) 30%, transparent);
  border-radius: var(--st-reviews-radius);
}

/* AI summary slot */
.st-reviews__ai {
  padding: var(--st-reviews-gap);
  background: color-mix(
    in srgb,
    var(--st-reviews-primary) 6%,
    var(--st-reviews-surface)
  );
  border: 1px solid
    color-mix(in srgb, var(--st-reviews-primary) 20%, var(--st-reviews-border));
  border-radius: var(--st-reviews-radius);
}

.st-reviews__ai-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Modal ---------- */
.st-review-modal {
  /* The modal renders in the global footer portal, OUTSIDE .st-reviews, so it
     must (re)declare its own tokens — otherwise the surface/border/etc. resolve
     to nothing and the dialog appears transparent. */
  --st-reviews-surface: var(--st-surface, #fff);
  --st-reviews-border: var(--st-border, #e5e7eb);
  --st-reviews-text: var(--st-text, #111827);
  --st-reviews-muted: color-mix(
    in srgb,
    var(--st-text, #111827) 55%,
    transparent
  );
  --st-reviews-primary: var(--st-color-primary, #0d6efd);
  --st-reviews-radius: var(--st-radius-md, 12px);
  --st-reviews-con: #dc2626;
  --st-reviews-star: #f59e0b;
  --st-reviews-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.st-review-modal[hidden] {
  display: none !important;
}

.st-review-modal__backdrop,
.st-review-user-reply-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--st-reviews-transition);
}

.st-review-modal.is-open .st-review-modal__backdrop {
  opacity: 1;
}

.st-review-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  background: var(--st-reviews-surface);
  border-radius: var(--st-reviews-radius);
  box-shadow: 0 24px 48px -12px rgba(17, 24, 39, 0.25);
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition:
    opacity var(--st-reviews-transition),
    transform var(--st-reviews-transition);
}

.st-review-modal.is-open .st-review-modal__dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .st-review-modal__dialog,
  .st-review-modal__backdrop {
    transition: none;
  }
  .st-review-modal.is-open .st-review-modal__dialog {
    transform: none;
  }
}

.st-review-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-block-end: 1px dashed #E6E6E6;
  flex-shrink: 0;
}

.st-review-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.st-review-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--st-reviews-muted);
  background: color-mix(in srgb, var(--st-reviews-border) 40%, transparent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color var(--st-reviews-transition),
    background var(--st-reviews-transition);
}

.st-review-modal__close:hover {
  color: var(--st-reviews-text);
  background: var(--st-reviews-border);
}

.st-review-modal__body {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.st-review-modal-open {
  overflow: hidden;
}

/* ---------- Review form ---------- */
.st-review-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.st-review-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-review-form__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .st-review-form__field-row {
    grid-template-columns: 1fr;
  }
}

.st-review-form__label,
.st-review-form fieldset legend {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.st-review-form__required {
  color: var(--st-reviews-con);
}

.st-review-form__input,
.st-review-form__textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--st-reviews-text);
  background: var(--st-reviews-surface);
  border: 1px solid var(--st-reviews-border);
  border-radius: calc(var(--st-reviews-radius) - 4px);
  transition:
    border-color var(--st-reviews-transition),
    box-shadow var(--st-reviews-transition);
}

.st-review-form__input:focus,
.st-review-form__textarea:focus {
  outline: none;
  border-color: var(--st-reviews-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--st-reviews-primary) 20%, transparent);
}

.st-review-form__input.is-invalid,
.st-review-form__textarea.is-invalid {
  border-color: var(--st-reviews-con);
}

.st-review-form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Rating + recommendation row */
.st-review-form__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.st-review-form__meta-row .st-review-form__field {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.st-review-form__meta-row.has-split .st-review-form__recommendation {
  border-inline-end: 1px dashed #e5e7eb;
  padding-inline-end: 20px;
}

.st-review-form__meta-row .st-review-form__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--st-reviews-text);
  white-space: nowrap;
}

.st-review-form__rating-icon {
  display: inline-flex;
  color: var(--st-reviews-text);
  line-height: 0;
}

.st-review-form__rating-icon svg {
  display: block;
}

/* Star rating input */
.st-review-form__stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.st-review-form__star-label {
  cursor: pointer;
  position: relative;
}

.st-review-form__star-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.st-review-form__star {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: #cfcfcf;
  transition:
    color 120ms ease,
    transform 120ms ease;
}

.st-review-form__star-label:hover .st-review-form__star,
.st-review-form__star-label:hover
  ~ .st-review-form__star-label
  .st-review-form__star,
.st-review-form__star-label:has(input:checked) .st-review-form__star,
.st-review-form__star-label:has(input:checked)
  ~ .st-review-form__star-label
  .st-review-form__star,
.st-review-form__star-label:has(input:focus-visible) .st-review-form__star {
  color: var(--st-reviews-star);
}

.st-review-form__star-label:has(input:focus-visible) .st-review-form__star {
  outline: 2px solid var(--st-reviews-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.st-review-form__meta-row .st-review-form__error {
  flex-basis: 100%;
  margin: 0;
}

/* Radio group (recommendation) */
.st-review-form__radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.st-review-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  padding: 7px 14px;
  color: #8c8c8c;
  background: #f3f3f3;
  border: none;
  border-radius: 999px;
  transition:
    background var(--st-reviews-transition),
    color var(--st-reviews-transition);
}

.st-review-form__radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.st-review-form__radio-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.st-review-form__radio:has(input:checked) .st-review-form__radio-dot {
  background: currentColor;
  border-color: currentColor;
}

.st-review-form__radio--yes:has(input:checked) {
  color: var(--st-reviews-recommend-yes);
  background: color-mix(
    in srgb,
    var(--st-reviews-recommend-yes) 16%,
    #fff
  );
}

.st-review-form__radio--no:has(input:checked) {
  color: var(--st-reviews-recommend-no);
  background: color-mix(
    in srgb,
    var(--st-reviews-recommend-no) 12%,
    #fff
  );
}

.st-review-form__radio:has(input:focus-visible) {
  outline: 2px solid var(--st-reviews-primary);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .st-review-form__meta-row.has-split .st-review-form__recommendation {
    border-inline-end: 0;
    padding-inline-end: 0;
    border-block-end: 1px dashed #e5e7eb;
    padding-block-end: 14px;
    width: 100%;
  }

  .st-review-form__meta-row .st-review-form__rating {
    width: 100%;
  }
}

/* Pros/cons side by side */
.st-review-form__pc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .st-review-form__pc-row {
    grid-template-columns: 1fr;
  }
}

/* Pros/cons rows */
.st-review-form__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-review-form__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.st-review-form__row-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--st-reviews-muted);
  background: color-mix(in srgb, var(--st-reviews-border) 50%, transparent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.st-review-form__row-remove:hover {
  color: var(--st-reviews-con);
  background: color-mix(in srgb, var(--st-reviews-con) 12%, transparent);
}

.st-review-form__add-row {
  align-self: flex-start;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-reviews-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.st-review-form__error {
  margin: 0;
  font-size: 0.8rem;
  color: var(--st-reviews-con);
}

.st-review-form__footer {
  padding-block-start: 4px;
}

.st-review-form__submit {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--st-reviews-primary);
  border: none;
  border-radius: calc(var(--st-reviews-radius) - 2px);
  cursor: pointer;
  transition: opacity var(--st-reviews-transition);
}

.st-review-form__submit:hover {
  opacity: 0.92;
}

.st-review-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sort hidden cards */
.st-review.is-hidden {
  display: none !important;
}

/* ---------- Load More ---------- */
.st-reviews__loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-block-start: 4px;
}

.st-reviews__loadmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-reviews-primary);
  background: color-mix(in srgb, var(--st-reviews-primary) 8%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--st-reviews-primary) 35%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--st-reviews-transition);
}

.st-reviews__loadmore:hover {
  background: color-mix(in srgb, var(--st-reviews-primary) 14%, transparent);
}

.st-reviews__loadmore[hidden] {
  display: none;
}

.st-reviews__loadmore-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid
    color-mix(in srgb, var(--st-reviews-primary) 30%, transparent);
  border-top-color: var(--st-reviews-primary);
  border-radius: 50%;
  display: none;
}

.st-reviews__loadmore.is-loading .st-reviews__loadmore-spinner {
  display: inline-block;
  animation: st-reviews-spin 0.7s linear infinite;
}

@keyframes st-reviews-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Loading skeletons ---------- */
.st-review--skeleton {
  display: flex;
  gap: 14px;
  pointer-events: none;
}

.st-skeleton-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-skeleton {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--st-reviews-border) 55%, transparent);
  border-radius: 8px;
}

.st-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--st-reviews-surface) 70%, transparent),
    transparent
  );
  animation: st-reviews-shimmer 1.3s infinite;
}

.st-skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-skeleton--line {
  height: 12px;
}

.st-skeleton--line.w40 {
  width: 40%;
}
.st-skeleton--line.w60 {
  width: 60%;
}
.st-skeleton--line.w70 {
  width: 70%;
}
.st-skeleton--line.w90 {
  width: 90%;
}

@keyframes st-reviews-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-skeleton::after,
  .st-reviews__loadmore.is-loading .st-reviews__loadmore-spinner {
    animation: none;
  }
}

/* ---------- Nested replies shell (seller + customer) ---------- */
.st-review__user-replies {
  --st-review-reply-indent: 39px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block-start: 30px;
}

/* Thread connector SVG (geometry shared via product-feedback-chrome.css). */

/* ---------- Seller (shop) reply — same shell, distinct card ---------- */
.st-review__reply-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.st-review-reply {
  --st-review-reply-indent: 39px;
  position: relative;
  margin: 0;
  margin-inline-start: var(--st-review-reply-indent);
  padding: 14px 16px;
  padding-inline-start: 18px;
  background: color-mix(
    in srgb,
    var(--st-reviews-primary) 8%,
    var(--st-reviews-surface, #fff)
  );
  border: 1px solid
    color-mix(in srgb, var(--st-reviews-primary) 18%, var(--st-reviews-border));
  border-inline-start: 3px solid var(--st-reviews-primary);
  border-radius: var(--st-reviews-radius);
  box-shadow: none;
}

.st-review-reply__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
}

.st-review-reply__logo {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.st-review-reply__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--st-reviews-surface);
}

.st-review-reply__logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--st-reviews-primary);
}

.st-review-reply__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--st-reviews-primary);
}

.st-review-reply__date {
  font-size: 0.78rem;
  color: var(--st-reviews-muted);
  margin-inline-start: auto;
}

.st-review-reply__content {
  font-size: 0.88rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--st-reviews-text) 88%, transparent);
}

.st-review-reply__content p:last-child {
  margin-block-end: 0;
}

/* ---------- User (customer) replies ---------- */
.st-review__user-replies-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-review__user-replies-list > li {
  margin: 0;
  padding: 0;
}

.st-review__user-replies-list--nested {
  margin-block-start: 12px;
  gap: 10px;
}

.st-review-user-reply .st-review-user-reply {
  --st-review-reply-indent: 40px;
}

.st-review-user-reply .st-review-reply-arrow {
  /* Nested connectors sit closer as indent shrinks. */
  inset-inline-start: -50px;
}

.st-review-user-reply {
  --st-review-reply-indent: 60px;
  position: relative;
  margin-inline-start: var(--st-review-reply-indent);
  padding: 14px 16px;
  padding-inline-start: 18px;
  background: #fff;
  border: 0;
  border-radius: var(--st-reviews-radius) var(--st-reviews-radius) 0 0;
}

.st-review__user-replies-list--nested .st-review-user-reply {
  --st-review-reply-indent: 90px;
}

.st-review-user-reply__head:before {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--st-reviews-primary);
  border-radius: 10px 0 0 10px;
}

.st-review-user-reply__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-review-user-reply__author {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--st-reviews-primary);
}

.st-review-user-reply__date {
  font-size: 0.75rem;
  color: var(--st-reviews-muted);
}

.st-review-user-reply__content {
  font-size: 0.875rem;
  line-height: 2.5;
  color: #979797;
}

.st-review-user-reply__content p:last-child {
  margin-block-end: 0;
}

.st-review-user-reply__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-start: 12px;
}

.st-review-user-reply__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.st-review-user-reply__footer .st-review__helpful {
  padding: 6px 8px;
  gap: 6px;
}

.st-review__footer .st-review-user-reply-form__toggle {
  align-self: flex-start;
  margin-inline-start: var(--st-review-reply-indent, 60px);
  margin-bottom: -15px;
}

.st-review-user-reply-form__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 1.1rem;
  border: none;
  border-radius: 999px !important;
  background: var(--st-reviews-primary) !important;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.st-review-user-reply__footer .st-review-user-reply-form__toggle {
  min-height: 30px;
  padding: 0.25rem 0.9rem;
  font-size: 0.78rem;
  margin: 0;
}

.st-review-user-reply-form__toggle:hover {
  filter: brightness(0.96);
}

/* ---------- Shared user-reply modal ---------- */
.st-review-user-reply-modal {
  --st-reviews-surface: var(--st-surface, #fff);
  --st-reviews-border: var(--st-border, #e5e7eb);
  --st-reviews-text: var(--st-text, #111827);
  --st-reviews-muted: color-mix(in srgb, var(--st-text, #111827) 55%, transparent);
  --st-reviews-primary: var(--st-color-primary, #0d6efd);
  --st-reviews-radius: var(--st-radius-md, 12px);
  --st-reviews-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.st-review-user-reply-modal[hidden] {
  display: none !important;
}

.st-review-user-reply-modal.is-open .st-review-user-reply-modal__backdrop {
  opacity: 1;
}

.st-review-user-reply-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--st-reviews-surface);
  border-radius: var(--st-reviews-radius);
  box-shadow: 0 24px 48px -12px rgba(17, 24, 39, 0.25);
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition:
    opacity var(--st-reviews-transition),
    transform var(--st-reviews-transition);
}

.st-review-user-reply-modal.is-open .st-review-user-reply-modal__dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .st-review-user-reply-modal__dialog,
  .st-review-user-reply-modal__backdrop {
    transition: none;
  }

  .st-review-user-reply-modal.is-open .st-review-user-reply-modal__dialog {
    transform: none;
  }
}

.st-review-user-reply-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-block-end: 1px solid var(--st-reviews-border);
  flex-shrink: 0;
}

.st-review-user-reply-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.st-review-user-reply-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--st-reviews-muted);
  background: color-mix(in srgb, var(--st-reviews-border) 40%, transparent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.st-review-user-reply-modal__close:hover {
  color: var(--st-reviews-text);
  background: var(--st-reviews-border);
}

.st-review-user-reply-modal__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.st-review-user-reply-modal__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-review-user-reply-modal__avatar {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--st-reviews-border) 50%, #fff);
  color: var(--st-reviews-muted);
  align-items: center;
  justify-content: center;
}

.st-review-user-reply-modal__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-review-user-reply-modal__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--st-reviews-text);
}

.st-review-user-reply-modal__replying {
  margin: 0;
  font-size: 0.88rem;
  color: var(--st-reviews-muted);
}

.st-review-user-reply-modal__replying strong {
  color: var(--st-reviews-primary);
  font-weight: 700;
}

.st-review-user-reply-modal__login {
  margin: 0;
}

.st-review-user-reply-modal__login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1.2rem;
  border-radius: calc(var(--st-reviews-radius) - 2px);
  background: var(--st-reviews-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.st-review-user-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.st-review-user-reply-form__guest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .st-review-user-reply-form__guest-row {
    grid-template-columns: 1fr;
  }
}

.st-review-user-reply-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-review-user-reply-form__label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-reviews-text);
}

.st-review-user-reply-form__required {
  color: var(--st-reviews-con, #dc2626);
}

.st-review-user-reply-form__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--st-reviews-border);
  border-radius: calc(var(--st-reviews-radius, 12px) - 4px);
  font: inherit;
  color: var(--st-reviews-text);
  background: var(--st-reviews-surface);
}

.st-review-user-reply-form__input:focus {
  outline: none;
  border-color: var(--st-reviews-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-reviews-primary) 18%, transparent);
}

.st-review-user-reply-form__textarea {
  width: 100% !important;
  min-height: 110px !important;
  padding: 10px 12px !important;
  border: 1px dashed var(--st-reviews-border) !important;
  border-radius: 24px !important;
  font: inherit;
  resize: vertical;
  color: var(--st-reviews-text) !important;
  background: var(--st-reviews-surface) !important;
}

.st-review-user-reply-form__textarea:focus {
  outline: none;
  box-shadow: none;
}

.st-review-user-reply-form__actions {
  display: flex;
  justify-content: flex-end;
}

.st-review-user-reply-form__submit {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--st-reviews-primary) !important;
  border: none;
  border-radius: 60px !important;
  cursor: pointer;
}

.st-review-user-reply-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.st-review-user-reply-modal-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .st-review-reply,
  .st-review-user-reply,
  .st-review__user-replies {
    --st-review-reply-indent: 28px;
  }

  .st-review-reply-arrow,
  .st-review-reply-arrow svg {
    width: 28px;
    height: 58px;
  }
}

.st-reviews__empty--filter {
  padding: 28px 16px;
}

/* --- questions-list.css --- */
/**
 * SarvTheme — Q&A list layout (aligned with Product Reviews).
 */

.st-qa {
  --st-qa-space: clamp(16px, 2.5vw, 28px);
  --st-qa-gap: clamp(12px, 1.5vw, 20px);
  --st-qa-card-gap: clamp(14px, 2vw, 22px);
  --st-qa-surface: var(--st-surface, #fff);
  --st-qa-border: var(--st-border, #e5e7eb);
  --st-qa-text: var(--st-text, #111827);
  --st-qa-muted: color-mix(in srgb, var(--st-text, #111827) 55%, transparent);
  --st-qa-primary: var(--st-color-primary, #0d6efd);
  --st-qa-radius: var(--st-radius-md, 12px);
  --st-qa-verified: #0d9488;
  --st-qa-recommend-yes: #90c742;
  --st-qa-recommend-no: #ef2029;
  --st-qa-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --st-qa-reply-indent: 39px;

  display: flex;
  flex-direction: column;
  gap: var(--st-qa-space);
  color: var(--st-qa-text);
}

/* ---------- Toolbar (shell shared via product-feedback-chrome.css) ---------- */
.st-qa__count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--st-qa-text);
  white-space: nowrap;
}

.st-qa__count strong{
  color: var(--st-qa-primary);
}

.st-qa__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-qa__ask-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff !important;
  background: #202020 !important;
  border: none;
  border-radius: 60px !important;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity var(--st-qa-transition),
    transform var(--st-qa-transition);
}

.st-qa__ask-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ---------- Question card (shell shared via product-feedback-chrome.css) ---------- */
.st-qa-vote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.st-qa-vote__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.82rem;
  border: none !important;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--st-qa-transition),
    color var(--st-qa-transition);
}

.st-qa-vote__btn--yes {
  color: var(--st-qa-recommend-yes) !important;
  background: color-mix(in srgb, var(--st-qa-recommend-yes) 12%, transparent) !important;
}

.st-qa-vote__btn--no {
  color: var(--st-qa-recommend-no) !important;
  background: color-mix(in srgb, var(--st-qa-recommend-no) 12%, transparent) !important;
}

.st-qa-vote__btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.st-qa-vote__btn[aria-pressed="true"],
.st-qa-vote__btn.is-active {
  filter: brightness(0.95);
}

.st-qa-item__question {
  margin: 0 0 10px;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

.st-qa__highlight {
  background: #fff3cd;
  padding-inline: 0.1em;
  border-radius: 2px;
}

.st-qa-item__footer:empty {
  display: none;
}

.st-qa-item__reply-btn {
  align-self: flex-start;
  margin-inline-start: var(--st-qa-reply-indent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 1.1rem;
  border: none;
  border-radius: 999px !important;
  background: var(--st-qa-primary) !important;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: -15px;
  cursor: pointer;
}

.st-qa-item__reply-btn:hover {
  filter: brightness(0.96);
}

/* ---------- Answers (mirrors review replies) ---------- */
.st-qa-item__answers {
  --st-qa-reply-indent: 39px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block-start: 30px;
}

.st-qa-item__answers[hidden] {
  display: none !important;
}

.st-qa-answer {
  position: relative;
  margin: 0;
  margin-inline-start: var(--st-qa-reply-indent);
  padding: 14px 16px;
  padding-inline-start: 18px;
  background: #fff;
  border: 0;
  border-radius: var(--st-qa-radius) var(--st-qa-radius) 0 0;
}

.st-qa-answer:not(.is-official) .st-qa-answer__head:before {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--st-qa-primary);
  border-radius: 10px 0 0 10px;
}

.st-qa-answer__accepted {
  margin-block-end: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--st-qa-verified);
}

.st-qa-answer__head{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.st-qa-answer.is-official .st-qa-answer__avatar {
  box-shadow: 0 0 0 2px var(--st-qa-primary);
}

.st-qa-answer__avatar img,
.st-qa-answer__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-qa-answer__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--st-qa-text);
}

.st-qa-answer__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--st-qa-primary);
  background: color-mix(in srgb, var(--st-qa-primary) 12%, transparent);
}

.st-qa-answer__expert,
.st-qa-answer__verified {
  font-size: 0.72rem;
  color: var(--st-qa-muted);
}

.st-qa-answer__date {
  font-size: 0.75rem;
  color: var(--st-qa-muted);
}

.st-qa-answer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-start: 12px;
}

.st-qa-answer__actions .st-qa-vote {
  background-color: #f8f8f8;
  padding: 6px 8px;
  border-radius: 60px;
}

/* Answer form */
.st-qa-item__answer-form {
  margin-block-start: 14px;
  padding: 14px 16px 20px;
}

.st-qa-item__answer-form[hidden] {
  display: none !important;
}

.st-qa-form__textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--st-qa-border);
  border-radius: var(--st-qa-radius);
  font: inherit;
  resize: vertical;
}

.st-qa-form__submit--inline {
  margin-block-start: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--st-qa-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Load more / empty */
.st-qa__loadmore {
  margin-block-start: 8px;
  padding: 0.85rem;
  width: 100%;
  border: 1px solid var(--st-qa-border);
  border-radius: var(--st-qa-radius);
  background: #fff;
  color: var(--st-qa-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.st-qa__empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--st-qa-muted);
}

@media (max-width: 640px) {
  .st-qa__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .st-qa__toolbar-end {
    flex-direction: column;
    align-items: stretch;
  }

  .st-qa__sort {
    width: 100%;
  }

  .st-qa__ask-btn {
    width: 100%;
  }

  .st-qa-item__reply-btn {
    margin-inline-start: 0;
  }
}

/* --- questions.css --- */
/**
 * SarvTheme — Product Questions & Answers (modal + forms).
 */

/* Modal */
.st-qa-modal {
  /* The modal renders in the global footer portal, OUTSIDE .st-qa, so it must
     (re)declare its own tokens — otherwise surface/border/etc. resolve to
     nothing and the dialog appears transparent. */
  --st-qa-surface: var(--st-surface, #fff);
  --st-qa-border: var(--st-border, #e5e7eb);
  --st-qa-text: var(--st-text, #111827);
  --st-qa-muted: color-mix(in srgb, var(--st-text, #111827) 55%, transparent);
  --st-qa-primary: var(--st-color-primary, #0d6efd);
  --st-qa-radius: var(--st-radius-md, 12px);
  --st-qa-shadow: 0 24px 48px -12px rgba(17, 24, 39, 0.25);
  --st-qa-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--st-qa-transition), visibility var(--st-qa-transition);
}

.st-qa-modal[hidden] {
  display: none !important;
}

.st-qa-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.st-qa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.st-qa-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: var(--st-qa-surface);
  border-radius: var(--st-qa-radius);
  box-shadow: var(--st-qa-shadow);
  transform: translateY(12px);
  transition: transform var(--st-qa-transition);
}

.st-qa-modal.is-open .st-qa-modal__dialog {
  transform: translateY(0);
}

.st-qa-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-block-end: 1px solid var(--st-qa-border);
}

.st-qa-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.st-qa-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.st-qa-modal__product {
  margin: 0;
  font-size: 0.82rem;
  color: var(--st-qa-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-qa-modal__product-name {
  color: var(--st-qa-primary);
  font-weight: 600;
}

.st-qa-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  background: color-mix(in srgb, var(--st-qa-border) 40%, transparent);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--st-qa-muted);
  transition: background var(--st-qa-transition), color var(--st-qa-transition);
}

.st-qa-modal__close:hover {
  background: var(--st-qa-border);
  color: var(--st-qa-text);
}

.st-qa-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.st-qa-form__label {
  display: block;
  margin-block-end: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.st-qa-form__input,
.st-qa-form__textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--st-qa-border);
  border-radius: calc(var(--st-qa-radius) - 2px);
  background: var(--st-qa-surface);
  color: var(--st-qa-text);
}

.st-qa-form__input.is-invalid,
.st-qa-form__textarea.is-invalid {
  border-color: #dc2626;
}

.st-qa-form__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-block-start: 0.5rem;
}

.st-qa-form__cancel {
  padding: 0.5rem 1rem;
  border: 1px solid var(--st-qa-border);
  border-radius: calc(var(--st-qa-radius) - 2px);
  background: transparent;
  cursor: pointer;
}

.st-qa-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: calc(var(--st-qa-radius) - 2px);
  background: var(--st-qa-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.st-qa-form__submit--inline {
  margin-block-start: 0.5rem;
}

.st-qa-form__spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-block-start-color: #fff;
  border-radius: 50%;
  animation: st-qa-spin 0.7s linear infinite;
}

.st-qa-form__submit:disabled .st-qa-form__spinner {
  display: inline-block;
}

@keyframes st-qa-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Load more & skeleton */
.st-qa__loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px dashed var(--st-qa-border);
  border-radius: var(--st-qa-radius);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.st-qa__loadmore-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--st-qa-border);
  border-block-start-color: var(--st-qa-primary);
  border-radius: 50%;
  animation: st-qa-spin 0.7s linear infinite;
}

.st-qa__loadmore:disabled .st-qa__loadmore-spinner {
  display: inline-block;
}

.st-qa-skeleton {
  padding: 1rem;
  border: 1px solid var(--st-qa-border);
  border-radius: var(--st-qa-radius);
  margin-block-end: 0.75rem;
}

.st-qa-skeleton__line {
  height: 12px;
  margin-block-end: 0.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--st-qa-border) 25%, transparent 50%, var(--st-qa-border) 75%);
  background-size: 200% 100%;
  animation: st-qa-shimmer 1.2s infinite;
}

.st-qa-skeleton__line--short {
  width: 60%;
}

@keyframes st-qa-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.st-qa__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--st-qa-muted);
}

body.st-qa-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .st-qa__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .st-qa__actions {
    margin-inline-start: 0;
  }

  .st-qa__ask-btn {
    width: 100%;
  }
}
