/* ==========================================================================
   PROTECH — Single Product Detail Page Styles
   Scoped to .protech-single-product
   Design system: matches main.css tokens (--pt-red, --pt-bg-dark, etc.)
   ========================================================================== */

/* ── Extra Tokens ─────────────────────────────────────────────────────────── */
/* ── Full-Width Page & Container Override for Single Product ───────────── */
body.single-product #page,
body.single-product #content,
body.single-product #primary,
body.single-product .site-content,
body.single-product .site-main,
.protech-single-product {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.protech-single-product {
  --spd-col-gap: 40px;
  --spd-gallery-w: 48%;
  --spd-radius: 4px;
  --spd-thumb-size: 78px;
  --spd-anim: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--pt-bg-dark);
  color: var(--pt-text-main);
  font-family: var(--pt-font-body);
  padding-bottom: 80px;
}

.protech-single-product .protech-container {
  width: 92% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.spd-breadcrumb-bar {
  background: var(--pt-bg-header);
  border-bottom: 1px solid var(--pt-border);
  padding: 12px 0;
  width: 100%;
}

.spd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--pt-text-muted);
}

.spd-breadcrumb a {
  color: var(--pt-text-muted);
  text-decoration: none;
  transition: color var(--spd-anim);
}

.spd-breadcrumb a:hover {
  color: var(--pt-red);
}

.spd-bc-sep {
  opacity: 0.4;
}

.spd-bc-current {
  color: var(--pt-text-main);
  font-weight: 600;
}

/* ── Product Section Layout ────────────────────────────────────────────────── */
.spd-product-section {
  padding: 40px 0;
  width: 100%;
}

.spd-product-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 48%) minmax(0, 48%) !important;
  justify-content: space-between !important;
  gap: 40px !important;
  align-items: start !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  .spd-product-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* ============================================================================
   GALLERY
   ============================================================================ */
.spd-gallery {
  display: grid;
  grid-template-columns: var(--spd-thumb-size) 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  position: sticky;
  top: 90px;
}

/* Thumbnails (vertical strip) */
.spd-thumbs {
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pt-red) transparent;
}

.spd-thumbs::-webkit-scrollbar {
  width: 3px;
}

.spd-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.spd-thumbs::-webkit-scrollbar-thumb {
  background: var(--pt-red);
  border-radius: 2px;
}

.spd-thumb {
  width: var(--spd-thumb-size);
  height: var(--spd-thumb-size);
  border: 2px solid var(--pt-border);
  border-radius: var(--spd-radius);
  background: var(--pt-bg-card);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--spd-anim), transform var(--spd-anim);
}

.spd-thumb:hover {
  border-color: rgba(0, 119, 255, 0.5);
  transform: scale(1.05);
}

.spd-thumb.active {
  border-color: var(--pt-red);
  box-shadow: 0 0 0 1px var(--pt-red);
}

.spd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--spd-anim);
}

.spd-thumb:hover img {
  transform: scale(1.08);
}

/* Main image area */
.spd-main-img-wrap {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  border-radius: var(--spd-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.spd-main-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--spd-anim), transform var(--spd-anim);
  pointer-events: none;
}

.spd-main-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.spd-main-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}

.spd-main-img-wrap:hover .spd-main-img {
  transform: scale(1.04);
}

/* Zoom button (removed) */
.spd-zoom-btn {
  display: none !important;
}

/* Sale badge on image */
.spd-sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #16a34a !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  font-family: var(--pt-font-heading);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 3;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Image placeholder */
.spd-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  color: var(--pt-text-muted);
  font-size: 12px;
}

/* Gallery nav */
.spd-gallery-nav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}

.spd-gallery-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  color: var(--pt-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--spd-anim);
}

.spd-gallery-arrow:hover {
  background: var(--pt-red);
  border-color: var(--pt-red);
}

.spd-gallery-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.spd-gallery-counter {
  font-size: 13px;
  color: var(--pt-text-muted);
  font-family: var(--pt-font-heading);
  min-width: 60px;
  text-align: center;
}

.spd-gallery-counter #spd-img-current {
  color: var(--pt-text-main);
  font-weight: 700;
}

