/* Single product page — modern 2026 redesign + image zoom */

.ws-pdp {
  display: grid;
  gap: 2rem;
  padding: 1.25rem 0 2.5rem;
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .ws-pdp {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 0 3.25rem;
  }
  .ws-gallery {
    position: sticky;
    top: 92px;
  }
}

/* ---------- Gallery ---------- */
.ws-gallery {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding-left: 20px;
}

/* Single-image products: no thumbnail rail, stage takes full width */
.ws-gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.ws-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  padding: 2px;
  margin: 0;
  scrollbar-width: thin;
}

.ws-thumbs .thumb {
  width: 68px;
  height: 84px;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--beige, #f3ece2);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ws-thumbs .thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 74, 62, 0.14);
}

.ws-thumbs .thumb.active {
  border-color: var(--champagne, #c4a052);
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.18);
}

.ws-thumbs .ws-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 3px;
}

.ws-stage {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.ws-stage .ws-main {
  width: 100%;
}

.ws-main {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #faf6f2 0%, var(--beige, #f3ece2) 100%);
  box-shadow: 0 18px 50px rgba(45, 74, 62, 0.12);
  cursor: zoom-in;
  isolation: isolate;
}

.ws-main .ws-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0.75rem;
  transform-origin: center center;
  /* Animate transform only (GPU compositing, no reflow). */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-main.is-zooming {
  cursor: crosshair;
}

.ws-main.is-zooming .ws-main-img {
  padding: 0;
  /* Promote to its own layer only while actively zooming. */
  will-change: transform;
}

.ws-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(26, 61, 50, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.ws-main.is-zooming .ws-zoom-hint {
  opacity: 0;
}

.ws-badge {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.ws-badge-best {
  left: 0.85rem;
  background: linear-gradient(135deg, #1a3d32, #2d4a3e);
}

.ws-badge-sale {
  right: 0.85rem;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.ws-video {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 420px;
  border-radius: 1rem;
  margin-top: 0.4rem;
  background: #000;
}

/* ---------- Info column ---------- */
.ws-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 20px;
}

.ws-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(45, 74, 62, 0.09);
}

.ws-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(196, 160, 82, 0.14);
  border: 1px solid rgba(196, 160, 82, 0.3);
  color: var(--champagne, #c4a052);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ws-info .ws-title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  margin: 0;
  color: var(--green, #2d4a3e);
  letter-spacing: -0.01em;
}

.ws-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ws-sku {
  font-size: 0.8rem;
  color: rgba(45, 74, 62, 0.55);
  letter-spacing: 0.02em;
}

.ws-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ws-rating-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(45, 74, 62, 0.7);
}

/* CSS star rating driven by --rating (0..5) */
.ws-stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  font-family: "Noto Sans", Arial, sans-serif;
}

.ws-stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  color: rgba(45, 74, 62, 0.18);
}

.ws-stars::after {
  content: "★★★★★";
  letter-spacing: 2px;
  color: var(--champagne, #c4a052);
  position: absolute;
  inset: 0;
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}

.ws-stars-lg {
  font-size: 1.35rem;
}

/* Price card */
.ws-price-card {
  padding: 1.25rem 1.4rem;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, #ffffff 0%, #f7f3ee 100%);
  border: 1px solid rgba(45, 74, 62, 0.08);
  box-shadow: 0 8px 26px rgba(45, 74, 62, 0.06);
}

.ws-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.ws-price .ws-price-value {
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: var(--green, #2d4a3e);
  letter-spacing: -0.015em;
  line-height: 1;
}

.ws-price .price-mrp {
  font-size: 1.05rem;
  color: rgba(45, 74, 62, 0.45);
  text-decoration: line-through;
}

.ws-price .badge-sale {
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.ws-save {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #157347;
  font-weight: 600;
}

.ws-save .ws-save-amount {
  font-weight: 700;
}

.ws-tax-note {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: rgba(45, 74, 62, 0.5);
}

.ws-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ws-stock .ws-stock-icon {
  font-size: 1em;
}

.ws-stock.is-in {
  background: rgba(21, 115, 71, 0.1);
  color: #157347;
}

.ws-stock.is-low {
  background: rgba(214, 122, 20, 0.12);
  color: #b45309;
}

.ws-stock.is-out {
  background: rgba(45, 74, 62, 0.09);
  color: rgba(45, 74, 62, 0.6);
}

/* Size */
.ws-size .ws-size-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
  color: var(--green, #2d4a3e);
}

.ws-size .size-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ws-size .size-btn {
  min-width: 3rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(45, 74, 62, 0.2);
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ws-size .size-btn:hover {
  border-color: var(--champagne, #c4a052);
}

.ws-size .size-btn.active {
  border-color: var(--green, #2d4a3e);
  background: var(--green, #2d4a3e);
  color: #fff;
}

/* Actions */
.ws-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
}

.ws-actions #productWaBtn {
  grid-column: 1 / -1;
}

.ws-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ws-actions .btn-lg {
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 0.85rem;
}

.ws-actions .ws-btn-icon {
  font-size: 1.15em;
}

.ws-actions .ws-wishlist {
  border: 1.5px solid rgba(45, 74, 62, 0.18);
}

@media (max-width: 400px) {
  .ws-actions {
    grid-template-columns: 1fr;
  }
}

/* Trust list */
.ws-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
  padding: 1rem 1.15rem;
  list-style: none;
  border-radius: 1rem;
  background: #fbf8f4;
  border: 1px solid rgba(45, 74, 62, 0.07);
}

.ws-trust .ws-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(45, 74, 62, 0.85);
}

.ws-trust .ws-trust-icon {
  font-size: 1.15rem;
  color: var(--champagne, #c4a052);
  flex-shrink: 0;
}

/* ---------- Full-width details row (below gallery + buy panel) ---------- */
.ws-details {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.ws-details-main,
.ws-details-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ws-details .ws-disclaimer {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
}

@media (max-width: 767px) {
  .ws-details {
    grid-template-columns: 1fr;
  }
}

/* Specs */
.ws-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.ws-spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid rgba(45, 74, 62, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ws-spec:hover {
  border-color: rgba(196, 160, 82, 0.4);
  box-shadow: 0 4px 14px rgba(45, 74, 62, 0.06);
}

/* Product details rendered as a modern, left-aligned table */
.ws-specs-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 74, 62, 0.1);
}

.ws-specs-table .ws-spec-row {
  transition: background 0.18s ease;
}

.ws-specs-table .ws-spec-row:nth-child(even) {
  background: rgba(45, 74, 62, 0.028);
}

.ws-specs-table .ws-spec-row:hover {
  background: rgba(196, 160, 82, 0.09);
}

.ws-specs-table .ws-spec-key,
.ws-specs-table .ws-spec-val {
  text-align: left;
  padding: 0.72rem 0.95rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(45, 74, 62, 0.08);
}

.ws-specs-table .ws-spec-row:last-child .ws-spec-key,
.ws-specs-table .ws-spec-row:last-child .ws-spec-val {
  border-bottom: none;
}

.ws-specs-table .ws-spec-key {
  width: 38%;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(45, 74, 62, 0.55);
  white-space: nowrap;
  border-right: 1px solid rgba(45, 74, 62, 0.08);
}

.ws-specs-table .ws-spec-val {
  font-weight: 600;
  color: var(--green, #2d4a3e);
}

.ws-spec-k {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(45, 74, 62, 0.5);
  font-weight: 600;
}

.ws-spec-v {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green, #2d4a3e);
}

/* Description panel */
.ws-panel {
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(45, 74, 62, 0.08);
}

.ws-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--green, #2d4a3e);
}

.ws-panel-title .ws-panel-icon {
  color: var(--champagne, #c4a052);
}

.ws-desc {
  margin: 0;
  line-height: 1.75;
  color: rgba(45, 74, 62, 0.85);
  font-size: 0.92rem;
}

/* Offer strip */
.ws-offer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, #fff7ec, #fdeede);
  border: 1px dashed rgba(196, 160, 82, 0.5);
}

.ws-offer .ws-offer-icon {
  font-size: 1.6rem;
  color: var(--champagne, #c4a052);
  flex-shrink: 0;
}

.ws-offer .ws-offer-title {
  display: block;
  color: var(--green, #2d4a3e);
  font-size: 0.95rem;
}

.ws-offer .ws-offer-text {
  font-size: 0.82rem;
  color: rgba(45, 74, 62, 0.7);
}

.ws-disclaimer {
  margin: 0;
}

/* ---------- You May Also Like ---------- */
.ws-similar-title {
  text-align: center;
}

.ws-similar .product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px)) !important;
  justify-content: center !important;
  justify-items: stretch;
  width: 100%;
  gap: 1.15rem;
}

@media (min-width: 992px) {
  .ws-similar .product-grid {
    gap: 1.35rem;
  }
}

/* ---------- Reviews ---------- */
.ws-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ws-reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fbf8f4;
  border: 1px solid rgba(45, 74, 62, 0.08);
}

.ws-reviews-avg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green, #2d4a3e);
  line-height: 1;
}

.ws-reviews-total {
  font-size: 0.8rem;
  color: rgba(45, 74, 62, 0.6);
}

.ws-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.15rem;
}

.ws-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.4rem 1.15rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(45, 74, 62, 0.08);
  box-shadow: 0 6px 20px rgba(45, 74, 62, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ws-review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--champagne, #c4a052), rgba(196, 160, 82, 0.35));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ws-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(45, 74, 62, 0.12);
  border-color: rgba(196, 160, 82, 0.32);
}

.ws-review-card:hover::before {
  opacity: 1;
}

.ws-review-quote {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(196, 160, 82, 0.16);
  pointer-events: none;
}

.ws-review-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ws-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--avatar-color, #2d4a3e);
  background: linear-gradient(135deg, var(--avatar-color, #2d4a3e), color-mix(in srgb, var(--avatar-color, #2d4a3e) 70%, #ffffff 30%));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(45, 74, 62, 0.18);
}

.ws-review-meta {
  min-width: 0;
}

.ws-review-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--green, #2d4a3e);
  margin-bottom: 0.25rem;
}

.ws-review-verified {
  display: inline-flex;
  color: #2e8b57;
  font-size: 0.95rem;
}

.ws-review-text {
  margin: 0;
  line-height: 1.7;
  font-size: 0.9rem;
  color: rgba(45, 74, 62, 0.82);
  flex: 1;
}

.ws-review-foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(45, 74, 62, 0.07);
  font-size: 0.76rem;
  color: rgba(45, 74, 62, 0.5);
}

