/* ==========================================================================
   MEHTA NAMKEEN - All Categories Page Stylesheet
   Matches Exact Figma Design & All Categories Reference
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Banner Section Overrides & Enhancements
   -------------------------------------------------------------------------- */
.categories-banner-section {
  position: relative;
  width: 100%;
  height: 500px;
  min-height: 500px;
  background: url('../assets/images/categories_bg.png') no-repeat center bottom;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.categories-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.categories-banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.categories-banner-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.categories-banner-tag .banner-tag-line {
  height: 1.5px;
  width: 50px;
  background-color: #D9961A;
}

.categories-banner-tag .banner-tag-text {
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.5px;
  color: #D9961A;
  text-transform: uppercase;
}

.categories-banner-title {
  font-family: var(--font-serif, 'Merriweather', serif);
  font-weight: 700;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.categories-banner-subtitle {
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 27px;
  color: rgba(255, 255, 255, 0.90);
  max-width: 540px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   2. Categories Grid Section & Cards
   -------------------------------------------------------------------------- */
.categories-page-section {
  background-color: #FAF5EB;
  padding: 55px 0 85px;
  min-height: 65vh;
}

.category-grid-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(18, 57, 138, 0.09);
  border-color: #D1D5DB;
}

.category-card-img-wrap {
  width: 100%;
  height: 200px;
  background-color: #EFEFEF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 14px;
  text-decoration: none;
}

.category-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-grid-card:hover .category-card-img-wrap img {
  transform: scale(1.06);
}

.category-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-title {
  font-family: var(--font-serif, 'Merriweather', serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}

.category-card-title a {
  color: #12398A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-card-title a:hover {
  color: #0D2D70;
}

.category-card-desc {
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-size: 13.5px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 20px;
  min-height: 42px;
}

.btn-category-shop {
  margin-top: auto;
  display: block;
  width: 100%;
  background-color: #12398A;
  color: #FFFFFF !important;
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  border: none;
  transition: all 0.2s ease;
}

.btn-category-shop:hover {
  background-color: #0D2D70;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(18, 57, 138, 0.28);
}

/* --------------------------------------------------------------------------
   3. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .categories-banner-section {
    height: 450px;
    min-height: 450px;
  }
  .categories-banner-title {
    font-size: 38px;
    line-height: 48px;
  }
}

@media (max-width: 767.98px) {
  .categories-banner-section {
    height: 400px;
    min-height: 400px;
    padding: 30px 16px;
  }
  .categories-banner-title {
    font-size: 30px;
    line-height: 38px;
  }
  .categories-banner-subtitle {
    font-size: 14.5px;
    line-height: 23px;
  }
  .categories-banner-tag .banner-tag-text {
    font-size: 14px;
  }
  .categories-page-section {
    padding: 35px 0 60px;
  }
  .category-card-img-wrap {
    height: 180px;
  }
  .category-card-title {
    font-size: 18px;
  }
  .categories-pagination {
    margin-top: 32px;
  }
}

/* --------------------------------------------------------------------------
   4. Pagination Styles
   -------------------------------------------------------------------------- */
.categories-pagination {
  margin-top: 48px;
  padding-top: 10px;
}
