#product_details {
    margin-top: 120px;

    .detail_card {

        .box {
            width: 50%;

            @media (width < 768px) {
                width: 100%;
            }
        }

        .image_box {
            padding: 0 1rem;

            @media (width < 768px) {
                padding: 0;
            }

            img {
                max-width: 100%;
                width: 100%;
                border-radius: 12px;
            }
        }

        .info_box {
            color: var(--primary-text);

            .bye_btn {
                &:hover {
                    scale: 1.05;
                }
            }
        }
    }
}

#bye_now_modal {
    .modal-content {
        background-color: var(--primary-bg);
        color: var(--primary-text);
        font-size: 18px;

        #bye_now_form {
            label {
                margin-bottom: 5px;
            }

            .input {
                all: unset;
                background-color: var(--foreground);
                color: var(--primary-text);
                height: 35px;
                padding: 5px 8px;
                border-radius: 5px;

                /* these 2 styles are specific to work in chrome and firefox for making the take the full width */
                width: -moz-available;
                width: -webkit-fill-available;
            }

            .address_inp {
                display: block;
                /* width: -moz-available;
                width: -webkit-fill-available; */
            }
        }
    }
}



#related_products {
    margin-top: 60px;


    #cards_container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        justify-items: center;
        
        @media (width < 1500px) {
            grid-template-columns: repeat(3, 1fr);
        }
        
        @media (width < 992px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (width < 576px) {
            grid-template-columns: 1fr;
        }
       
        .product-card {
            width: 100%;
            max-width: 400px;
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;

        }

        .product-card:hover {
            transform: scale(1.05);
        }

        .product-card img {
            width: 100%;
            height: auto;
            display: block;
        }

        .product-card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            color: var(--ternary-text);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            transform: translateY(100%);
        }

        .product-card:hover .product-card-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .product-card-title {
            font-size: 1.5rem;
            margin-bottom: 10px;
            animation: fadeInUp 0.5s ease forwards;
        }

        .product-card-text {
            font-size: 1rem;
            text-align: center;
            padding: 0 20px;
            margin-bottom: 10px;
            animation: fadeInUp 0.7s ease forwards;
        }

        .view-btn {
            background-color: var(--ternary);

            a {
                text-decoration: none;
                color: var(--ternary-text);
            }
        }
    }

}