/* ==========================================================
   DRESSIVA – Product Details Page Stylesheet
   ========================================================== */

/* ---------- BREADCRUMB ---------- */
.pd-breadcrumb {
  background: #f9f9f9;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.breadcrumb {
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: var(--text-mid);
}

.breadcrumb-item a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover { color: var(--orange); }

.breadcrumb-item.active { color: var(--text-dark); font-weight: 500; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-light);
}


/* ==========================================================
   PRODUCT DETAILS SECTION
   ========================================================== */
.pd-section {
  padding: 36px 0 20px;
  background: var(--white);
}

/* --- Gallery + Info Grid --- */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* ==========================================================
   IMAGE GALLERY
   ========================================================== */
.pd-gallery {
  display: flex;
  gap: 12px;
  position: sticky;
  top: 76px; /* below sticky header */
}

@media (max-width: 991px) {
  .pd-gallery {
    flex-direction: column-reverse;
    position: static;
  }
}

/* Thumbnails (vertical strip on desktop, horizontal strip on mobile) */
.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 72px;
}

@media (max-width: 991px) {
  .pd-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
  }
  .pd-thumbs::-webkit-scrollbar { display: none; }
}

.pd-thumb {
  width: 72px;
  height: 88px;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pd-thumb:hover img { transform: scale(1.05); }

.pd-thumb.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,123,43,0.18);
}

@media (max-width: 575px) {
  .pd-thumb { width: 60px; height: 74px; }
}

/* Main image */
.pd-main-img-wrap {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f8f8;
  cursor: zoom-in;
}

.pd-main-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 580px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pd-main-img-wrap:hover img {
  transform: scale(1.04);
}

/* Zoom badge */
.pd-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-mid);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

/* Mobile swipe arrows */
.pd-img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
}

.pd-img-prev { left: 8px; }
.pd-img-next { right: 8px; }
.pd-img-arrow:hover { background: var(--orange); color: var(--white); }

/* Mobile dots */
.pd-img-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.pd-img-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pd-img-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}


/* ==========================================================
   PRODUCT INFO PANEL
   ========================================================== */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Product Name */
.pd-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Rating row */
.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pd-stars { color: #f5a623; font-size: 0.85rem; display: flex; gap: 2px; }

.pd-rating-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
}

.pd-review-count { color: var(--text-mid); font-weight: 400; }

.pd-write-review {
  font-size: 0.75rem;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Price */
.pd-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pd-sale-price {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--text-dark);
}

.pd-original-price {
  font-size: 1rem;
  color: var(--text-light);
}

.pd-discount-badge {
  background: #fff3e0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(240,123,43,0.25);
}

/* Stock */
.pd-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.pd-stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}

.pd-stock-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.05em;
}

/* Short description */
.pd-short-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Divider */
.pd-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 16px 0;
}


/* ==========================================================
   SIZE SELECTION
   ========================================================== */
.pd-option-group {
  margin-bottom: 20px;
}

.pd-option-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  display: inline-block;
  margin-bottom: 10px;
}

/* Size option header row */
.pd-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pd-selected-size {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  flex: 1;
}

/* Size chart trigger button */
.pd-size-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.pd-size-chart-btn i { font-size: 0.7rem; }

.pd-size-chart-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(240,123,43,0.05);
}

/* Size button grid */
.pd-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 56px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 6px 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
  position: relative;
  flex: 0 0 auto;
}

.sz-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  transition: color 0.2s;
}

.sz-range {
  font-size: 0.65rem;
  color: var(--text-light);
  line-height: 1;
  margin-top: 3px;
  transition: color 0.2s;
}

.pd-size-btn:hover {
  border-color: var(--orange);
  background: rgba(240,123,43,0.04);
}

.pd-size-btn:hover .sz-label { color: var(--orange); }
.pd-size-btn:hover .sz-range { color: var(--orange-light); }

.pd-size-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 3px 12px rgba(240,123,43,0.3);
}

.pd-size-btn.active .sz-label,
.pd-size-btn.active .sz-range { color: var(--white); }

.pd-size-btn.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
}

.pd-size-btn.out-of-stock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 5px,
    rgba(0,0,0,0.06) 5px,
    rgba(0,0,0,0.06) 6px
  );
  border-radius: 6px;
}

