/* 5 column grid */
@media (min-width: 1200px) {
    .col-5-cards {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@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;
}


.filter-header {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.filter-buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.filter-btn {
    border: none !important;
    background: transparent;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.filter-btn:hover,
.filter-btn:focus {
    color: var(--primary);
    background: transparent;
    box-shadow: none !important;
}

.breadcrumb {
    margin-bottom: 0;
}

.offcanvas-close-btn{
    border: none !important;
    outline: none;
    background: transparent;
    padding: 0;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none !important;
}

.offcanvas-close-btn:hover{
    opacity: 0.8;
}

.offcanvas-header{
    border-bottom: 2px solid #eee;
    padding: 10px 15px;
}

.list-group-item.active{
    z-index: 2;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.list-group-item-action:focus, .list-group-item-action:hover {
    z-index: 1;
    color: #333;
    text-decoration: none;
    background-color: #ffe6cc;
}

/* Product Card */
.product-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image */
.product-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* 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: 13px;
    font-weight: 500;
    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;
}

.product-image{
    width:100%;
    transition:opacity .3s ease;
}

/* Divider lines */
.divider-lines {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.divider-line {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    cursor: pointer;
    transition:0.3s;
}

.divider-line.color1 {
    background: #2C3E50;
}

.divider-line.color2 {
    background: #E74C3C;
}

.divider-line.color3 {
    background: #F39C12;
}

.divider-line.color4 {
    background: #ffe95a;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid{
        padding-top:5px !important;
    }
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom:0px;
    }

    .filter-buttons {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
    }

    .filter-header .breadcrumb {
        display: none;
    }

    .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;
    }
}