/* ===== Product List — page-product-list.css ===== */

/* Filter tabs + count row */
.prod_list_header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.prod_filter_tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter_tab { display: inline-block; padding: 8px 18px; border-radius: 50px; border: 1.5px solid #e5e7eb; color: #555; font-size: 13px; font-weight: 600; text-decoration: none; transition: 0.25s; white-space: nowrap; }
.filter_tab:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.filter_tab.is_current { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff !important; }
.prod_count_display { font-size: 13px; color: #aaa; white-space: nowrap; flex-shrink: 0; }

/* Product grid */
.product_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.modern_prod_card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: 0.4s; display: flex; flex-direction: column; }
.modern_prod_card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); border-color: var(--primary-blue); }

.prod_img_box { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #f4f6f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod_img_box img { width: 80%; height: 80%; object-fit: contain; transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); mix-blend-mode: multiply; }
.modern_prod_card:hover .prod_img_box img { transform: scale(1.1); }

/* Category badge on image */
.prod_cat_badge { position: absolute; top: 10px; left: 10px; background: rgba(2,160,225,0.88); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 20px; line-height: 1.5; pointer-events: none; }

.prod_info { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod_info h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod_desc { font-size: 12px; color: #888; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.view_detail_btn { display: block; text-align: center; padding: 9px 0; background: #f0f7fd; color: var(--primary-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; border-radius: 8px; transition: 0.25s; border: 1.5px solid rgba(2,160,225,0.2); margin-top: auto; }
.modern_prod_card:hover .view_detail_btn { background: var(--primary-blue); color: #fff !important; border-color: var(--primary-blue); }

/* Sidebar — category list */
.side_cat_list { list-style: none; padding: 0; margin: 0; }
.side_cat_list li { border-bottom: 1px solid #f5f5f7; }
.side_cat_list li:last-child { border-bottom: none; }
.side_cat_list li a { display: flex; align-items: center; justify-content: space-between; padding: 11px 4px; font-size: 14px; color: #555; text-decoration: none; transition: 0.2s; font-weight: 500; }
.side_cat_list li a:hover, .side_cat_list li.is_active a { color: var(--primary-blue); font-weight: 700; }
.side_cat_list li.is_active a::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-blue); flex-shrink: 0; }

/* Sidebar — Quote CTA card */
.side_cta_card { background: linear-gradient(145deg, #0f172a 0%, #1a3350 100%); border-radius: 16px; padding: 28px 22px; text-align: center; color: #fff; }
.side_cta_icon { width: 52px; height: 52px; background: rgba(2,160,225,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; color: #02a0e1; }
.side_cta_card h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.side_cta_card p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 20px; }
.side_cta_btn { display: block; padding: 12px; background: var(--primary-gradient); color: #fff !important; font-size: 13px; font-weight: 700; border-radius: 50px; text-decoration: none; transition: 0.3s; box-shadow: 0 6px 16px rgba(2,160,225,0.3); }
.side_cta_btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,160,225,0.45); }

/* Empty state */
.prod_empty_state { display: none; text-align: center; padding: 80px 20px; }
.prod_empty_state.is_visible { display: block; }
.prod_empty_state i { font-size: 54px; color: #d1d5db; display: block; margin-bottom: 18px; }
.prod_empty_state p { font-size: 15px; color: #aaa; margin-bottom: 24px; }

/* Pagination */
.pagination_wrap { margin-top: 48px; display: flex; justify-content: center; }
.pagination_wrap .page { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination_wrap a,
.pagination_wrap span.current,
.pagination_wrap b { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: 0.2s; border: 1.5px solid #e5e7eb; color: #555; }
.pagination_wrap a:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: rgba(2,160,225,0.05); }
.pagination_wrap span.current,
.pagination_wrap b { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

@media (max-width: 991px) {
  .product_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; }
  .modern_prod_card:hover { transform: none; box-shadow: none; }
  .prod_info { padding: 10px 12px 14px; }
  .prod_info h3 { font-size: 13px; }
  .prod_desc { display: none; }
  .prod_list_header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prod_filter_tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .prod_filter_tabs::-webkit-scrollbar { display: none; }
}