.pd-size-note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-size-note i { color: var(--orange); }

/* Responsive size grid */
@media (max-width: 400px) {
  .pd-size-btn {
    min-width: 54px;
    height: 50px;
  }
  .sz-label { font-size: 0.78rem; }
  .sz-range { font-size: 0.6rem; }
}


/* ==========================================================
   QUANTITY SELECTOR
   ========================================================== */
.pd-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.pd-qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  color: var(--text-dark);
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pd-qty-btn:hover { background: var(--orange); color: var(--white); }

.pd-qty-input {
  width: 52px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border-light);
  border-right: 1.5px solid var(--border-light);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-dark);
  outline: none;
  -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }


/* ==========================================================
   ACTION BUTTONS
   ========================================================== */
.pd-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pd-cart-btn,
.pd-order-btn {
  flex: 1;
  min-width: 140px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.28s ease;
  border: 2px solid transparent;
}

.pd-cart-btn {
  background: var(--white);
  color: var(--orange);
  border-color: var(--orange);
}

.pd-cart-btn:hover {
  background: rgba(240,123,43,0.08);
  border-color: var(--orange-dark);
  color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240,123,43,0.18);
}

.pd-order-btn {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.pd-order-btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(240,123,43,0.36);
}

@media (max-width: 400px) {
  .pd-cart-btn, .pd-order-btn { height: 46px; font-size: 0.75rem; }
}

/* Wishlist */
.pd-wishlist-row { margin-bottom: 4px; }

.pd-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.pd-wishlist-btn:hover { color: #e53e3e; }

.pd-wishlist-btn.active { color: #e53e3e; }
.pd-wishlist-btn.active #pdHeartIcon::before { content: "\f004"; font-weight: 900; }


/* ==========================================================
   SOCIAL SHARE
   ========================================================== */
.pd-share-section {
  padding: 14px 0 8px;
  position: relative;
}

.pd-share-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  display: block;
  margin-bottom: 12px;
}

.pd-share-icons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.pd-share-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, filter 0.2s;
  position: relative;
}

.pd-share-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