.ws-review-foot i {
  font-size: 0.9rem;
}

.ws-review-form {
  max-width: 620px;
  margin-inline: auto;
  padding: 2.25rem 2rem;
  text-align: center;
  border-radius: 1.35rem;
  background: linear-gradient(165deg, #ffffff 0%, #faf6f0 100%);
  border: 1px solid rgba(45, 74, 62, 0.09);
  box-shadow: 0 18px 50px rgba(45, 74, 62, 0.08);
}

.ws-review-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(196, 160, 82, 0.14);
  border: 1px solid rgba(196, 160, 82, 0.3);
  color: var(--champagne, #c4a052);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ws-review-form .ws-review-form-title {
  margin: 0.85rem 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--green, #2d4a3e);
}

.ws-review-form-sub {
  margin: 0 auto 1.75rem;
  max-width: 420px;
  font-size: 0.9rem;
  color: rgba(45, 74, 62, 0.6);
}

.ws-rv-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: left;
}

/* Honeypot — visually hidden but present for bots */
.ws-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ws-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ws-field .ws-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(45, 74, 62, 0.7);
}

.ws-field .ws-field-input,
.ws-field .ws-field-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--green, #2d4a3e);
  background: #fff;
  border: 1.5px solid rgba(45, 74, 62, 0.16);
  border-radius: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ws-field .ws-field-input::placeholder,
