﻿.product-card {
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

    .product-card:hover {
        box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    }

    .product-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        border-radius: 12px 12px 0 0;
        background: #f8f8f8;
        transition: all 0.3s ease;
    }

    .product-card:hover img {
        transform: scale(1.05);
    }

.product-name {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.5px;
    background: red;
    color: white;
    padding: 10px;
}

/*====================================================*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.product-details-window {
    background: white;
    padding: 20px;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.25s ease;
    display: flex;
    width: calc(100% - 10px);
    max-width: 800px;
    max-height: calc(100% - 10px);
    position: absolute;
}

.add-to-cart-window {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.25s ease;
    width: calc(100% - 20px);
    max-width: 780px;
    max-height: calc(100% - 20px);
    position: absolute;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-details-window img {
    width: 100%;
    border-radius: 10px;
}

.product-details-window h2 {
    margin: 15px 0;
    font-size: 20px;
}

.product-details-window p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.product-details-window ul,
.product-details-window ol {
    margin-left: 30px;
}

.close-btn {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: #209e2e;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
}

.product-details {
    overflow-y: auto;
}

    .product-details * {
        font-size: 14px;
        color: #2f2f2f;
        line-height: 20px;
    }

    .product-details h6,
    .product-details h2{
        color: green;
    }

.cross-btn {
    background-color: transparent;
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 12px;
    border: none;
    color: #ffbaba;
}

    .cross-btn:hover {
        color: #ff6565;
    }

@media only screen and (max-width: 560px) {
    .product-details-window {
        flex-direction: column;
        overflow: auto;
    }
}
