@import url("global.css");
@import url("header.css");
@import url("slider.css");
@import url("footer.css");

/* common styles*/

/* favorite icon style */
.product-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 15px;
  opacity: 0;
  color: black;
  border-radius: 15px;
  padding: 5px;
  transition: transform 0.5s ease-in-out;
}

i.product-favorite {
  font-size: 17px;
  padding: 6px;
}
.product-favorite::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid #d7d7d7;
  z-index: -1;
  background-color: white;
  border-radius: 15px;
}
.recently-prod:hover .product-favorite,
.slide:hover .product-favorite {
  animation: favorite-animation 0.5s forwards;
}

.product-favorite:hover {
  box-shadow: 0px 0px 5px 3px #00000040;
}

.product-favorite:hover::after {
  transform: scale(1.09);
}

.product-favorite img {
  width: 18px;
  vertical-align: middle;
}

@keyframes favorite-animation {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* hero section */
.hero {
  display: flex;
  gap: 30px;
}

section.container {
  padding-bottom: 50px;
  padding-top: 24px;
}

section h2 {
  letter-spacing: 0.13505px;
  font-size: 27.01px;
  font-weight: 600;
  line-height: 1.3;
}

section header {
  margin-bottom: 12px;
}

.hero .main,
.hero .second {
  display: flex;
  background-color: #fffbd8;
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.1s linear;
  flex-grow: 1;
}

.hero .main {
  max-width: 100%;
  flex-wrap: wrap;
  position: relative;
}

.hero .second {
  display: none;
  background-image: url("/public/images/images/landing2.png");
  width: 400px;
  height: 400px;
}
.hero .second div {
  background-color: rgba(0, 0, 0, 0.164);
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero .second div p {
  color: white;
  padding: 0 18px;
}

.hero .second p:first-child {
  font-size: 27.01px;
  font-weight: 600;
  line-height: 1.3;
}

.hero .second p + p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-hover:hover,
.hero .main button:hover,
#carousel > div:hover {
  box-shadow: 0px 1px 3px 0px #00000065, 0px 4px 5px 4px #00000026;
}

.hero img {
  object-fit: cover;
  border-radius: inherit;
}

.hero .main img {
  clip-path: ellipse(100% 100% at 50% 100%);
  min-width: 200px;
  flex-grow: 1;
  max-width: 640px;
}

.hero .main .data {
  padding: 24px;
  flex-grow: 3;
  min-width: 0;
  flex-grow: 1;
}

.hero .main p {
  text-align: center;
  margin: auto;
}

.hero .main .data p:first-child {
  font-size: 50px;
  font-weight: 300;
}

.hero .main .data p + p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.7rem;
  letter-spacing: 0.09505px;
  padding: 5px 0;
}

.hero .main button {
  font-size: 1rem;
  background-color: var(--primary-color);
  color: white;
  margin: 18px auto;
  display: block;
  padding: 12px 18px;
  border-radius: 20px;
  font-weight: 500;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  transition: all 0.25 linear;
  z-index: 2;
}

/* gifts */

.gifts h2 {
  text-align: center;
}
/* ------------------------------------------------------------------------------------- */
/* recently viewed */
section.recently {
  padding-top: 15px;
}
.recently h2 {
  font-size: 19.01px;
}
.recently-viewed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  cursor: pointer;
  gap: 18px;
}
.recently-prod {
  position: relative;
  border-radius: 12px;
  height: 156px;
}
.recently-prod:hover {
  box-shadow: 0px 1px 3px 0px #00000065, 0px 4px 5px 4px #00000026;
}
.recently-prod img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.recently-prod p {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: white;
  border: 1px solid #949494;
  border-radius: inherit;
  font-size: 12.99px;
}
.recently-prod .current {
  font-weight: 700;
}
.recently-prod .old {
  text-decoration: line-through;
}

/* ------------------------------------------------------------------------------------- */
/* big deals section */
.big-deals header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.big-deals .control {
  display: flex;
}

#carousel .slide {
  border: 1px solid #0e0e0e2e;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(100%);
  max-width: calc(100%);
  position: relative;
}

.big-deals .slide > img {
  max-width: 100%;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  flex-grow: 1;
}

.big-deals .product-data {
  min-height: 90px;
  border-radius: 0 0 12px 12px;
  padding: 12px;
}

#carousel .slide:hover {
  border: none;
}

#scroller .product-data div {
  display: flex;
  align-items: center;
}

#scroller .product-data img {
  width: 18px;
}

#scroller .product-data .title {
  white-space: nowrap;
  overflow: hidden;
  width: 155px;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 400;
  flex-grow: 1;
}

#scroller .product-data .rating {
  width: 84px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

#scroller .product-data .rating p {
  font-size: 12.99px;
  font-weight: 600;
  line-height: 1.4;
}

#scroller .current-price {
  color: var(--secondary-color);
  font-size: 19.01px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.09505px;
}

#scroller .old-price {
  font-size: 12.99px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: line-through;
  color: #595959;
}

#scroller .pricing {
  justify-content: space-between;
}