.pd-share-fb  { background: #1877f2; }
.pd-share-wa  { background: #25d366; }
.pd-share-ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.pd-share-tw  { background: #000000; }
.pd-share-pt  { background: #bd081c; }
.pd-share-copy{ background: #6c757d; }

/* Tooltips */
.pd-share-icon::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: var(--white);
  font-size: 0.65rem;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pd-share-icon:hover::after { opacity: 1; }

/* Copy toast */
.pd-copy-toast {
  position: absolute;
  left: 0;
  bottom: -28px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #22c55e;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.pd-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================
   PRODUCT META
   ========================================================== */
.pd-meta-list {
  margin-bottom: 16px;
}

.pd-meta-list li {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 1px solid #f4f4f4;
}

.pd-meta-key {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 80px;
  flex-shrink: 0;
}

.pd-meta-val { color: var(--text-mid); }
.pd-meta-val a { color: var(--orange); }
.pd-meta-val a:hover { text-decoration: underline; }


/* ==========================================================
   TRUST BADGES
   ========================================================== */
.pd-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pd-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.pd-trust-item i {
  font-size: 1.3rem;
  color: var(--orange);
}

.pd-trust-item span {
  font-size: 0.7rem;
  color: var(--text-mid);
  line-height: 1.4;
  font-weight: 500;
}

.pd-trust-item small {
  font-size: 0.62rem;
  color: var(--text-light);
  font-weight: 400;
}

@media (max-width: 400px) {
  .pd-trust-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}


/* ==========================================================
   SIZE CHART MODAL
   ========================================================== */
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: none;
  backdrop-filter: blur(2px);
}

.pd-modal-overlay.open { display: block; }

.pd-size-chart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(640px, 94vw);
  max-height: 88vh;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  z-index: 9001;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  overflow: hidden;
}

.pd-size-chart-modal.open {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.pd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.pd-modal-head h5 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-modal-head h5 i { color: var(--orange); }

.pd-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4f4f4;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.pd-modal-close:hover { background: var(--orange); color: var(--white); }

.pd-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.pd-size-chart-note {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 14px;
  background: #fff8f0;
  padding: 8px 12px;
  border-left: 3px solid var(--orange);
  border-radius: 0 4px 4px 0;
}

.pd-size-table-wrap { overflow-x: auto; }

.pd-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 340px;
}

.pd-size-table th {
  background: var(--orange);
  color: var(--white);
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.pd-size-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

.pd-size-table tbody tr:hover { background: #fff8f0; }

.pd-size-table td.sz-name {
  font-weight: 700;
  color: var(--orange);
  text-align: left;
}

.pd-size-table td.sz-name span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 400;
}

.pd-size-tips {
  margin-top: 18px;
  padding: 14px;
  background: #f9f9f9;
  border-radius: 8px;
}

.pd-size-tips h6 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.pd-size-tips ul { list-style: disc; padding-left: 18px; }

.pd-size-tips li {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.5;
}


/* ==========================================================
   DESCRIPTION & REVIEWS TABS
   ========================================================== */
.pd-tabs-section {
  padding: 50px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.pd-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.pd-tab-link {
  background: none;
  border: none;
  padding: 14px 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
}

.pd-tab-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

.pd-tab-link.active { color: var(--orange); }
.pd-tab-link.active::after { transform: scaleX(1); }

.pd-tab-panel { display: none; }
.pd-tab-panel.active { display: block; }

/* ── Rich description body ──────────────────────────────── */
.pd-desc-body {
  max-width: 860px;
  padding: 32px 0 8px;
  font-family: var(--font-sans);
  color: var(--text-mid);
  line-height: 1.85;
}

.pd-desc-body h1,
.pd-desc-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.pd-desc-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 10px;
}

.pd-desc-body h4,
.pd-desc-body h5,
.pd-desc-body h6 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 22px 0 8px;
}

.pd-desc-body p {
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 14px;
  color: var(--text-mid);
}

.pd-desc-body ul,
.pd-desc-body ol {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
}

.pd-desc-body ul li,
.pd-desc-body ol li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.875rem;
  color: var(--text-mid);
  border-bottom: 1px dashed var(--border-light);
}

.pd-desc-body ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.pd-desc-body ol {
  counter-reset: pd-counter;
}
.pd-desc-body ol li {
  counter-increment: pd-counter;
}
.pd-desc-body ol li::before {
  content: counter(pd-counter);
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
}

.pd-desc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.pd-desc-body table thead tr {
  background: var(--text-dark);
  color: #fff;
}

.pd-desc-body table th,
.pd-desc-body table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-light);
}

.pd-desc-body table tbody tr:nth-child(even) {
  background: #f9f7f4;
}

.pd-desc-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
  display: block;
}

.pd-desc-body strong,
.pd-desc-body b {
  font-weight: 700;
  color: var(--text-dark);
}

.pd-desc-body em,
.pd-desc-body i {
  font-style: italic;
}

.pd-desc-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: #fdf8f3;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-style: italic;
}

.pd-desc-body hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 24px 0;
}

.pd-desc-body a {
  color: var(--orange);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .pd-desc-body {
    padding: 20px 0 8px;
  }
  .pd-desc-body h1,
  .pd-desc-body h2 {
    font-size: 1.2rem;
  }
}

/* Description grid (legacy, kept for compatibility) */
.pd-desc-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 767px) {
  .pd-desc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.pd-desc-text h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.pd-desc-text h5 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.pd-desc-text p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.pd-feature-list { list-style: none; padding: 0; }

.pd-feature-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pd-feature-list li i {
  color: var(--orange);
  font-size: 0.7rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Spec card (aside) */
.pd-spec-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border-light);
}

.pd-spec-card h6 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

.pd-spec-card ul { list-style: none; padding: 0; }

.pd-spec-card li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 1px solid #efefef;
}

.pd-spec-card li:last-child { border-bottom: none; }

.pd-spec-card li span:first-child { color: var(--text-mid); font-weight: 500; }
.pd-spec-card li span:last-child { color: var(--text-dark); font-weight: 600; text-align: right; }


/* ==========================================================
   REVIEWS
   ========================================================== */
