/*====================================
        PRODUCTS SECTION
====================================*/

.products-section {
  padding: 90px 7%;
  background: #faf8f2;
}

/*====================================
        HEADER
====================================*/

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.products-title {
  max-width: 700px;
}

.products-title span {
  display: inline-block;
  padding: 8px 18px;
  background: #eef7ef;
  color: #2e7d32;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.products-title h2 {
  font-size: 40px;
  color: #222;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 15px;
}

.products-title h2 strong {
  color: #d4a017;
}

.products-title p {
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}

.view-all-products {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.view-all-products:hover {
  background: #d4a017;
}

/*====================================
        FILTERS
====================================*/

.product-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 35px 0;
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

/*====================================
        SLIDER
====================================*/

.product-slider-wrapper {
  position: relative;
}

.product-slider {
  display: flex;

  gap: 22px;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;

  -ms-overflow-style: none;

  padding: 10px 5px 25px;

  cursor: grab;
}

.product-slider:active {
  cursor: grabbing;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

/*====================================
        ARROWS
====================================*/

.product-arrow {
  position: absolute;

  top: 45%;

  transform: translateY(-50%);

  width: 50px;

  height: 50px;

  border: none;

  border-radius: 50%;

  background: #fff;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

  cursor: pointer;

  font-size: 22px;

  transition: 0.3s;

  z-index: 50;
}

.product-arrow:hover {
  background: #2e7d32;

  color: #fff;
}

.product-arrow.left {
  left: -25px;
}

.product-arrow.right {
  right: -25px;
}

/*====================================
        FOOTER
====================================*/

.products-footer {
  text-align: center;
  margin-top: 40px;
}

/*====================================
        PRODUCT CARD
====================================*/

.product-card {
  flex: 0 0 240px;

  background: #fff;

  border: 1px solid #ececec;

  border-radius: 18px;

  overflow: hidden;

  position: relative;

  transition: 0.35s ease;

  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);

  border-color: #d4a017;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/*====================================
        DISCOUNT BADGE
====================================*/

.product-badge {
  position: absolute;

  top: 14px;

  left: 14px;

  padding: 5px 12px;

  background: #ff4d4f;

  color: #fff;

  border-radius: 20px;

  font-size: 12px;

  font-weight: 700;

  z-index: 5;
}

.product-badge.new {
  background: #2e7d32;
}

/*====================================
        WISHLIST
====================================*/

.wishlist-btn {
  position: absolute;

  top: 14px;

  right: 14px;

  width: 38px;

  height: 38px;

  border: none;

  border-radius: 50%;

  background: #fff;

  color: #555;

  font-size: 18px;

  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

  transition: 0.3s;

  z-index: 5;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: #ff4d4f;

  color: #fff;

  transform: scale(1.08);
}

/*====================================
        IMAGE
====================================*/

.product-image {
  width: 100%;

  height: 220px;

  padding: 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #fff;
}

.product-image img {
  width: 100%;

  height: 100%;

  object-fit: contain;

  transition: 0.4s;
}

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

/*====================================
        DETAILS
====================================*/

.product-details {
  padding: 18px;
}

.product-rating {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  padding: 4px 10px;

  background: #eef7ef;

  color: #2e7d32;

  border-radius: 20px;

  font-size: 13px;

  font-weight: 600;

  margin-bottom: 12px;
}

.product-rating span {
  color: #666;
}

.product-brand {
  font-size: 11px;

  color: #999;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;

  margin-bottom: 6px;
}

.product-name {
  font-size: 17px;

  font-weight: 700;

  color: #222;

  line-height: 1.45;

  min-height: 48px;

  margin-bottom: 8px;
}

.product-weight {
  color: #888;

  font-size: 14px;

  margin-bottom: 16px;
}

/*====================================
        PRICE
====================================*/

.price-section {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 18px;
}

.new-price {
  font-size: 22px;

  color: #2e7d32;

  font-weight: 800;
}

.old-price {
  color: #999;

  font-size: 14px;

  text-decoration: line-through;
}

/*====================================
        ADD BUTTON
====================================*/

.add-cart-btn {
  width: 100%;

  height: 42px;

  border: none;

  border-radius: 10px;

  background: #2e7d32;

  color: #fff;

  font-size: 14px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.add-cart-btn:hover {
  background: #d4a017;
}

/*====================================
        SMALL HOVER EFFECTS
====================================*/

.product-name:hover {
  color: #2e7d32;
}

.product-card:hover .new-price {
  color: #d4a017;
}

/*====================================
        RESPONSIVE
====================================*/

/* Laptop */

@media (max-width: 1200px) {
  .products-section {
    padding: 80px 5%;
  }

  .products-title h2 {
    font-size: 36px;
  }

  .product-card {
    flex: 0 0 220px;
  }

  .product-image {
    height: 200px;
  }
}

/* Tablet */

@media (max-width: 992px) {
  .products-title h2 {
    font-size: 32px;
  }

  .products-title p {
    font-size: 15px;
  }

  .product-card {
    flex: 0 0 200px;
  }

  .product-image {
    height: 180px;
  }

  .product-arrow {
    width: 42px;

    height: 42px;

    font-size: 18px;
  }

  .product-arrow.left {
    left: -10px;
  }

  .product-arrow.right {
    right: -10px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .products-section {
    padding: 60px 20px;
  }

  .products-header {
    flex-direction: column;

    align-items: flex-start;
  }

  .view-all-products {
    width: 100%;

    justify-content: center;
  }

  .product-filters {
    gap: 10px;

    overflow-x: auto;

    flex-wrap: nowrap;

    scrollbar-width: none;
  }

  .product-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;

    flex: 0 0 auto;

    padding: 8px 16px;

    font-size: 13px;
  }

  .product-card {
    flex: 0 0 180px;
  }

  .product-image {
    height: 170px;

    padding: 15px;
  }

  .product-details {
    padding: 14px;
  }

  .product-name {
    font-size: 15px;

    min-height: 42px;
  }

  .new-price {
    font-size: 18px;
  }

  .old-price {
    font-size: 12px;
  }

  .product-arrow {
    display: none;
  }
}

/* Small Mobile */

@media (max-width: 480px) {
  .products-title h2 {
    font-size: 28px;
  }

  .products-title p {
    font-size: 14px;
  }

  .product-card {
    flex: 0 0 165px;

    border-radius: 14px;
  }

  .product-image {
    height: 150px;

    padding: 12px;
  }

  .product-details {
    padding: 12px;
  }

  .product-rating {
    font-size: 11px;

    padding: 3px 8px;
  }

  .product-brand {
    font-size: 10px;
  }

  .product-name {
    font-size: 14px;

    min-height: 40px;
  }

  .product-weight {
    font-size: 12px;
  }

  .new-price {
    font-size: 17px;
  }

  .old-price {
    font-size: 11px;
  }

  .add-cart-btn {
    height: 38px;

    font-size: 13px;
  }

  .wishlist-btn {
    width: 32px;

    height: 32px;

    font-size: 15px;
  }

  .product-badge {
    font-size: 10px;

    padding: 4px 8px;
  }
}

/*====================================
        ANIMATIONS
====================================*/

.product-card {
  animation: fadeUp 0.6s ease;
}

.product-card:hover .add-cart-btn {
  transform: translateY(-2px);
}

.product-card:hover .wishlist-btn {
  transform: scale(1.1);
}

/*====================================
        SLIDER SNAP
====================================*/

.product-slider {
  scroll-snap-type: x mandatory;
}

.product-card {
  scroll-snap-align: start;
}

/*====================================
        NICE HOVER SHADOW
====================================*/

.product-slider {
  padding-bottom: 25px;
}

.product-slider::after {
  content: "";

  padding-right: 10px;
}

/*====================================
        SMOOTH BUTTON
====================================*/

.add-cart-btn {
  letter-spacing: 0.5px;
}

.add-cart-btn:active {
  transform: scale(0.97);
}

/*====================================
        IMAGE HOVER
====================================*/

.product-card:hover .product-image {
  background: #fcfcfc;
}

/*====================================
        PRICE TRANSITION
====================================*/

.new-price,
.old-price {
  transition: 0.3s;
}

/*====================================
        FILTER ANIMATION
====================================*/

.filter-btn {
  transition: 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

/*====================================
        END
====================================*/
