﻿.product-page-container {
    display: flex;
    gap: 4rem;
    padding: 0 2rem;
    font-family: 'Segoe UI', sans-serif;
}

.product-left-column {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.image-container {
    background-color: #cac7b9;
    position: relative;
    height: 350px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

form.d-block {
    width: 100%; /* Ensure form is 100% width */
}

.product-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .favorite-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: white;
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        padding: 10px;
        transition: background-color 0.3s;
        cursor: pointer;
    }

        .favorite-btn.favorited i {
            color: red;
        }

        .favorite-btn:hover {
            background-color: #efc7c7;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

/* Cart Button */
.add-to-cart-btn {
    display: flex;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    background-color: black;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .add-to-cart-btn:hover {
        background-color: #282828 !important;
        color: white !important;
        cursor: pointer;
        box-shadow: 5px 5px 10px gray;
    }

.product-right-column {
    width: 60%;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-short-description {
    font-size: 16px;
    color: #555;
}

.product-reviews i {
    color: gold;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.size-buttons, .color-options {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.size-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    background-color: #f7f7f7
}

.color-options {
    border-radius: 12px;
}

.color-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
}

.product-long-description {
    margin-top: 1.5rem;
    line-height: 1.6;
}

.product-stock p {
    margin: 0.3rem 0;
}

.status-available {
    color: #48A761; /* green */
    font-weight: 500;
}

.status-out {
    color: #D9534F; /* red */
    font-weight: 500;
}

/* Style for original price (strikethrough) */
.original-price {
    text-decoration: line-through;
    color: gray;
    font-weight: normal;
}

/* Style for discounted price */
.discounted-price {
    font-weight: bold;
    color: black;
    margin-right: 10px;
}

.discount-badge {
    background-color: #ff6666;
    color: white;
    padding: 3px 8px;
    font-size: 0.9rem;
    border-radius: 3px;
    margin-top: 5px;
    display: inline-block;
    z-index: 1;
}


/**********************************************************************
                        RESPONSIVENSS 
**********************************************************************/

/* Medium screens (laptops) */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-page-container {
        flex-direction: row;
        gap: 3rem; 
        padding: 0 1.5rem;
    }

    .product-left-column {
        width: 45%;
    }

    .product-right-column {
        width: 55%;
    }

    .product-title {
        font-size: 1.8rem; 
    }

    .product-short-description {
        font-size: 14px; 
    }

    .product-price {
        font-size: 18px; 
    }

    .product-reviews i {
        font-size: 1rem; 
    }

    .size-btn {
        padding: 6px 14px; 
    }

    .color-btn img {
        width: 28px;
        height: 28px;
    }
}

/*************************** TABLET *************************************/

@media (min-width: 768px) and (max-width: 991px) {
    .product-page-container {
        flex-direction: column; 
        gap: 2rem;
        padding: 1rem; 
    }

    .product-left-column,
    .product-right-column {
        width: 100%;
        align-items: center;
    }

    .image-container {
        width: 400px;
        height: 400px;
    }

    .add-to-cart-btn {
        padding: 12px;
        font-size: 14px;
        width: 60%;
        justify-self: center;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-short-description {
        font-size: 13px;
    }

    .product-price {
        font-size: 16px;
    }

    .size-btn {
        padding: 6px 12px;
    }

    .color-btn img {
        width: 25px;
        height: 25px;
    }

    .add-to-cart-btn {
        padding: 10px; 
    }
}

/*************************** PHONE *************************************/

@media (max-width: 576px) {
    .product-page-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .product-left-column,
    .product-right-column {
        width: 100%;
        align-items: center;
    }

    .image-container {
        height: 400px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-short-description {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-reviews i {
        font-size: 0.9rem
    }

    .size-btn {
        padding: 5px 10px;
    }

    .color-btn img {
        width: 20px;
        height: 20px
    }

    .add-to-cart-btn {
        padding: 12px;
        font-size: 14px;
        width: 100%;
    }
}
