﻿.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    #btnClear {
        /* display: none !important;*/
    }
}
@media (max-width: 768px) {
    .caption {
        font-size: 8px;
        line-height: 1.4;
        padding: 5px 10px;
        text-align: center;
    }
}
/* Force vertical stacking on small screens */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

        .filter-container > * {
            width: 100% !important;
        }

        .filter-container input,
        .filter-container select {
            margin-bottom: 10px;
        }

        .filter-container button {
            margin-top: 5px;
            align-self: stretch; /* ensures full width */
        }
}
@media (max-width: 480px) {
    .filter-container input,
    .filter-container select,
    .filter-container button {
        font-size: 14px;
        padding: 8px;
    }
}

    .filter-container input,
    .filter-container select,
    .filter-container button {
        padding: 8px 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 14px;
        width:24%;
    }

    .filter-container button {
        background-color: #007bff;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .filter-container button:hover {
            background-color: #0056b3; /* darker blue on hover */
        }
        .filter-container button:active {
            transform: scale(0.97); /* slight shrink on click */
            background-color: #004999; /* even darker blue when pressed */
        }

.product-grid, .latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s;
}

    .product-item:hover {
        transform: translateY(-4px);
    }

.image-wrapper {
    position: relative;
    aspect-ratio: 533 / 800;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .image-wrapper .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: 0.3s;
    }

    .image-wrapper:hover .overlay {
        opacity: 1;
    }

.caption {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    background: #f9f9f9;
    transition: color 0.3s;
}

.product-item:hover .caption {
    color: #007bff;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 8px;
}


.page-btn {
    padding: 5px 12px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
}

    .page-btn:hover {
        background-color: #007bff;
        color: white;
    }

    .page-btn.active {
        background-color: #007bff;
        color: white;
    }

    .page-btn:focus {
        outline: none;
    }

    /* --------------------TAB --------------- START*/
.tab-container {
    max-width: 100%;
    margin: 0px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

    .tab-btn.active {
        background: #007bff;
        color: #fff;
    }

    .tab-btn:hover {
        background: #e0e0e0;
    }

.tab-content {
    display: none;
    padding: 20px;
}

    .tab-content.active {
        display: block;
    }

@media (max-width: 600px) {
    .tab-btn {
        flex: 100%;
    }
}
