/* Shared styles for product.html and post.html (detail pages) */

.detail-main{max-width:1180px;margin:0 auto;padding:140px 24px 100px}
.breadcrumb{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;margin-bottom:36px}
.breadcrumb a{color:var(--muted);text-decoration:none;transition:.2s}
.breadcrumb a:hover{color:var(--white)}
.breadcrumb span{color:#555}
.breadcrumb #crumbName,.breadcrumb #crumbTitle{color:var(--white)}

.detail-loading{padding:80px 0;text-align:center;color:var(--muted);font-size:15px}
.detail-loading a{color:var(--red)}

/* ---------- product detail ---------- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.pd-gallery{position:sticky;top:120px}
.pd-main-image{height:480px;background:var(--paper);border-radius:4px;overflow:hidden;display:grid;place-items:center}
.pd-main-image img{width:100%;height:100%;object-fit:cover}
.pd-fallback{width:44%;height:44%;color:#00000055}
.pd-fallback svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.pd-thumbs{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.pd-thumb{width:74px;height:74px;border-radius:4px;overflow:hidden;border:2px solid transparent;background:var(--paper);cursor:pointer;padding:0}
.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pd-thumb.active{border-color:var(--red)}

.pd-info{display:flex;flex-direction:column;gap:14px}
.pd-category{color:var(--muted);font-size:12px;letter-spacing:.03em}
.pd-info h1{margin:0;font-size:clamp(28px,3vw,40px);line-height:1.25}
.pd-price{font-size:24px;font-weight:800;color:var(--red);margin:0}
.pd-description{color:#b8b8b8;line-height:2;font-size:14.5px;margin:0}
.pd-variant{display:flex;flex-direction:column;gap:8px;margin:8px 0;font-size:13px;font-weight:700;color:#ddd}
.pd-variant select{min-height:48px;border:1px solid #444;background:#151515;color:#fff;padding:0 14px;border-radius:6px;font-family:inherit}
.pd-buy-row{display:flex;align-items:center;gap:16px;margin-top:10px;flex-wrap:wrap}
.pd-qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.pd-qty button{width:40px;height:44px;background:none;border:none;color:var(--white);font-size:18px;cursor:pointer}
.pd-qty button:hover{background:var(--red)}
.pd-qty span{width:36px;text-align:center;font-size:15px}
.pd-added-msg{color:#4caf72;font-size:13px;min-height:18px;margin:0}
.pd-back{display:inline-block;margin-top:6px}

@media(max-width:860px){
  .product-detail{grid-template-columns:1fr;gap:32px}
  .pd-gallery{position:static}
  .pd-main-image{height:340px}
  .detail-main{padding:120px 20px 70px}
}

/* ---------- article (news post) detail ---------- */
.article-header{max-width:760px;margin:0 auto 32px}
.article-category{display:inline-block;background:var(--red);color:#fff;font-size:11px;padding:5px 12px;letter-spacing:.03em;margin-bottom:16px}
.article-header h1{margin:0 0 14px;font-size:clamp(28px,4vw,44px);line-height:1.3}
.article-meta{color:var(--muted);font-size:13px}
.article-cover{max-width:960px;margin:0 auto 40px;height:420px;border-radius:4px;overflow:hidden;background:var(--paper)}
.article-cover img{width:100%;height:100%;object-fit:cover}
.article-body{max-width:760px;margin:0 auto;color:#c6c6c6;font-size:16px;line-height:2.1}
.article-body p{margin:0 0 20px}
.article-body figure{margin:28px 0;max-width:100%}
.article-body figure img{display:block;width:100%;height:auto;border-radius:5px}
.article-body figcaption{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.7;text-align:center}
.article-back{display:block;max-width:760px;margin:40px auto 0}

@media(max-width:720px){
  .article-cover{height:240px}
}
.pd-tldr-box,.article-tldr{border-right:4px solid var(--red);background:#f4f1eb;color:#222;padding:18px 20px;margin:22px 0;line-height:1.9}
.pd-tldr-box strong,.article-tldr strong{display:block;margin-bottom:6px}.pd-tldr-box p,.article-tldr p{margin:0}
