#productDetails {
    display: grid;
    grid-template-columns: auto 315px;
    gap: 20px;
    margin-top: 0px;
}

#productDetails #productAndDesc #otherImg {
    border-top: 1px solid var(--lightgray);
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    max-width: 400px;
    overflow-x: auto;
}

#productDetails #productAndDesc #otherImg img {
    width: auto;
    max-height: 90px;
    border: 1px solid var(--lightgray);
    border-radius: 0;
}

#productDetails #principalImg img {
    width: auto;
    max-height: 300px;
    max-width: 100%;
}

#productDetails > div > #title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding-bottom: 5px;
}

#productDetails > div > #title > div:not(#reviewsRating) {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 5px;
}

#productDetails > div > #title > div#reviewsRating p {
    margin: 0 5px;
}

#productDetails > div > #title > div#reviewsRating #stars {
    display: flex;
    align-items: center;
    gap: 0px;
}

#productDetails > div > #eanCode {
    font-size: 11px;
    font-style: italic;
    color: var(--gray);
    margin-top: 5px;
    margin-bottom: 10px;
}

#productDetails > div > #title > p {
    text-wrap: nowrap;
}

#productDetails #productAndDesc {
    display: grid;
    grid-template-columns: minmax(350px, 400px) auto;
    gap: 20px;
}

#productDetails #productAndDesc #descriptionAndCriteria {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#productDetails #productAndDesc #descriptionAndCriteria #description > p:first-child {
    margin-bottom: 2px;
}

#productDetails #productAndDesc #descriptionAndCriteria #description > p:not(:first-child) {
    margin-left: 5px;
}

#productDetails #productAndDesc #descriptionAndCriteria #description > p:last-child {
    margin-left: 5px;
    margin-top: 2px;
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#productDetails #productAndDesc #principalImg a {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 10px;
    width: 100%;
}

#productDetails #productAndDesc #principalImg img,
#productDetails #productAndDesc #otherImg img {
    cursor: pointer;
}

#productDetails #productAndDesc #criteria > div{
    display: grid;
    grid-template-columns: minmax(150px, 350px) minmax(50px, 200px);
    border-bottom: 1px solid var(--lightgray);
    padding-bottom: 2px;
    margin-bottom: 7px;
}

#productDetails #productAndDesc #criteria > div:first-child > p {
    font-size: 18px;
    margin-bottom: 5px;

}

#productDetails #productAndDesc #criteria > div:not(:first-child) > p {
    padding-left: 5px;
}

#productDetails #affectedCars {
    display: grid;
}

#productDetails #affectedCars #title {
    margin-bottom: 5px;
}
#productDetails #affectedCars .titleBrand,
#productDetails #affectedCars .titleModel,
#productDetails #affectedCars .motorization {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

#productDetails #affectedCars .titleBrand > p,
#productDetails #affectedCars .titleModel > p,
#productDetails #affectedCars .motorization > p {
    font-size: 13px;
}

#productDetails #affectations i {
    font-size: 18px;
    color: var(--theme-color1);
    font-weight: bold;
}

#productDetails #affectedCars .contentBrand,
#productDetails #affectedCars .contentModel {
    display: none;
}

#productDetails #affectedCars .contentBrand,
#productDetails #affectedCars .contentModel  {
    padding-left: 20px;
}

#productDetails #affectedCars .titleBrand:not(:last-child),
#productDetails #affectedCars .titleModel:not(:last-child),
#productDetails #affectedCars .motorization:not(:last-child) {
    margin-bottom: 5px;
}

#productDetails #affectations #oe > #title {
    margin-bottom: 5px;
}

#productDetails #affectedCars > div {
    max-height: 300px;
    overflow-y: auto;
    max-width: 450px;
    border: 1px solid var(--lightgray);
    border-radius: 5px;
    padding: 5px;
}

#productDetails #affectations {
    display: grid;
    align-items: flex-start;
    grid-template-columns: 350px auto;
    border-top: 1px solid var(--lightgray);
    margin-top: 20px;
    padding-top: 20px;
    gap: 15px;
}

#productDetails #oe > div {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--lightgray);
    border-radius: 5px;
    padding: 5px;
}

#productDetails #oe > div > div {
    /* display: flex; */
    /* align-items: flex-start; */
    margin-bottom: 5px;
}

#productDetails #oe > div > div #title {
    display: flex;
    align-items: center;
}

#productDetails #oe > div > div p {
    font-size: 13px;
}