/* ── Lightbox ───────────────────────────────────────────────────────────────── */
.spd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spd-lightbox[hidden] {
  display: none;
}

.spd-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.spd-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
  max-width: 1100px;
}

.spd-lb-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--spd-anim);
}

.spd-lb-close:hover {
  background: var(--pt-red);
  border-color: var(--pt-red);
}

.spd-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--spd-anim);
  z-index: 2;
}

.spd-lb-arrow:hover {
  background: var(--pt-red);
  border-color: var(--pt-red);
}

.spd-lb-prev {
  left: -70px;
}

.spd-lb-next {
  right: -70px;
}

.spd-lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.spd-lb-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--spd-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.spd-lb-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   SUMMARY
   ============================================================================ */
.spd-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Row */
.spd-summary-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spd-summary-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spd-badge {
  font-family: var(--pt-font-heading);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.spd-badge-in {
  background: rgba(0, 200, 100, 0.15);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.3);
}

.spd-badge-oos {
  background: rgba(150, 150, 150, 0.15);
  color: #999;
  border: 1px solid rgba(150, 150, 150, 0.25);
}

.spd-badge-low {
  background: rgba(255, 160, 0, 0.15);
  color: #ffa000;
  border: 1px solid rgba(255, 160, 0, 0.3);
}

.spd-badge-sale {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

/* Wishlist */
.spd-wishlist-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--pt-border);
  border-radius: 3px;
  color: var(--pt-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--spd-anim);
}

.spd-wishlist-btn:hover {
  border-color: rgba(37, 99, 235, 0.45) !important;
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

.spd-wishlist-btn:hover .spd-heart-icon {
  stroke: #2563eb !important;
}

.spd-wishlist-btn.active {
  border-color: rgba(37, 99, 235, 0.5) !important;
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

.spd-wishlist-btn.active .spd-heart-icon {
  fill: #2563eb !important;
  stroke: #2563eb !important;
  animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.4);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

/* Product Title */
.spd-product-title {
  font-family: var(--pt-font-heading);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 900;
  color: var(--pt-text-main);
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

/* Finish Badge */
.spd-finish-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spd-finish-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spd-finish-badge.badge-vinyl,
.spd-finish-badge.badge-3m-vinyl {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.spd-finish-badge.badge-matte {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.spd-finish-badge.badge-gloss {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.spd-finish-badge.badge-holographic {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(100, 0, 255, 0.12));
  color: #7c3aed;
  border: 1px solid rgba(150, 50, 255, 0.3);
}

/* Rating Row */
.spd-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spd-stars {
  display: flex;
  gap: 2px;
}

.spd-star {
  color: #cbd5e1;
  transition: color var(--spd-anim);
}

.spd-star.filled {
  color: #f5c518;
}

.spd-star.half {
  color: #f5c518;
  opacity: 0.6;
}

.spd-rating-number {
  font-family: var(--pt-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #f5c518;
}

.spd-rating-link {
  font-size: 13px;
  color: var(--pt-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--spd-anim);
}

.spd-rating-link:hover {
  color: var(--pt-red);
}

/* Price Block */
.spd-price-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--pt-border);
  border-bottom: 1px solid var(--pt-border);
}

.spd-price-sale {
  font-family: var(--pt-font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--pt-red);
  line-height: 1;
}

/* Override WC's bdi tag */
.spd-price-sale bdi,
.spd-price-regular bdi {
  font-style: normal;
}

.spd-price-regular {
  font-family: var(--pt-font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--pt-text-main);
  line-height: 1;
}

.spd-price-struck {
  font-size: 18px;
  font-weight: 600;
  color: var(--pt-text-muted);
  text-decoration: line-through;
}

.spd-price-save {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(0, 200, 100, 0.15);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.25);
  border-radius: 2px;
}

/* Short Description */
.spd-short-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}

.spd-short-desc p {
  margin: 0 0 8px 0;
}

.spd-short-desc ul {
  padding-left: 18px;
  margin: 0;
}

.spd-short-desc li {
  margin-bottom: 4px;
}

/* ── WooCommerce Add to Cart Form Override ─────────────────────────────────── */
.spd-atc-wrapper .cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

/* Variations table */
.spd-atc-wrapper .variations {
  border: none;
  width: 100%;
}

.spd-atc-wrapper .variations tr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.spd-atc-wrapper .variations td,
.spd-atc-wrapper .variations th {
  display: block;
  text-align: left;
  padding: 0;
  vertical-align: top;
}

.spd-atc-wrapper .variations .label label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pt-text-muted);
  display: block;
  margin-bottom: 6px;
}