#scroller .disc {
  min-width: 59px;
  font-size: 13px;
  font-weight: 700;
  background-color: #a0e193;
  text-align: center;
  border-radius: 12px;
  padding: 2px;
}

/* what is section */
.what-is {
  background-color: #fffbd8;
  padding: 55px 18px 25px;
}
.what-is .container h2 {
  letter-spacing: 0;
  font-size: 42px;
  font-weight: 200;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 6px;
}
.what-is .columns {
  padding-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.what-is .column {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}
.what-is .column h3 {
  letter-spacing: 0.13505px;
  font-size: 27.01px;
  font-weight: 550;
  line-height: 1.3;
  margin-bottom: 13px;
}
.what-is .column div {
  letter-spacing: 0.16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  /* display: inline-block; */
}
.what-is .column .msg {
  display: inline;
  position: relative;
}
.what-is .column .under-lined {
  text-decoration: underline dashed 1px;
  text-underline-position: under;
  font-size: 16px;
  cursor: help;
  -webkit-user-select: none;
  user-select: none;
}
.what-is .column ul {
  position: absolute;
  z-index: 4;
  background-color: white;
  width: 230px;
  padding: 12px;
  border: 1px solid #0e0e0e2e;
  border-radius: 14px;
  right: 0;
  top: -270px;
  box-shadow: 0px 1px 3px 0px #0000004d, 0px 4px 8px 3px #00000026;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 5px;
  display: none;
  text-align: start;
}
.column li {
  list-style-type: disc;
  letter-spacing: 0.1299px;
  font-size: 12.99px;
  font-weight: 400;
  line-height: 1.4;
  margin-left: 15px;
}
.under-lined:after {
  display: none;
  content: "";
  position: absolute;
  left: 50%;
  top: -12.6px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border: 2px solid #0e0e0e2e;
  border-left: 0;
  border-top: 0;
  background-color: white;
  z-index: 10;
}
.under-lined:hover::after,
.msg:hover ul {
  display: block;
}
/* responsive design */

@media (min-width: 540px) {
  #carousel .slide {
    flex: 0 0 calc((100% - 1 * 16px) / 2);
    max-width: calc((100% - 1 * 16px) / 2);
  }
  .hero .main .data {
    min-width: 375px;
  }
}

@media (min-width: 640px) {
  .hero .main {
    flex-wrap: nowrap;
  }

  .hero .main img {
    height: 100%;
    clip-path: ellipse(100% 100% at 100% 50%);
  }

  .hero .main button {
    position: static;
    transform: translate(0, 0);
  }

  .hero .main button:hover {
    transform: scaleX(1.04) scaleY(1.035);
    background-color: #3e3e3e;
  }
  .recently-viewed {
    grid-template-columns: repeat(3, 1fr);
  }

  #carousel .slide {
    flex: 0 0 calc((100% - 2 * 16px) / 3);
    max-width: calc((100% - 2 * 16px) / 3);
  }
}

@media (min-width: 900px) {
  #carousel .slide {
    flex: 0 0 calc((100% - 3 * 16px) / 3.5);
    max-width: calc((100% - 3 * 16px) / 3.5);
  }
  .recently-viewed {
    grid-template-columns: repeat(4, 1fr);
  }
  .what-is .column {
    width: 30%;
    text-align: start;
  }
  .what-is ul {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1200px) {
  .hero .second {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: start;
  }

  .hero .main {
    max-width: calc(100% - 430px);
    flex-wrap: nowrap;
    max-height: 400px;
  }

  #carousel .slide {
    flex: 0 0 calc(100% / 4.5 - 16px);
    max-width: calc((100% - 16px * 4) / 4.5);
  }
  .recently-viewed {
    grid-template-columns: repeat(5, 1fr);
  }
}

/*deal*/
.deals-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.pop-up {
    position: relative;
    display: block;
    border-radius: 12px;
    width: 100%;
}

.deals-card {
    margin-bottom: 12px;
    padding: 9px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: 20%;
}
.deals-card-shadow {
    position: absolute;
	  width:100%;
    height:100%;
    transition : transform .2s;
    border-radius: 12px;
}
.deals-card:hover .deals-card-shadow, .popular-links-c:hover .deals-card-shadow {
    margin: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transform: scale(1.05);
}
.deals-card-image {
    margin-bottom: 6px;
}
.deals-card-image img {
    width: 100%;
    border-radius: 12px;
}
.deal-card-info {
    width: 100%;
    line-height: 1.5;
}
.deal-card-info h3{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: #333;
}
.inline-text {
    display: inline-block;
    margin: 0;
}
.small-text {
    font-size: 13px;
}
.gray-text {
    color: gray;
}
.strike-trough {
    text-decoration: line-through;
}
.dark-gray-color {
    color: rgb(34, 34, 34);
}

.regular-price {
    color: #0f743b;
    font-size: 16px;
}


.deal-rating{
    display: flex;
    align-items: center;
    color: #333;
}
.number-of-ratings {
    display: flex;
    align-items: center;
}