﻿

#detailProduct .card {
    background: linear-gradient(to right, #ff5c39, #ff5836);
    width: 420px;
    border-radius: 20px;
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#detailProduct .close-btn {
    position: absolute;
    top: 5px;
    right: 27px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 999;
}

#detailProduct .slider {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 250px;
}

#detailProduct .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 200%;
}

    #detailProduct .slides img {
        width: 100%;
        flex-shrink: 0;
        object-fit: cover;
        height: 250px;
    }

#detailProduct .card .title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

#detailProduct .card .price {
    font-size: 1.1em;
    margin-bottom: 15px;
}

#detailProduct .card .description {
    font-size: 0.95em;
    opacity: 0.95;
    margin-bottom: 20px;
}

#detailProduct .buttons {
    display: flex;
    gap: 10px;
}

    #detailProduct .buttons a {
        flex: 1;
        text-align: center;
        text-decoration: none;
        padding: 12px;
        border: 1px solid white;
        border-radius: 12px;
        font-size: 0.9em;
        color: white;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        background: transparent;
    }

        #detailProduct .buttons a::after {
            content: '→';
            position: absolute;
            right: 20px;
            opacity: 0;
            transition: opacity 0.3s ease, right 0.3s ease;
        }

        #detailProduct .buttons a:hover {
            background-color: white;
            color: black;
        }

            #detailProduct .buttons a:hover::after {
                opacity: 1;
                right: 10px;
            }
