:root {
    --main-shadow : 0 0px 7px rgba(0, 0, 0, 0.15);
}
  


body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.row-flex{
    display: flex;
    flex-direction: row;
}

.heading {
  text-align: center;
  margin: 1em;
  font-size: 1.2em;
}



/* -------------------- flipbook ------------------*/


.flipbook-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    margin: 20px auto 0 auto;
    max-width: 100%;
}

#flipbook {
    width: 960px;
    height: 680px;
    background: none;
}

.turn-page-wrapper  {
    box-shadow: var(--main-shadow);
}

@media (max-width: 1024px) {
  #flipbook {
    box-shadow: var(--main-shadow);
  }
}


.nav-arrow {
    top: 50%;
    background: none;
    color: #000;
    border: none;
    font-size: 28px;
    font-weight: bold;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.nav-arrow:hover {
    transform: scale(1.3);
}





/*------------- pop ups-------------*/



.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}




/*------------- pop up produits -------------*/

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#popup>div {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width:80%;
    display: flex;
    gap: 30px;
    align-items: center;
}

@media (max-width: 1024px) {
  #popup>div {
    flex-direction: column ;
  }
}




#popupDescription {
    font-size: 16px;
    color: #444;
    margin: 20px 0;
}


#popupCharacteristics {
    margin-bottom: 10px;
    color: #333;
}

#popupCharacteristics p {
    font-size: 16px;
}

.popupChar {
    font-weight: bold;
    margin:0;
}

#refpopup{
    margin: 0 10px;
}


.popupCharVal {
    margin-left: 10px;
    padding: 5px;
    border-radius: 6px;
}


#popupQuantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

#popupQuantity div button {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    margin: 3px;
}

#popupQuantity input {
    padding: 10px;
    appearance: none;
    border: none;
    border-bottom: #000 1px solid;
    width: fit-content;
    max-width: 20%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}




/*------------- panier -------------*/
#cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}



#popupPanier {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popupPanier>div {
    position: relative;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

@media (max-width: 1024px) {
  #popup>div {
    flex-direction: column ;
    max-width: 400px;
  }
}



#popupPanier table {

    width: 100%;
    border-collapse:collapse;
    margin-top: 15px;

}


#popupPanier table th ,#popupPanier table td {

    padding:8px; 
    text-align:center;
}

#popupPanier table button {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    margin: 3px;
}




#mdp-section-panier>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding:2em;
}


/* --------------------- input ------------------------------*/






.field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 25px;
  padding: 0.6em;
  margin-bottom: 1em;
  border: none;
  box-shadow: inset 0px 1px 6px rgba(150, 150, 150, 0.5);
}

.input-icon {
  height: 1.3em;
  width: 1.3em;
  fill: black;
}

.input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #000000;
}



/* --------------------- mdp ------------------------------*/



@media (min-width: 200px) {
  #mdp-section-panier>div>button{
    margin:0 auto ;
    min-width: 300px;
    max-width: 500px;
    }
    #mdp-section-panier>div .field{
    margin:0 auto  1em auto;
    min-width: 300px;
    max-width: 500px;
    }
}

/* --------------------- checkbox ------------------------------*/


.check_container {
  cursor: pointer;
  margin: auto 0;
}

.check_container input {
  display: none;
}

.check_container svg {
  overflow: visible;
}

.check_container path {
  fill: none;
  stroke: black;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
  stroke-dasharray: 241 9999999;
  stroke-dashoffset: 0;
}

.check_container input:checked ~ svg path {
  stroke-dasharray: 70.5096664428711 9999999;
  stroke-dashoffset: -262.2723388671875;
}

/* --------------------- adresses ------------------------------*/

#adress_liv, #menuLivAdress{
    display: none;
}

#menu_adress{
    margin-bottom:3% ;
    flex-direction: row;
    justify-content: space-around;
}

#menu_adress .span_menuadr{
    cursor:default;
}

.all_menuadress{
    padding:5px;
    cursor: pointer;
}

.active_menuadress{
    padding:5px;
    border-radius: 5%;
    cursor:default;
    border: 1px solid #000;
}



/*-----------------loader -----------*/

#end-section-panier{
    align-items: center;
    justify-content: center;
    padding: 10% 0;
    min-height: 250px;
}



#block-spinner{
    display:none;
    align-items: center;
    justify-content: center;
    width:70px;
    height:70px;
}

.spinner {
  position: absolute;
  width: 9px;
  height: 9px;
}

.spinner div {
  position: absolute;
  width: 50%;
  height: 150%;
  background: #000000;
  transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1%));
  animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.spinner div:nth-child(1) {
  --delay: 0.1;
  --rotation: 36;
  --translation: 150;
}

.spinner div:nth-child(2) {
  --delay: 0.2;
  --rotation: 72;
  --translation: 150;
}

.spinner div:nth-child(3) {
  --delay: 0.3;
  --rotation: 108;
  --translation: 150;
}

.spinner div:nth-child(4) {
  --delay: 0.4;
  --rotation: 144;
  --translation: 150;
}

.spinner div:nth-child(5) {
  --delay: 0.5;
  --rotation: 180;
  --translation: 150;
}

.spinner div:nth-child(6) {
  --delay: 0.6;
  --rotation: 216;
  --translation: 150;
}

.spinner div:nth-child(7) {
  --delay: 0.7;
  --rotation: 252;
  --translation: 150;
}

.spinner div:nth-child(8) {
  --delay: 0.8;
  --rotation: 288;
  --translation: 150;
}

.spinner div:nth-child(9) {
  --delay: 0.9;
  --rotation: 324;
  --translation: 150;
}

.spinner div:nth-child(10) {
  --delay: 1;
  --rotation: 360;
  --translation: 150;
}

@keyframes spinner-fzua35 {
  0%, 10%, 20%, 30%, 50%, 60%, 70%, 80%, 90%, 100% {
    transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1%));
  }

  50% {
    transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1.5%));
  }
}

/*-----------------validation---------------*/


#validation-card {
  text-align: left;
  max-width: 400px;
  
}


.validation-header,.error-header {
  padding: 1.25rem 1rem 1rem 1rem;
}

#validation-card .validation-image {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  background-color: #e2feee;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  animation: animate .6s linear alternate-reverse infinite;
  transition: .6s ease;
}

#validation-card .validation-image svg {
  color: #0afa2a;
  width: 2rem;
  height: 2rem;
}

#validation-card .error-image {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  animation: animate .6s linear alternate-reverse infinite;
  transition: .6s ease;
}

#validation-card .error-image svg {
  color: #EF665B;
  width: 2rem;
  height: 2rem;
}

#validation-card .content {
  margin-top: 0.75rem;
  text-align: center;
}

.validation-header .title {
  color: #066e29;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.error-header .title {
  color: #6e0617;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5rem;
}


#validation-card .message {
  margin-top: 0.8rem;
  color: #595b5f;
  font-size: 0.95rem;
  line-height: 1.3rem;
}

#validation-card .actions {
  margin: 1rem;
  display: flex;
  justify-content: center;
}


@keyframes animate {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.09);
  }
}