/* ===========================================
   Livo — Single Product (PDP)
   Design system: Inter 400/600/700, accent #FF4A00
   only on buy buttons, radius 16/12, bg #F5F5F7
=========================================== */

/* Neutralize generic WC wrapper on product pages — zones go full width */
.single-product .livo-wc-wrap  { max-width: none; padding: 0; }
.single-product .livo-wc-inner { background: none; border-radius: 0; padding: 0; }

/* ════════════════ Color zoning ════════════════ */
.pdp-zone-top {
  background: #FFFFFF;
}
.pdp-zone-bottom {
  background: #F5F5F7;
  border-top: 1px solid #EBEBEB;
}
.pdp-zone-inner {
  max-width: var(--livo-max-w, 1440px);
  margin: 0 auto;
  padding: 24px var(--livo-px, 24px) 40px;
}
.pdp-zone-bottom .pdp-zone-inner {
  padding: 32px var(--livo-px, 24px) 56px;
}

/* ════════════════ TOP: 2 columns ════════════════ */
.pdp-top {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Gallery ── */
.pdp-gallery {
  display: flex;
  gap: 12px;
  position: sticky;
  top: 90px;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 64px;
}
.pdp-thumb {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pdp-thumb:hover  { border-color: #bbb; }
.pdp-thumb.active { border-color: #1A1A1A; }

.pdp-main-img {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 24px;
}
.pdp-badge-disc {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: #1A1A1A;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
}

/* ── Buy Box ── */
.pdp-buy {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 28px 32px;
}

/* Breadcrumbs */
.pdp-crumbs {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pdp-crumbs a {
  color: #888;
  text-decoration: none;
  transition: color .15s;
}
.pdp-crumbs a:hover { color: #111; }
.pdp-crumb-sep { color: #bbb; }
.pdp-crumb-cur {
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Verified badge */
.pdp-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #111111;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.pdp-verified svg { flex-shrink: 0; }

/* Title */
.pdp-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

/* Meta: SKU / stock / rating */
.pdp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.pdp-sku {
  font-size: 12px;
  color: #888;
}
.pdp-meta-sep {
  width: 1px;
  height: 14px;
  background: #EBEBEB;
}
.pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}
.pdp-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.pdp-stock-out          { color: #888; }
.pdp-stock-out .pdp-stock-dot { background: #bbb; }

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 12px;
}
.pdp-rating .star       { font-size: 13px; }
.pdp-rating .star-full,
.pdp-rating .star-half  { color: #f59e0b; }
.pdp-rating .star-empty { color: #ddd; }
.pdp-rating-n { font-weight: 600; color: #111; }
.pdp-rating-c { color: #888; }

/* Price */
.pdp-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.pdp-price {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}
.pdp-price-old {
  font-size: 16px;
  font-weight: 400;
  color: #aaa;
  text-decoration: line-through;
}
.pdp-price-save {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Short description */
.pdp-short {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #F0F0F0;
}
.pdp-short p { margin: 0 0 8px; }
.pdp-short p:last-child { margin: 0; }

/* ── Actions ── */
.pdp-actions {
  display: flex;
  gap: 12px;
}

/* Qty selector */
.pdp-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  height: 52px;
}
.pdp-qty-btn {
  width: 44px;
  background: #fff;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pdp-qty-btn:hover { background: #F5F5F7; color: #111; }
.pdp-qty input {
  width: 48px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  -moz-appearance: textfield;
}
.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-qty input:focus { outline: none; }

/* Add to cart — the ONLY orange element */
.pdp-atc {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  background: var(--livo-accent, #FF4A00);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.pdp-atc:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 74, 0, 0.25);
}
.pdp-atc:active { transform: translateY(0); }
.pdp-atc.loading { opacity: .7; pointer-events: none; }
.pdp-atc.added {
  background: #15803d;
  filter: none;
}
.pdp-atc-dis,
.pdp-atc-dis:hover {
  background: #EBEBEB;
  color: #888;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* Micro actions: wishlist + compare */
.pdp-micro {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.pdp-micro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  cursor: pointer;
  transition: color .2s;
}
.pdp-micro-btn:hover { color: #111111; }
.pdp-micro-btn svg { flex-shrink: 0; }

/* Active state: item is in the list */
.pdp-micro-btn.on { color: #111111; font-weight: 600; }
.pdp-micro-btn.on[data-act="wish"] svg { fill: #111111; stroke: #111111; }

/* Shipping & payment info panel */
.pdp-ship-panel {
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pdp-ship-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #555555;
}
.pdp-ship-item strong { color: #111111; font-weight: 600; }
.pdp-ship-ico-w {
  width: 36px;
  height: 36px;
  background-color: #F5F5F7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ════════════════ Accordions ════════════════ */
.pdp-acc-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* White plates on the gray zone */
.pdp-acc {
  background: #FFF;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.pdp-acc-hd {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  text-align: left;
}
.pdp-acc-arr {
  color: #888;
  transition: transform .3s;
  flex-shrink: 0;
}
.pdp-acc.open .pdp-acc-arr { transform: rotate(180deg); }

.pdp-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.pdp-acc.open .pdp-acc-body { grid-template-rows: 1fr; }
.pdp-acc-body > .pdp-acc-inner { overflow: hidden; }
.pdp-acc-inner {
  padding: 0 28px;
}
.pdp-acc.open .pdp-acc-inner {
  padding: 0 28px 24px;
}

.pdp-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
.pdp-desc h2, .pdp-desc h3 { color: #111; font-weight: 700; }

/* ════════════════ Rich description (premium landing style) ════════════════ */
.livo-rich-description {
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.6;
}

/* Headings */
.livo-rich-description h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin: 32px 0 12px;
}
.livo-rich-description h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 24px 0 12px;
}
.livo-rich-description h2:first-child,
.livo-rich-description h3:first-child { margin-top: 0; }

/* Paragraphs & emphasis */
.livo-rich-description p {
  margin: 0 0 16px;
}
.livo-rich-description strong {
  font-weight: 600;
  color: #111111;
}
.livo-rich-description .lead-text {
  font-size: 16px;
  font-weight: 500;
}

/* Lists: custom orange dot markers */
.livo-rich-description ul {
  list-style: none;
  margin: 0 0 24px;
  padding-left: 20px;
}
.livo-rich-description ul li {
  position: relative;
  margin-bottom: 8px;
}
.livo-rich-description ul li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF4A00;
}

/* Images inside description (nice to have for landing-style content) */
.livo-rich-description img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Attributes table */
.pdp-attrs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pdp-attrs tr  { border-bottom: 1px solid #F0F0F0; }
.pdp-attrs tr:last-child { border-bottom: none; }
.pdp-attrs td  { padding: 11px 0; }
.pdp-attr-k {
  color: #888;
  font-weight: 400;
  width: 40%;
  padding-right: 16px;
}
.pdp-attr-v { color: #111; font-weight: 600; }

/* ════════════════ Reviews ════════════════ */
.pdp-reviews {
  margin: 32px 0;
  background: #FFF;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Left: summary ── */
.pdp-rev-h {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.pdp-rev-avg {
  font-size: 40px;
  font-weight: 700;
  color: #111;
  line-height: 1;
  margin-bottom: 8px;
}
.pdp-rev-avg-stars .star { font-size: 18px; }
.pdp-rev-total {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
}
/* ── Right: list ── */
.pdp-rev-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
}
.pdp-rev-item {
  padding: 18px 0;
  border-bottom: 1px solid #F0F0F0;
}
.pdp-rev-item:first-child { padding-top: 0; }
.pdp-rev-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.pdp-rev-author {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}
.pdp-rev-stars .star { font-size: 12px; }
.pdp-rev-date {
  font-size: 12px;
  color: #888888;
  margin-left: auto;
}
.pdp-rev-text {
  font-size: 14px;
  line-height: 1.6;
  color: #111111;
}
.pdp-rev-text p { margin: 0 0 6px; }
.pdp-rev-text p:last-child { margin: 0; }
.pdp-rev-mod {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin: 0 0 6px;
}
.pdp-rev-empty {
  font-size: 14px;
  color: #555555;
  margin: 0 0 24px;
}
.pdp-rev-verified-only {
  font-size: 13px;
  color: #888;
  margin: 0;
}
.pdp-rev-pages { margin-bottom: 24px; font-size: 13px; }
.pdp-rev-pages a, .pdp-rev-pages span { padding: 4px 8px; color: #555; text-decoration: none; }

/* ── Form ── */
.pdp-rev-form-h {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  padding-top: 20px;
  border-top: 1px solid #F0F0F0;
}
.pdp-rev-list + .pdp-rev-form-h { border-top: none; }

.pdp-rev-field { margin: 0 0 12px; }
.pdp-rev-form input[type="text"],
.pdp-rev-form input[type="email"],
.pdp-rev-form textarea {
  width: 100%;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  color: #111;
  background: #fff;
  transition: border-color .2s;
  resize: vertical;
}
.pdp-rev-form input:focus,
.pdp-rev-form textarea:focus {
  outline: none;
  border-color: #1A1A1A;
}
.pdp-rev-form input::placeholder,
.pdp-rev-form textarea::placeholder { color: #aaa; }

/* Hide WP boilerplate: cookies consent checkbox, logged-in note */
.pdp-rev-form .comment-form-cookies-consent,
.pdp-rev-form .logged-in-as { display: none; }

/* Star rating input (reversed row trick) */
.pdp-rev-rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pdp-rev-rate-lbl { font-size: 14px; color: #555; }
.pdp-rate {
  display: inline-flex;
  flex-direction: row-reverse;
}
.pdp-rate input { display: none; }
.pdp-rate label {
  font-size: 26px;
  line-height: 1;
  color: #ddd;
  cursor: pointer;
  padding: 0 2px;
  transition: color .15s;
}
.pdp-rate label:hover,
.pdp-rate label:hover ~ label,
.pdp-rate input:checked ~ label { color: #f59e0b; }

/* Submit — dark (high specificity to beat the generic
   `.woocommerce #respond input#submit` orange rule in woocommerce.css) */
.pdp-rev-submit,
.woocommerce #respond input#submit.pdp-rev-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #111111;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.pdp-rev-submit:hover,
.woocommerce #respond input#submit.pdp-rev-submit:hover {
  background: #333333;
  filter: none;
}

/* ════════════════ Related products ════════════════ */
.pdp-related { margin-top: 48px; }

/* Clean white cards: no dark image overlay on PDP */
.pdp-related .pc-img-info { display: none; }

/* Orange rule: buy buttons are accent on PDP */
.pdp-related .pc-btn {
  background: var(--livo-accent, #FF4A00);
  color: #fff;
}
.pdp-related .pc-btn:hover:not(:disabled) {
  background: var(--livo-accent, #FF4A00);
  filter: brightness(1.08);
}
.pdp-related .pc-btn:disabled,
.pdp-related .pc-btn-dis {
  background: #f0f0f0;
  color: #bbb;
  filter: none;
}

/* Title: dark, 2 lines (re-assert per design system) */
.pdp-related .pc-title {
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-related-h {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.pdp-related-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pdp-related-row .pc:nth-child(n+5) { display: none; }

@media (min-width: 1025px) and (max-width: 1439px) {
  .pdp-related-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pdp-related-row .pc:nth-child(n+4) { display: none; }
}

/* ════════════════ Sticky Add to Cart (mobile) ════════════════ */
.pdp-sticky {
  display: none;
}

/* ════════════════ Responsive ════════════════ */
@media (max-width: 1024px) {
  .pdp-top { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pdp-title { font-size: 28px; }
  .pdp-buy { padding: 22px 24px; }
}

@media (max-width: 768px) {
  .pdp-zone-inner { padding: 16px var(--livo-px, 16px) 24px; }
  .pdp-zone-bottom .pdp-zone-inner { padding: 20px var(--livo-px, 16px) 90px; }

  .pdp-top { grid-template-columns: 1fr; gap: 16px; }

  /* Gallery: thumbs go horizontal below main image */
  .pdp-gallery {
    position: static;
    flex-direction: column-reverse;
  }
  .pdp-thumbs {
    flex-direction: row;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-thumb { width: 56px; height: 56px; flex-shrink: 0; }

  .pdp-buy { padding: 18px 16px; }
  .pdp-title { font-size: 24px; margin-bottom: 10px; }
  .pdp-crumb-cur { display: none; }
  .pdp-price { font-size: 24px; }

  .pdp-actions { flex-wrap: wrap; }
  .pdp-qty   { height: 48px; }
  .pdp-atc   { height: 48px; min-width: 180px; }

  .pdp-ship-panel { padding: 16px; margin-top: 18px; gap: 12px; }
  .pdp-ship-item  { font-size: 12px; }
  .pdp-ship-ico-w { width: 32px; height: 32px; }

  .pdp-acc-hd    { padding: 16px 18px; font-size: 14px; }
  .pdp-acc-inner { padding: 0 18px; }
  .pdp-acc.open .pdp-acc-inner { padding: 0 18px 18px; }

  .pdp-reviews {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 16px;
  }
  .pdp-rev-h   { font-size: 20px; margin-bottom: 12px; }
  .pdp-rev-avg { font-size: 32px; }
  .pdp-rev-date { margin-left: 0; width: 100%; }

  .pdp-related-h { font-size: 20px; }
  .pdp-related-row {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px;
    margin: 0 calc(-1 * var(--livo-px, 16px));
    padding: 0 var(--livo-px, 16px) 8px;
  }
  .pdp-related-row::-webkit-scrollbar { display: none; }
  .pdp-related-row .pc { flex: 0 0 46%; }
  .pdp-related-row .pc:nth-child(n+4) { display: flex; }

  /* ── Sticky buy bar ── */
  .pdp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-top: 1px solid #EBEBEB;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform .3s ease;
  }
  .pdp-sticky.show { transform: translateY(0); }

  .pdp-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .pdp-sticky-name {
    font-size: 12px;
    font-weight: 400;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pdp-sticky-price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1;
  }
  .pdp-sticky-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 28px;
    min-width: 0;
  }
  .pdp-sticky-btn:hover { transform: none; box-shadow: none; }
}
