/**
 * Shopinger PDP — luxury fashion product detail
 * UI/UX Pro: premium boutique, editorial gallery, high-contrast CTA
 */

.sg-pdp-layout .site-main,
.sg-pdp-layout #primary,
.sg-pdp-layout .content-area {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sg-pdp-main {
  --pdp-ink: #123a5c;
  --pdp-muted: #78716c;
  --pdp-line: #e7e5e4;
  --pdp-surface: #f5f5f4;
  --pdp-bg: #fafaf9;
  --pdp-accent: #123a5c;
  --pdp-ok: #166534;
  --pdp-ok-bg: #f0fdf4;
  --pdp-rad: 1.5rem;
  --pdp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 70vh;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(28, 25, 23, 0.04), transparent 55%),
    var(--pdp-bg);
  color: var(--pdp-ink);
  font-family: var(--font);
}

.sg-pdp {
  max-width: var(--sg-max);
  margin: 0 auto;
  padding: 1.35rem var(--sg-space) 5.5rem;
}

/* —— Crumb —— */
.sg-pdp__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  margin-bottom: 1.75rem;
}

.sg-pdp__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--pdp-line);
  background: #fff;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--pdp-ink);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(12, 10, 9, 0.04);
  transition: background 0.2s var(--pdp-ease), border-color 0.2s, transform 0.2s;
}

.sg-pdp__back:hover {
  background: var(--pdp-surface);
  border-color: #d6d3d1;
  transform: translateY(-1px);
}

[dir="rtl"] .sg-pdp__back svg,
[dir="rtl"] .sg-pdp__inquiry-btn svg {
  transform: scaleX(-1);
}

.sg-pdp__back:focus-visible,
.sg-pdp__cat:focus-visible,
.sg-pdp__stars:focus-visible,
.sg-pdp__inquiry-btn:focus-visible,
.sg-pdp__sticky-cta:focus-visible,
.sg-pdp .single_add_to_cart_button:focus-visible,
.sg-pdp-gallery__thumb-btn:focus-visible,
.sg-pdp .woocommerce-tabs .tabs a:focus-visible {
  outline: 2px solid var(--pdp-ink);
  outline-offset: 2px;
}

.sg-pdp__crumb-trail { flex: 1; min-width: 0; }

.sg-pdp__crumb-list,
.sg-pdp .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--pdp-muted);
}

.sg-pdp__crumb-list a,
.sg-pdp .woocommerce-breadcrumb a {
  color: var(--pdp-muted);
  text-decoration: none !important;
  transition: color 0.15s;
}

.sg-pdp__crumb-list a:hover,
.sg-pdp .woocommerce-breadcrumb a:hover { color: var(--pdp-ink); }

.sg-pdp__crumb-sep { opacity: 0.4; margin-inline: 0.2rem; }

/* —— Stage —— */
.sg-pdp__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
  width: 100%;
}

.sg-pdp__gallery,
.sg-pdp__buy {
  min-width: 0;
  max-width: 100%;
}

.sg-pdp__gallery {
  position: sticky;
  top: 5.25rem;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}

/* Neutralize WooCommerce legacy image/summary floats inside our grid */
.sg-pdp .woocommerce-product-gallery,
.sg-pdp .woocommerce-product-gallery.images,
.sg-pdp div.images,
.sg-pdp .summary.entry-summary {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  clear: none !important;
}

/* WC zoom leftover — can paint a full-size img across the buy column */
.sg-pdp .zoomImg,
.sg-pdp .woocommerce-product-gallery .zoomImg {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sg-pdp__gallery .onsale,
.sg-pdp .woocommerce span.onsale { display: none !important; }

/* Gallery: thumbs rail + hero frame */
.sg-pdp-gallery {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-width: 0;
}

/* Single image — full width main (no empty thumb column) */
.sg-pdp-gallery--solo {
  grid-template-columns: minmax(0, 1fr);
}

.sg-pdp-gallery__thumbs {
  display: flex !important;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  order: -1;
}

.sg-pdp-gallery__thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 92px;
  margin: 0 !important;
}

.sg-pdp-gallery__thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s var(--pdp-ease), box-shadow 0.2s;
}