.spd-atc-wrapper .variations select {
  width: 100%;
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  border-radius: var(--spd-radius);
  color: var(--pt-text-main);
  font-family: var(--pt-font-body);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--spd-anim);
}

.spd-atc-wrapper .variations select:focus {
  outline: none;
  border-color: var(--pt-red);
}

.spd-atc-wrapper .reset_variations {
  display: none !important;
}

/* Hide duplicate internal WooCommerce stock notice inside single add-to-cart form */
.spd-atc-wrapper p.stock,
.spd-atc-wrapper .stock,
.spd-atc-wrapper .woocommerce-variation-availability {
  display: none !important;
}

/* Variation price */
.spd-atc-wrapper .woocommerce-variation-price .price {
  font-family: var(--pt-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--pt-red);
}

/* ── Unified Action Row Group: [ - 1 + ]  [ Add To Cart ]  [ Buy Now ] ── */
.spd-action-row-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 18px 0 !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.spd-action-row-group .spd-atc-wrapper {
  flex: 2 !important;
  min-width: 240px !important;
  display: flex !important;
}

.spd-action-row-group .spd-atc-wrapper form.cart {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Quantity input box: [ -  1  + ] */
.spd-atc-wrapper .quantity {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1px solid var(--pt-border) !important;
  border-radius: 4px !important;
  height: 48px !important;
  min-width: 110px !important;
  width: auto !important;
  padding: 0 4px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.spd-atc-wrapper .quantity input[type="number"] {
  width: 38px !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  color: var(--pt-text-main) !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  -moz-appearance: textfield !important;
  padding: 0 !important;
  outline: none !important;
}

.spd-atc-wrapper .quantity input::-webkit-inner-spin-button,
.spd-atc-wrapper .quantity input::-webkit-outer-spin-button {
  display: none !important;
}

.spd-qty-btn {
  width: 34px !important;
  height: 46px !important;
  background: transparent !important;
  border: none !important;
  color: var(--pt-text-main) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.spd-qty-btn:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

/* Add to Cart button: Solid theme accent button */
.spd-atc-wrapper .single_add_to_cart_button,
.spd-atc-wrapper button[type="submit"].single_add_to_cart_button {
  flex: 1 !important;
  height: 48px !important;
  min-width: 0 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: var(--pt-blue-gradient, linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%)) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0 18px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

.spd-atc-wrapper .single_add_to_cart_button:hover {
  background: var(--pt-blue-gradient-hover, linear-gradient(135deg, #2563eb 0%, #1e40af 100%)) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

.spd-atc-wrapper .single_add_to_cart_button.loading {
  opacity: 0.7 !important;
  cursor: wait !important;
}

.spd-atc-wrapper .single_add_to_cart_button.added {
  background: #00c864 !important;
}

/* Buy Now button: Theme outlined button */
.spd-buynow-wrap {
  flex: 1 !important;
  min-width: 120px !important;
  display: flex !important;
  margin: 0 !important;
}

.spd-buynow-btn {
  flex: 1 !important;
  height: 48px !important;
  background: #ffffff !important;
  border: 1px solid var(--pt-border) !important;
  border-radius: 4px !important;
  color: var(--pt-text-main) !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.spd-buynow-btn:hover {
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15) !important;
}

/* Trust Row */
.spd-trust-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  border-radius: var(--spd-radius);
  flex-wrap: wrap;
}

.spd-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 120px;
}

.spd-trust-item svg {
  color: var(--pt-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.spd-trust-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--pt-text-main);
  line-height: 1.4;
}

.spd-trust-item small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--pt-text-muted);
}

/* Meta Block */
.spd-meta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.spd-meta-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.spd-meta-label {
  color: var(--pt-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding-top: 1px;
}

.spd-meta-value {
  color: var(--pt-text-main);
  line-height: 1.5;
}

.spd-meta-value a {
  color: var(--pt-text-muted);
  text-decoration: none;
  transition: color var(--spd-anim);
}

.spd-meta-value a:hover {
  color: var(--pt-red);
}

/* Share Row */
.spd-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.spd-share-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pt-text-muted);
}

.spd-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  color: var(--pt-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--spd-anim);
}

