/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #000;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-title {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-price {
    color: #4a67c7;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-buy {
    background: linear-gradient(135deg, #6d8ee8, #5776c9);
    color: white;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #809ef0, #6483d4);
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-title {
    color: #283048;
    margin: 10px 0;
    font-size: 1.4rem;
}

.modal-description {
    color: #555;
    margin: 15px 0;
    line-height: 1.5;
}

.modal-price {
    color: #4a67c7;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 15px 0;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background: #5a6268;
}

.modal-buttons .btn-order {
    background: #e91e63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 16px;
    transition: background 0.3s;
}

.modal-buttons .btn-order:hover {
    background: #c2185b;
}