/* product.css — product page (product.html) + wishlist page (wishlist.html). Same colors as style.css. */
[hidden] { display: none !important; }
.prod-page { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; text-align: left; }
.crumbs { margin-bottom: 18px; font-size: 13px; } .crumbs a { color: #12b5f2; text-decoration: none; font-weight: 700; }
.prod-status { text-align: center; color: #9db2c8; font-size: 14px; padding: 60px 0; }

/* ----- product ----- */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.prod-main { background: #0a2038; border: 1px solid #14385c; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; }
.prod-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.prod-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid #14385c; border-radius: 6px; overflow: hidden; background: #0a2038; cursor: pointer; }
.prod-thumbs button.on, .prod-thumbs button:hover { border-color: #12b5f2; }
.prod-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-info h1 { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
.prod-rating { display: inline-flex; align-items: center; gap: 8px; color: #9db2c8; font-size: 13px; text-decoration: none; margin-bottom: 14px; }
.prod-rating:hover { color: #12b5f2; }
.prod-price { color: #f5a623; font-weight: 800; font-size: 24px; margin-bottom: 16px; }
.prod-label { display: block; font-size: 12px; font-weight: 700; color: #9db2c8; margin-bottom: 5px; }
.prod-info .variant-select { background: #071a2e; color: #fff; border: 1px solid #14385c; border-radius: 4px; padding: 11px; font-size: 14px; width: 100%; max-width: 360px; margin-bottom: 16px; }
.prod-actions { display: flex; gap: 10px; align-items: stretch; max-width: 360px; }
.prod-actions .btn-yellow { flex: 1; width: auto; padding: 14px 24px; font-size: 13px; border-radius: 4px; }
.prod-actions .btn-yellow:disabled { opacity: .5; cursor: not-allowed; }
.prod-heart { display: flex; align-items: center; gap: 7px; background: transparent; border: 1px solid #14385c; border-radius: 4px; color: #fff; padding: 0 16px; font-size: 12px; font-weight: 800; cursor: pointer; }
.prod-heart:hover { border-color: #fb7185; }
.prod-heart.on { color: #fb7185; border-color: #fb7185; }
.prod-note { color: #9db2c8; font-size: 12px; margin-top: 12px; } .prod-note a { color: #12b5f2; }
.prod-desc { margin-top: 22px; padding-top: 18px; border-top: 1px solid #14385c; color: #c3d2e2; font-size: 14px; line-height: 1.65; }
.prod-desc p { margin-bottom: 10px; }

/* ----- reviews ----- */
.reviews { margin-top: 56px; padding-top: 30px; border-top: 1px solid #14385c; scroll-margin-top: 20px; }
.reviews h2 { font-size: 22px; margin-bottom: 18px; }
.rev-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.rev-summary { background: linear-gradient(180deg, #0d2744, #0a2038); border: 1px solid #14385c; border-radius: 10px; padding: 20px; }
.rev-avg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rev-avg strong { font-size: 40px; line-height: 1; }
.rev-avg small { display: block; color: #9db2c8; font-size: 12px; margin-top: 4px; }
.rev-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.rev-bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; font-size: 12px; color: #c3d2e2; }
.rev-bar .track { height: 8px; border-radius: 4px; background: #14385c; overflow: hidden; }
.rev-bar .track i { display: block; height: 100%; background: #f5a623; border-radius: 4px; }
.rev-bar .n { text-align: right; color: #9db2c8; }
.rev-none { text-align: center; padding: 10px 0; }
.rev-none .stars { font-size: 30px; margin-bottom: 8px; }
.rev-none strong { display: block; font-size: 16px; margin-bottom: 4px; }
.rev-none span { color: #9db2c8; font-size: 13px; }
.rev-write { background: #081a2f; border: 1px solid #14385c; border-radius: 10px; padding: 20px; }
.rev-write h3 { font-size: 16px; margin-bottom: 6px; }
.rev-write p { color: #9db2c8; font-size: 13px; line-height: 1.5; }
.rev-write .btn-yellow, .rev-write .btn-card { display: inline-block; width: auto; min-width: 150px; margin-top: 12px; text-decoration: none; text-align: center; }
.rev-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.rev-form .l { font-size: 12px; font-weight: 700; color: #9db2c8; display: block; margin-bottom: 4px; }
.rev-form .auth-input { width: 100%; }
.rev-form textarea.auth-input { min-height: 110px; resize: vertical; }
.rev-form .count { text-align: right; font-size: 11px; color: #9db2c8; margin-top: 3px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 34px; line-height: 1; color: #2a4a6b; cursor: pointer; padding: 0 2px; transition: color .1s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f5a623; }
.star-pick input:focus-visible + label { outline: 2px solid #12b5f2; outline-offset: 2px; border-radius: 4px; }
.rev-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rev-btns .btn-yellow { margin-top: 0; }
.rev-btns .link-btn { background: none; border: none; color: #ff8a8a; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.rev-msg { font-size: 12px; min-height: 16px; color: #ff8a8a; } .rev-msg.ok { color: #12b5f2; }
.rev-list { margin-top: 26px; display: flex; flex-direction: column; }
.rev { padding: 20px 0; border-top: 1px solid #14385c; }
.rev:first-child { border-top: none; padding-top: 0; }
.rev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rev-head .who { font-weight: 800; font-size: 14px; }
.badge-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #2ecc71; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.35); border-radius: 20px; padding: 2px 9px; }
.rev h4 { font-size: 15px; margin: 6px 0 4px; }
.rev p.body { color: #c3d2e2; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rev small.date { color: #9db2c8; font-size: 12px; display: block; margin-top: 8px; }
.rev-more { display: block; margin: 10px auto 0; padding: 11px 26px; cursor: pointer; }

/* ----- wishlist page ----- */
.wl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wl-head h1 { font-size: 30px; } .wl-head p { color: #9db2c8; font-size: 13px; margin-top: 4px; }
.wl-head .wl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-head .wl-actions .btn-yellow, .wl-head .wl-actions .btn-card { width: auto; margin: 0; padding: 11px 18px; }
.wl-banner { background: #081a2f; border: 1px solid #14385c; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #a9bcd0; margin-bottom: 20px; } .wl-banner a { color: #12b5f2; font-weight: 700; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.wl-card { background: #0a2038; border: 1px solid #14385c; border-top: 3px solid #fb7185; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.wl-card .img { position: relative; aspect-ratio: 1 / 1; background: #071a2e; display: block; }
.wl-card .img a { display: block; width: 100%; height: 100%; }
.wl-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-card.gone .img img { opacity: .4; filter: grayscale(1); }
.wl-card .x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #fb7185; background: rgba(7,26,46,.88); color: #fb7185; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 15px; }
.wl-card .x:hover { background: #fb7185; color: #071a2e; }
.wl-card .b { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.wl-card h3 { font-size: 14px; line-height: 1.3; } .wl-card h3 a { color: #fff; text-decoration: none; } .wl-card h3 a:hover { color: #12b5f2; }
.wl-card .price { color: #f5a623; font-weight: 800; font-size: 14px; }
.wl-card .variant-select { background: #071a2e; color: #fff; border: 1px solid #14385c; border-radius: 4px; padding: 8px; font-size: 12px; }
.wl-card .gone-note { color: #ff8a8a; font-size: 12px; font-weight: 700; }
.wl-card .row { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.wl-card .row button { flex: 1; margin: 0; padding: 10px 6px; font-size: 11px; }
.wl-empty { text-align: center; padding: 70px 10px; color: #9db2c8; }
.wl-empty i { font-size: 54px; color: #14385c; display: block; margin-bottom: 16px; }
.wl-empty h2 { color: #fff; font-size: 20px; margin-bottom: 6px; } .wl-empty p { font-size: 14px; margin-bottom: 20px; }
.wl-empty .btn-yellow { width: auto; min-width: 200px; text-decoration: none; }

@media (max-width: 760px) {
  .prod, .rev-top { grid-template-columns: 1fr; gap: 22px; }
  .prod-info h1 { font-size: 22px; }
  .prod-actions, .prod-info .variant-select { max-width: none; }
  .wl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wl-card .b { padding: 10px; } .wl-card h3 { font-size: 12px; }
  .wl-card .row { flex-direction: column; }
}