.spd-share-btn:hover {
  background: var(--pt-red);
  border-color: var(--pt-red);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================================
   TABS SECTION
   ============================================================================ */
.spd-tabs-section {
  padding: 60px 0;
  background: var(--pt-bg-header);
  border-top: 1px solid var(--pt-border);
  border-bottom: 1px solid var(--pt-border);
}

/* Tab Navigation */
.spd-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--pt-border);
  margin-bottom: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.spd-tab-nav::-webkit-scrollbar {
  display: none;
}

.spd-tab-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  color: var(--pt-text-muted, #64748b) !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 14px 26px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border-radius: 4px 4px 0 0 !important;
  transition: all 0.2s ease !important;
}

.spd-tab-btn svg {
  stroke: currentColor !important;
  transition: transform 0.2s ease, stroke 0.2s ease !important;
  display: inline-block !important;
}

.spd-tab-btn:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border-bottom-color: #2563eb !important;
}

.spd-tab-btn:hover svg {
  stroke: #2563eb !important;
  color: #2563eb !important;
  transform: translateY(-1px) scale(1.08) !important;
}

.spd-tab-btn.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.06) !important;
  border-bottom-color: #2563eb !important;
  font-weight: 800 !important;
}

.spd-tab-btn.active svg {
  stroke: #2563eb !important;
  color: #2563eb !important;
}

.spd-tab-count {
  background: var(--pt-blue-gradient, #2563eb) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease !important;
}

.spd-tab-btn:hover .spd-tab-count {
  transform: scale(1.1) !important;
}

/* Also support standard WooCommerce tab selectors if present */
.woocommerce-tabs ul.tabs li a:hover,
.woocommerce-tabs ul.tabs li.active a,
.wc-tabs-wrapper ul.tabs li a:hover,
.wc-tabs-wrapper ul.tabs li.active a {
  color: #2563eb !important;
  border-bottom-color: #2563eb !important;
}

/* Tab Panels */
.spd-tab-panel {
  animation: tabFadeIn 0.3s ease;
}

.spd-tab-panel[hidden] {
  display: none;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Description Content */
.spd-description-content {
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
  max-width: 900px;
}

.spd-description-content h1,
.spd-description-content h2,
.spd-description-content h3,
.spd-description-content h4 {
  font-family: var(--pt-font-heading);
  color: var(--pt-text-main);
  margin: 24px 0 12px;
}

.spd-description-content p {
  margin: 0 0 16px;
}

.spd-description-content ul,
.spd-description-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.spd-description-content li {
  margin-bottom: 6px;
}

.spd-description-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.spd-description-content th,
.spd-description-content td {
  padding: 10px 14px;
  border: 1px solid var(--pt-border);
  font-size: 14px;
}

.spd-description-content th {
  background: #f8fafc;
  color: var(--pt-text-main);
  font-weight: 700;
  text-align: left;
}

.spd-tab-empty {
  color: var(--pt-text-muted);
  font-size: 14px;
}

/* Shipping Content */
.spd-shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.spd-ship-card {
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  border-radius: var(--spd-radius);
  padding: 24px;
  transition: all var(--spd-anim);
}

.spd-ship-card:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08) !important;
  transform: translateY(-2px);
}

.spd-ship-icon {
  margin-bottom: 14px;
}

.spd-ship-card h4 {
  font-family: var(--pt-font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--pt-text-main);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spd-ship-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pt-text-muted);
  margin: 0;
}

.spd-ship-card p a {
  color: var(--pt-red);
  text-decoration: none;
}