#productDetails #oe > div > div > p:last-child {
    text-wrap: wrap;
    margin-left: 18px;
}

#productDetails #livDate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding: 7px;
    padding-bottom: 7px;
    padding-top: 14px;
    border-top: 2px solid var(--bg-color2);
}

#productDetails #livDate p {
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
    text-align: center;
}

#reviewsRating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#reviewsRating a {
    margin: 0 4px;
}

#reviewsRating #stars i {
    font-size: 21px;
    color: #ffd700;  
}

#productDetails #reviews {
    display: grid;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--lightgray);
}

#productDetails #reviews #review {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--lightgray);
    display: grid;
    gap: 10px;
}

#productDetails #reviews #reviewsTitle {
    display: flex;
    align-items: center;
    gap: 5px;
}

#productDetails #reviews #reviewsTitle i {
    font-size: 21px;
    color: #ffd700;  
}

#productDetails #reviews #reviewTitle {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--lightgray);
    border-radius: 5px;
    padding: 3px;
}

#productDetails #reviews #reviewTitle i {
    font-size: 19px;
    color: #ffd700;  
}

#productDetails #reviews #reviewTitle p {
    font-size: 12px;
    font-weight: bold;
}
/* ADD BASKET */

#addBasket {
    padding: 10px;
    height: fit-content;
    background-color: var(--bg-color1);
    -webkit-box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.25); 
    box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.25);
    border-radius: 5px;
    position: sticky;
    top: 85px;
}

#addBasket #disponibility {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-color2);
}

#addBasket #disponibility #circle {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--red);
}

#addBasket #disponibility #circle.active {
    background-color: lime;
}

#addBasket > #realPrice {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

#addBasket > #realPrice > div:not(#pricePVC) {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

#addBasket > #realPrice > div.noDiscount {
    margin-bottom: 0 !important;
}

#addBasket > #realPrice > div:not(#pricePVC) > #discount {
    padding: 9px;
    border-radius: 5px;
    background-color: var(--red);
}

#addBasket > #realPrice > div:not(#pricePVC) > #discount > p {
    color: var(--text-color3);
    font-weight: bold;
    font-size: 15px;
}

#addBasket > #realPrice > div:not(#pricePVC) > #realPrice {
    font-size: 30px;
    font-weight: bold;
}

#addBasket > #realPrice > div#pricePVC {
    display: flex;
    align-items: center;
    gap: 10px;
}

#addBasket > #realPrice > div#pricePVC > p {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-color2);
}

#addBasket > #realPrice > div#pricePVC > p:last-child {
    text-decoration: line-through;
}

#addBasket > #infos {
    padding: 5px;
}

#addBasket > #infos > p {
    font-size: 13px;
    text-align: center;
    margin-bottom: 3px;
    font-weight: bold;
}

#addBasket #quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

#addBasket #quantity > select {
    padding: 6px 8px;
    background-color: transparent;
    border: 1px solid var(--gray);
    border-radius: 5px;
    width: fit-content;
}

#addBasket #quantity > p {
    font-size: 14px;
    font-weight: bold;
}

#addBasket #submit {
    display: flex;
    align-items: center;
    justify-content: center;
}

#addBasket #submit button {
    margin: 0 20px;
    width: 100%;
    margin-top: 10px;
}

#deliveryTimer,
#deliveryTimer span {
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
    color: var(--red);
}

@media only all and (min-width:1281px) {}

@media only all and (max-width: 1085px) {

    #productDetails #productAndDesc,
    #productDetails #affectations {
        grid-template-columns: auto;
    }

    #productDetails #affectedCars > div {
        max-width: none;
    }
}

@media only all and (max-width: 1024px) {}

@media only all and (min-width: 767px) and (max-width: 850px) {
    #productDetails > div > #title {
        display: grid;
        justify-content: center;
    }

    #productDetails > div > #title > div#reviewsRating {
        padding-bottom: 5px;
    }

    #productDetails > div > #eanCode {
        text-align: center;
    }
}


@media only all and (max-width: 767px) {

    #productDetails {
        grid-template-columns: auto;
    }
    #productDetails #principalImg img {
        width: 95%;
        max-height: none;
    }

    #productDetails #productAndDesc #otherImg img {
        width: 30%;
        max-height: none;
    }

    /* #productDetails #oe > div > div {

    } */
}

@media only all and (max-width: 540px) {
    #productDetails > div > #title {
        display: grid;
        justify-content: center;
    }

    #productDetails > div > #title > div#reviewsRating {
        padding-bottom: 5px;
    }

    #productDetails > div > #eanCode {
        text-align: center;
    }
}

