/* ══════════════════ PRODUCT DETAIL PAGE ══════════════════ */

/* Sticky header + nav on product page */
#mainHeader { position: sticky; top: 0; z-index: 600; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.nav-bar    { position: sticky; top: 69px; z-index: 500; }

/* ── Breadcrumb ── */
.breadcrumb-bar { padding: 10px 0; border-bottom: 1px solid #f0f0f0; background: #fff; }
.breadcrumb-list { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: #888; flex-wrap: wrap; }
.breadcrumb-list a { color: #555; }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .sep { color: #ccc; font-size: 10px; }
.breadcrumb-list .current { color: var(--dark); font-weight: 600; }

/* ── Layout ── */
.product-detail-section { padding: 32px 0 0; background: #fff; }
.product-layout { display: flex; gap: 40px; align-items: flex-start; }

/* ── Left: Sticky Gallery ── */
.gallery-col { flex: 0 0 42%; max-width: 42%; position: sticky; top: 130px; align-self: flex-start; }
.gallery-inner { display: flex; gap: 14px; }
.thumb-strip { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; flex-shrink: 0; }
.thumb-arrow { width: 100%; height: 36px; background: #fff; border: 1px solid #ddd; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--primary); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.04); margin: 2px 0; }
.thumb-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.1); transform: translateY(-1px); }
.thumb-img { width: 76px; height: 76px; border: 2px solid #eee; border-radius: 8px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fafafa; transition: border-color 0.2s; }
.thumb-img.active { border-color: var(--primary); }
.thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.main-img-box { flex: 1; border: 1px solid #f0f0f0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; min-height: 400px; padding: 0; position: relative; cursor: crosshair; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.main-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 0.15s ease; pointer-events: none; user-select: none; border-radius: 12px; }
.zoom-lens { display: none; position: absolute; width: 100px; height: 100px; border: 1.5px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.25); box-shadow: 0 0 0 1px rgba(0,0,0,0.15); pointer-events: none; z-index: 20; border-radius: 2px; }
#zoomResult { display: none; position: fixed; border: 1px solid #e0e0e0; border-radius: 10px; background-repeat: no-repeat; background-color: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.12); z-index: 9000; pointer-events: none; overflow: hidden; }

/* ── Right: Info Column ── */
.info-col { flex: 1; min-width: 0; padding-bottom: 60px; }
.prod-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 16px; border-radius: 30px; margin-bottom: 14px; }
.prod-title { font-size: 26px; font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: 6px; }
.prod-by { font-size: 13px; color: #555; margin-bottom: 14px; }
.prod-by a { color: var(--primary); font-weight: 700; }
.prod-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f5f5f5; }
.stars-display { color: #ffc107; font-size: 15px; letter-spacing: 1px; }
.rating-score { font-size: 15px; font-weight: 800; color: var(--dark); }
.rating-count-sm { font-size: 12px; color: #888; }
.in-stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.in-stock-dot { width: 9px; height: 9px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }
.prod-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 24px; padding: 16px; background: #f9f9f9; border-radius: 8px; border: 1px solid #f0f0f0; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #333; }
.feature-item i { font-size: 15px; color: var(--primary); width: 18px; text-align: center; }
.prod-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; }
.btn-send-enquiry { flex: 1; background: linear-gradient(135deg, #1a2e1a, #2c4a2c); color: #fff; border: none; padding: 14px 24px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; font-family: inherit; box-shadow: 0 4px 14px rgba(26,46,26,0.25); }
.btn-send-enquiry:hover { background: linear-gradient(135deg, #2c4a2c, #3d6a3d); transform: translateY(-1px); }
.btn-share { width: 48px; height: 48px; border: 2px solid #eee; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: #555; transition: all 0.2s; flex-shrink: 0; }
.btn-share:hover { border-color: var(--primary); color: var(--primary); }

/* ── Description Tabs ── */
.desc-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 18px; }
.desc-tab { padding: 10px 22px; font-size: 14px; font-weight: 700; color: #888; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.desc-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.desc-short { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 28px; }
.full-desc { font-size: 13.5px; color: #444; line-height: 1.9; }
.full-desc p { margin-bottom: 10px; }
.full-desc .desc-heading { font-weight: 800; color: var(--dark); display: block; margin-top: 18px; margin-bottom: 4px; font-size: 14px; }
.full-desc ul { padding-left: 20px; margin-bottom: 10px; }
.full-desc ul li { margin-bottom: 4px; }

/* ── Ratings & Reviews ── */
.ratings-section { padding: 40px 0; border-top: 2px solid #f0f0f0; background: #fff; }
.ratings-section h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 28px; position: relative; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.ratings-section h2::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.rating-overview { display: flex; gap: 48px; align-items: flex-start; }
.rating-big { text-align: center; flex-shrink: 0; min-width: 120px; }
.rating-big .score { font-size: 58px; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 8px; }
.rating-big .stars-lg { color: #ffc107; font-size: 18px; margin-bottom: 6px; }
.rating-big .based { font-size: 11px; color: #888; }
.rating-bars { flex: 1; max-width: 480px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.star-label { width: 26px; text-align: right; font-size: 12px; font-weight: 700; color: #333; flex-shrink: 0; }
.bar-wrap { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #ffc107; border-radius: 4px; transition: width 0.6s ease; }
.bar-pct { width: 36px; font-size: 11px; color: #888; flex-shrink: 0; }
.btn-write-review { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 1.5px solid #333; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 700; color: #333; cursor: pointer; margin-top: 20px; font-family: inherit; transition: all 0.2s; }
.btn-write-review:hover { border-color: var(--primary); color: var(--primary); }

/* ── You May Also Like ── */
.also-like-section { padding: 36px 0 48px; background: #fff; }
.also-like-section .section-title { border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 24px; }
.also-like-section .section-title h2 { font-size: 20px; font-weight: 700; position: relative; margin: 0; }
.also-like-section .section-title h2::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.also-like-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .product-layout { flex-direction: column; gap: 24px; }
    .gallery-col { flex: none; max-width: 100%; width: 100%; position: static; }
    .rating-overview { flex-direction: column; gap: 20px; }
    .also-like-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-bar { top: 69px; }
}
@media (max-width: 576px) {
    .prod-features { grid-template-columns: 1fr; }
    .also-like-grid { grid-template-columns: 1fr; }
    .prod-title { font-size: 20px; }
    .gallery-inner { flex-direction: column-reverse; }
    .thumb-strip { flex-direction: row; width: 100%; overflow-x: auto; padding: 5px 0; }
    .thumb-img { flex-shrink: 0; }
    .thumb-arrow { display: none; }
}