.spd-ship-table-wrap {
  overflow-x: auto;
}

.spd-ship-table-title {
  font-family: var(--pt-font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--pt-text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}

.spd-ship-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spd-ship-table th,
.spd-ship-table td {
  padding: 12px 16px;
  border: 1px solid var(--pt-border);
  text-align: left;
}

.spd-ship-table th {
  background: #f8fafc;
  color: var(--pt-red);
  font-family: var(--pt-font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.spd-ship-table td {
  color: #334155;
}

.spd-ship-table tbody tr:hover td {
  background: #f8fafc;
}

/* Reviews Content */
.spd-review-summary {
  display: flex;
  gap: 40px;
  padding: 28px;
  background: var(--pt-bg-card);
  border: 1px solid var(--pt-border);
  border-radius: var(--spd-radius);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.spd-review-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.spd-review-big-num {
  font-family: var(--pt-font-heading);
  font-size: 56px;
  font-weight: 900;
  color: var(--pt-text-main);
  line-height: 1;
}

.spd-review-stars-big {
  display: flex;
  gap: 3px;
}

.spd-review-total-lbl {
  font-size: 12px;
  color: var(--pt-text-muted);
}

.spd-review-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-width: 200px;
}

.spd-breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spd-bd-label {
  font-size: 12px;
  color: var(--pt-text-muted);
  white-space: nowrap;
  min-width: 30px;
}

.spd-bd-bar-wrap {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.spd-bd-bar {
  height: 100%;
  background: #f5c518;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.spd-bd-num {
  font-size: 12px;
  color: var(--pt-text-muted);
  min-width: 16px;
  text-align: right;
}

/* ============================================================================
   PRODUCT REVIEWS & REAL RATING SYSTEM
   ============================================================================ */
.spd-reviews-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 1. Rating Summary & Score Box */
.spd-review-summary-box {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #f8fafc;
  border: 1px solid var(--pt-border);
  border-radius: 8px;
  padding: 28px 32px;
}

@media (max-width: 768px) {
  .spd-review-summary-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 20px;
  }
}

.spd-review-score-block {
  text-align: center;
  min-width: 140px;
}

.spd-review-big-num {
  font-family: var(--pt-font-heading);
  font-size: 52px;
  font-weight: 900;
  color: var(--pt-text-main);
  line-height: 1;
  margin-bottom: 8px;
}

.spd-review-stars-big {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.spd-review-stars-big .spd-star.filled {
  color: #f59e0b;
}

.spd-review-stars-big .spd-star.empty {
  color: #cbd5e1;
}

.spd-review-total-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pt-text-muted);
}

.spd-review-breakdown {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spd-breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
}

.spd-bd-label {
  width: 32px;
  color: var(--pt-text-main);
  font-weight: 700;
}

.spd-bd-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.spd-bd-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.spd-bd-num {
  width: 24px;
  text-align: right;
  color: var(--pt-text-muted);
}

/* 2. Customer Reviews List */
.spd-comments-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spd-reviews-heading {
  font-family: var(--pt-font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pt-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spd-heading-count {
  color: var(--pt-text-muted);
  font-weight: 600;
}

.spd-commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spd-review-card {
  background: #ffffff;
  border: 1px solid var(--pt-border);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.spd-review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.spd-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.spd-reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pt-font-heading);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.spd-reviewer-info {
  flex: 1;
}

.spd-reviewer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.spd-reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-text-main);
}

.spd-verified-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.spd-review-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spd-review-stars {
  display: flex;
  gap: 2px;
}

.spd-review-stars .star {
  font-size: 13px;
  color: #cbd5e1;
}

.spd-review-stars .star.filled {
  color: #f59e0b;
}

.spd-review-date {
  font-size: 12px;
  color: var(--pt-text-muted);
}

.spd-review-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Empty Reviews State */
.spd-no-reviews-msg {
  list-style: none;
}

.spd-empty-reviews-box {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
}

.spd-empty-reviews-box .empty-star-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}

.spd-empty-reviews-box h4 {
  font-family: var(--pt-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--pt-text-main);
  margin: 0 0 6px;
}

.spd-empty-reviews-box p {
  font-size: 13px;
  color: var(--pt-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* 3. Review Submission Form */
.spd-review-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--pt-border);
  border-radius: 8px;
  padding: 30px 32px;
}

@media (max-width: 640px) {
  .spd-review-form-wrapper {
    padding: 20px;
  }
}

.spd-form-eyebrow {
  font-family: var(--pt-font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--pt-red, #2563eb);
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 4px;
}

.comment-reply-title {
  font-family: var(--pt-font-heading);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pt-text-main);
  margin: 0 0 4px;
}

.spd-form-subtitle {
  font-size: 12.5px;
  color: var(--pt-text-muted);
  margin: 0 0 24px;
}

.spd-ajax-review-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Star Rating Picker */
.spd-rating-picker-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spd-rating-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pt-text-main);
}