.sg-pdp-gallery__thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-pdp-gallery__thumb.is-active .sg-pdp-gallery__thumb-btn,
.sg-pdp-gallery__thumb-btn:hover {
  opacity: 1;
  border-color: var(--pdp-ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(12, 10, 9, 0.1);
}

.sg-pdp-gallery__main {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--pdp-rad);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  background-color: #fff;
  background-image: var(--sg-gallery-photo);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Square frame — fills catalog stills (often 1:1) without gray letterbox */
  aspect-ratio: 1 / 1;
  box-shadow:
    0 0 0 1px rgba(12, 10, 9, 0.04),
    0 24px 60px rgba(12, 10, 9, 0.07);
}

.sg-pdp-gallery__zoom {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  z-index: 1;
}

.sg-pdp-gallery__main-img,
.sg-pdp .sg-pdp-gallery__main-img.wp-post-image {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transition: opacity 0.25s ease, transform 0.55s var(--pdp-ease);
  transform-origin: center center;
  backface-visibility: hidden;
}

.sg-pdp-gallery__main:hover .sg-pdp-gallery__main-img {
  transform: scale(1.03);
}

.sg-pdp-gallery__main-img.is-switching { opacity: 0.4; }

.sg-pdp-gallery__hint {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: var(--pdp-ink);
  box-shadow: 0 6px 18px rgba(12, 10, 9, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}

.sg-pdp-gallery__main:hover .sg-pdp-gallery__hint {
  opacity: 1;
  transform: none;
}

.sg-pdp .woocommerce-product-gallery .flex-viewport,
.sg-pdp .flex-control-nav,
.sg-pdp .flex-control-thumbs,
.sg-pdp .flex-direction-nav,
.sg-pdp .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* —— Buy panel —— */
.sg-pdp__buy {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  position: relative;
  z-index: 2;
}

.sg-pdp__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.sg-pdp__brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pdp-muted);
}

.sg-pdp__cat {
  font-size: 0.84rem;
  color: var(--pdp-muted);
  text-decoration: none !important;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pdp-line);
  transition: border-color 0.15s, color 0.15s;
}

.sg-pdp__cat:hover {
  color: var(--pdp-ink);
  border-color: #a8a29e;
}

.sg-pdp__flag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--pdp-ink);
  color: #fff;
}

.sg-pdp__flag--sale { background: #be123c; }
.sg-pdp__flag--deal { background: #c2410c; }

.sg-pdp .product_title {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em;
  margin: 0 !important;
  color: var(--pdp-ink);
  max-width: 18ch;
}

.sg-pdp__rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
}

.sg-pdp__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
  color: var(--pdp-ink);
  font-size: 0.9rem;
  min-height: 40px;
}

.sg-pdp__stars span[aria-hidden] {
  color: #ca8a04;
  letter-spacing: 0.05em;
}

.sg-pdp__stars--empty {
  color: var(--pdp-muted);
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-color: #d6d3d1;
}

.sg-pdp__stars--empty:hover { color: var(--pdp-ink); }

.sg-pdp__reviews { color: var(--pdp-muted); font-weight: 500; }

.sg-pdp__sku {
  font-size: 0.8rem;
  color: var(--pdp-muted);
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--pdp-surface);
}

.sg-pdp__sku span { opacity: 0.65; }

.sg-pdp .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0.15rem 0 0 !important;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--pdp-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sg-pdp .price:empty { display: none !important; }

.sg-pdp .price del {
  font-size: 0.78em;
  font-weight: 500;
  color: var(--pdp-muted);
}

.sg-pdp .price ins { text-decoration: none; color: var(--pdp-ink); }

.sg-pdp .shopinger-fx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--pdp-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.sg-pdp__stock {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--pdp-ok-bg);
  color: var(--pdp-ok);
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid rgba(22, 101, 52, 0.12);
}

.sg-pdp__stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.18);
  animation: sg-pdp-pulse 2.2s ease-in-out infinite;
}

@keyframes sg-pdp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(22, 101, 52, 0.08); }
}

