:root {
    /* debug border */
    --debug: 1px solid black;

    --bw-blue: #485D8C;
    --bw-blue-light: #6B84AC;
    --bw-blue-dark: #364869;

    /* complementary and analogous */
    --terracotta: #8C6148;
    --terracotta-light: #A87D66;
    --terracotta-dark: #6B4835;

    --teal-blue: #48768C;
    --teal-blue-light: #6B92A8;
    --teal-blue-dark: #365869;

    --deep-purple: #4C488C;
    --deep-purple-light: #6B68A8;
    --deep-purple-dark: #383569;

    /* Neutrals */
    --light-gray: #F5F7FA;
    --silver: #E8EBF0;
    --charcoal-1: #2A3744;
    --charcoal-2: #1A2332;
    --mid-gray: #8A95A5;

    /* accent colors */
    --success-green: #4C8C6B;
    --success-green-light: #609e7e;
    --success-green-dark: #36b473;
    --warning-amber: #D4A574;
    --warning-amber-light: #e3bc91;
    --warning-amber-dark: #e79236;
    --error-coral-light: #C66B6B;
    --error-coral-dark: #a65858;
    --blue-gray: #6B7C8C;

    /* others */
    --bg: #FAFBFB;
    --text: #2A3744;
    --welcome-bar: #E7E0E0;
}

.single-product {
    /* border: var(--debug); */
    width: 80%;
    margin: 5rem auto 1rem;
    border: 1px solid var(--bw-blue-light);
    padding: 4rem 0rem;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.single-product-image {
    /* border: var(--debug); */
    border: 1.5px solid var(--bw-blue-light);
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #fff;
    display: flex;
    width: 30%;
    height: 100%;

}

.single-product-image img {
    /* border: var(--debug); */
    width: 100%;
    object-fit: contain;
}

.single-product-details {
    /* border: var(--debug); */
    width: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.single-product-details p:first-child {
    /* border: var(--debug); */
    font-size: 2rem;
}

.single-product-details p:nth-child(3) {
    /* border: var(--debug); */
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.single-product-details span {
    font-size: 0.95rem;
    background-color: #fff;
    padding: 0.25rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

.in-stock {
    border: 2px solid var(--success-green-light);
    color: var(--success-green-dark);
}

.sold-out {
    border: 2px solid var(--error-coral-light);
    color: var(--error-coral-dark);
}

.single-product-details button {
    /* border: var(--debug); */
    margin-top: 1.5rem;
    padding: 0.5rem;
    font-size: 1rem;
    width: 60%;
    color: #ffffff;
    background-color: var(--bw-blue);
    border: none;
    border-radius: 0.3rem;
    transition: all 100ms ease-in-out;

    &:hover {
        cursor: pointer;
        transform: scale(1.01);
        background-color: var(--bw-blue-dark);
    }
}

.single-product p {
    color: var(--bw-blue-dark);
}

.discount-percentage {
    margin: 0.3rem 0rem;
    border: 2px solid var(--bw-blue-dark);
    padding: 0.5rem;
    font-size: 0.9rem;
    background-color: #fff;
    width: fit-content;
    border-radius: 1rem;
}

.description-section {
    /* border: var(--debug); */
    color: var(--bw-blue-dark);
    width: 80%;
    margin: 2rem auto 5rem;
    border: 1px solid var(--bw-blue-light);
    padding: 1.5rem 2rem;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description-section .title {
    /* border: var(--debug); */
    font-size: 1.2rem;
    font-weight: 600;
}

.description-section .description {
    font-size: 1rem;
    /* margin-left: 1rem; */
    text-align: justify;
}


.description-section .title-specification {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}


.description-section .specifications {
    list-style-type: decimal;
    margin-left: 1rem;
}


@media screen and (max-width: 1024px) {
    .single-product, .description-section {
        /* border: var(--debug); */
        flex-direction: column;
        width: 100%;
        padding: 3rem 0rem;
    }

    .single-product-image {
        /* border: var(--debug); */
        margin: 0 auto;
        display: flex;
        width: 60%;
    }

    .single-product-details {
        /* border: var(--debug); */
        width: 100%;
    }

    .description-section {
        padding: 1rem;
    }
}


@media screen and (max-width: 640px) {
    .single-product {
        /* border: var(--debug); */
        flex-direction: column;
        width: 100%;
        padding: 2rem 0rem;
    }

    .single-product-image {
        /* border: var(--debug); */
        margin: 0 auto;
        display: flex;
        width: 80%;
    }

    .single-product-details {
        /* border: var(--debug); */
        width: 100%;
    }
}