.spd-star-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.spd-star-buttons {
  display: inline-flex;
  gap: 4px;
}

.spd-star-pick-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
  transition: transform 0.15s, color 0.15s;
}

.spd-star-pick-btn:hover,
.spd-star-pick-btn.active {
  color: #f59e0b;
}

.spd-star-pick-btn:hover {
  transform: scale(1.2);
}

.spd-star-selected-text {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* Form Inputs */
.spd-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spd-form-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
}

.spd-form-field input,
.spd-form-field textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid var(--pt-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--pt-font-body);
  font-size: 13.5px;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.spd-form-field input:focus,
.spd-form-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--pt-red, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.spd-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .spd-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.spd-logged-in-notice {
  font-size: 13px;
  color: var(--pt-text-muted);
}

/* Review Submit Button */
.spd-submit-row {
  margin-top: 6px;
}

.spd-review-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pt-blue-gradient, linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%)) !important;
  color: #ffffff !important;
  padding: 13px 30px !important;
  font-family: var(--pt-font-heading);
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.spd-review-submit-btn:hover {
  background: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4) !important;
}

.spd-review-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.spd-reviews-closed {
  color: var(--pt-text-muted);
  font-size: 14px;
}

/* ============================================================================
   RELATED PRODUCTS & RECENTLY VIEWED (Matches Shop Page Product Card)
   ============================================================================ */