.sg-pdp__stock--pre { background: #eff6ff; color: #1d4ed8; border-color: rgba(29, 78, 216, 0.12); }
.sg-pdp__stock--pre .sg-pdp__stock-dot { box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); animation: none; }
.sg-pdp__stock--intro { background: var(--pdp-surface); color: #57534e; border-color: var(--pdp-line); }
.sg-pdp__stock--intro .sg-pdp__stock-dot { animation: none; box-shadow: none; }
.sg-pdp__stock--out { background: #fef2f2; color: #b91c1c; border-color: rgba(185, 28, 28, 0.12); }
.sg-pdp__stock--out .sg-pdp__stock-dot { animation: none; }

.sg-pdp__stock em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.8rem;
}

.sg-pdp .woocommerce-product-details__short-description {
  margin: 0;
  padding: 1rem 0 0.15rem;
  border-top: 1px solid var(--pdp-line);
  color: #44403c;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: none;
  width: 100%;
}

.sg-pdp .woocommerce-product-details__short-description p { margin: 0; }

/* Cart */
.sg-pdp form.cart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  margin: 0.15rem 0 0 !important;
  padding: 1rem 0 0 !important;
  border-top: 1px solid var(--pdp-line);
}

.sg-pdp form.cart .quantity {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.sg-pdp form.cart .single_add_to_cart_button,
.sg-pdp form.cart button.single_add_to_cart_button {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

/* مشاهده سبد — زیر افزودن به سبد، نارنجی */
.sg-pdp form.cart a.added_to_cart,
.sg-pdp form.cart a.added_to_cart.wc-forward {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 1.35rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sg-orange, #fa522e) !important;
  background-color: var(--sg-orange, #fa522e) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(250, 82, 46, 0.28);
  transition: transform 0.2s var(--pdp-ease), background 0.2s, box-shadow 0.2s;
}

.sg-pdp form.cart a.added_to_cart:hover,
.sg-pdp form.cart a.added_to_cart.wc-forward:hover {
  background: #e84726 !important;
  background-color: #e84726 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(250, 82, 46, 0.34);
}

.sg-pdp .quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pdp-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-height: 54px;
}

.sg-pdp__qty-btn {
  width: 46px;
  min-height: 54px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pdp-ink);
  cursor: pointer;
  transition: background 0.15s;
}

.sg-pdp__qty-btn:hover { background: var(--pdp-surface); }

.sg-pdp .quantity .qty {
  width: 3rem;
  min-height: 54px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: transparent;
  -moz-appearance: textfield;
}

.sg-pdp .quantity .qty::-webkit-outer-spin-button,
.sg-pdp .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sg-pdp .single_add_to_cart_button,
.sg-pdp button.single_add_to_cart_button {
  flex: none;
  min-height: 54px;
  padding: 0 1.6rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--pdp-ink) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(12, 10, 9, 0.18);
  transition: transform 0.22s var(--pdp-ease), background 0.2s, box-shadow 0.22s;
}

.sg-pdp .single_add_to_cart_button:hover {
  background: #1a4d75 !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(26, 29, 46, 0.28);
}

.sg-pdp .single_add_to_cart_button:active { transform: translateY(0); }
.sg-pdp .single_add_to_cart_button.loading { opacity: 0.7; pointer-events: none; }
.sg-pdp .single_add_to_cart_button.added::after { content: " ✓"; }

.sg-pdp table.variations {
  width: 100%;
  margin: 0 0 0.65rem;
  border: 0;
}

.sg-pdp table.variations td,
.sg-pdp table.variations th {
  border: 0;
  padding: 0.3rem 0;
  vertical-align: middle;
  font-family: var(--font);
}

.sg-pdp table.variations label {
  font-weight: 700;
  font-size: 0.86rem;
}

.sg-pdp table.variations select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--pdp-line);
  border-radius: 0.85rem;
  padding: 0 0.9rem;
  font: inherit;
  background: #fff;
  cursor: pointer;
}

.sg-pdp .reset_variations {
  font-size: 0.8rem;
  color: var(--pdp-muted);
}

.sg-pdp form.cart ~ .sg-pdp__inquiry,
.sg-pdp .cart ~ .sg-pdp__inquiry { display: none !important; }

.sg-pdp__inquiry {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid var(--pdp-line);
  box-shadow: 0 10px 30px rgba(12, 10, 9, 0.04);
}

.sg-pdp__inquiry p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #44403c;
}

.sg-pdp__inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  width: fit-content;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--pdp-ink);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.sg-pdp__inquiry-btn:hover {
  background: #1a4d75;
  transform: translateY(-2px);
}

/* Trust — glass cards */
.sg-pdp__trust {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  border-top: 1px solid var(--pdp-line);
}