.ws-field .ws-field-textarea::placeholder {
  color: rgba(45, 74, 62, 0.4);
}

.ws-field .ws-field-input:focus,
.ws-field .ws-field-textarea:focus {
  outline: none;
  border-color: var(--champagne, #c4a052);
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.16);
}

.ws-field .ws-field-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* Invalid field states */
.ws-field.is-invalid .ws-field-input,
.ws-field.is-invalid .ws-field-textarea {
  border-color: #dc3545;
  background: #fff7f7;
}

.ws-field.is-invalid .ws-field-input:focus,
.ws-field.is-invalid .ws-field-textarea:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.16);
}

.ws-field-error {
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc3545;
  min-height: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.ws-field.is-invalid .ws-field-error {
  opacity: 1;
  max-height: 3rem;
}

.ws-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ws-field-meta .ws-field-error {
  flex: 1;
}

.ws-char-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(45, 74, 62, 0.45);
  flex-shrink: 0;
}

/* Interactive star rating picker (fills up to the selected star).
   DOM order is 5→1 so the `~` sibling selector can fill lower stars;
   row-reverse flips them back to a natural 1→5 left-to-right display. */
.ws-stars-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 0.2rem;
}

.ws-stars-input .ws-star-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ws-stars-input .ws-star-label {
  margin: 0;
  padding: 0.1rem 0.12rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(45, 74, 62, 0.22);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.15s ease, transform 0.12s ease;
}