.spd-related-section {
  padding: 55px 0 60px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.spd-recently-section {
  padding: 0 0 70px;
  background: #f8fafc;
}

.spd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.spd-section-title {
  font-family: var(--pt-font-heading, 'Rajdhani', sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a !important;
  text-transform: capitalize;
  letter-spacing: -0.3px;
  margin: 0;
}

.spd-section-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pt-shop-blue, #2563eb);
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: gap var(--spd-anim), color 0.2s ease;
}

.spd-section-viewall:hover {
  gap: 9px;
  color: #1d4ed8;
}

.spd-section-viewall svg {
  color: inherit;
}

.spd-related-grid,
.spd-recently-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 991px) {

  .spd-related-grid,
  .spd-recently-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {

  .spd-related-grid,
  .spd-recently-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Ensure .shop-card in related & recently viewed matches shop page 1:1 */
.spd-related-section .shop-card,
.spd-recently-section .shop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
}

.spd-related-section .shop-card:hover,
.spd-recently-section .shop-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.spd-related-section .shop-card-img,
.spd-recently-section .shop-card-img {
  background: #ebebeb;
}

.spd-related-section .shop-card-title,
.spd-recently-section .shop-card-title {
  color: #0f172a;
}

.spd-related-section .shop-card-title a,
.spd-recently-section .shop-card-title a {
  color: #0f172a;
}

.spd-related-section .shop-card-title a:hover,
.spd-recently-section .shop-card-title a:hover {
  color: #2563eb;
}

.spd-related-section .shop-card-cat,
.spd-recently-section .shop-card-cat {
  color: #94a3b8;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.spd-related-section .shop-card-price,
.spd-recently-section .shop-card-price {
  color: #0f172a;
}

.spd-related-section .shop-card-price .woocommerce-Price-amount,
.spd-recently-section .shop-card-price .woocommerce-Price-amount {
  color: #0f172a;
  font-weight: 800;
}

.spd-related-section .shop-card-price del,
.spd-recently-section .shop-card-price del {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
}

.spd-related-section .shop-card-price del .woocommerce-Price-amount,
.spd-recently-section .shop-card-price del .woocommerce-Price-amount {
  color: #64748b !important;
  font-weight: 500 !important;
}

.spd-related-section .shop-card-price ins,
.spd-recently-section .shop-card-price ins {
  color: #0f172a !important;
}

.spd-related-section .pt-btn-shop-cart,
.spd-recently-section .pt-btn-shop-cart {
  background: var(--pt-shop-blue-gradient, linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%));
  color: #ffffff;
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

.spd-related-section .pt-btn-shop-cart:hover,
.spd-recently-section .pt-btn-shop-cart:hover {
  background: #0f172a;
  color: #ffffff;
}

/* Skeleton loading */
.spd-skeleton {
  pointer-events: none;
}

.spd-skel-img {
  background: linear-gradient(90deg, var(--pt-bg-card) 25%, var(--pt-bg-card-hover) 50%, var(--pt-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.spd-skel-line {
  background: linear-gradient(90deg, var(--pt-bg-card) 25%, var(--pt-bg-card-hover) 50%, var(--pt-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
  margin-bottom: 8px;
}

.spd-skel-title {
  height: 14px;
  width: 85%;
}

.spd-skel-price {
  height: 14px;
  width: 45%;
}

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

  100% {
    background-position: -200% 0;
  }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .spd-product-layout {
    --spd-gallery-w: 50%;
    --spd-col-gap: 36px;
  }

  .spd-related-grid,
  .spd-recently-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet portrait / Large mobile: 768px */
@media (max-width: 768px) {
  .spd-product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Horizontal thumbnails on mobile */
  .spd-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    position: static;
  }

  .spd-thumbs {
    grid-row: 1;
    grid-column: 1;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .spd-thumb {
    flex-shrink: 0;
  }

  .spd-main-img-wrap {
    grid-column: 1;
    grid-row: 2;
  }

  .spd-gallery-nav {
    grid-column: 1;
    grid-row: 3;
  }

  .spd-lb-prev {
    left: -10px;
  }

  .spd-lb-next {
    right: -10px;
  }

  .spd-related-grid,
  .spd-recently-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spd-review-summary {
    gap: 24px;
  }

  .spd-shipping-grid {
    grid-template-columns: 1fr;
  }

  .spd-trust-row {
    flex-direction: column;
    gap: 12px;
  }

  .spd-trust-item {
    min-width: auto;
  }
}

/* Small Mobile: 480px */
@media (max-width: 480px) {
  .spd-product-title {
    font-size: 22px;
  }

  .spd-price-sale,
  .spd-price-regular {
    font-size: 26px;
  }

  .spd-related-grid,
  .spd-recently-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .spd-related-section,
  .spd-recently-section {
    padding: 40px 0;
  }

  .spd-tabs-section {
    padding: 40px 0;
  }

  .spd-tab-btn {
    padding: 10px 16px;
    font-size: 11px;
  }

  .spd-ship-card {
    padding: 16px;
  }

  .spd-review-big-num {
    font-size: 42px;
  }

  .spd-lb-img-wrap {
    max-height: 70vh;
  }

  .spd-atc-wrapper .single_add_to_cart_button {
    font-size: 12px;
    padding: 13px 16px;
  }
}

/* Very small mobile: 360px */
@media (max-width: 360px) {

  .spd-related-grid,
  .spd-recently-grid {
    grid-template-columns: 1fr;
  }

  .spd-summary-toprow {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Cart Added Toast Notification (Light Theme) ── */
#pt-cart-toast {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-left: 4px solid var(--pt-shop-blue, #2563eb);
  color: #0f172a;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999999;
  transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  pointer-events: none;
}

#pt-cart-toast.visible {
  top: 24px;
}

#pt-cart-toast .toast-icon {
  color: var(--pt-shop-blue, #2563eb);
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
}

/* Hide un-styled default WooCommerce notice box */
body.single-product .woocommerce-notices-wrapper {
  display: none !important;
}