.sg-pdp__trust li {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 0.9rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(231, 229, 228, 0.9);
  backdrop-filter: blur(8px);
  transition: transform 0.22s var(--pdp-ease), box-shadow 0.22s, border-color 0.22s;
}

.sg-pdp__trust li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12, 10, 9, 0.07);
  border-color: #d6d3d1;
}

.sg-pdp__trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pdp-ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sg-pdp__trust strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--pdp-ink);
}

.sg-pdp__trust small {
  display: block;
  font-size: 0.76rem;
  color: var(--pdp-muted);
  line-height: 1.45;
}

.sg-pdp .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0;
  padding-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--pdp-muted);
}

.sg-pdp .product_meta .sku_wrapper { display: none; }

.sg-pdp .product_meta a {
  color: var(--pdp-ink);
  text-decoration: none !important;
  font-weight: 700;
}

.sg-pdp .product_meta a:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* Tabs */
.sg-pdp .woocommerce-tabs {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.4rem;
  background: #fff;
  border: 1px solid var(--pdp-line);
  box-shadow: 0 16px 48px rgba(12, 10, 9, 0.04);
}

.sg-pdp .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0 0 1.4rem !important;
  border: 0 !important;
  background: var(--pdp-surface);
  border-radius: 999px;
  padding: 0.28rem !important;
}

.sg-pdp .woocommerce-tabs ul.tabs::before,
.sg-pdp .woocommerce-tabs ul.tabs::after { display: none !important; }

.sg-pdp .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px;
}

.sg-pdp .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.1rem !important;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pdp-muted) !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sg-pdp .woocommerce-tabs ul.tabs li.active a,
.sg-pdp .woocommerce-tabs ul.tabs li a:hover {
  background: #fff !important;
  color: var(--pdp-ink) !important;
  box-shadow: 0 2px 10px rgba(12, 10, 9, 0.06);
}

.sg-pdp .woocommerce-Tabs-panel {
  margin: 0;
  padding: 0.2rem 0.25rem;
  color: #44403c;
  line-height: 1.8;
  font-size: 0.96rem;
}

.sg-pdp .woocommerce-Tabs-panel > h2:first-child { display: none; }
.sg-pdp .woocommerce-Tabs-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
}

/* —— مشخصات محصول (attributes) —— */
.sg-pdp .woocommerce-product-attributes.shop_attributes {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 40rem;
  margin: 0.35rem 0 0;
  padding: 0.2rem 0;
  border: 1px solid var(--pdp-line);
  border-radius: 1.15rem;
  background: #fff;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.sg-pdp .woocommerce-product-attributes-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-bottom: 1px solid rgba(18, 58, 92, 0.08);
  background: transparent;
}

.sg-pdp .woocommerce-product-attributes-item:last-child {
  border-bottom: 0;
}

.sg-pdp .woocommerce-product-attributes-item:nth-child(odd) {
  background: rgba(18, 58, 92, 0.028);
}

.sg-pdp .woocommerce-product-attributes-item__label,
.sg-pdp .woocommerce-product-attributes-item th {
  display: block;
  flex: 0 0 auto;
  width: auto !important;
  max-width: 42%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pdp-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: start !important;
  white-space: nowrap;
}

.sg-pdp .woocommerce-product-attributes-item__value,
.sg-pdp .woocommerce-product-attributes-item td {
  display: block;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pdp-ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.5;
  text-align: end !important;
}

.sg-pdp .woocommerce-product-attributes-item__value p {
  display: inline;
  margin: 0 !important;
  padding: 0;
}

.sg-pdp .woocommerce-product-attributes-item__value a {
  color: var(--pdp-ink);
  text-decoration: none !important;
  border-bottom: 1px solid rgba(18, 58, 92, 0.2);
  transition: color 0.15s, border-color 0.15s;
}

