/* ============================================================
   Pipqo — WooCommerce product description styling
   ------------------------------------------------------------
   The product CSV (pipqo-products-woocommerce.csv) writes markup
   with pq-* classes. Without this file those blocks render as
   unstyled text. Design tokens are copied verbatim from the
   prototype's :root block, which itself follows section 2.1 of
   pipqo-竞品拆解与建站执行方案.docx.

   INSTALL
     1. Upload to:  wp-content/themes/kadence-child/assets/pipqo.css
        (or anywhere under your child theme)
     2. Enqueue it, or paste into Appearance > Customize >
        Additional CSS for a quick test.
   ============================================================ */

:root{
  --honey:#D98A4A;      --honey-dark:#C1763A;  --honey-soft:#F2DFCC;
  --oat:#FAF6F1;        --cream:#FFFFFF;
  --dusk:#3A3129;       --dusk-muted:#7A6F63;
  --sage:#7C9A86;       --sage-soft:#E3EBE5;
  --terracotta:#B85C45;
  --sand:#E5DDD3;       --fog:#C9C2B9;
  --radius:12px;        --radius-sm:8px;
  --shadow:0 2px 8px rgba(58,49,41,.06);
  --shadow-md:0 6px 20px rgba(58,49,41,.10);
}

/* ---- product description container ------------------------------- */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .entry-summary{color:var(--dusk)}

/* badge line */
.pq-badge-line{margin:0 0 12px}
.pq-chip{display:inline-block;padding:4px 11px;border-radius:20px;
  font-size:12px;font-weight:600;letter-spacing:.02em}
