@import url('https://fonts.googleapis.com/css2?family=Arima+Madurai:wght@300&display=swap');
body {
     --body-bg: #eee;
  margin: 0;
  padding: 2rem 2rem 4rem;
  background: var(--body-bg);
  color: #212121;
font-family: 'Arima Madurai', cursive;
  font-weight: 300;
  text-transform: uppercase;
  color: blue;

  font-size: 1rem;
  line-height: 1.5;
  font-weight: normal;
}


/*-----------Category---------*/
*,
::before,
::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
@media screen and (min-width: 768px) {
  html {
    font-size: 100%;
  }
}
@media screen and (min-width: 1920px) {
  html {
    font-size: 125%;
  }
}
@media screen and (min-width: 2560px) {
  html {
    font-size: 150%;
  }
}



.category-section {
    margin-top: 50px;
}
.category-section h1{
    text-align: center;
    padding: 20px;
    font-size: 2rem;
}

/* Carousel and animation css starts */
.rc-carousel {
  --box-gap: 1.5rem;
  --tile-size: 8rem;
  width: 100%;
  max-width: calc(
    (var(--tile-size) + var(--box-gap)) * ((var(--tiles) / 2) - 1)
  );
  margin: var(--box-gap) auto;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.rc-carousel::before,
.rc-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5rem;
  height: 100%;
  background-image: -webkit-gradient(
    linear,
    from(transparent),
    to(var(--body-bg))
  );
  background-image: -o-linear-gradient(
    var(--direction),
    transparent,
    var(--body-bg)
  );
  background-image: linear-gradient(
    to var(--direction),
    transparent,
    var(--body-bg)
  );
  z-index: inherit;
}
.rc-carousel::before {
  left: 0;
  --direction: left;
}

.rc-carousel::after {
  right: 0;
  --direction: right;
}
.rc-carousel-strip {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  -webkit-animation: slideX 20s linear infinite;
  animation: slideX 20s linear infinite;
}
.rc-carousel-strip.reverse {
  /* reverse animation */
  animation-direction: reverse;
}
.rc-carousel-strip:hover {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}
.rc-carousel-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  gap: var(--box-gap);
}

.rc-carousel-item {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: var(--tile-size);
  height: var(--tile-size);
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
}

.rc-carousel-item-image {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
  border-radius: 10px;

}

@-webkit-keyframes slideX {
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  0% {
    -webkit-transform: translateX(
      calc(-1 * (var(--tile-size) + var(--box-gap)) * (var(--tiles) / 2))
    );
    transform: translateX(
      calc(-1 * (var(--tile-size) + var(--box-gap)) * (var(--tiles) / 2))
    );
  }
}

@keyframes slideX {
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  0% {
    -webkit-transform: translateX(
      calc(-1 * (var(--tile-size) + var(--box-gap)) * (var(--tiles) / 2))
    );
    transform: translateX(
      calc(-1 * (var(--tile-size) + var(--box-gap)) * (var(--tiles) / 2))
    );
  }
}

/* Animation won't work if you preferes reduced motion */
@media (prefers-reduced-motion) {
  /* styles to apply if a user's device settings are set to reduced motion */
  .rc-carousel::before,
  .rc-carousel::after {
    display: none;
  }
  .rc-carousel-box {
    flex-wrap: wrap;
    justify-content: center;
  }
  .rc-carousel-box [aria-hidden="true"] {
    display: none;
  }
  .rc-carousel-strip {
    animation: none;
  }
}
/* reduced motion css ends */
/* Carousel and animation css ends */


/*--------------------Category---------*/
.product-section {
    margin-top: 50px;
}
.product-section h1{
    text-align: center;
    padding: 20px;
    font-size: 2rem;
}
.card {
    width: 360px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    transition: .3s;
    font-family: 'Segoe UI', sans-serif;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    cursor: pointer
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15)
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(to right, rgba(169, 3, 41, 1) 0%, rgba(196, 72, 72, 1) 44%, rgba(170, 34, 56, 1) 100%);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    z-index: 10
}

.tilt {
    overflow: hidden
}

.img {
    height: 200px;
    overflow: hidden
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.card:hover .img img {
    transform: scale(1.05)
}

.info {
    padding: 20px
}

.cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #71717A;
    margin-bottom: 5px
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #18181B;
    margin: 0 0 10px;
    letter-spacing: -.5px
}

.desc {
    font-size: 13px;
    color: #52525B;
    line-height: 1.4;
    margin-bottom: 12px
}

.feats {
    display: flex;
    gap: 6px;
    margin-bottom: 15px
}

.feat {
    font-size: 10px;
    background: #F4F4F5;
    color: #71717A;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

.price {
    display: flex;
    flex-direction: column
}

.old {
    font-size: 13px;
    text-decoration: line-through;
    color: #A1A1AA;
    margin-bottom: 2px
}

.new {
    font-size: 20px;
    font-weight: 700;
    color: #18181B
}

.btn {
    background: linear-gradient(45deg, #18181B, #27272A);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1)
}

.btn:hover {
    background: linear-gradient(45deg, #27272A, #3F3F46);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15)
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
    transition: .5s
}

.btn:hover:before {
    left: 100%
}

.icon {
    transition: transform .3s
}

.btn:hover .icon {
    transform: rotate(-10deg) scale(1.1)
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F4F4F5;
    padding-top: 12px
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px
}

.rcount {
    margin-left: 6px;
    font-size: 11px;
    color: #71717A
}

.stock {
    font-size: 11px;
    font-weight: 600;
    color: #22C55E
}

@media (max-width:400px) {
    .card {
        width: 90%
    }

    .title {
        font-size: 16px
    }

    .img {
        height: 180px
    }

    .bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .price {
        margin-bottom: 5px
    }

    .btn {
        width: 100%;
        justify-content: center
    }
}