.sg-pdp .woocommerce-product-attributes-item__value a:hover {
  color: var(--sg-orange, #fa522e);
  border-bottom-color: var(--sg-orange, #fa522e);
}

@media (max-width: 520px) {
  .sg-pdp .woocommerce-product-attributes.shop_attributes {
    border-radius: 1rem;
  }

  .sg-pdp .woocommerce-product-attributes-item {
    gap: 1rem;
    padding: 0.85rem 1rem;
  }

  .sg-pdp .woocommerce-product-attributes-item__label,
  .sg-pdp .woocommerce-product-attributes-item th {
    font-size: 0.78rem;
    max-width: 38%;
  }

  .sg-pdp .woocommerce-product-attributes-item__value,
  .sg-pdp .woocommerce-product-attributes-item td {
    font-size: 0.92rem;
  }
}

/* Related */
.sg-pdp .related.products,
.sg-pdp .upsells.products {
  margin: clamp(2.75rem, 5vw, 4.25rem) 0 0;
  clear: both;
}

.sg-pdp .related.products > h2,
.sg-pdp .upsells.products > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.sg-pdp .related ul.products,
.sg-pdp .upsells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.sg-pdp .related ul.products::before,
.sg-pdp .related ul.products::after,
.sg-pdp .upsells ul.products::before,
.sg-pdp .upsells ul.products::after { display: none !important; }

.sg-pdp .related ul.products li.product,
.sg-pdp .upsells ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Sticky */
.sg-pdp__sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(16px) saturate(1.25);
  border-top: 1px solid rgba(12, 10, 9, 0.06);
  box-shadow: 0 -12px 36px rgba(12, 10, 9, 0.08);
  transform: translateY(110%);
  transition: transform 0.3s var(--pdp-ease);
}

.sg-pdp__sticky.is-visible { transform: translateY(0); }

.sg-pdp__sticky-inner {
  max-width: var(--sg-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sg-pdp__sticky-info { flex: 1; min-width: 0; }

.sg-pdp__sticky-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pdp__sticky-price {
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.sg-pdp__sticky-price del {
  opacity: 0.55;
  font-weight: 500;
  margin-inline-end: 0.35rem;
}

.sg-pdp__sticky-price .shopinger-fx-badge { display: none; }

.sg-pdp__sticky-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 132px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--pdp-ink);
  color: #fff !important;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.sg-pdp__sticky-cta:hover {
  background: #1c1917;
  transform: translateY(-1px);
}

.sg-pdp-layout .woocommerce-notices-wrapper,
.sg-pdp-main .woocommerce-notices-wrapper {
  max-width: var(--sg-max);
  margin: 0 auto;
  padding: 0.75rem var(--sg-space) 0;
}

/* PDP / global cart notices — Shopinger toast bar */
body.shopinger-theme .woocommerce-message,
body.shopinger-theme .woocommerce-info,
body.shopinger-theme .woocommerce-error,
.sg-pdp-layout .woocommerce-message,
.sg-pdp-layout .woocommerce-info,
.sg-pdp-layout .woocommerce-error {
  display: flex !important;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem !important;
  padding: 0.9rem 1.1rem !important;
  border: 0 !important;
  border-radius: 1.1rem !important;
  background: #fff !important;
  box-shadow:
    0 1px 0 rgba(18, 58, 92, 0.06),
    0 14px 36px rgba(15, 23, 42, 0.08) !important;
  color: var(--sg-navy, #123a5c) !important;
  font-family: var(--font) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  list-style: none !important;
}
body.shopinger-theme .woocommerce-message::before,
body.shopinger-theme .woocommerce-info::before,
body.shopinger-theme .woocommerce-error::before,
.sg-pdp-layout .woocommerce-message::before,
.sg-pdp-layout .woocommerce-info::before,
.sg-pdp-layout .woocommerce-error::before {
  content: none !important;
  display: none !important;
}
body.shopinger-theme .woocommerce-message {
  outline: 1.5px solid rgba(34, 197, 94, 0.35);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.08), transparent 42%),
    #fff !important;
}
body.shopinger-theme .woocommerce-error {
  outline: 1.5px solid rgba(250, 82, 46, 0.35);
  background:
    linear-gradient(90deg, rgba(250, 82, 46, 0.08), transparent 42%),
    #fff !important;
}
body.shopinger-theme .woocommerce-message .button,
body.shopinger-theme .woocommerce-message a.button,
body.shopinger-theme .woocommerce-message a.wc-forward,
.sg-pdp-layout .woocommerce-message .button,
.sg-pdp-layout .woocommerce-message a.wc-forward {
  float: none !important;
  order: -1;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px !important;
  padding: 0 1.15rem !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sg-navy, #123a5c) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.86rem !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(18, 58, 92, 0.18);
}
body.shopinger-theme .woocommerce-message .button:hover,
body.shopinger-theme .woocommerce-message a.wc-forward:hover {
  background: var(--sg-navy-hover, #1a4d75) !important;
}

/* Floating confirm toast after AJAX add-to-cart */
.sg-toast {
  position: fixed;
  z-index: 100050;
  inset-inline: 0;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: min(92vw, 360px);
  margin-inline: auto;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--sg-navy, #123a5c);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 16px 40px rgba(18, 58, 92, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sg-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 980px) {
  .sg-toast {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout) .sg-toast {
    bottom: calc(var(--sg-chrome-bottom) + 0.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sg-pdp__gallery,
  .sg-pdp__buy > * {
    animation: sg-pdp-rise 0.55s var(--pdp-ease) both;
  }
  .sg-pdp__buy > *:nth-child(1) { animation-delay: 0.03s; }
  .sg-pdp__buy > *:nth-child(2) { animation-delay: 0.06s; }
  .sg-pdp__buy > *:nth-child(3) { animation-delay: 0.09s; }
  .sg-pdp__buy > *:nth-child(4) { animation-delay: 0.12s; }
  .sg-pdp__buy > *:nth-child(5) { animation-delay: 0.15s; }
  .sg-pdp__buy > *:nth-child(6) { animation-delay: 0.18s; }
  .sg-pdp__buy > *:nth-child(7) { animation-delay: 0.21s; }
  .sg-pdp__buy > *:nth-child(8) { animation-delay: 0.24s; }

  @keyframes sg-pdp-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1100px) {
  .sg-pdp__trust { grid-template-columns: 1fr; }
  .sg-pdp__trust li { flex-direction: row; align-items: center; }

  .sg-pdp__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .sg-pdp .related ul.products,
  .sg-pdp .upsells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .sg-pdp__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }

  .sg-pdp__gallery {
    position: static;
    overflow: visible;
  }

  .sg-pdp-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .sg-pdp-gallery__thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .sg-pdp-gallery__thumb {
    width: 68px;
    height: 82px;
    flex: 0 0 68px;
  }

  .sg-pdp-gallery__main {
    aspect-ratio: 1 / 1;
    border-radius: 1.25rem;
  }

  .sg-pdp { padding-bottom: 6.5rem; }
  .sg-pdp__sticky[hidden] { display: block !important; }
  .sg-pdp .product_title { max-width: none; }
  .sg-pdp__sticky {
    z-index: 250;
    bottom: 0;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 901px) {
  .sg-pdp__sticky { display: none !important; }
}

@media (max-width: 520px) {
  .sg-pdp .related ul.products,
  .sg-pdp .upsells ul.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
  }

  .sg-pdp .woocommerce-tabs ul.tabs { border-radius: 1rem; }
  .sg-pdp .woocommerce-tabs ul.tabs li { flex: 1 1 auto; }
  .sg-pdp .woocommerce-tabs ul.tabs li a {
    width: 100%;
    padding: 0 0.7rem !important;
    font-size: 0.8rem;
  }
  .sg-pdp__crumb-trail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-pdp__gallery,
  .sg-pdp__buy > *,
  .sg-pdp__sticky,
  .sg-pdp__stock-dot,
  .sg-pdp-gallery__main-img {
    animation: none !important;
    transition: none !important;
  }
  .sg-pdp-gallery__main:hover .sg-pdp-gallery__main-img {
    transform: none;
  }
}

/* —— Reviews (WordPress / WooCommerce comments) —— */
.sg-pdp #reviews,
.sg-pdp #comments {
  margin: 0;
}

.sg-pdp #reviews .woocommerce-Reviews-title,
.sg-pdp #reply-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  color: var(--pdp-ink, #0c0a09);
}

.sg-pdp .woocommerce-noreviews {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: var(--pdp-surface, #f5f5f4);
  color: var(--pdp-muted, #78716c);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.sg-pdp .commentlist {
  list-style: none !important;
  margin: 0 0 1.75rem !important;
  padding: 0 !important;
  display: grid;
  gap: 0.85rem;
}

.sg-pdp .commentlist .review,
.sg-pdp .commentlist .comment {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.85rem 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid var(--pdp-line, #e7e5e4);
  box-shadow: 0 8px 24px rgba(12, 10, 9, 0.03);
}

.sg-pdp .commentlist .avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  object-fit: cover;
}

.sg-pdp .comment-text {
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.sg-pdp .meta {
  margin: 0 0 0.45rem !important;
  font-size: 0.84rem;
  color: var(--pdp-muted, #78716c);
}

.sg-pdp .meta strong {
  color: var(--pdp-ink, #0c0a09);
  font-weight: 700;
}

.sg-pdp .star-rating {
  float: none !important;
  display: inline-flex !important;
  margin: 0 0 0.55rem !important;
  color: #ca8a04;
}

.sg-pdp .description p {
  margin: 0;
  color: #44403c;
  line-height: 1.7;
  font-size: 0.94rem;
}

.sg-pdp .sg-pdp-review-form,
.sg-pdp #review_form_wrapper,
.sg-pdp #review_form {
  margin-top: 0.5rem;
}

.sg-pdp #review_form_wrapper {
  padding: 1.25rem 1.3rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--pdp-line, #e7e5e4);
  box-shadow: 0 12px 36px rgba(12, 10, 9, 0.04);
}

.sg-pdp .comment-form-rating,
.sg-pdp .comment-form-author,
.sg-pdp .comment-form-email,
.sg-pdp .comment-form-comment {
  margin: 0 0 0.95rem;
}

.sg-pdp .comment-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--pdp-ink, #0c0a09);
}

.sg-pdp .comment-form input[type="text"],
.sg-pdp .comment-form input[type="email"],
.sg-pdp .comment-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--pdp-line, #e7e5e4);
  border-radius: 0.9rem;
  font: inherit;
  background: var(--pdp-bg, #fafaf9);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sg-pdp .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.sg-pdp .comment-form input:focus,
.sg-pdp .comment-form textarea:focus {
  outline: none;
  border-color: #a8a29e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 10, 9, 0.06);
}

.sg-pdp .comment-form-rating .stars a,
.sg-pdp p.stars a {
  color: #ca8a04 !important;
}

.sg-pdp .sg-pdp-review-form__submit,
.sg-pdp #review_form .form-submit .submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--pdp-ink, #0c0a09) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(12, 10, 9, 0.14);
  transition: transform 0.2s, background 0.2s;
}

.sg-pdp .sg-pdp-review-form__submit:hover,
.sg-pdp #review_form .form-submit .submit:hover {
  transform: translateY(-2px);
  background: #1c1917 !important;
}

.sg-pdp #review_form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--pdp-muted, #78716c);
}

.sg-pdp #reviews .woocommerce-pagination {
  margin-top: 1rem;
}

