/* =========================================
   FLAVORADE INDIA - HOME CATEGORY SECTION
========================================= */

.flavorade-home {
  position: relative;
  overflow: hidden;
  padding: 35px 20px 100px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 252, 0.95) 35%, rgba(235, 237, 242, 1) 100%);
}


/* SIDE BACKGROUND DESIGN */

.flavorade-home::before,
.flavorade-home::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.flavorade-home::before {
  left: -280px;
  bottom: -200px;
  border: 2px solid rgba(185, 0, 20, 0.10);
  box-shadow:
    0 0 0 40px rgba(185, 0, 20, 0.025),
    0 0 0 80px rgba(185, 0, 20, 0.02);
}

.flavorade-home::after {
  right: -300px;
  top: 180px;
  border: 2px solid rgba(220, 180, 50, 0.12);
  box-shadow:
    0 0 0 45px rgba(220, 180, 50, 0.025),
    0 0 0 90px rgba(220, 180, 50, 0.015);
}


/* =========================================
   HEADING
========================================= */

.home-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 28px;
}

.since-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.heading-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      #c79b38,
      transparent);
  position: relative;
}

.heading-line::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid #c79b38;
  background: #fff;
  transform: rotate(45deg);
  top: -3px;
}

.heading-line:first-child::after {
  right: 0;
}

.heading-line:last-child::after {
  left: 0;
}

.since-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #a80d19, #dc2631);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 8px 20px rgba(180, 0, 20, 0.18);
}

.home-heading h1 {
  margin: 0;
  color: #25272b;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
}

.home-heading h1 span {
  color: #bd1722;
}

.home-heading p {
  margin: 12px 0 0;
  color: #46484d;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.55;
}

.heading-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.heading-decoration span {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      #c41a24);
}

.heading-decoration span:last-child {
  background: linear-gradient(90deg,
      #c41a24,
      transparent);
}

.heading-decoration i {
  width: 10px;
  height: 10px;
  display: block;
  border: 2px solid #c41a24;
  transform: rotate(45deg);
}


/* =========================================
   CATEGORY OUTER BOX
========================================= */

.category-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(197, 20, 34, 0.25);

  box-shadow:
    0 20px 60px rgba(31, 37, 47, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(8px);
}


/* =========================================
   GRID
========================================= */

.category-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ICECREAM LINK */

.category-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}


/* =========================================
   CATEGORY CARD
========================================= */

.category-item {
  position: relative;
  min-width: 0;
  height: 164px;
  padding: 9px 7px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.98),
      rgba(247, 247, 248, 0.90));

  border: 1px solid rgba(215, 219, 225, 0.95);
  border-radius: 12px;

  box-shadow:
    0 6px 15px rgba(35, 40, 50, 0.07);

  transition:
    transform 0.30s ease,
    box-shadow 0.30s ease,
    border-color 0.30s ease;

  overflow: hidden;
}

.category-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 3px;

  background: linear-gradient(90deg,
      transparent,
      #c51824,
      transparent);

  opacity: 0.85;
}

.category-item:hover {
  transform: translateY(-6px);
  border-color: rgba(190, 20, 32, 0.35);

  box-shadow:
    0 15px 30px rgba(190, 20, 32, 0.14);
}


/* =========================================
   CATEGORY IMAGE
========================================= */

.category-image {
  width: 100%;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;

  max-width: 130px;
  max-height: 98px;

  object-fit: contain;

  display: block;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.category-item:hover .category-image img {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.12));
}


/* =========================================
   CATEGORY TITLE
========================================= */

.category-title {
  width: 100%;
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  color: #b41520;

  font-size: 10px;
  font-weight: 800;

  line-height: 1.45;
  letter-spacing: 0.35px;

  text-transform: uppercase;

  padding: 2px 2px 4px;
}