.pd-reviews-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 767px) {
  .pd-reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Summary panel */
.pd-rating-summary {
  text-align: center;
  padding: 24px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.pd-rating-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.pd-rating-stars-big { color: #f5a623; font-size: 1.1rem; display: flex; justify-content: center; gap: 3px; margin-bottom: 4px; }

.pd-rating-summary p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Rating bars */
.pd-rating-bars { text-align: left; }

.pd-rbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.pd-rbar-row i { color: #f5a623; font-size: 0.65rem; }

.pd-rbar {
  flex: 1;
  height: 7px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.pd-rbar-fill {
  height: 100%;
  background: #f5a623;
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Review cards */
.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.pd-review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.045);
  transition: box-shadow 0.22s ease;
}
.pd-review-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pd-rev-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pd-rev-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #f07b2b 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(240,123,43,0.28);
}

.pd-rev-meta { flex: 1; min-width: 0; }

.pd-rev-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 3px;
}

.pd-rev-stars { color: #f5a623; font-size: 0.75rem; display: flex; gap: 2px; }

.pd-rev-date {
  font-size: 0.7rem;
  color: var(--text-light);
  align-self: center;
  white-space: nowrap;
}

.pd-rev-text {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ── Review photo strip ── */
.pd-rev-img-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pd-rev-img-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  background: #f0f0f0;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.pd-rev-img-thumb:hover {
  border-color: var(--orange);
  transform: scale(1.04);
}
.pd-rev-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-rev-img-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}
.pd-rev-img-thumb:hover .pd-rev-img-zoom {
  background: rgba(0,0,0,0.38);
  opacity: 1;
}

.pd-rev-verified {
  font-size: 0.7rem;
  color: #22c55e;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Empty state */
.pd-rev-empty {
  text-align: center;
  padding: 32px 0 16px;
  color: var(--text-light);
}
.pd-rev-empty i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
  color: #d0d0d0;
}
.pd-rev-empty p {
  font-size: 0.85rem;
}

/* ── Review image lightbox ── */
.pd-rev-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pd-rev-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.pd-rev-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}
.pd-rev-lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
}
.pd-rev-lb-img {
  max-width: min(780px, 88vw);
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 16px 60px rgba(0,0,0,0.55);
  display: block;
  transition: opacity 0.18s ease, transform 0.2s ease;
}
.pd-rev-lb-img.switching {
  opacity: 0;
  transform: scale(0.96);
}
.pd-rev-lb-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.pd-rev-lb-close:hover { background: #e53e3e; transform: rotate(90deg); }
.pd-rev-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  flex-shrink: 0;
}
.pd-rev-lb-arrow:hover { background: rgba(255,255,255,0.28); }
.pd-rev-lb-prev { right: calc(100% + 12px); }
.pd-rev-lb-next { left:  calc(100% + 12px); }
.pd-rev-lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.1em;
  pointer-events: none;
}
@media (max-width: 575px) {
  .pd-rev-lb-prev { right: auto; left: 6px; }
  .pd-rev-lb-next { left: auto;  right: 6px; }
  .pd-rev-lb-arrow { width: 36px; height: 36px; font-size: 0.88rem; }
  .pd-rev-img-thumb { width: 64px; height: 64px; }
}

/* Write review form */
.pd-write-review-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
}

.pd-write-review-form h5 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 14px;
}

/* Star picker */
.pd-star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.pd-star-pick {
  font-size: 1.4rem;
  color: #d0d0d0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, transform 0.2s;
}

