/* 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;
}

/* 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: 100%;
    height: auto;
    border: var(--primary) solid 1px;
}

/* 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: 15px;
    font-weight: 500;
    color: #7a7575;
    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;
}

/* ==================== 50% OFF BADGE ==================== */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .discount-badge {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 15px;
}

.breadcrumb-wrapper {
    flex: 1;
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.breadcrumb-item {
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    align-items: center;
}

.filter-btn {
    padding: 6px 10px;
}

.filter-btn:focus{
    border: none;
}

.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;
}

.stock-button button{
    background-color: #fff5e6;
    border-color: var(--secondary);
}

.stock-button button:hover{
    background-color: var(--secondary);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {

    .container-fluid{
        padding-top:5px !important;
    }

    .product-image-container {
        height: 280px;
    }

    .product-info {
        padding: 12px 10px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price,
    .currency {
        font-size: 14px;
    }

    .discount-badge {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 3px 8px;
    }

    .filter-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .filter-toolbar {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

@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;
    }

    .discount-badge {
        font-size: 11px;
        padding: 2px 7px;
    }
}

