/* Plug — Product Detail page. Loaded alongside plug-base.css. */

.plug-theme .plug-pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  font-size: 13px;
  color: var(--plug-muted);
}
.plug-theme .plug-pdp-breadcrumb a {
  font-weight: 600;
  color: var(--plug-blue);
}
.plug-theme .plug-pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-bottom: 60px;
  align-items: start;
}

.plug-theme .plug-pdp-gallery {
  position: sticky;
  top: 24px;
}
.plug-theme .plug-pdp-media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.plug-theme .plug-pdp-media-plain {
  background: transparent;
}
.plug-theme .plug-pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}
.plug-theme .plug-pdp-thumb {
  position: relative;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 1.5px solid var(--plug-border);
  background: var(--plug-gray);
  overflow: hidden;
}
.plug-theme .plug-pdp-thumb.is-active {
  border-color: var(--plug-ink);
}

.plug-theme .plug-pdp-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.plug-theme .plug-pdp-condition-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--plug-blue);
  background: #eaf3fc;
  border-radius: 999px;
  padding: 3px 10px;
}
.plug-theme .plug-pdp-info h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 10px;
}
.plug-theme .plug-pdp-rating-link {
  display: inline-block;
  color: #e8a83c;
  font-size: 14px;
  margin-bottom: 16px;
}
.plug-theme .plug-pdp-rating-link span {
  color: var(--plug-muted);
  font-weight: 600;
  margin-left: 4px;
}

.plug-theme .plug-pdp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.plug-theme .plug-pdp-price-sale {
  color: var(--plug-red);
  font-weight: 800;
}
.plug-theme .plug-pdp-price .plug-price-strike {
  font-size: 18px;
}
.plug-theme .plug-pdp-sale-word {
  color: var(--plug-red);
  font-weight: 800;
}
.plug-theme .plug-pdp-free-ship {
  color: var(--plug-ink);
  font-weight: 500;
}
.plug-theme .plug-pdp-subscription-note {
  background: #eaf3fc;
  color: var(--plug-blue-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.plug-theme .plug-pdp-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--plug-ink);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}
.plug-theme .plug-pdp-countdown-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.plug-theme .plug-pdp-countdown-value {
  font-size: 16px;
  font-weight: 600;
}

.plug-theme .plug-pdp-variant {
  margin-bottom: 18px;
}
.plug-theme .plug-pdp-variant-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--plug-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.plug-theme .plug-pdp-swatch-row {
  display: flex;
  gap: 10px;
}
.plug-theme .plug-pdp-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--plug-border);
}
.plug-theme .plug-pdp-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--plug-ink);
}
.plug-theme .plug-pdp-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plug-theme .plug-pdp-size-chip {
  background: #fff;
  border: 1.5px solid var(--plug-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--plug-ink);
}
.plug-theme .plug-pdp-size-chip.is-active {
  background: var(--plug-ink);
  border-color: var(--plug-ink);
  color: #fff;
}

.plug-theme .plug-pdp-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--plug-border);
  border-bottom: 1px solid var(--plug-border);
}
.plug-theme .plug-pdp-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--plug-ink);
}
.plug-theme .plug-pdp-trust-item svg {
  flex-shrink: 0;
  color: var(--plug-ink);
}

