/* Product List Page Styles */

/* Section & Container */
.section {
    float: left;
    width: 100%;
}

.product_list_main {
    padding: 20px 0 30px 0;
}

/* Breadcrumb1 - From WebSale_ref_01 */
.breadcrumb1 {
    margin-bottom: 20px;
    margin-top: 5px;
}

.breadcrumb1 .breadcrumb__list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb1 .breadcrumb__list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb1 .breadcrumb__list li a {
    font-size: 14px;
    color: #29324e;
    text-decoration: none;
}

.breadcrumb1 .breadcrumb__list li a:hover {
    color: #428eff;
    text-decoration: underline;
}

.breadcrumb1 .breadcrumb__list li .fa-angle-right {
    color: #99a0ad;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 16px;
}

/* Product Card Link Wrapper */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Discount Badge */
.product-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

/* Product Image Wrapper - Fixed Square Size */
.product-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio (square) */
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.product-image-wrapper > img,
.product-image-wrapper > .product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the square, crop if needed */
    padding: 15px;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Product Body */
.product-body {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.product-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    line-height: 1.2;
}

/* Star Rating */
.product-rating {
    margin-bottom: 8px;
}

.product-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.product-price {
    margin-bottom: 8px;
}

.product-price .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    font-weight: 600;
}

/* Product Detail Button */
.product-card .btn-detail {
    font-size: 0.7rem;
    padding: 8px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    background: #FF5722;
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    display: block;
}

.product-card-link:hover .btn-detail {
    background: #E64A19;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

/* Grid Layout - 5 columns */
.col-lg-5cols {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Responsive */
@media (max-width: 1200px) {
    .col-lg-5cols {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .col-lg-5cols {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .col-lg-5cols {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-image {
        padding: 12px;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .col-lg-5cols {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-image {
        padding: 10px;
    }

    .product-body {
        padding: 10px 12px;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .product-description {
        font-size: 0.7rem;
    }

    .product-card .btn-detail {
        font-size: 0.65rem;
        padding: 6px 8px;
        white-space: nowrap;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #428eff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #005ec4;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Button group active state */
.btn-group .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.btn-group .btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-group .btn:not(.active) {
    background-color: #fff;
    color: #007bff;
}

.btn-group .btn:not(.active):hover {
    background-color: #e9ecef;
}

/* Product count text */
.count_product_list {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

