/* Root colors */
:root {
  --pink: #c84e62;
  --lightpink: #ffe4e1;
  --coffe: #c59d88;
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Header */
header {
  background-color: rgba(200,78,98,0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding:  15px;
}

header .container-header {
  max-width: 1200px;
  margin: auto;
  /* padding: 10px; */
  /* padding: 15px; */
}

header ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;

}

header ul li {
  color: #fff;
  font-size: 1rem;
   
  cursor: pointer;
}

header ul li button {
  background-color: #ffe4e1;
  color: var(--pink);
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

header ul li button:hover {
  background-color: #fff;
  color: var(--pink);
}

.parent {
  position: relative;
  width: 100%;
  margin:  auto;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

#num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: green;
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  border-radius: 50%;
  line-height: 20px;
}

/* Slider */
.slider-section {
  /* margin: 0px 10%; */
  width: 100%;
  max-width:800px;
  position: relative;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 90%;
  padding-top: 5px;
  border-radius: 40px;
  max-height: 600px;
  margin-left: 5%;
  /* padding: 15%; */
  border-radius: 25px;
  object-fit: cover;
  transition: transform 0.5s;
}
ul{
  list-style: none ;
}
a{
  list-style: none;
  text-decoration: none;
  color: #fff;
}

.slide img:hover {
  transform: scale(1.05);
}

.controls {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
}

.controls i {
  font-size: 2rem;
  color: var(--pink);
  cursor: pointer;
}

/* Main Products */
main {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

main .main-text {
  text-align: center;
  margin-bottom: 20px;
}

main .main-text ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

main .main-text ul button {
  background: linear-gradient(45deg, #cd6a6a, #ffb6c1);
  color: #fff;
  margin: 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

main .main-text ul button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* Product Cards */
.imgs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.img {
  position: relative;
  margin: 10px;
   width: 250px;
  height: 300px;  
  background: var(--lightpink);
  border-radius: 15px;
  overflow: hidden;

  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.contain {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contain i {
  width: 48px;
  height: 48px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contain i:hover {
  background: #ff5a5f;
  color: #fff;
  transform: scale(1.15);
}

.fa-eye:hover {
  background: #4caf50;
}

.fa-plus:hover {
  background: #2196f3;
}

.add-btn.added {
  background: #4caf50;
  color: #fff;
  transform: scale(1.2) 
}




.img:hover {
  transform: scale(1.03);
}
.img:hover .contain{
    opacity: 1;

}
.name{
  padding: 3px 5px ;
  font-weight: 600;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.img img {
  width: 100%;
  height: 80%;
  object-fit: cover;
    display: block;

}

.img .info {
  padding: 10px;
}

.img .price {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--pink);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
}

.img .actions {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.img .actions i {
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--pink);
}

.img .actions i:hover {
  transform: scale(1.2);
  color: var(--coffe);
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--pink), #d05e5e);
  color: #fff;
  padding: 20px;
  text-align: center;
}

footer .socials i {
  margin: 0 5px;
  cursor: pointer;
}

footer .socials i:hover {
  transform: scale(1.2);
  color: #ffe4e1;
}

footer .top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--pink);
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}