.pd-star-pick.active,
.pd-star-pick:hover { color: #f5a623; }
.pd-star-pick:hover { transform: scale(1.2); }

/* Form inputs */
.pd-form-input {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.pd-form-input:focus { border-color: var(--orange); }

.pd-form-textarea { resize: vertical; min-height: 100px; }

.pd-submit-review-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.pd-submit-review-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240,123,43,0.3);
}
.pd-submit-review-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Review image upload zone ── */
.rv-upload-zone {
  border: 1.5px dashed var(--orange);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: #fffaf6;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.rv-upload-zone:hover,
.rv-upload-zone.drag-over {
  background: #fff3e8;
  border-color: var(--orange-dark, #d9620a);
}
.rv-upload-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.rv-upload-icon {
  font-size: 1.15rem;
  color: var(--orange);
}
.rv-upload-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}
.rv-upload-hint {
  font-weight: 400;
  color: var(--text-light, #888);
  font-size: 0.74rem;
}

/* ── Image preview strip ── */
.rv-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rv-thumb-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  background: #f5f5f5;
  flex-shrink: 0;
  animation: rvThumbIn 0.22s ease;
}
@keyframes rvThumbIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.rv-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rv-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.58);
  border: none;
  color: #fff;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s;
}
.rv-thumb-remove:hover { background: #e53e3e; }

/* ── Form feedback message ── */
.rv-form-msg {
  font-size: 0.78rem;
  font-weight: 600;
}
.rv-form-msg.success { color: #16a34a; }
.rv-form-msg.error   { color: #dc2626; }


/* ==========================================================
   RELATED PRODUCTS SECTION
   ========================================================== */
.pd-related-section {
  padding: 52px 0 60px;
  background: #fafafa;
  border-top: 1px solid var(--border-light);
}

.pd-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.pd-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pd-section-sub {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* Reuse na-card from style.css + add view overlay */
.prod-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.na-card:hover .prod-view-overlay { opacity: 1; }

.prod-view-overlay span {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(240,123,43,0.9);
  padding: 8px 18px;
  border-radius: 4px;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.na-card:hover .prod-view-overlay span { transform: translateY(0); }

/* View All button */
.pd-view-all-btn {
  display: inline-block;
  padding: 13px 40px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.28s ease;
}

.pd-view-all-btn:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(240,123,43,0.3);
  transform: translateY(-2px);
}


/* ==========================================================
   MOBILE STICKY BUY BAR
   ========================================================== */
.pd-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  display: none;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.pd-sticky-bar.show { display: flex; }

.pd-sticky-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pd-sticky-info {
  flex: 1;
  min-width: 0;
}

.pd-sticky-info .pd-s-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-sticky-info .pd-s-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
}

.pd-sticky-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pd-sticky-cart,
.pd-sticky-order {
  height: 40px;
  padding: 0 16px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.pd-sticky-cart {
  background: none;
  border: 1.5px solid var(--orange);
  color: var(--orange);
}

.pd-sticky-order {
  background: var(--orange);
  color: var(--white);
}

@media (max-width: 991px) {
  .pd-sticky-bar { display: none; } /* shown via JS when scrolled past buttons */
}


/* ==========================================================
   FOOTER NAV / META UTILITIES
   ========================================================== */
/* Reuse site-footer-bar from style.css */

/* ==========================================================
   RESPONSIVE POLISH
   ========================================================== */
@media (max-width: 575px) {
  .pd-section { padding: 20px 0 12px; }
  .pd-tab-link { padding: 12px 18px; font-size: 0.72rem; }
  .pd-tabs-section { padding: 32px 0; }
  .pd-related-section { padding: 36px 0 40px; }
  .pd-btn-group { gap: 8px; }
  .pd-share-icons { gap: 7px; }
  .pd-share-icon { width: 34px; height: 34px; font-size: 0.8rem; }
}


/* ==========================================================
   DESKTOP LENS ZOOM
   – Moveable lens square on the main image
   – Floating result panel to the right (fixed positioned)
   ========================================================== */

/* Disable the CSS scale-hover effect when JS lens is active */
.pd-main-img-wrap.lens-ready { cursor: crosshair !important; }
.pd-main-img-wrap.lens-ready:hover img { transform: none !important; }

/* Lens square that follows the cursor */
.pd-zoom-lens {
  position: absolute;
  display: none;
  width: 110px;
  height: 110px;
  border: 2px solid var(--orange);
  background: rgba(240,123,43,0.07);
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset,
              0 2px 12px rgba(240,123,43,0.2);
  backdrop-filter: brightness(1.04);
}

/* Result panel — floated to the right via JS fixed positioning */
.pd-zoom-result {
  position: fixed;
  display: none;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.22);
  overflow: hidden;
  pointer-events: none;
  z-index: 2000;
}

/* "Zoomed View" label inside result panel */
.pd-zoom-result::after {
  content: 'Zoomed View';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.62rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
}


/* ==========================================================
   FULLSCREEN LIGHTBOX
   Desktop: scroll-wheel zoom + drag pan
   Mobile:  pinch zoom + double-tap + swipe navigation
   ========================================================== */

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9980;
  background: rgba(0,0,0,0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Entrance animation via class */
}

.pd-lightbox.open {
  display: flex;
  animation: lbFadeIn 0.22s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Close button */
.pd-lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.2s, transform 0.2s;
}

.pd-lb-close:hover {
  background: rgba(240,123,43,0.75);
  transform: rotate(90deg);
}

/* Image counter (top center) */
.pd-lb-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  background: rgba(0,0,0,0.45);
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 4;
  pointer-events: none;
  letter-spacing: 0.06em;
}

/* Zoom percentage indicator (center, fades out) */
.pd-lb-zoom-ind {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-sans);
  background: rgba(240,123,43,0.8);
  padding: 4px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 4;
}

.pd-lb-zoom-ind.show { opacity: 1; }

/* The scrollable/pannable image container */
.pd-lb-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;   /* we handle all touch manually */
  cursor: zoom-in;
  user-select: none;
}