/* Hovered star + all stars visually left of it (later in DOM) */
.ws-stars-input .ws-star-label:hover,
.ws-stars-input .ws-star-label:hover ~ .ws-star-label,
/* Checked star + all stars visually left of it */
.ws-stars-input .ws-star-input:checked ~ .ws-star-label {
  color: var(--champagne, #c4a052);
}

/* While hovering, drop the persisted (checked) highlight so preview is clean */
.ws-stars-input:hover .ws-star-input:checked ~ .ws-star-label {
  color: rgba(45, 74, 62, 0.22);
}

.ws-stars-input:hover .ws-star-label:hover,
.ws-stars-input:hover .ws-star-label:hover ~ .ws-star-label {
  color: var(--champagne, #c4a052);
}

.ws-stars-input .ws-star-label:hover {
  transform: scale(1.12);
}

.ws-stars-input .ws-star-input:focus-visible ~ .ws-star-label {
  outline: 2px solid rgba(196, 160, 82, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.ws-review-submit {
  align-self: center;
  margin-top: 0.35rem;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.ws-review-submit .ws-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ws-review-submit .ws-btn-spinner {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wsSpin 0.7s linear infinite;
}

.ws-review-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.ws-review-submit.is-loading .ws-btn-label {
  display: none;
}

.ws-review-submit.is-loading .ws-btn-spinner {
  display: inline-block;
}

@keyframes wsSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Custom result modal ---------- */
.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ws-modal[hidden] {
  display: none;
}

.ws-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 22, 0.55);
  backdrop-filter: blur(4px);
  animation: wsFade 0.25s ease;
}

.ws-modal-dialog {
  position: relative;
  width: min(94vw, 420px);
  background: #fff;
  border-radius: 1.35rem;
  padding: 2.5rem 1.75rem 1.9rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(18, 26, 22, 0.35);
  animation: wsModalPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-select: none;
}

@keyframes wsModalPop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ws-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(45, 74, 62, 0.08);
  color: var(--green, #2d4a3e);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ws-modal-close:hover {
  background: rgba(45, 74, 62, 0.16);
  transform: rotate(90deg);
}

.ws-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.ws-modal.is-success .ws-modal-icon {
  background: rgba(21, 115, 71, 0.12);
  color: #157347;
}

.ws-modal.is-error .ws-modal-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.ws-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--green, #2d4a3e);
}

.ws-modal-text {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(45, 74, 62, 0.75);
}

.ws-modal-action {
  min-width: 160px;
}

/* ---------- Lightbox ---------- */
.ws-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 26, 22, 0.92);
  backdrop-filter: blur(6px);
  animation: wsFade 0.25s ease;
}

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

@keyframes wsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ws-lightbox-stage {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.ws-lightbox-stage .ws-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.ws-lightbox-stage.is-zoomed .ws-lightbox-img {
  cursor: zoom-out;
  transition: none;
}

.ws-lightbox-close,
.ws-lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ws-lightbox-close:hover,
.ws-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ws-lightbox-close {
  top: 1.1rem;
  right: 1.1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
}

.ws-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.ws-lightbox-prev { left: 1.1rem; }
.ws-lightbox-next { right: 1.1rem; }

.ws-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.08);
}

.ws-lightbox.is-single .ws-lightbox-nav {
  display: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .ws-gallery {
    position: static;
  }
  .ws-info {
    padding: 4px 0;
  }
  .ws-details {
    padding: 0;
  }
}

/* ---------- Phone (landscape / large) ---------- */
@media (max-width: 767px) {
  .ws-pdp {
    gap: 1.5rem;
    padding: 0.75rem 0 2rem;
  }
  .ws-gallery {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .ws-stage {
    order: 1;
  }
  .ws-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .ws-video {
    order: 3;
  }
  .ws-main {
    cursor: pointer;
    aspect-ratio: 4 / 5;
  }
  .ws-details {
    grid-template-columns: 1fr;
  }
  .ws-trust,
  .ws-specs {
    grid-template-columns: 1fr;
  }
  .ws-zoom-hint {
    font-size: 0.68rem;
  }
  /* Reviews: single column, avoid the 300px min-track overflow on narrow screens */
  .ws-reviews-grid {
    grid-template-columns: 1fr;
  }
  .ws-reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .ws-review-form {
    padding: 1.75rem 1.25rem;
  }
  /* Smaller lightbox controls so they don't crowd the image */
  .ws-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
  }
  .ws-lightbox-prev { left: 0.5rem; }
  .ws-lightbox-next { right: 0.5rem; }
  .ws-lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
    width: 2.4rem;
    height: 2.4rem;
  }
}

/* ---------- Phone (small) ---------- */
@media (max-width: 480px) {
  .ws-info {
    gap: 1rem;
  }
  .ws-price-card {
    padding: 1rem 1.1rem;
  }
  .ws-actions {
    grid-template-columns: 1fr;
  }
  .ws-actions .btn-lg {
    padding: 0.85rem 1rem;
  }
  .ws-trust {
    padding: 0.9rem 1rem;
  }
  .ws-panel {
    padding: 1rem 1.1rem;
  }
  .ws-stars-input .ws-star-label {
    font-size: 1.75rem;
  }
  .ws-modal-dialog {
    padding: 2.25rem 1.25rem 1.6rem;
  }
}
