/* Product detail: rating line + full-width "Detail Produk" / "Ulasan Produk" card below the product card (marketplace layout).
   The review list itself (score, star chart, filters, cards) lives in product-reviews.css (.prv-*). */

/* rating under the title */
.detail-info .pd-rating{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;font-size:12.5px;line-height:1;color:var(--muted,#6f8580);text-decoration:none}
.detail-info .pd-rating .pd-star{display:inline-flex;width:15px;height:15px;color:#f5a623}
.detail-info .pd-rating .pd-star svg{width:100%;height:100%;fill:currentColor;stroke:currentColor;stroke-width:1.2;stroke-linejoin:round}
.detail-info .pd-rating b{font-size:13px;font-weight:700;color:var(--ink,#173b4f)}
.detail-info .pd-rating i{width:3px;height:3px;border-radius:50%;background:#b9c9c4}
.detail-info .pd-rating:hover span:last-child{color:var(--green,#087760);text-decoration:underline}
.detail-info .pd-rating .pd-sold b{font-size:13px;font-weight:700;color:var(--ink,#173b4f)}
.detail-info .pd-rating:hover .pd-sold{color:var(--muted,#6f8580);text-decoration:none}
.detail-info .pd-rating.is-empty .pd-star{color:#d6e0dc}

/* store rating (accumulation of all product reviews) inside the seller card */
.seller .pd-store-rate{display:flex;align-items:center;gap:4px;margin-top:3px;font-size:11.5px;line-height:1.3;color:var(--muted,#6f8580)}
.seller .pd-store-rate svg{width:12px;height:12px;flex:none;fill:#f5a623;stroke:#f5a623;stroke-width:1.2;stroke-linejoin:round}
.seller .pd-store-rate b{color:var(--ink,#173b4f);font-weight:700}
.seller .pd-store-rate.is-empty svg{fill:#d6e0dc;stroke:#d6e0dc}

/* seller card: bigger logo, aligned top-to-bottom with store name (top) and rating line (bottom) */
.detail-info .seller{align-items:center;gap:12px}
.detail-info .seller img{width:52px;height:52px;align-self:center;border-radius:10px;flex:none}
.detail-info .seller>div{display:block;min-width:0;align-self:center;line-height:1.35}
.detail-info .seller>div small{display:block;line-height:1.35}
.detail-info .seller>div .pd-store-rate{margin-top:0}
.detail-info .seller>.ico{align-self:center}
@media(max-width:700px){.detail-info .seller img{width:44px;height:44px}}

/* card */
.pd-info{margin-top:16px;background:#fff;border:1px solid var(--line,#e3ece9);border-radius:12px;overflow:clip}
.pd-info h2{margin:0;font-size:15px;font-weight:700;letter-spacing:-.15px;color:var(--ink,#173b4f)}
.pd-tabs{position:sticky;top:64px;z-index:5;display:flex;gap:4px;padding:0 20px;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(6px);border-bottom:1px solid var(--line,#e3ece9)}
.pd-tabs a{position:relative;display:inline-flex;align-items:center;gap:6px;padding:14px 12px;font-size:13px;font-weight:600;color:var(--muted,#6f8580);text-decoration:none;white-space:nowrap}
.pd-tabs a em{font-style:normal;font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--tint,#f4faf8);color:var(--green,#087760)}
.pd-tabs a.active{color:var(--green,#087760)}
.pd-tabs a.active::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:2px;background:var(--green,#087760)}
.pd-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;padding:22px 24px 26px;scroll-margin-top:120px}
.pd-desc h2,.pd-specs h2{margin-bottom:12px}

/* description: readable measure, long text collapses */
.pd-desc-body{font-size:14px;line-height:1.75;color:#4d6660;overflow-wrap:anywhere;word-break:normal;max-width:78ch}
.pd-desc-body.is-clamped{max-height:190px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
.pd-more{display:flex;flex-direction:column;align-items:center;gap:0;width:100%;margin:-4px 0 0;padding:8px 0 4px;border:0;border-radius:10px;background:transparent;color:var(--green-dark,#055a49);font:inherit;font-size:13px;font-weight:700;letter-spacing:.01em;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pd-more[hidden]{display:none}
.pd-more svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s ease}
.pd-more.is-open svg{transform:rotate(180deg)}
.pd-more:hover svg{transform:translateY(2px)}
.pd-more.is-open:hover svg{transform:rotate(180deg) translateY(2px)}
.pd-more:focus-visible{outline:2px solid var(--green,#087760);outline-offset:2px}
.pd-muted{margin:0;font-size:13px;color:var(--muted,#6f8580)}

/* spec list */
.pd-specs{align-self:start;padding:16px 18px;border:1px solid var(--line,#e3ece9);border-radius:12px;background:var(--tint,#f4faf8)}
.pd-specs dl{margin:0}
.pd-specs dl>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;padding:9px 0;border-top:1px solid var(--tint-line,#e2eee9);font-size:13px;line-height:1.45}
.pd-specs dl>div:first-child{border-top:0;padding-top:0}
.pd-specs dl>div:last-child{padding-bottom:0}
.pd-specs dt{color:var(--muted,#6f8580)}
.pd-specs dd{margin:0;font-weight:600;color:var(--ink,#173b4f);overflow-wrap:anywhere}
.pd-specs dd a{color:var(--green,#087760);text-decoration:none}
.pd-specs dd a:hover{text-decoration:underline}

/* reviews */
.pd-reviews{padding:22px 24px 24px;border-top:1px solid var(--line,#e3ece9);scroll-margin-top:120px}
.pd-reviews-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.pd-reviews-head a{font-size:12.5px;font-weight:700;color:var(--green,#087760);text-decoration:none}
.pd-note{margin:14px 0 0;font-size:11.5px;color:var(--muted,#6f8580)}

@media(max-width:900px){
  .pd-grid{grid-template-columns:minmax(0,1fr);gap:20px;padding:18px 16px 20px}
  .pd-desc-body{max-width:none}
}
@media(max-width:800px){
  .pd-info{margin-top:12px;border-radius:12px}
  .pd-tabs{padding:0 8px;top:62px}
  .pd-tabs a{padding:13px 10px;font-size:12.5px}
  .pd-reviews{padding:18px 16px 20px}
}
