/* ========== Product Page - Category Tabs ========== */
.product-cat-wrap { border-top:1px solid var(--gray-line); border-bottom:1px solid var(--gray-line); margin-bottom:40px; padding:14px 0; position:relative; display:flex; align-items:center; }
.product-cat-wrap .tab-arrow { flex-shrink:0; width:40px; height:40px; border-radius:50%; background:var(--gray-line); border:none; cursor:pointer; font-size:16px; color:#666; transition:all 0.3s; display:flex; align-items:center; justify-content:center; z-index:2; }
.product-cat-wrap .tab-arrow:hover { background:var(--red); color:#fff; }
.product-cat-wrap .tab-arrow.disabled { opacity:0.3; pointer-events:none; }
.product-cat-scroll { flex:1; overflow:hidden; }
.product-cat-tabs { display:flex; gap:8px; transition:transform 0.4s; white-space:nowrap; }
.product-cat-tabs .tab-btn { display:inline-block; height:40px; line-height:40px; color:var(--text); font-size:16px; padding:0 22px; border-radius:20px; text-decoration:none; transition:all 0.3s; white-space:nowrap; cursor:pointer; border:none; background:transparent; flex-shrink:0; }
.product-cat-tabs .tab-btn:hover, .product-cat-tabs .tab-btn.active { color:#fff; background:var(--red); }

/* ========== Product Page - Product Grid ========== */
.product-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
.product-card { background:#fff; border:1px solid var(--gray-border); overflow:hidden; transition:all 0.3s; }
.product-card:hover { border-color:var(--red); transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,0.1); }
.product-card a { text-decoration:none; color:inherit; display:block; }
.product-card .img-wrap { width:100%; height:240px; overflow:hidden; position:relative; background:#fff; }
.product-card .img-wrap img { width:100%; height:100%; object-fit:contain; padding:20px; transition:transform 0.5s; }
.product-card:hover .img-wrap img { transform:scale(1.08); }
.product-card .name-bar { height:48px; line-height:48px; text-align:center; background:var(--gray-border); color:var(--text); font-size:15px; font-weight:bold; transition:all 0.3s; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0 12px; }
.product-card:hover .name-bar { background:var(--red); color:#fff; }

/* ========== Product Page - Pagination ========== */
.product-pagination { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:36px; }
.product-pagination .page-arrow { width:42px; height:42px; border-radius:50%; border:1px solid var(--gray-line); background:#fff; cursor:pointer; font-size:18px; color:var(--text); transition:all 0.3s; display:flex; align-items:center; justify-content:center; }
.product-pagination .page-arrow:hover { background:var(--red); color:#fff; border-color:var(--red); }
.product-pagination .page-arrow.disabled { opacity:0.3; pointer-events:none; }
.product-pagination .page-info { font-size:14px; color:var(--text-muted); }

/* ========== Product Page - Chat Overrides ========== */
/* #chatWidget:not([data-baked]) DISABLED */
/* chat-trigger now handled by common.css */

/* ========== Product Page - Responsive ========== */
@media (max-width:1024px) {
    .product-grid { grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:768px) {
    .product-grid { grid-template-columns:repeat(2, 1fr); gap:10px; }
    .product-card .img-wrap { height:170px; }
    .product-card .img-wrap img { padding:12px; }
    .product-card .name-bar { font-size:13px; height:38px; line-height:38px; }
    .product-cat-wrap { margin-bottom:26px; padding:10px 0; }
    .product-cat-tabs .tab-btn { font-size:13px; padding:0 14px; height:34px; line-height:34px; }
    .product-cat-wrap .tab-arrow { width:32px; height:32px; font-size:14px; }
    .product-pagination { margin-top:24px; }
    .product-pagination .page-arrow { width:36px; height:36px; font-size:16px; }
}
@media (max-width:480px) {
    .product-grid { gap:8px; }
    .product-card .img-wrap { height:130px; }
    .product-card .name-bar { font-size:12px; height:34px; line-height:34px; }
    .product-cat-tabs .tab-btn { font-size:12px; padding:0 10px; height:30px; line-height:30px; }
    .product-cat-wrap { margin-bottom:20px; }
}
