/* styling for the upper item container section of the page */

#item-container {
    display: flex; 
    flex-direction: row;
    margin: var(--font-size-3) auto 0 auto;
    justify-content: center;
}
#item-container-form-tablet {
    display: none
}

.tablet-fadeshow {
    display: none;
}
.mobile-fadeshow {
    display: none;
}

#item-container > #product-details {
    max-width: min-content;
    font-size: var(--font-size-3);
    margin-left: var(--space-6);
    font-family: var(--header-font);
} 

h1 {
    margin-top: 0;
}

/* #product-details hr {
    margin-bottom: var(--space-4);
} */

#item-container > #product-details select {
    width: 12rem;
}

#item-container > #product-details select#colour-picker-desk-mob {
    width: 11.5rem;
}

#item-container > #product-details select#os-picker-desk-mob {
    width: 12.5rem;
}

.add-item-options {
    display: flex;
    flex-direction: row;
    gap: var(--space-3);
}

.add-item-options > div {
    margin-top: 0;
}

.price-div {
    display: flex; 
    flex-direction: row; 
    justify-content: end;
    align-items: center;
}

.price-div .not-sure-mobile {
    display: none;
}

.price {
    /* font-family: var(--header-font); */
    margin-left: var(--space-3);
    white-space: nowrap;
    font-size: var(--font-size-5);
    background-color: var(--primary-color-500);
    padding: var(--space-2);
    /* margin-top: var(--space-5); */
    border-radius: 20px;
    color: aliceblue;
    font-weight: 400;
}

#not-sure-desktop {
    color: var(--primary-color-500);
    margin-top: 6rem;
    height: fit-content;
    margin-left: var(--space-5);
    border: 2px solid var(--primary-color-500);
    padding: var(--space-2);
    max-width: 10.5rem;
} 

#not-sure-desktop h3 {
    margin-top: 0;
}

#not-sure-desktop p {
    margin-bottom: var(--space-1);
}


@media (max-width: 60rem) {
    #not-sure-desktop {
        display: none;
    }

    .price-div .not-sure-mobile {
        display: inline;
    }

    .price-div {
        justify-content: space-between;
    }

    #description {
        max-width: 95%;
    }
}

@media (max-width: 48rem) {
    #item-container {
        align-items: center;
    }

    .add-item-form {
        width: 45vw;
    }

    [data-fadeshow].desktop-fadeshow .fs-slides,
    [data-fadeshow].desktop-fadeshow .fs-slide {
        /* margin: 0 auto 0 auto; */
        width: 45vw;
        height: 45vw;
    }
    /* calc(45vw - calc(var(--space-3) * 2)) */

    [data-fadeshow].desktop-fadeshow .fs-slide-bg, 
    .product-images-display.desktop-fadeshow {
        max-height: 45vw;
        max-width: 45vw;
    }

    #product-details > p {
        display: none;
    }
    #product-details > hr {
        display: none;
    }

    .add-item-options {
        flex-direction: column;
    }

    #item-container > #product-details select#color-picker-desk-mob {
        width: 13rem;
    }
    #item-container > #product-details select#os-picker-desk-mob {
        width: 13rem;
    }
    
}

@media (max-width: 40rem) {
    #item-container {
        display: none;
    }
    #item-container-form-tablet {
        width: auto;
        display: grid;
        grid-template-columns: calc(45vw - calc(var(--space-2) * 1)) calc(46vw - calc(var(--space-3) * 1));
        grid-template-rows: minmax(fit-content, 45vw - calc(var(--space-2) * 1)) max-content;
        grid-template-areas: 
            'image title-options'
            'not-sure-add-to-basket not-sure-add-to-basket';
        column-gap: var(--space-4);
        justify-content: center;
        align-items: center;
        margin-top: -0.7rem;
    }

    .tablet-fadeshow {
        display: block;
    }
    .desktop-fadeshow {
        display: none;
    }
    .mobile-fadeshow {
        display: none;
    }

    [data-fadeshow].tablet-fadeshow .fs-slides,
    [data-fadeshow].tablet-fadeshow .fs-slide {
        margin: 0 auto 0 auto;
        width: calc(45vw - calc(var(--space-2) * 1));
        height: calc(45vw - calc(var(--space-2) * 1));
    }

    [data-fadeshow].tablet-fadeshow .fs-slide-bg, 
    .product-images-display.tablet-fadeshow {
        margin: 0 auto 0 auto;
        max-height: calc(45vw - calc(var(--space-2) * 1));
        max-width: calc(45vw - calc(var(--space-2) * 1));
    }

    #item-container-form-tablet h1 {
        font-size: var(--font-size-7);
    }

    #item-container-form-tablet label {
        font-weight: bold;
    }

    #item-container-form-tablet > div:last-child {
        font-family: var(--header-font)
    }
}

@media (max-width: 30rem) {
    #item-container {
        display: block;
        align-items: unset;
    }
    #item-container-form-tablet {
        display: none;
    }

    .add-item-form {
        width: unset;
    }

    #product-details > p {
        display: block;
    }
    #product-details > hr {
        display: block;
    }

    .add-item-options {
        flex-direction: row;
    }


    h1 {
        text-align: center;
        font-size: 1.7rem;
        margin-top: -0.6rem;
    }

    /* mobile fadeshow */
    [data-fadeshow].mobile-fadeshow .fs-slides,
    [data-fadeshow].mobile-fadeshow .fs-slide {
        /* margin: 0 auto 0 auto; */
        width: calc(95vw - calc(var(--space-2) * 2));
        height: calc(95vw - calc(var(--space-2) * 2));
    }

    [data-fadeshow].mobile-fadeshow .fs-slide-bg, 
    .product-images-display.mobile-fadeshow {
        margin: 0 auto 0 auto;
        max-height: calc(95vw - calc(var(--space-2) * 2));
        max-width: calc(95vw - calc(var(--space-2) * 2));
    }

    #item-container > #product-details {
        margin-right: var(--space-2);
        margin-left: var(--space-2);
        max-width: max-content;
        font-size: var(--font-size-2);
        font-family: var(--header-font);
    }

    input[name="quantity"] {
        font-size: var(--font-size-3);
    }

    .tablet-fadeshow {
        display: none;
    }
    .desktop-fadeshow {
        display: none;
    }
    .mobile-fadeshow {
        display: block;
    }

    .not-sure-mobile {
        font-size: var(--font-size-4);
    }

    #description {
        max-width: 97%;
    }
}

