/* ======================================================
   Products List Page – Dedicated Styles
   Only styles actually used on this page.
   ====================================================== */

/* --- Page Section --- */
.products-list-section {
    padding-top: 0;
}

.products-list-section .container {
    max-width: 1200px;
}

/* --- Alert Banner --- */
.product-alert {
    background-color: #d4edda;
    border-color: #c3e6cb;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem;
    margin-bottom: 0 !important;
    font-size: 0.9rem;
}

.product-alert .alert-heading {
    font-weight: 600;
}

.product-alert .btn-link {
    padding-bottom: 0;
    text-decoration: none;
}

/* --- Sidebar Categories --- */
.category-sidebar .card {
    border: none;
}

.category-sidebar .card-body {
    padding: 1.25rem;
}

.category-sidebar h6 {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.category-sidebar .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: #555;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
    text-decoration: none;
}

.category-sidebar .nav-link:hover,
.category-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

/* --- Product Cards --- */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}

.product-card .product-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f8f9fa;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem 1rem;
}

.product-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-card .card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card .card-title a:hover {
    color: #0d6efd;
}

.product-card .product-category {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Amenities / tags */
.product-card .product-tags {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card .product-tags li {
    font-size: 0.8rem;
    color: #555;
    position: relative;
    padding-right: 0.75rem;
}

.product-card .product-tags li:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 0;
    color: #ccc;
}

/* Feature checks */
.product-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.product-card .feature-list li {
    font-size: 0.8rem;
    color: #198754;
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Price */
.product-card .product-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

/* View details button */
.product-card .btn-view-details {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background-color: #212529;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.product-card .btn-view-details:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Price + Button row */
.product-card .price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}

/* In stock badge */
.badge-in-stock {
    background-color: #198754;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

.badge-out-stock {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

/* --- Pagination --- */
.products-pagination {
    margin-top: 1.5rem;
}

.products-pagination .pagination {
    justify-content: center;
}

.products-pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.15rem;
    font-size: 0.875rem;
    color: #333;
    border-color: #dee2e6;
}

.products-pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* --- Breadcrumb --- */
.products-breadcrumb {
    padding: 0.75rem 0;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.products-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.products-breadcrumb .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.products-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

/* --- SEO Heading --- */
.products-heading {
    margin-bottom: 1rem;
}

.products-heading h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.products-heading p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* --- No results --- */
.no-products {
    text-align: center;
    padding: 3rem 1rem;
}

.no-products h4 {
    color: #6c757d;
}

/* --- WhatsApp float --- */
.whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
}

.whatsapp img {
    width: 50px;
    height: 50px;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .product-card .row {
        flex-direction: column;
    }

    .product-card .product-image-wrap {
        aspect-ratio: 16 / 9;
        max-height: 200px;
    }

    .product-card .card-body {
        padding: 0.75rem;
    }

    .product-card .price-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .product-card .btn-view-details {
        width: 100%;
    }

    .products-heading h1 {
        font-size: 1.25rem;
    }

    .category-sidebar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-title {
        font-size: 0.95rem;
    }

    .product-card .product-price {
        font-size: 0.85rem;
    }
}

/* --- Offcanvas sidebar (mobile) --- */
.offcanvas-xl .offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}

/* City btn hidden checkbox */
.city-btn input[type="checkbox"] {
    display: none;
}

/* --- Lazy loading placeholder --- */
img[loading="lazy"] {
    background: #f0f0f0;
}