@import '../components/cart.css';


/*SECTION PRINCIPALE -----------------*/
/*------------------------------------*/

section{
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    gap:var(--spacing-medium-w);
    height:75vh;
}

section .left-top-colmun,
section .right-bottom-colmun {
    height:100%;
}

/* COLONNE DE GAUCHE -----------------*/
/*------------------------------------*/

section .left-top-colmun {
    width:40%;

}

section .left-top-colmun .carousel {
  position: relative;
  display: flex;
  overflow: hidden;
  height: 100%;
}

section .left-top-colmun .bloc-image {
  flex: 0 0 100%;
  transition: transform 0.4s ease;
  height: 100%;
}

section .left-top-colmun .bloc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-main);
  border: none;
  font-size: var(--text-big-d);
  cursor: pointer;
  z-index: 3;
  padding: 0.5rem 1rem;
}

.carousel-button.prev {
  left: 0px;
}

.carousel-button.next {
  right: 0px;
}

.carousel-button.hidden {
  display: none;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-main);
  opacity:0.5;
  cursor: pointer;
}

.carousel-dot.active {
  opacity:1;
}


/* COLONNE DE DROITE -----------------*/
/*------------------------------------*/

section .right-bottom-colmun {
    width:60%;
    display:flex;
    flex-direction:column;
    justify-content: space-between;
}

.col{
    display:flex;
    flex-direction: row;
    margin-bottom:var(--spacing-medium-h);
}

.col h3{
    margin-right:var(--spacing-medium-w);
    text-transform: uppercase;
    font-weight:normal;
}


section p{
    font-size:var(--text-medium-d);
    line-height: var(--text-medium-d);
}

section a{
    font-size:var(--text-medium-d);
    line-height: var(--text-medium-d);
}

section p em{
    font-size:var(--text-normal-d);   
}

.fiche-product{
    display:flex;
    height:100%;
}

.key{
    position:relative;
    width:fit-content;
}

.key:hover {
    color:var(--color-second);
}

.product-description{
    margin-bottom:var(--spacing-big-h);
    height:30%;
    display:flex;
}

.product-description div{
    margin-right:var(--spacing-medium-w);
}

.product-description div p:nth-child(1){
    white-space: nowrap;
    margin-bottom: calc(var(--spacing-underline) * 2);
    cursor:pointer;
}

.product-description div p:nth-child(2){
    position:absolute;
    display:none;
}

.product-description div:nth-child(1) p:nth-child(2){
    display:flex;
    width:25%;
}

.product-size-guide{
    display:flex;
    flex-direction:column;
}

.product-size-guide div{
    display:flex;
}

.product-size-guide div:nth-child(1){
    cursor:pointer;
    margin-bottom: calc(var(--spacing-underline) * 2);
}

.product-size-guide div:nth-child(2){
    display:none;
}

.product-size-guide div:nth-child(2) p{
    width:auto;
    margin-right:25px;
    font-size:var(--text-normal-d);
    line-height:var(--text-normal-d);
}

/*COULEURS ------------------------------*/

.couleur{
    margin-bottom:var(--spacing-big-h);
}

.bloc-colors{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    max-width: calc((80px * 3) + (10px * 3)); 
}

.bloc-color{
    cursor: pointer;
    height:40px;
    margin-top:calc(var(--spacing-underline) * 2);
    width:80px;
    margin-right:var(--spacing-underline);
}

.bloc-color:nth-child(1), 
.bloc-color:nth-child(2),
.bloc-color:nth-child(3){
    margin-top:var(--spacing-underline);
}

.bloc-color.current-bloc-color{
    position:relative;
}

.bloc-color.current-bloc-color::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 1px;
    background-color: var(--color-main);
}

/*TAILLES ------------------------------*/

#size {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.taille{
    margin-bottom:var(--spacing-big-h);
}

.bloc-sizes {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    margin-top:var(--spacing-underline);
    max-width: calc((80px * 3) + (10px * 3)); 
}

.bloc-size {
    cursor: pointer;
    margin-right:var(--spacing-underline);
    font-size:calc(var(--text-medium-d) * 1.2);
}

.bloc-size:hover{
    color: var(--color-second);
}

.bloc-size.current-bloc-size{
    position:relative;
}

.bloc-size.current-bloc-size::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    background-color: var(--color-main);
}

.bloc-size.current-bloc-size:hover::after {
    background-color: var(--color-second);
}

/*AJOUT AU PANIER ------------------------------*/


.made-to-order{
    margin-top:var(--spacing-underline);
    font-size:var(--text-normal-d);
    line-height:var(--text-normal-d);
}


@media screen and (max-width: 1080px) {

    button:active, button:focus{
        outline:none;
        border:none;
        -webkit-tap-highlight-color: transparent; 
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 
        -webkit-touch-callout: none; 
    }
    
    .content {
        height: auto;
        min-height: calc(var(--real-vh, 1vh) * 100);
    }
}


@media screen and (max-width: 768px) {
    
    section{
        width:calc(100vw - 5vw);
        padding: 4vh 2.5vw;
        overflow: hidden;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        height:auto;
    }

    section .left-top-colmun {
        width:100%;
        height: calc(var(--real-vh, 1vh) * 60);
    }

    section .left-top-colmun .carousel {
        height:100%;
        width:100%;
        position: relative;
    }

    section .left-top-colmun .carousel .bloc-image{
        width:100%;
        min-height:100%;
        object-fit: cover;
    }

    section .left-top-colmun .carousel .bloc-image img{
        width:100%;
        min-height:100%;
        object-fit: cover;
    }

    section .right-bottom-colmun {
        width:100%;
        margin-top:4vh;
        margin-left:0;
        display:flex;
        flex-direction:column;
        height:auto;
    }

    .fiche-product{
        display:flex;
        flex-direction:column;
        height:auto;
    }

    .product-description{
        height:fit-content;
        margin-bottom:calc(var(--spacing-big-h) * 1.5);
    }

    .product-description div:nth-child(1) p:nth-child(2){
        width:80%;
    }

    .product-options{
        border: 1px solid transparent;
    }

    .product-size-guide{
        margin-top:var(--spacing-big-h);
    }

    .bloc-colors{
        max-width: 100%; 
    }

    .bloc-color{
        margin-top:calc(var(--spacing-underline) * 2);
        margin-right:calc(var(--spacing-underline) * 2);
    }

    .bloc-color:nth-child(1), 
    .bloc-color:nth-child(2),
    .bloc-color:nth-child(3){
        margin-top:calc(var(--spacing-underline) * 2);
    }

    .couleur{
        margin-top:calc(var(--spacing-big-h) * 2);
    }

    .product-size-guide{
        margin-bottom:var(--spacing-big-h);
    }

    .bloc-size {
        margin-top:var(--spacing-small-h);
    }

}


@media (min-width: 769px) and (max-width: 1080px) {

    section .right-bottom-colmun {
        height:72vh;
    }

    .bloc-color{
        cursor: pointer;
        height:40px;
        margin-top:calc(var(--spacing-underline) * 1.5);
        width:80px;
        margin-right:var(--spacing-underline);
    }

    .bloc-color:nth-child(1), 
    .bloc-color:nth-child(2),
    .bloc-color:nth-child(3){
        margin-top:calc(var(--spacing-underline) * 1.5);
    }

    .product-description div:nth-child(1) p:nth-child(2){
        display:flex;
        width:50%;
    }

}