.pd-lb-img-wrap img {
  max-width:  92vw;
  max-height: 84vh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;  /* let the wrap handle events */
  transition: opacity 0.15s ease;
  border-radius: 4px;
}

/* Prev / Next arrows */
.pd-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.2s, transform 0.2s;
}

.pd-lb-arrow:hover {
  background: rgba(240,123,43,0.75);
  transform: translateY(-50%) scale(1.08);
}

.pd-lb-prev { left: 14px; }
.pd-lb-next { right: 14px; }

/* Hint text */
.pd-lb-hint {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  font-family: var(--font-sans);
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
  letter-spacing: 0.04em;
}

.pd-lb-hint i { color: var(--orange); }

/* Dot navigation */
.pd-lb-dots-wrap {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.pd-lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pd-lb-dot.active {
  background: var(--orange);
  transform: scale(1.35);
}

/* Mobile responsive tweaks */
@media (max-width: 575px) {
  .pd-lb-arrow { width: 38px; height: 38px; font-size: 0.85rem; }
  .pd-lb-prev  { left: 8px; }
  .pd-lb-next  { right: 8px; }
  .pd-lb-img-wrap img { max-width: 100vw; max-height: 80vh; }
  .pd-lb-hint  { font-size: 0.65rem; bottom: 46px; }
}

/* Tablet */
@media (max-width: 767px) {
  .pd-zoom-result { display: none !important; }  /* no result panel on tablet/mobile */
  .pd-zoom-lens   { display: none !important; }
}


/* ==========================================================
   FLOATING VIDEO WIDGET
   ========================================================== */

/* ──── Corner bubble ──── */
.fv-bubble {
  position: fixed;
  bottom: 88px;          /* above any mobile sticky bar */
  right: 16px;
  width: 150px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  z-index: 890;
  border: 1.5px solid rgba(240,123,43,0.55);
  box-shadow: 0 6px 24px rgba(0,0,0,0.32);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              opacity 0.3s ease;
  outline: none;
}

.fv-bubble:hover,
.fv-bubble:focus-visible {
  transform: scale(1.06) translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(0,0,0,0.38);
}

.fv-bubble.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.88);
}

/* Looping muted preview video inside bubble */
.fv-bubble-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  pointer-events: none;
}

/* Gradient + play ring overlay */
.fv-bubble-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.55) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.fv-play-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(240,123,43,0.88);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  padding-left: 3px;  /* visual centre for play icon */
  box-shadow: 0 0 0 6px rgba(240,123,43,0.22);
  animation: fvPulse 2.2s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes fvPulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(240,123,43,0.22); }
  50%      { box-shadow: 0 0 0 12px rgba(240,123,43,0.08); }
}

/* Dismiss (×) button on bubble */
.fv-bubble-close {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  line-height: 1;
}

.fv-bubble-close:hover { background: #e53e3e; }

/* "Watch Video" label at the bottom of the bubble */
.fv-bubble-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 2;
}


/* ──── Full-screen modal ──── */
.fv-modal {
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* hidden state */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.28s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.fv-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* Inner wrapper — all overlays positioned relative to this */
.fv-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Fullscreen video inside modal */
.fv-modal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* Top bar: brand + mute + close */
.fv-modal-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.fv-modal-brand {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
}

.fv-mute-btn,
.fv-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.fv-mute-btn:hover   { background: rgba(255,255,255,0.25); }
.fv-modal-close:hover { background: rgba(240,123,43,0.75); transform: rotate(90deg); }

/* Video progress bar */
.fv-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 4;
}