@media (max-width: 28rem) {
    h1 {
        text-align: left;
    }
    
    .add-item-options {
        flex-direction: column;
    }

    #item-container > #product-details {
        font-size: var(--font-size-3);
    } 

    #item-container > #product-details {
        max-width: min-content;
        margin-right: var(--space-2);
        margin-left: var(--space-2);
    } 

    #item-container > #product-details select {
        width: 13.5rem;
    }
}

@media (max-width: 25rem) {
    .not-sure-mobile a {
        font-size: var(--font-size-4);
    }

    .price {
        font-size: var(--font-size-3);
        white-space: nowrap;
        margin-left: var(--space-2);
    }
}

@media (max-width: 20rem) {
    .not-sure-mobile a {
        font-size: 0.9rem;
    }
}


/* styling for the description section */

.description {
    margin: var(--space-2);
    margin-top: var(--space-6);
    font-family: var(--header-font);
    font-size: 1rem;
}

.description li {
    list-style: disc;
}

/* styling for the desktop description section */

#mobile-description {
    display: none;
}

#desktop-description {
    max-width: 57.5rem;
    margin: var(--space-1);
    margin-top: var(--space-6);
}

#desktop-description li {
    list-style: disc;
}

.float-right {
    float: right;
    margin-left: 2.2rem;
    margin-bottom: var(--space-4);
}

.float-right > h3 {
    margin-top: -2rem;
}

#quick-bullets {
    margin-top: -2.5rem;
    margin-left: var(--space-5);
    margin-bottom: var(--space-6);
    font-family: var(--content-font);
    font-size: var(--font-size-6);
    font-weight: 600;
}

#quick-bullets > li > #free-extras * {
    margin-left: var(--font-size-3);
    list-style: none;
}

.specs {
    display: grid;
    font-family: var(--alternative-font);
    grid-template-columns: repeat(2, minmax(5rem, 1fr));
    border: 3px solid var(--primary-color-500);
    max-width: 23rem;
}

.specs h3 {
    /* padding-top: var(--space-1); */
    margin-bottom: var(--space-1);
    margin-top: var(--space-4);
    grid-column: 1 / span 2;
    text-align: center;
}
.specs h3#mobile-specs-title {
    display: none;
}

.specs .spec-key-value {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.specs .key {
    font-weight: 800;
    border-bottom: 3px solid var(--primary-color-500);
}

.specs .value {
    border-bottom: 2px solid var(--primary-color-500);
    margin-top: var(--space-1);
    margin-bottom: var(--font-size-2);
}

.specs * {
    padding: var(--space-1);
}


/*  */


/* description styling */

.pre-installed-ul {
    margin-left: var(--space-5);
}
.pre-installed-ul b {
    font-weight: 700;
}



@media (max-width: 48rem) {

    #desktop-description {
        display: none;
    }

    #mobile-description {
        display: block;
    }

    #mobile-description #mobile-specs {
        display: none;
    }

    #tabs {
        width: 100%;
        margin: auto;
        display: flex;
        flex-direction: row;
        border: 1px solid var(--primary-color-300);
        border-radius: var(--border-radius-small);
        overflow: hidden;
    }

    #tabs > button {
        width: 50%;
        border: none;
        border-radius: 0;
    }

    .tab-btn {
        cursor: pointer;
        font-family: var(--alternative-font);
        padding: var(--space-2) var(--space-6);
        background-color: var(--primary-color-500);
        color: var(--primary-contrast-color-100);
        border: 1px solid var(--primary-contrast-color-300);
        border-radius: var(--border-radius-medium);
        font-weight: 900;
    }

    .tab-btn:hover,
    .tab-btn:active {
        background-color: var(--primary-color-300);
        border-color: var(--primary-color-300);
    }

    .tab-btn-active {
        background-color: var(--primary-contrast-color-100);
        color: var(--primary-color-500);
        border: 1px solid var(--primary-color-500);
    }

    .tab-btn-active:hover,
    .tab-btn-active:active {
        background-color: var(--primary-contrast-color-100);
        border: 1px solid var(--primary-color-500);
    }

    .tab-btn.mob {
        display: none;
    }

    #mobile-description-text {
        margin-top: var(--space-5);
    }

    .specs {
        max-width: unset;
        margin-top: 0;
        border: 0;
    }

    /* .specs {
        font-family: none;
        grid-template-columns: repeat(1, minmax(4rem, 1fr));
        max-width: 10rem;
    }

    .specs h3 {
        grid-column: 1 / span 1;
    }
    .specs h3#desktop-specs-title {
        display: none;
    }
    .specs h3#mobile-specs-title {
        display: block;
    }

    .float-right {
        float: left;
        margin-right: 2.2rem;
        margin-left: 0;
        margin-bottom: var(--space-4);
    } */

}

@media (max-width: 25rem) {
    #tabs > button:nth-last-of-type {
        content: "Specs";
    }
}

@media (max-width: 21rem) {
    .tab-btn.desk {
        display: none;
    }
    .tab-btn.mob {
        display: inline;
    }
}