.header h1 {
    text-align: center;
    color: #e88fab;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-family: 'Nunito', sans-serif;
    position: relative;
    display: block;
}

.header .icon {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    vertical-align: bottom;
}

.container-filtre {

    width: 90%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    font-family: 'Nunito', sans-serif;
    margin-top: 2rem;
}

details {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #fde4e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 10px 25px rgba(232, 143, 171, 0.15);
}

summary {
    list-style: none;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    transition: background 0.3s ease;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    background-color: #fff0f5;
}

.titlu-filtre {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e88fab;

}

.icon-sageti {
    font-size: 1.2rem;
    color: #e88fab;
    transition: transform 0.3s ease;
}

details[open] summary .icon-sageti {
    transform: rotate(180deg);
}

.continut-filtre {
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid #fde4e8;
    background-color: #fff;
    animation: fadeIn 0.4s ease;

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 1rem 0 0 0;
    width: 100%;
}

form label {
    display: block;
    font-weight: 700;
    color: #e88fab;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid #fde4e8;
    border-radius: 25px;
    background-color: #fdfdfd;
    color: #5c5c5c;
    font-family: 'Nunito', sans-serif;
    outline: none;
}

form input:focus,
form select:focus {
    border-color: #f2a2b9;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(242, 162, 185, 0.2);
}

.container_produse {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.container_produse a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.produs {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.produs:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(232, 143, 171, 0.2);
}

.imagine {
    width: 100%;
    height: 250px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f8f8f8;
}

.imagine_produs {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.produs:hover .imagine_produs {
    transform: scale(1.05);
}

.descriere {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.descriere h2 {
    font-size: 1.3rem;
    color: #5c5c5c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pret {
    font-size: 1.4rem;
    color: #e88fab;
    font-weight: bold;
    margin-top: auto;
    padding-top: 10px;
}

.in_stoc,
.out_stoc {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin: 5px auto;
}

.in_stoc {
    background-color: #e6f9e9;
    color: #2ecc71;
}

.out_stoc {
    background-color: #f2f2f2;
    color: #95a5a6;
}

.page_bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 4rem 0;
    gap: 10px;
}

.pag {
    font-weight: bold;
    color: #5c5c5c;
    margin: 0 10px;
}

.page_button {
    background-color: #fff;
    border: 2px solid #f2a2b9;
    color: #f2a2b9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_button:hover:not(.indisp) {
    background-color: #f2a2b9;
    color: #fff;
}

.indisp {
    border-color: #e0e0e0;
    color: #e0e0e0;
    cursor: not-allowed;
    background-color: transparent;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #f2a2b9;
    color: #fff;
    width: 100%;
    margin-top: 1.8rem;
}

.btn-primary:hover {
    background-color: #e88fab;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 143, 171, 0.4);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #5c5c5c;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    text-align: center;
    width: fit-content;
    margin-top: 2rem;
}

.btn-secondary:hover {
    background-color: #c9c9c9;
}

.alert-danger {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffe6e6;
    color: #d63031;
    border-radius: 10px;
    border: 1px solid #ffcccc;
}

form input[type="checkbox"] {
    accent-color: #f2a2b9;
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    cursor: pointer;
}

.mesaj-eroare {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    width: 90%;
    max-width: 800px;
}

.mesaj-eroare p {
    background-color: #fff0f3;
    /* Roz foarte pal, aproape alb */
    color: #e85d75;
    /* Un roșu-rozaliu plăcut, nu agresiv */
    border: 2px solid #ffccd5;
    /* Contur roz pastel */

    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;

    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    /* Foarte rotunjit (stil capsulă) */

    box-shadow: 0 10px 20px rgba(232, 93, 117, 0.1);
    /* Umbră fină roz */

    /* Adaugam o iconita din CSS folosind emoji */
    display: flex;
    align-items: center;
    gap: 12px;

    /* Animație la încărcare */
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Adăugăm o iconiță drăguță automat în fața textului */
.mesaj-eroare p::before {
    content: "😕";
    /* Emoji față confuză sau poți pune '⚠️' */
    font-size: 1.5rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #f2a2b9;
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background-color: #e88fab;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 143, 171, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}