/* ============ Page Banner ============ */
.page-banner { background: #f0f0f0; text-align: center; border-bottom: 1px solid #eee; }


/* ============ Products Layout ============ */
.products-main { padding: 40px 0 60px; }
.products-layout { display: flex; gap: 30px; }

/* ============ Sidebar ============ */
.products-sidebar { position: sticky; top: 110px; align-self: flex-start; }
.sidebar-search { display: flex; border: 1px solid #ddd; border-radius: 2px; overflow: hidden; margin-bottom: 25px; }
.sidebar-search input { flex: 1; border: none; padding: 10px 14px; font-size: 13px; font-family: inherit; color: #434343; outline: none; }
.sidebar-search input::placeholder { color: #bbb; }
.sidebar-search button { background: #fff; border: none; padding: 0 14px; color: #888; cursor: pointer; font-size: 14px; transition: color .3s; }
.sidebar-search button:hover { color: #F5A623; }
.sidebar-categories h3 { font-size: 16px; font-weight: 700; color: #434343; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 2px solid #eee; display: flex; align-items: center; gap: 8px; }
.sidebar-categories h3 span { width: 3px; height: 16px; background: #F5A623; display: inline-block; }
.category-list { padding: 0; margin: 0; }
.category-list > li { border-bottom: 1px solid #f0f0f0; }
.category-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; color: #434343; font-weight: 500; transition: color .3s; position: relative; }
.category-list > li > a::after { content: '\f105'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 12px; color: #bbb; transition: transform .3s, color .3s; }
.category-list > li.open > a::after { transform: rotate(90deg); }
.category-list > li > a:hover, .category-list > li > a.active { color: #F5A623; }
.category-list > li > a:hover::after, .category-list > li > a.active::after { color: #F5A623; }
.sub-category { display: none; padding: 0 0 8px 18px; }
.category-list > li.open .sub-category { display: block; }
.sub-category li a { display: block; padding: 5px 0; font-size: 13px; color: #888; transition: color .3s; }
.sub-category li a:hover, .sub-category li a.active { color: #F5A623; font-weight: 600; }

/* ============ Products Content ============ */
.products-content { flex: 1; }
.products-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.result-count { font-size: 13px; color: #888; }
.result-count strong { color: #434343; }
.sort-select { padding: 8px 14px; border: 1px solid #ddd; font-size: 13px; font-family: inherit; color: #434343; outline: none; border-radius: 2px; cursor: pointer; background: #fff; }
.sort-select:focus { border-color: #F5A623; }

.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.product-card { display: flex; align-items: flex-start; background: #fff; border: 1px solid #eee; overflow: hidden; transition: box-shadow .3s; }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.product-thumb { flex: 0 0 160px;  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { transition: transform .3s; }
.product-model { font-size: 11px; margin: 8px; text-align: center; word-break: break-all; font-weight: 600; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { flex: 1; padding: 10px 15px; }
.product-info h4 { font-size: 15px; font-weight: 600; color: #434343; margin-bottom: 12px; }
.product-spec { list-style: none; padding: 0; margin: 0; }
.product-spec li { font-size: 13px; color: #888; line-height: 1.8; }
.product-spec li span { color: #666; font-weight: 500; }

/* ============ Card Cart Button ============ */
.product-card { position: relative; }
.btn-card-cart { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; background: #F5A623; border: none; color: #fff; font-size: 14px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .3s; box-shadow: 0 2px 8px rgba(245,166,35,.3); }
.product-card:hover .btn-card-cart { opacity: 1; }
.btn-card-cart:hover { background: #e09500; transform: scale(1.1); }

/* Toast (shared) */
.cart-toast { position: fixed; top: 80px; right: 30px; background: #27ae60; color: #fff; padding: 12px 24px; border-radius: 4px; font-size: 14px; font-weight: 500; z-index: 10000; opacity: 0; transform: translateX(30px); transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.cart-toast.show { opacity: 1; transform: translateX(0); }
.cart-toast i { margin-right: 6px; }

/* ============ Empty State ============ */
.products-empty { text-align: center; padding: 80px 20px; color: #999; }
.products-empty i { font-size: 48px; color: #ddd; margin-bottom: 20px; }
.products-empty p { font-size: 15px; margin-bottom: 20px; }
.products-empty strong { color: #F5A623; }
.btn-back { display: inline-block; padding: 8px 24px; border: 1px solid #F5A623; color: #F5A623; border-radius: 4px; font-size: 14px; transition: all .3s; }
.btn-back:hover { background: #F5A623; color: #fff; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; font-size: 14px; color: #434343; transition: all .3s; border-radius: 2px; }
.pagination a:hover, .pagination a.active { background: #F5A623; border-color: #F5A623; color: #fff; }
.pagination .next { font-size: 12px; }

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .products-layout { flex-direction: column; }
    .products-sidebar { flex: none; }
}
@media (max-width: 576px) {
    .page-banner h1 { font-size: 24px; }
    .product-card { flex-direction: column; }
    .product-thumb { flex: none; width: 100%; height: 180px; }
    .product-spec { grid-template-columns: 1fr; }
}