/* Keep the homepage in the same warm red, gold and cream visual style as About Us. */
.flavorade-home {
  background: linear-gradient(180deg, #fff 0%, #fffaf5 48%, #fff 100%);
}

.flavorade-home::before {
  border-color: rgba(181, 18, 24, .08);
  box-shadow: 0 0 0 40px rgba(181, 18, 24, .018), 0 0 0 80px rgba(181, 18, 24, .012);
}

.flavorade-home::after {
  border-color: rgba(216, 166, 51, .13);
  box-shadow: 0 0 0 45px rgba(216, 166, 51, .022), 0 0 0 90px rgba(216, 166, 51, .014);
}

.home-heading h1 {
  color: #292929;
  font-weight: 750;
  letter-spacing: -.025em;
}

.home-heading h1 span {
  color: #b51218;
}

.home-heading p {
  color: #6d625e;
  font-weight: 500;
}

.heading-decoration span {
  background: linear-gradient(90deg, transparent, #d8a633);
}

.heading-decoration span:last-child {
  background: linear-gradient(90deg, #d8a633, transparent);
}

.category-wrapper {
  border-color: #eee0d5;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 48px rgba(85, 46, 28, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.category-item {
  border-color: #efe4dc;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fffaf6);
  box-shadow: 0 5px 15px rgba(76, 35, 20, .045);
}

.category-item:hover {
  border-color: rgba(181, 18, 24, .32);
  box-shadow: 0 14px 28px rgba(76, 35, 20, .11);
}

.category-title {
  color: #a9171e;
}


/* =========================================
   BOTTOM RED FEATURE BAR
========================================= */

.home-features {
  position: absolute;

  z-index: 5;

  left: 50%;
  /* bottom: 28px; */

  transform: translateX(-50%);

  width: min(1180px, calc(100% - 40px));

  min-height: 74px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  background:
    linear-gradient(90deg,
      #a80d18 0%,
      #cf1825 50%,
      #a80d18 100%);

  border: 1px solid rgba(255, 255, 255, 0.45);

  border-radius: 12px;

  overflow: hidden;

  box-shadow:
    0 14px 30px rgba(140, 0, 15, 0.25);
}


.feature-item {
  position: relative;

  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 12px 16px;

  color: #fff;
}

.feature-item:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;
  top: 18%;

  width: 1px;
  height: 64%;

  background: rgba(255, 255, 255, 0.35);
}


.feature-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(255, 255, 255, 0.85);

  border-radius: 50%;

  color: #fff;

  font-size: 24px;
  font-weight: 800;
}


.feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-text strong {
  color: #fff;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.5px;

  white-space: nowrap;
}

.feature-text span {
  color: rgba(255, 255, 255, 0.90);

  font-size: 11px;
  font-weight: 500;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

  .flavorade-home {
    padding-bottom: 150px;
  }

  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .home-features {
    grid-template-columns: repeat(2, 1fr);
    bottom: 20px;
    width: min(700px, calc(100% - 40px));
  }

  .feature-item:nth-child(2)::after {
    display: none;
  }

  .feature-item {
    min-height: 68px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .flavorade-home {
    padding:
      28px 12px 260px;
  }

  .home-heading {
    margin-bottom: 20px;
  }

  .home-heading h1 {
    font-size: 32px;
  }

  .home-heading p {
    font-size: 13px;
  }

  .home-heading p br {
    display: none;
  }

  .since-badge {
    font-size: 12px;
    padding: 7px 13px;
  }

  .heading-line {
    width: 42px;
  }

  .category-wrapper {
    padding: 8px;
    border-radius: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .category-item {
    height: 145px;
    padding: 6px 4px 8px;
    border-radius: 9px;
  }

  .category-image {
    height: 88px;
  }

  .category-image img {
    max-width: 100%;
    max-height: 84px;
  }

  .category-title {
    font-size: 8px;
    line-height: 1.35;
    min-height: 38px;
  }

  .home-features {
    grid-template-columns: 1fr;

    width: calc(100% - 28px);

    bottom: 16px;

    border-radius: 10px;
  }

  .feature-item {
    min-height: 56px;
    justify-content: flex-start;
    padding: 8px 20px;
  }

  .feature-item:not(:last-child)::after {
    left: 20px;
    right: 20px;

    top: auto;
    bottom: 0;

    width: auto;
    height: 1px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;

    font-size: 17px;
  }

  .feature-text strong {
    font-size: 10px;
  }

  .feature-text span {
    font-size: 9px;
  }

}

/* Mobile view (max-width: 768px) ke liye fix */
@media screen and (max-width: 768px) {
  section.flavorade-home {
    padding-bottom: 40px !important;
    height: auto !important;
  }

  .home-features {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 20px auto !important;
    width: 90% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}



/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .category-item {
    height: 150px;
  }

  .home-heading h1 {
    font-size: 27px;
  }

}


/* =========================================================
*/
