/* ------------------------start slider ------------------------ */


.slider {
    width: 100%;
    height: calc(100vh - 150px);
    /* margin-top: 150px; */
    position: relative;
    overflow: hidden;
}

.slider .slide-content {
    width: 100%;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px;
    position: relative;
    display: none;
}

.slider .slide-content img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
}

.slider .slide-content.active {
    display: flex;
}

.prev:hover,
.next:hover {
    background-color: #097a6e;
    border: 2px solid #fff;
    color: #fff;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 45px;
    height: 45px;
    padding-top: 4px;
    margin-right: 30px;
    margin-left: 30px;
    color: black;
    font-size: 16px;
    border: 2px solid #000;
    background-color: transparent;
    border-radius: 50%;
    transition: all .3s;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.slide .text {
    width: 500px;
    position: absolute;
}

.slide .text h2 {
    font-size: 40px;
    font-weight: 400;
}

.shop-btn {
    background-color: #000;
    color: white;
    display: inline-block;
    width: 150px;
    text-align: center;
    padding: 12px;
    border-radius: 3px;
    margin-top: 24px;
    border: none;
    transition: .3s ease-out;
}

.shop-btn:hover {
    background-color: #097a6e;
}

/* ------------------------phone slider ------------------------ */
.hero_for_phone {
    display: none;
}

/* ------------------------- info section --------------------- */
.information {
    width: 100%;
    display: flex;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #878787;
}

.info {
    display: flex;
    padding: 1px;
    justify-content: center;
    align-items: center;
}

.info .info-icon img {
    width: 80px;
    margin-right: 20px;
}

.info .info-text h3 {
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 4px;
}

.info .info-text p {
    color: #878787;
    font-size: 14px;
}

/* --------------------- trending ---------------------*/
.top_products {
    width: 100%;
    min-height: 100vh;
}

.top_products .container {
    padding: 4% 8%;
}

.top_products .header {
    text-align: center;
    margin-bottom: 36px;
}

.top_products .header h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 6px;
}

.top_products .header p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.8)
}

.products {
    display: grid;
    gap: 20px;
    padding: 16px;
}

.product-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}




/* Image Slider Styles */
.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

/* Slider Container */
.image-slider {
  position: relative;
  width: 100%;
  height: "auto";
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 0px;
}

.slider-arrow.next {
  right: 0px;
}

.image-slider:hover .slider-arrow {
  opacity: 1;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* Touch/swipe indicators */
.slider-track {
  cursor: grab;
}

.slider-track.grabbing {
  cursor: grabbing;
  transition: none;
}

/* Single image state (no slider needed) */
.single-image .slider-arrow,
.single-image .slider-dots {
  display: none;
}

/* Skeleton loader for slider */
.skeleton-img .image-slider {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.skeleton-img .image-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.card-img .addToFav {
    position: absolute;
    bottom: 4px;
    right: 10px; /* next to cart icon */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.4s;
}

.card-img .addToFav:hover {
    background-color: #e63946; /* heart hover color */
    color: #fff;
}


.card-img img {
    width: 100%;
    height: 400px;
    display: block;
    cursor: pointer;
    transition: all 1s linear;
}

.card-img:hover img {
    transform: scale(1.1);
}

.card-img .addToCart {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all .4s;
}

.card-img .addToCart:hover {
    background-color: #000000dc;
    color: #fff;
}

.card-info {
    padding: 16px 0;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    color: #222;
    margin: 0 0 8px;
}

.product-price {
    font-size: 14px;
    font-weight: 400;
    color: #696969;
    margin: 0;
}

/* ------------------------ collection --------------------- */
.collection {
    padding: 60px 0;
}

.collection .container {
    width: 100%;
    padding-inline: 30px;
    margin-bottom: 30px;
}

.collection-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collection-card {
    background-color: gray;
    min-height: 400px;
    padding: 40px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.collection-card .card-title {
    margin-bottom: 12px;
}

.collection-card .card-text {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    margin-block-end: auto;
}

.has-before,
.has-after {
    position: relative;
    z-index: 1;
}

.has-before::before,
.has-after::after {
    content: "";
    position: absolute;
}

.hover\:shine {
    overflow: hidden;
}

.hover\:shine .has-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: 0.5s ease;
}

.hover\:shine:is(:hover, :focus) .has-bg-image {
    transform: scale(1.15);
}

.hover\:shine::before {
    top: 0;
    left: -140%;
    bottom: 0;
    width: 100%;
    background-image: linear-gradient(to right, transparent 50%, hsl(0, 0%, 100%, 0.3) 100%);
    transform: skewX(-25deg);
    transition: 0.5s ease;
    z-index: 1;
}

.hover\:shine:is(:hover, :focus-within)::before {
    animation: shine 1s ease forwards;
}

.btn-link {
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: 0.25s ease;
}

@keyframes shine {
    0% {
        transform: skewX(-25deg) translateX(0);
    }

    100% {
        transform: skewX(-25deg) translateX(250%);
    }
}

.has-bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.categories {
  text-align: center;
  margin: 0px 0px 10px auto;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.6s ease;
}

/* Gradient overlay */
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
  border-radius: 16px;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card:hover::after {
  opacity: 1;
}

.category-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}

.category-card:hover .category-text {
  transform: translateY(-5px);
}



/* ------------------------ news ----------------------- */
.news {
    width: 100%;
    background-color: #dbd9d9bb;
    height: 200px;
    padding: 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news .news-text h4 {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 8px;
}

.news .news-text p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.8)
}

.news .Subscribe-form {
    display: flex;
}

.news .Subscribe-form input {
    width: 300px;
    padding: 10px 20px;
    border: none;
    background-color: #f1f1f1;
    color: #868686;
}

.news .Subscribe-form button {
    background-color: #000;
    color: #fff;
    padding: 6px 20px;
    border: none;
    text-transform: capitalize;
    cursor: pointer;
}


.price-box {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif;
}

.original-price {
  text-decoration: line-through;
  color: #6c757d;   /* medium gray, softer than black */
  font-size: 12px;
}

.discounted-price {
  color: #2c2c2c;   /* deep charcoal, not pure black */
  font-weight: 600;
  font-size: 14px;
}


.discount-percent {
  color: #444;               /* dark gray text */
  font-size: 12px;
  font-weight: 500;
  background-color: #f2f2f2; /* soft light gray background */
  padding: 2px 6px;
  border-radius: 4px;
}



/* ---------- Responsive for Mobile ---------- */
@media (max-width: 768px) {
    .top_products .header h3 {
        font-size: 22px;
        /* smaller than 32px */
        font-weight: 500;
        margin-bottom: 6px;
    }

    .top_products .header p {
        font-size: 14px;
        /* smaller than 16px */
        font-weight: 400;
        color: rgba(17, 17, 17, 0.8);
    }

    .card-img img {
        width: 100%;
        height: 200px;
        display: block;
        cursor: pointer;
        transition: all 1s linear;
    }

    .info .info-icon img {
        width: 20px;
        height: 55px;
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    .top_products .header h3 {
        font-size: 18px;
        /* even smaller for very small screens */
    }

    .top_products .header p {
        font-size: 12px;
    }

    .slider-arrow.prev {
  left: -20px;
}

.slider-arrow.next {
  right: -20px;
}
}