/* ========== Product image lightbox ========== */
body.sg-lightbox-open {
  overflow: hidden;
}

.sg-lightbox[hidden] {
  display: none !important;
}

.sg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.sg-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  cursor: zoom-out;
}

.sg-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: sg-lightbox-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sg-lightbox-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.sg-lightbox__close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0a0a0a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.sg-lightbox__close:hover {
  background: #0a0a0a;
  color: #fff;
  transform: scale(1.04);
}

.sg-lightbox__nav {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.sg-lightbox__nav:hover {
  background: #0a0a0a;
  color: #fff;
}

.sg-lightbox__nav--prev { left: 0.65rem; right: auto; }
.sg-lightbox__nav--next { right: 0.65rem; left: auto; }

.sg-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 560px);
  max-height: min(68vh, 640px);
  border-radius: 1rem;
  overflow: hidden;
  background: #f4f4f5;
}

.sg-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.sg-lightbox__img.is-switching { opacity: 0.35; }

.sg-lightbox__thumbs {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0.15rem 0.15rem 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  justify-content: center;
}

.sg-lightbox__thumb {
  flex: 0 0 auto;
}

.sg-lightbox__thumb-btn {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.sg-lightbox__thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-lightbox__thumb.is-active .sg-lightbox__thumb-btn,
.sg-lightbox__thumb-btn:hover {
  opacity: 1;
  border-color: #0a0a0a;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sg-lightbox__dialog {
    padding: 0.65rem;
    border-radius: 1.1rem;
    max-height: 94vh;
  }
  .sg-lightbox__stage {
    min-height: 48vh;
    max-height: 58vh;
  }
  .sg-lightbox__img { max-height: 58vh; }
  .sg-lightbox__nav {
    width: 40px;
    height: 40px;
    top: 38%;
  }
  .sg-lightbox__thumb-btn {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-lightbox__dialog { animation: none; }
}
