/* 5 column grid */
@media (min-width: 1200px) {
    .col-5-cards {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .col-5-cards {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .col-5-cards {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.container-fluid {
    margin: 0 auto;
}

/* Product Card */
.product-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Quick View Button */
.product-image-container {
    position: relative;
    display: block;
    overflow: hidden;
}

.product-actions {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%) translateY(15px);
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;
    z-index: 2;
}

.product-image-container:hover .product-actions {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.action-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.action-btn:hover {
    background: var(--secondary);
    color: #fff;
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 20;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: var(--secondary);
    color: #fff;
}

/* Info section */
.product-info {
    padding: 16px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product name (1 line ellipsis) */
.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #909090;
    margin-bottom: 4px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}
.product-name:hover {
    color: var(--secondary);
}
/* Price container */
.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Currency symbol */
.currency {
    font-size: 15px;
    font-weight: 800;
    color: #4b4b4b;
    line-height: 1;
}

/* Price */
.product-price {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1;
}

/* VAT */
.product-vat {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .product-image-container {
        height: 280px;
    }

    .product-info {
        padding: 12px 10px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price,
    .currency {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 240px;
    }

    .product-info {
        padding: 10px 8px;
    }

    .product-name {
        font-size: 10px;
    }

    .product-price,
    .currency {
        font-size: 13px;
    }
}

/* Wishlist Heart Button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #e74c3c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1);
}

/* Filter Section */

.filter-section {
    cursor: pointer;
}
.sidebar-filter{
    border-top: 1px solid #e5e5e5
}

.filter-content {
    max-height: 180px;
    overflow-y: auto;
}

.product-sort-by {
    align-items: center;
    gap: 8px;
}

.product-sort-by label {
    white-space: nowrap;
    margin-bottom: 0;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
}

@media (max-width: 768px) {
    .container-fluid{
        padding-top:8px !important;
    }

    .product-card-section{
        margin-top: 0px;
    }
    
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: white;
        border: 1px solid #ddd;
        padding: 6px 10px;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
        margin-bottom: 15px;
    }
    
    .filter-column {
        display: none;
    }

    .filter-column.show {
        display: block;
    }

    .product-sort-by {
        display: none !important;
    }
}