/* 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: 450px;
    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 */
.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quick-view-btn:hover {
    background: var(--secondary);
    color: #fff;
}

.quick-view-btn i {
    font-size: 16px;
}

.product-card:hover .quick-view-btn {
    bottom: 20%;                     /* Slides up */
    opacity: 1;
    visibility: visible;
}

.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;
    cursor: pointer;
    transition: all 0.3s;
}

/* 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: 1rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* 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-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1);
}

.filter-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-buttons strong {
    display: flex;
    align-items: center;
    height: 100%;
}

.filter-label {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.filter-btn {
    height: 30px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.product-sort-by {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.product-sort-by label {
    white-space: nowrap;
}

.product-sort-by select {
    width: auto;
    min-width: 160px;
}

.product-sort-by .form-select {
    width: 180px;
    border: none;
    color:#333;
}

.offcanvas-header{
    border-bottom: 2px solid #eee;
    padding: 10px 15px;
}

.offcanvas-close-btn{
    border: none !important;
    outline: none;
    background: transparent;
    padding: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none !important;
}

.filter-section {
    cursor: pointer;
    padding: 6px 0px;
}

.filter-content{
    background: #f9f8f9;
    padding: 10px;
}


.product-sort-by {
    align-items: center;
    gap: 8px;
}

.product-sort-by label {
    white-space: nowrap;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .container-fluid{
        padding-top:5px !important;
    }
    
    .filter-toolbar {
        align-items: stretch;
        gap: 35px;
    }

    .product-sort-by {
        width: 100%;
        font-size: 13px;
    }

    .product-sort-by .form-select {
        width: 100%;
        font-size: 13px;
    }
    
    .filter-btn-mobile {
        display: none;
    }
}