@media only all and (max-width: 350px) {
    #productDetails > div > #title {
        display: grid;
    }
}

/* ADD BASKET NEW */

#addBasket2 {
    border: 1px solid var(--lightgray);
    position: sticky;
    top: 95px;
    height: fit-content;
    border-radius: 5px;
} 

#addBasket2 > div:not(.sectionSelected):is(:not(:last-child)) #title {
    background-color: var(--lightgray);
    box-shadow: inset 0px -4px 4px -4px rgba(0,0,0,0.25);
    -webkit-box-shadow: inset 0px -4px 4px -4px rgba(0,0,0,0.25);
}

#addBasket2 > div:not(.sectionSelected):is(:last-child) #title {
    background-color: var(--lightgray);
    box-shadow: insetinset 0px 4px 4px -4px rgba(0,0,0,0.25);
    -webkit-box-shadow: inset 0px 4px 4px -4px rgba(0,0,0,0.25);
}

#addBasket2 > div:not(.sectionSelected) #content {
    display: none;
}

#addBasket2 > div.sectionSelected #content {
    display: block;
}

#addBasket2 > div.sectionSelected:is(:last-child) {
    border-top: 1px solid var(--gray);
}

#addBasket2 > div.sectionSelected:is(:last-child, :first-child) {
    border-top: none;
}

#addBasket2 > div.sectionSelected:is(:not(:last-child)) {
    border-bottom: 1px solid var(--gray);
}

#addBasket2 #title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px;
}

#addBasket2 > div:not(.sectionSelected) #title {
    margin: 0;
    padding: 10px;
}

#addBasket2 #title {
    cursor: pointer;
}

#addBasket2 #title > p {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

#addBasket2 #title > p > span {
    font-size: 14px;
    font-weight: bold;
    color: var(--red);
    margin-right: 3px;
}

#addBasket2 #title > p > span:last-child {
    margin-right: 0;
    margin-left: 3px;
}

#addBasket2 > div.sectionSelected #title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lightgray);
}

#addBasket2 > div.sectionSelected #content {
    padding: 10px;
    padding-top: 0;
}

#addBasket2 > div.sectionSelected #content #destockQuantityBanner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    background-color: orange;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 10px;
}

#addBasket2 > div.sectionSelected #content #destockQuantityBanner i {
    font-size: 18px;
}

#addBasket2 > div.sectionSelected #content #destockQuantityBanner p {
    font-size: 13px;
    font-weight: bold;
}

#addBasket2 > div.sectionSelected #content #addBasketBody {
    display: grid;
    gap: 10px;
}

#addBasket2 > div.sectionSelected #content #addBasketBody #price {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
}

#addBasket2 > div.sectionSelected #content #addBasketBody #price #discountBadge {
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    color: #FFF;
    font-weight: bold;
    background-color: var(--red);
}

#addBasket2 > div.sectionSelected #content #addBasketBody #price #currentPrice {
    font-size: 25px;
    font-weight: bold;
} 

#addBasket2 > div.sectionSelected #content #addBasketBody #oldPrice {
    text-decoration: line-through;
    font-style: italic;
    font-family: 13px;
    text-align: center;
    color: var(--gray);
    margin: 5px 0;
} 

#addBasket2 > div.sectionSelected #content #addBasketBody #priceInfo {
    text-align: center;
    font-weight: bold;
    margin: 5px 0;
}

#addBasket2 > div.sectionSelected #content #addBasketBody #quantitySelector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: center;
}

#addBasket2 > div.sectionSelected #content #addBasketBody #quantitySelector label {
    font-size: 14px;
    font-weight: bold;
}

#addBasket2 > div.sectionSelected #content #addBasketBody #quantitySelector select {
    padding: 7px 10px;
}

#addBasket2 > div.sectionSelected #content #addBasketFooter #stockInfo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;   
}

#addBasket2 > div.sectionSelected #content #addBasketFooter #stockInfo .dot {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background-color: var(--red);
}

#addBasket2 > div.sectionSelected #content #addBasketFooter #stockInfo .dot {
    background-color: lime;
}

#addBasket2 > div.sectionSelected #content #addBasketFooter #stockInfo.out-stock .dot {
    background-color: var(--red);
}

#addBasket2 > div.sectionSelected #content #addBasketFooter #stockInfo.out-stock-but .dot {
    background-color: var(--blue);
}

#addBasket2 > div.sectionSelected #content #addBasketFooter #deliveryInfo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}