/* ===== Product Detail — page-product-detail.css ===== */

/* Product overview: gallery + info */
.product_overview { display: grid; grid-template-columns: 45fr 55fr; gap: 40px; background: #fff; padding: 30px; border-radius: 16px; box-shadow: var(--shadow-card); margin-bottom: 40px; }
.gallery_wrap { display: flex; flex-direction: column; gap: 15px; }
.main_img_box { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fdfdfd; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; border: 1px solid #eee; }
.main_img_box img { width: 85%; height: 85%; object-fit: contain; transition: 0.3s; }
.thumb_list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb_item { aspect-ratio: 1 / 1; background: #f4f6f9; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
.thumb_item img { width: 80%; height: 80%; object-fit: contain; }
.thumb_item:hover, .thumb_item.active { border-color: var(--primary-blue); background: #fff; }

/* Zoom hint — appears on hover */
.zoom_hint { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; background: rgba(0,0,0,0.42); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 1; }
.main_img_box:hover .zoom_hint { opacity: 1; }

/* Product summary */
.prod_summary h1,
.prod_summary h2 { font-size: 28px; font-weight: 800; color: var(--text-dark); margin-bottom: 15px; line-height: 1.3; }
.prod_desc_short { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px dashed #eee; }
.attr_list { list-style: none; padding: 0; margin-bottom: 30px; }
.attr_list li { display: flex; padding: 12px 0; border-bottom: 1px solid #f9f9f9; font-size: 14px; }
.attr_name { width: 40%; color: #888; font-weight: 600; }
.attr_val { width: 60%; color: var(--text-dark); font-weight: 700; }
.btn_scroll_quote { display: block; text-align: center; padding: 18px; background: var(--primary-gradient); color: #fff !important; font-weight: 800; font-size: 15px; text-transform: uppercase; border-radius: 8px; text-decoration: none; transition: 0.3s; box-shadow: 0 8px 20px rgba(2,160,225,0.2); }
.btn_scroll_quote:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* Full spec card */
.detail_card { background: #fff; padding: 40px; border-radius: 16px; box-shadow: var(--shadow-card); margin-bottom: 40px; }
.section_heading { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 30px; padding-left: 15px; border-left: 4px solid var(--primary-blue); }
.article_body img { max-width: 100% !important; height: auto !important; border-radius: 8px; }

/* Inquiry form */
.inquiry_card { background: #f8fbff; padding: 50px 40px; border-radius: 20px; box-shadow: var(--shadow-card-hover); margin-top: 40px; border: 1px solid #e1eaf3; border-top: 6px solid var(--primary-blue); max-width: 860px; margin-left: auto; margin-right: auto; }
.inquiry_card .section_heading { text-align: center; border: none; padding: 0; margin-bottom: 35px; font-size: 26px; }
.modern_form .input_row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.modern_input { width: 100%; padding: 16px 20px; border: 2px solid #edf2f7; border-radius: 12px; background: #fff; font-size: 15px; box-sizing: border-box; transition: 0.3s; font-family: inherit; color: #333; }
.modern_input:focus { border-color: var(--primary-blue); box-shadow: 0 8px 25px rgba(2,160,225,0.12); outline: none; }
textarea.modern_input { resize: vertical; }
.submit_btn_pro { width: 100%; padding: 20px; background: var(--primary-gradient); color: #fff; border: none; border-radius: 12px; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px rgba(2,160,225,0.3); margin-top: 10px; }
.submit_btn_pro:hover { transform: translateY(-3px); filter: brightness(1.1); }
.form_response_note { font-size: 13px; color: #aaa; text-align: center; margin-top: 14px; }
.form_response_note i { color: var(--primary-blue); margin-right: 5px; }

/* Image preview overlay */
#imgPreviewOverlay { position: fixed; inset: 0; display: none; justify-content: center; align-items: center; z-index: 99999; }
.overlay-bg { position: absolute; inset: 0; background: rgba(10,14,23,0.95); backdrop-filter: blur(5px); }
#imgPreviewOverlay img { max-width: 85vw; max-height: 85vh; border-radius: 12px; z-index: 100000; background: #fff; padding: 10px; }
.prev-btn, .next-btn, .close-overlay { position: absolute; color: #fff; font-size: 40px; cursor: pointer; z-index: 100001; padding: 20px; }
.prev-btn { left: 5%; } .next-btn { right: 5%; } .close-overlay { top: 3%; right: 3%; font-size: 50px; }

/* Show-more button — hidden on desktop, shown by JS on mobile when attrs > 4 */
.attr_show_more { display: none; }

/* Related products */
.related_products_sec { margin-top: 60px; padding-top: 50px; border-top: 1px solid #f0f2f5; }
.related_prod_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 25px; }
.rel_prod_card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; text-decoration: none; transition: 0.35s; display: block; }
.rel_prod_card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--primary-blue); }
.rel_prod_img { aspect-ratio: 1 / 1; background: #f4f6f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rel_prod_img img { width: 75%; height: 75%; object-fit: contain; transition: 0.4s; mix-blend-mode: multiply; }
.rel_prod_card:hover .rel_prod_img img { transform: scale(1.08); }
.rel_prod_info { padding: 15px; }
.rel_prod_info h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.rel_prod_link { font-size: 12px; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; }

/* Back to category */
.back_to_cat { text-align: center; margin-top: 40px; padding-top: 30px; border-top: 1px solid #f0f2f5; }
.back_cat_link { display: inline-flex; align-items: center; gap: 8px; color: #777; font-size: 14px; font-weight: 600; text-decoration: none; transition: 0.2s; border: 1px solid #e5e7eb; border-radius: 50px; padding: 10px 22px; }
.back_cat_link:hover { color: var(--primary-blue); border-color: var(--primary-blue); background: rgba(2,160,225,0.04); }

/* Sticky mobile inquiry bar — hidden on desktop */
.sticky_inquiry_bar { display: none; }

@media (max-width: 991px) {
  .product_overview { grid-template-columns: 1fr; padding: 20px; }
  .inquiry_card { padding: 35px 20px; }
  .modern_form .input_row { grid-template-columns: 1fr; gap: 15px; }
  .attr_show_more { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid #e0e6ed; border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--primary-blue); cursor: pointer; width: 100%; justify-content: center; margin-bottom: 20px; transition: 0.2s; }
  .attr_show_more:hover { background: rgba(2,160,225,0.06); }
  .related_prod_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .sticky_inquiry_bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
    background: #fff; padding: 12px 16px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-blue);
    transform: translateY(100%); transition: transform 0.3s ease;
  }
  .sticky_inquiry_bar.is_visible { transform: translateY(0); }
  .sib_prod_name { font-size: 13px; font-weight: 600; color: #333; flex: 1; padding-right: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sib_btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--primary-gradient); color: #fff !important; font-size: 13px; font-weight: 700; border-radius: 50px; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(2,160,225,0.3); flex-shrink: 0; }
}
