* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display:  none !important; 
}

body {
    background-color: rgb(245, 246, 250);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px; 
    position: relative;
}
.header-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin: 10px 30px 0 30px;
    padding: 20px;
    background-color: white;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}
.mes-container {
    text-align: center; 
    margin-top: 10px;
    font-weight: bold; 
    min-height: 20px;
}
.loader {
    text-align: center; 
    padding: 20px;
    font-size: 18px;
}
.search-input {
    border: 2px solid rgb(217, 219, 225);
    border-radius: 10px;
    padding: 10px;
    margin-right: 5px;
    transition: all 0.3s ease;
}
.search-input:focus {
    box-shadow: 1px 1px 2px lightslategray ;
    border: #4f1de3;
}
.filter-select {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid rgb(217, 219, 225);
}


.favorite-counter {
    display: flex;
    position: relative;
    align-items: center;
    width: 30px;
    height: 30px;
}

.heart {
    position: absolute;
    top: 3px;    
    right: 3px; 
}

.count {
    position: absolute;
    top: -5px;    
    right: -5px; 
    background-color: #6366f1; 
    color: white;
    border-radius: 50%; 
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}



.content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    margin: 20px 30px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    border: 2px solid #ecedef;
    background-color: #fffefe;
    border-radius: 10px;
    padding: 20px;
    margin: 5px;
    transition: all 0.3s ease;
}
.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.products-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.products-price {
    color: #4f1de3;
    font-weight: bold;
    margin-bottom: 5px;
}

.products-category {
    font-size: 12px;
    color: gray;
    margin-bottom: 15px;
}

.favorite-block {
    background: white;
    border-radius: 15px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
}
.product-price {
    color: #4f1de3;
    font-weight: 300;
}
.add-favorite-btn , .delete-btn , .delete-all-btn{
    color: #452de4;
    border: 2px solid #a191e7;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.add-favorite-btn:hover , .delete-btn:hover , .delete-all-btn:hover {
    cursor: pointer;
    background-color: #4f1de3;
    color: white;
}
.product-card:hover {
    box-shadow: 2px 2px 5px lightslategray ;
}
.btn-card {
    display: flex;
    justify-content: center;
    margin: 5px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-radius: 10px;
    background-color: #ecedef;

}
.final-menu{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}


.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px;
    padding: 20px;
}

.links {
    text-decoration: none;
    color: #6366f1;
    padding: 5px;
    margin: 5px;
    transition: all 0.3s ease;
}
.links:hover {
    cursor: pointer;
    color: #452de4;
}

.delete-all-btn {
    width: 50%;
}


@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }
}