/* =========================================================
   HOME PAGE
   grocery_t01
========================================================= */


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

.sf-hero__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  min-height: 420px;
  padding: 24px;
  border-radius: var(--sf-radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--sf-border);
  box-shadow: var(--sf-shadow);
}

.sf-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.sf-hero__title {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.sf-hero__body {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.sf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sf-hero__media {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #dceacf 0%, #bfd8a8 100%);
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.sf-category-section {
  padding-top: 60px;
}

.sf-category-section__head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.sf-category-section__all {
  color: var(--sf-text);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.sf-category-section__all:hover,
.sf-category-section__all:focus-visible {
  outline: none;
}

.sf-category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px 16px;
}


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

.sf-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #393939;
margin-bottom: 20px;
}

.sf-category-card__icon {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 120px;
  height: auto;
  padding: 2px 8px 0;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
}

.sf-category-card__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.50) 30%,
    rgba(255, 255, 255, 0.20) 52%,
    rgba(255, 255, 255, 0.5) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

.sf-category-card__icon img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sf-category-card__fallback {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
  font-weight: 600;
}

.sf-category-card__title,
.sf-category-card > span:last-child {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 400;
}


/* =========================================================
   DESKTOP HERO BANNERS
========================================================= */

.sf-banner-section {
  padding-top: 30px;
}

.sf-banner-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 30px;
  align-items: start;
}

.sf-banner-grid--two {
  grid-template-areas: "hero side";
}

.sf-banner {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sf-banner:hover,
.sf-banner:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.sf-banner--hero {
  grid-area: hero;
  display: block;
  background: transparent;
}

.sf-banner--hero .sf-banner__image {
  width: 100%;
  height: auto;
  display: block;
}

.sf-banner--side {
  grid-area: side;
  display: flex;
  height: 100%;
  background: #dedede;
}

.sf-banner--side .sf-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sf-banner__content {
  display: grid;
  gap: 10px;
  max-width: 320px;
  padding: 30px;
}


/* =========================================================
   PREMIUM MOBILE HERO SLIDER
========================================================= */

.sf-mobile-hero {
  display: none;
  position: relative;
}

.sf-mobile-hero__viewport {
  overflow: hidden;
  border-radius: 14px;
  background: #dedede;
  box-shadow: 0 10px 28px rgba(25, 25, 25, 0.08);
}

.sf-mobile-hero__track {
  display: flex;
  transition: transform 0.38s ease;
  will-change: transform;
}

.sf-mobile-hero__slide {
  flex: 0 0 100%;
  display: block;
  text-decoration: none;
}

.sf-mobile-hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sf-mobile-hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.sf-mobile-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9d9d9;
  cursor: pointer;
  transition: width 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.sf-mobile-hero__dot.is-active {
  width: 20px;
  background: #aac42d;
}


/* =========================================================
   PRODUCT SHELVES
========================================================= */

.sf-product-shelf {
  margin: 80px 0;
}


/* =========================================================
   OFFER BANNERS
========================================================= */

.sf-offer-section {
  margin-bottom: 80px;
}

.sf-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.sf-banner--offer {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #dedede;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.sf-banner--offer:hover {
  transform: translateY(-1px);
}

.sf-banner--offer .sf-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


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

@media (max-width: 1080px) {
  .sf-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .sf-hero__card {
    grid-template-columns: 1fr;
  }

  .sf-promo-grid,
  .sf-offer-grid {
    grid-template-columns: 1fr;
  }

  .sf-banner-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .sf-banner-grid {
    display: none;
  }

  .sf-mobile-hero {
    display: block;
  }
}

@media (max-width: 720px) {
  .sf-store-head {
    padding-top: 16px;
  }

  .sf-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sf-category-card {
    gap: 5px;
  }

  .sf-category-card__icon {
    width: 100%;
    height: 108px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .sf-category-card__title,
  .sf-category-card > span:last-child {
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .sf-offer-grid {
    grid-template-columns: 1fr;
  }

  .sf-banner-section {
    padding-top: 20px;
  }

  .sf-category-section {
    padding-top: 28px;
  }
}