.plug-theme .plug-pdp-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}
.plug-theme .plug-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--plug-border);
  border-radius: 999px;
  overflow: hidden;
}
.plug-theme .plug-qty-stepper button {
  width: 38px;
  height: 42px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--plug-ink);
}
.plug-theme .plug-qty-stepper input {
  width: 36px;
  text-align: center;
  border: none;
  font-size: 14px;
  -moz-appearance: textfield;
  /* Real, confirmed bug (reported live, reproduced via Playwright): a
     global reset rule (input[type="number"], among others) sets
     `padding: 14px 20px` on every text-like input platform-wide. This
     rule never overrode it, so that padding applied unopposed — with
     box-sizing:border-box and a 36px-wide input, 20px of left+right
     padding leaves 0px of actual content width, clipping the quantity
     number invisible even though its real value was always correct
     underneath (confirmed: state updated correctly on click, just never
     visibly rendered). Height also needed the same reset for the same
     reason (50px tall vs. 28px of top+bottom padding leaving barely any
     vertical room).
  */
  padding: 0;
  height: 42px;
  background: transparent;
  color: var(--plug-ink);
}
.plug-theme .plug-pdp-wishlist {
  border: 1.5px solid var(--plug-border);
}
.plug-theme .plug-pdp-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.plug-theme .plug-pdp-add-cart,
.plug-theme .plug-pdp-buy-now {
  flex: 1;
  padding: 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 13.5px;
}
.plug-theme .plug-pdp-add-cart:disabled,
.plug-theme .plug-pdp-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.plug-theme .plug-pdp-accordion {
  border-top: 1px solid var(--plug-border);
}
.plug-theme .plug-pdp-accordion-item {
  border-bottom: 1px solid var(--plug-border);
}
.plug-theme .plug-pdp-accordion-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--plug-ink);
  text-align: left;
  background: none;
  border: none;
}
.plug-theme .plug-pdp-accordion-body {
  padding: 0 0 18px;
  color: var(--plug-muted);
  line-height: 1.7;
}
.plug-theme .plug-pdp-accordion-body p {
  margin: 0;
}
.plug-theme .plug-pdp-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--plug-border);
}
.plug-theme .plug-pdp-spec-row:last-child {
  border-bottom: none;
}
.plug-theme .plug-pdp-spec-row h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--plug-muted);
  margin: 0;
  white-space: nowrap;
}
.plug-theme .plug-pdp-spec-row p {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  text-align: right;
  color: var(--plug-ink);
}

/* ---------- Reviews ---------- */
.plug-theme .plug-reviews {
  border-top: 1px solid var(--plug-border);
  padding-top: 48px;
}
.plug-theme .plug-reviews-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}
.plug-theme .plug-reviews-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.plug-theme .plug-stars {
  display: inline-flex;
  gap: 2px;
  color: #e8a83c;
}
.plug-theme .plug-reviews-average {
  font-size: 14px;
  font-weight: 700;
}
.plug-theme .plug-reviews-count {
  font-size: 13.5px;
  color: var(--plug-muted);
}
.plug-theme .plug-reviews-breakdown {
  max-width: 320px;
  margin-bottom: 32px;
}
.plug-theme .plug-reviews-breakdown-row {
  display: grid;
  grid-template-columns: 50px 1fr 24px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--plug-muted);
  margin-bottom: 6px;
}
.plug-theme .plug-reviews-bar {
  height: 6px;
  background: var(--plug-border);
  border-radius: 999px;
  overflow: hidden;
}
.plug-theme .plug-reviews-bar div {
  height: 100%;
  background: #e8a83c;
}
.plug-theme .plug-reviews-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  align-items: start;
}
.plug-theme .plug-reviews-empty {
  color: var(--plug-muted);
}
.plug-theme .plug-review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--plug-border);
}
.plug-theme .plug-review-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.plug-theme .plug-review-date {
  font-size: 12.5px;
  color: var(--plug-muted);
}
.plug-theme .plug-review-comment {
  font-size: 14px;
  color: var(--plug-ink);
  line-height: 1.6;
  margin: 0 0 6px;
}
.plug-theme .plug-review-verified {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--plug-green);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.plug-theme .plug-review-form {
  background: var(--plug-gray);
  border-radius: 14px;
  padding: 24px;
}
.plug-theme .plug-review-form h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
}
.plug-theme .plug-review-note {
  font-size: 13px;
  color: var(--plug-muted);
  margin: 0 0 14px;
}
.plug-theme .plug-review-error {
  font-size: 13px;
  color: var(--plug-red);
  margin: 0 0 12px;
}
.plug-theme .plug-review-success {
  font-size: 13px;
  color: var(--plug-green);
  margin: 0 0 12px;
}
.plug-theme .plug-review-rating-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.plug-theme .plug-review-rating-picker button {
  color: #e8a83c;
  background: none;
  border: none;
  padding: 0;
}
.plug-theme .plug-review-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: 1.5px solid var(--plug-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  margin-bottom: 14px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .plug-theme .plug-reviews-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .plug-theme .plug-pdp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .plug-theme .plug-pdp-gallery {
    position: static;
  }
}
