/* Global reset and mobile tap behavior */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Base layout */
body {
  position: relative;
  width: 100%;
  height: 100%;
  color: white;
  background-color: #f1e9dc;
  margin: 0;
  padding: 0;
  font-size: clamp(13px, 1.2vw, 25px);
  overflow-x: hidden;
}

/* Generic class to collapse content using a CSS transition */
.open {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

/* ---------- FIXED REVIEWS BOX ---------- */
#avis_fiexed {
  position: fixed;
  bottom: 2vh;
  right: 20px;
  width: 150px;
  padding: 10px;
  height: fit-content;
  text-align: center;
  z-index: 9999;
  background-color: white;
}

.container_start {
  display: flex;
  justify-content: center;
  gap: 1%;
  margin-top: 10px;
}

.stars {
  width: 20px;
  height: auto;
}

/* ---------- PRODUCT / ITEM BASE STRUCTURE ---------- */

/* Positions content aligned to the left in lists */
.are_left {
  justify-content: flex-start;
  padding-left: 3.5%;
}

/* Main item container */
.in_contain {
  width: 80%;
  height: 65%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background-color: #e2d8c5;
  box-shadow: 8px 8px 30px rgba(255, 255, 255, 0.389);
}

.img_in_contain {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  z-index: 1;
}

.bottom_text {
  margin-top: 2%;
  text-align: center;
  height: 95px;
  padding: 5px;
}

.price {
  font-size: clamp(14px, 1.3vw, 30px);
  font-weight: bold;
}

/* ---------- ADD TO CART BUTTON ---------- */

.ajouter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  cursor: pointer;
  z-index: 9999;
}

/* Circular button animation container */
.adding {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.336);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: clamp(18px, 25px, 25px);
  color: rgb(182, 59, 59);
  transition: all 0.4s ease;
  transform-origin: right;
  user-select: none;
  padding-top: 2px;
}
.en_adding{
  font-weight: 600;
  border: 1px solid rgb(182, 59, 59);
  background-color: white;
}
.add_icone {
  transition: 0.4s ease;
  pointer-events: none;
}

/* Expanded state */
.button_open {
  width: 110px;
  border-radius: 10px;
}

/* Text animation states */
.appear_text {
  opacity: 1;
  transform: translateX(-10px);
}

.disapear_text {
  opacity: 0;
  transform: translateX(0);
}




/* ---------- INPUTS ---------- */

input {
  width: 80%;
  margin: auto;
  outline: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1366px) {
  #input_news {
    height: 35px;
  }
  .adding {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 1280px) {
  .item {
    height: fit-content;
  }
}

/* Specific laptops 1280×768 */
@media (max-width: 1280px) and (max-height: 768px) {
  #container_image {
    height: 480px;
    padding: 15px;
  }
}

@media (max-width: 1176px) {
  .container_picture_item {
    height: 65%;
  }
  #acrroche1 {
    margin-top: 100px;
  }
  #input_news {
    height: 30px;
  }
  .adding {
    width: 30px;
    height: 30px;
  }
}

/* Tablet size */
@media (max-width: 950px) {

}

/* Large mobile */
@media (max-width: 800px) {
  #container_image {
    width: 90%;
    padding: 10px;
    margin-left: 5%;
  }
  .are_left {
    padding-left: 5%;
  }
  .arrow {
    height: 25px !important;
  }
  #avis_fiexed {
    left: 5%;
  }
}

/* Small mobile */
@media (max-width: 500px) {
  .resp_img {
    display: none;
  }
  .container_picture_item {
    overflow: hidden;
  }
  .img_in_contain {
    width: 100%;
    margin-top: 0;
  }
  .carou_in {
    width: auto;
    height: 80%;
  }
  .resp_img_contain {
    margin-top: -10%;
  }
  .item {
    width: 100%;
    text-align: center;
  }
  .resp {
    display: none;
  }
  .are_left {
    padding-left: 0;
    width: 80%;
    margin-left: 10%;
    text-align: center;
  }
  #container_titre_item {
    margin-top: 50px;
  }
}