.fv-progress-bar {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.25s linear;
}

/* Side action buttons (WhatsApp + Share) */
.fv-side-actions {
  position: absolute;
  right: 14px;
  bottom: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

.fv-side-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  text-decoration: none;
}

.fv-side-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.36);
}

.fv-wa    { background: #25d366; color: #fff; }
.fv-share { background: rgba(255,255,255,0.92); color: #333; }

/* Product info card (bottom) */
.fv-product-card {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

.fv-prod-thumb {
  width: 58px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.fv-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fv-prod-info { flex: 1; min-width: 0; }

.fv-prod-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-prod-sub {
  font-size: 0.66rem;
  color: var(--text-mid);
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-prod-price { margin: 0; }

.fv-sale {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.fv-orig {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-left: 4px;
}

.fv-add-cart {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.22s, transform 0.2s;
}

.fv-add-cart:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ── Responsive tweaks ── */
@media (max-width: 575px) {
  .fv-bubble {
    width: 150px;
    height: 200px;
    bottom: 85px;
    right: 12px;
    border-radius: 14px;
  }
  .fv-bubble-video { border-radius: 14px; }
  .fv-bubble-overlay { border-radius: 14px; }
  .fv-play-ring { width: 36px; height: 36px; font-size: 0.8rem; }
  .fv-side-actions { bottom: 175px; }
  .fv-side-btn { width: 40px; height: 40px; font-size: 1rem; }
  .fv-product-card { padding: 10px 12px; gap: 10px; }
  .fv-prod-thumb { width: 48px; height: 56px; }
  .fv-prod-name { font-size: 0.8rem; }
  .fv-add-cart { height: 36px; padding: 0 12px; font-size: 0.68rem; }
}

@media (min-width: 768px) {
  /* Dark dimmed backdrop */
  .fv-modal {
    background: rgba(0,0,0,0.82);
  }

  /* Phone-like column centred in viewport */
  .fv-modal-inner {
    width: 390px;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
  }

  /* Video fills the inner column — no special transform needed */
  .fv-modal-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: none;
    max-width: none;
    max-height: none;
  }

  /* All overlays are already relative to .fv-modal-inner — no overrides needed */
  .fv-modal-top    { left: 0; right: 0; transform: none; max-width: none; }
  .fv-progress-wrap { left: 0; right: 0; transform: none; max-width: none; }
  .fv-product-card  { left: 14px; right: 14px; transform: none; max-width: none; width: auto; }
  .fv-side-actions  { right: 14px; }
}

/* ══ TikTok-style additions ════════════════════════════════════════ */

/* Side action item wrapper (icon + label) */
.fv-side-actions { gap: 16px; }
.fv-side-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fv-side-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  letter-spacing: 0.02em;
}

/* Like button */
.fv-like {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-size: 1.25rem;
  transition: background 0.2s, transform 0.2s;
}
.fv-like.liked {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #fff;
  animation: fvLikePop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes fvLikePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Double-tap heart burst */
.fv-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 6rem;
  color: #fe2c55;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(254,44,85,0.55));
}
.fv-heart-burst.active {
  animation: fvHeartBurstAnim 0.75s ease forwards;
}
@keyframes fvHeartBurstAnim {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  55%  { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6);  opacity: 0; }
}

/* Play/Pause flash indicator */
.fv-pp-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,0,0,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
}
.fv-pp-indicator::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.7rem;
  color: #fff;
}
.fv-pp-indicator.play::before  { content: '\f04b'; padding-left: 4px; }
.fv-pp-indicator.pause::before { content: '\f04c'; }
.fv-pp-indicator.animate {
  animation: fvPPAnim 0.55s ease forwards;
}
@keyframes fvPPAnim {
  0%   { transform: translate(-50%, -50%) scale(0.6);  opacity: 1; }
  60%  { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.3);  opacity: 0; }
}

/* Bubble dragging state */
.fv-bubble.dragging {
  opacity: 0.88;
  cursor: grabbing !important;
  transform: scale(1.05);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}
.fv-bubble.dragging * { pointer-events: none; }