.pq-chip-honey{background:var(--honey-soft);color:var(--honey-dark)}
.pq-chip-terra{background:#F3DED8;color:var(--terracotta)}

/* shipping note */
.pq-ship-note{display:flex;align-items:flex-start;gap:10px;background:var(--honey-soft);
  border-radius:var(--radius-sm);padding:14px 16px;font-size:14px;color:#8A5326;
  line-height:1.55;margin:20px 0}

/* kit contents callout */
.pq-callout{background:var(--sage-soft);border-radius:var(--radius);padding:22px 24px;margin:20px 0}
.pq-callout h4{font-size:1.05rem;margin:0 0 8px;color:#3f5a4a}
.pq-kit{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.pq-kit li{display:flex;gap:9px;font-size:14.5px;color:#4d6b58;line-height:1.5}
.pq-kit li::before{content:"\2713";color:var(--sage);font-weight:700;flex-shrink:0}
.pq-kit li.pq-free{color:var(--honey-dark);font-weight:500}
.pq-kit li.pq-free::before{content:"\2605";color:var(--honey)}

/* headings inside description */
.pq-feat+h3, .woocommerce-tabs h3, .entry-summary h3{
  font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--dusk-muted);margin:26px 0 14px;padding-top:24px;border-top:1px solid var(--sand)}

/* feature list */
.pq-feat{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.pq-feat li{display:flex;gap:11px;font-size:15.5px;line-height:1.6}
.pq-feat li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--honey);
  flex-shrink:0;margin-top:9px}

/* pros / cons */
.pq-proscons{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.pq-pc-box{border-radius:var(--radius-sm);padding:18px}
.pq-pc-box.pq-pro{background:var(--sage-soft)}
.pq-pc-box.pq-con{background:#F9EDE9}
.pq-pc-box h4{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;
  margin:0 0 12px;padding:0;border:0}
.pq-pro h4{color:#4d6b58}
.pq-con h4{color:var(--terracotta)}
.pq-pc-box ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.pq-pc-box li{display:flex;gap:11px;font-size:14.5px;line-height:1.6}
.pq-pc-box li::before{content:"";width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-top:8px}
.pq-pro li::before{background:var(--sage)}
.pq-con li::before{background:var(--terracotta)}

/* size chart table */
.pq-sizetab{width:100%;border-collapse:collapse;font-size:14.5px;margin:0 0 4px}
.pq-sizetab th,.pq-sizetab td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--sand)}
.pq-sizetab th{font-size:12px;text-transform:uppercase;letter-spacing:.07em;
  color:var(--dusk-muted);font-weight:700;background:var(--oat)}
.pq-sizetab tr:last-child td{border-bottom:none}
.pq-instock{color:var(--sage);font-weight:600}
.pq-out{color:var(--fog)}

/* warnings */
.pq-note-warn{background:#F9EDE9;border-left:3px solid var(--terracotta);
  border-radius:var(--radius-sm);padding:16px 18px;font-size:14.5px;color:#8a4433;
  margin-top:16px;line-height:1.6}

/* FAQ accordion (native details, no JS) */
.pq-acc{border-bottom:1px solid var(--sand)}
.pq-acc:first-of-type{border-top:1px solid var(--sand)}
.pq-acc summary{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:19px 0;font-weight:600;font-size:15.5px;cursor:pointer;list-style:none;
  transition:color .2s ease}
.pq-acc summary::-webkit-details-marker{display:none}
.pq-acc summary::after{content:"+";color:var(--honey-dark);font-size:20px;line-height:1;flex-shrink:0}
.pq-acc[open] summary::after{content:"\2212"}
.pq-acc summary:hover{color:var(--honey-dark)}
.pq-acc-body{padding:0 0 20px;font-size:15.5px;color:var(--dusk-muted);line-height:1.7}

/* disclaimer */
.pq-disc{background:var(--oat);border:1px solid var(--sand);border-radius:var(--radius-sm);
  padding:18px 20px;font-size:13.5px;color:var(--dusk-muted);line-height:1.65;margin-top:24px}

/* INTERNAL draft flag — delete this rule and the CSV note before launch */
.pq-flag{background:#F3DED8;border:2px dashed var(--terracotta);border-radius:var(--radius-sm);
  padding:16px 18px;font-size:13.5px;color:#8a4433;margin-top:20px;line-height:1.6}

/* buttons */
.woocommerce div.product form.cart .button,
.woocommerce a.button.alt,
.woocommerce button.button.alt{background:var(--honey);color:#fff;border-radius:var(--radius);
  font-weight:600;letter-spacing:.02em;padding:14px 28px;min-height:48px;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover{background:var(--honey-dark);transform:translateY(-1px);
  box-shadow:var(--shadow-md)}
.woocommerce a.button,
.woocommerce button.button{border:1.5px solid var(--sand);background:var(--cream);
  color:var(--dusk);border-radius:var(--radius);font-weight:600;padding:14px 28px}
.woocommerce a.button:hover,
.woocommerce button.button:hover{border-color:var(--honey);color:var(--honey-dark);
  transform:translateY(-1px)}

/* price */
.woocommerce div.product p.price,
.woocommerce div.product span.price{color:var(--dusk);font-weight:700}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del{color:var(--fog);opacity:1}
.woocommerce span.onsale{background:var(--terracotta);color:#fff;border-radius:20px;
  padding:4px 14px;font-size:12px;font-weight:700;min-height:0;line-height:1.6}

/* variation size swatch row (WooCommerce default select fallback styling) */
.woocommerce div.product form.cart .variations label{font-size:14px;font-weight:600}
.woocommerce div.product form.cart .variations select{padding:11px 14px;
  border:1.5px solid var(--sand);border-radius:var(--radius-sm);background:var(--cream)}

/* ---- responsive -------------------------------------------------- */
@media(max-width:782px){
  .pq-proscons{grid-template-columns:1fr}
}
@media(max-width:560px){
  .pq-ship-note,.pq-callout,.pq-pc-box,.pq-disc{padding:14px 16px}
  .pq-sizetab th,.pq-sizetab td{padding:9px 10px;font-size:13.5px}
}

/* ---- accessibility ---------------------------------------------- */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;
    transition-duration:.01ms!important}
}
