body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1c1c1c;
    color: #f7f7f7;
}
.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.thank-you {
    background: #2a2a2a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.timer {
    font-size: 1.2em;
    color: #f4511e;
    margin-top: 10px;
}

span#timer{
    display: block;
    font-size: larger;
}
.discount {
    background: #333;
    border: 2px dashed #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.product-card {
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 10px;
    width: calc(45% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .product-card {
        flex: 1 1 calc(25% - 10px); /* 4 produse pe rând pentru desktop */
    }
}

.product-image {
    max-height: 275px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-title {
    font-size: 1.5em;
    font-weight: bold;
    max-height: 2.5em;
    padding: 15px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-description {
    font-size: 0.9em;
    color: #aaa;
    max-height: 3.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}
.product-price {
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
    display: flex;
    flex-direction: column-reverse;
}
.product-old-price {
    font-size: 0.8em;
    color: #999;
    text-decoration: line-through;
}
.add-to-cart {
    background: #007bff;
    margin-top: 15px;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.add-to-cart:disabled {
    background: #555;
    cursor: not-allowed;
}
.add-to-cart:hover {
    background: #0056b3;
}

.modal-overlay{
    display: none;

    position: absolute;
    top: 0;
    height: 150vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal{
    position: absolute;
    top: 45%;
    right: 50%;
    transform: translate(50%, -50%);

    text-align: center;
    
    width: 85%;
}

.modal h1, p{
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .modal {
        width: 45%;
        margin: 0 auto;
    }
}

#textResponse{
    display: none;
    color: #5cb85c;
}

.modal form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    color: #333;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;

    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal form input, button{
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.modal form button{
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.modal form button:hover{
    background-color: #0056b3;
}

.input-hidden{
    width: 100%;
}

#closeModal{
    background-color: #007bff;
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 27px;
    height: 27px;
    text-align: center;
    padding: 3px;
    border-radius: 50%;
    border: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}