/*====================================
        SHOP BY CATEGORY
====================================*/

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

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

.section-divider {
  border: none;
  height: 1px;
  background: #ac2525;
  margin: 20px auto;
  width: 100%;
}

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

.section-title {
  max-width: 650px;
}

.section-title span {
  display: inline-block;

  padding: 8px 18px;

  background: #eef7ef;

  color: #2e7d32;

  border-radius: 40px;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;

  margin-bottom: 18px;
}

.section-title h2 {
  font-size: 40px;

  line-height: 1.1;

  font-weight: 800;

  color: #222;

  margin-bottom: 15px;
}

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

.section-title p {
  color: #666;

  font-size: 16px;

  line-height: 1.8;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 20px;

  background: #2e7d32;
  color: #fff;

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  border-radius: 30px;

  transition: 0.35s;
}

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

/*====================================
        GRID
====================================*/

.category-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 24px;
}

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

.category-card {
  background: linear-gradient(180deg, #ffffff, #fcfaf5);

  border-radius: 24px;

  overflow: hidden;

  text-decoration: none;

  border: 1px solid #ece6d5;

  transition: 0.35s;

  position: relative;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);

  box-shadow:
    0 25px 45px rgba(0, 0, 0, 0.12),
    0 0 0 2px rgba(212, 160, 23, 0.12);
}

/* Gold Bottom Line */

.category-card::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: 0;

  width: 0;

  height: 4px;

  background: linear-gradient(90deg, #d4a017, #2e7d32);

  transition: 0.35s;
}

.category-card:hover::after {
  width: 100%;
}

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

.category-image {
  padding: 12px;

  height: 220px;

  background: #faf8f2;
}

.category-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: 18px;

  transition: 0.5s;
}

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

/*====================================
        CONTENT
====================================*/

.category-content {
  padding: 18px;

  text-align: center;
}

.category-content h3 {
  font-size: 20px;

  font-weight: 700;

  color: #222;

  margin-bottom: 8px;
}

.category-content p {
  color: #888;

  font-size: 14px;

  margin-bottom: 16px;
}

.category-content span {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 10px 18px;

  border-radius: 40px;

  background: #f5f5f5;

  color: #2e7d32;

  font-size: 14px;

  font-weight: 600;

  transition: 0.35s;
}

.category-card:hover span {
  background: #2e7d32;

  color: #fff;

  transform: translateX(5px);
}

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

@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 38px;
  }
}

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

  .section-header {
    flex-direction: column;

    align-items: flex-start;
  }

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

    text-align: center;
  }

  .category-grid {
    gap: 18px;
  }

  .category-image {
    height: 180px;
  }
}

@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-image {
    height: 220px;
  }

  .section-title h2 {
    font-size: 32px;
  }

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