/**
 * Sanju Pansari — Modern Grocery Design Kit
 * Forest green theme · banner carousel · promo tiles · service row
 */

:root {
  --kit-green: #2E7D32;
  --kit-green-dark: #1B5E20;
  --kit-green-light: #66BB6A;
  --kit-bg: #F5F5F5;
  --kit-surface: #FFFFFF;
  --kit-radius: 14px;
  --kit-radius-lg: 18px;
  --kit-shadow: 0 4px 20px rgba(17, 24, 39, 0.07);
  --kit-shadow-lg: 0 12px 40px rgba(46, 125, 50, 0.12);
}

body.page-grocery-kit.pd-layout {
  font-family: 'Poppins', var(--ds-font-sans);
}

body.page-grocery-kit.pd-layout .page-wrapper {
  background: var(--kit-bg);
}

body.page-home.page-grocery-kit .page-wrapper {
  background: linear-gradient(180deg, #F5F5F5 0%, #FAFAFA 40%, #F5F5F5 100%);
}

.hp-kit-page {
  padding-bottom: 8px;
}

/* ── Section titles ── */
.hp-kit-section-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-kit-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kit-green);
}

.hp-kit-section-head h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  letter-spacing: -0.02em;
}

.hp-kit-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--kit-green-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f5e9;
  transition: background 0.2s, transform 0.2s;
}

.hp-kit-link:hover {
  background: #c8e6c9;
  transform: translateX(2px);
}

.hp-kit-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.hp-kit-section-head-center {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

/* ── Banner carousel ── */
.hp-kit-hero {
  padding: 12px 0 8px;
}

.hp-kit-hero-inner {
  position: relative;
}

.hp-kit-swiper {
  border-radius: var(--kit-radius-lg);
  overflow: hidden;
  box-shadow: var(--kit-shadow-lg);
}

.hp-kit-swiper .swiper-slide {
  height: auto;
}

.hp-kit-banner {
  display: block;
  position: relative;
  min-height: 220px;
  text-decoration: none;
  color: #fff;
  background-color: var(--kit-green-dark);
  background-image: var(--hp-banner-img);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.5s ease;
}

/* Full graphic banners from assets/images/banners/ (1536×1024, 3:2) */
.hp-kit-banner--photo {
  min-height: 0;
  padding: 0;
  line-height: 0;
  background: #eef2ee;
  display: block;
}

.hp-kit-banner--photo .hp-kit-banner-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.hp-kit-swiper .swiper-slide-active .hp-kit-banner--photo .hp-kit-banner-photo {
  animation: none;
}

.hp-kit-swiper .swiper-slide-active .hp-kit-banner {
  animation: hpBannerIn 0.6s ease;
}

@keyframes hpBannerIn {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

.hp-kit-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 82, 20, 0.9) 0%, rgba(30, 94, 32, 0.5) 50%, rgba(0, 0, 0, 0.12) 100%);
}

.hp-kit-banner--light .hp-kit-banner-overlay {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.75) 55%, rgba(0, 0, 0, 0.06) 100%);
}

.hp-kit-banner--light { color: #1f2937; }

.hp-kit-banner--green .hp-kit-banner-overlay {
  background: linear-gradient(105deg, rgba(27, 94, 32, 0.92) 0%, rgba(46, 125, 50, 0.48) 100%);
}

.hp-kit-banner--brown .hp-kit-banner-overlay {
  background: linear-gradient(105deg, rgba(62, 39, 35, 0.9) 0%, rgba(93, 64, 55, 0.42) 100%);
}

.hp-kit-banner--earth .hp-kit-banner-overlay {
  background: linear-gradient(105deg, rgba(78, 52, 46, 0.9) 0%, rgba(109, 76, 65, 0.42) 100%);
}

.hp-kit-banner--festive .hp-kit-banner-overlay {
  background: linear-gradient(105deg, rgba(127, 29, 29, 0.9) 0%, rgba(180, 83, 9, 0.42) 100%);
}

.hp-kit-banner-body {
  position: relative;
  z-index: 1;
  padding: 20px 18px 42px;
  max-width: 75%;
}

.hp-kit-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}

.hp-kit-banner--light .hp-kit-banner-badge {
  background: rgba(46, 125, 50, 0.1);
  border-color: rgba(46, 125, 50, 0.22);
  color: var(--kit-green-dark);
}

.hp-kit-banner-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hp-kit-banner--light .hp-kit-banner-title {
  text-shadow: none;
}

.hp-kit-banner-sub {
  font-size: 0.8125rem;
  opacity: 0.94;
  margin: 0 0 12px;
  line-height: 1.5;
}

.hp-kit-banner-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-kit-banner-features li {
  font-size: 0.625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-kit-banner-features li i {
  font-size: 0.625rem;
  color: #A5D6A7;
}

.hp-kit-banner--light .hp-kit-banner-features li i {
  color: var(--kit-green);
}

.hp-kit-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #66BB6A, #2E7D32);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-kit-banner:hover .hp-kit-banner-cta {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.5);
}

.hp-kit-pagination {
  bottom: 12px !important;
}

.hp-kit-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: width 0.25s;
}

.hp-kit-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 22px;
  border-radius: 8px;
}

/* Swiper nav (desktop) */
.hp-kit-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--kit-green-dark);
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.hp-kit-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hp-kit-nav-prev { left: 16px; }
.hp-kit-nav-next { right: 16px; }

/* ── Service highlights ── */
.hp-kit-services {
  margin: 16px 0;
}

.hp-kit-services-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.hp-kit-services-scroll::-webkit-scrollbar {
  display: none;
}

.hp-kit-service-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  padding: 14px 10px;
  background: var(--kit-surface);
  border: 1px solid #e8f5e9;
  border-radius: var(--kit-radius);
  box-shadow: var(--kit-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-kit-service-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--kit-shadow-lg);
}

.hp-kit-service-chip i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--kit-green-dark);
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  border: 1.5px solid #a5d6a7;
}

.hp-kit-service-chip span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
  line-height: 1.35;
  max-width: 76px;
}

/* ── Top categories ── */
.hp-kit-top-cats {
  padding: 8px 0 18px;
}

.hp-kit-cats-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hp-kit-cats-scroll::-webkit-scrollbar {
  display: none;
}

.hp-kit-cat-chip {
  flex: 0 0 76px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s ease;
}

.hp-kit-cat-chip:hover {
  transform: translateY(-4px);
}

.hp-kit-cat-photo {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s ease;
}

.hp-kit-cat-chip:hover .hp-kit-cat-photo {
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.25);
}

.hp-kit-cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-kit-cat-photo .hp-kit-cat-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--cat-gradient, linear-gradient(145deg, #66BB6A, #2E7D32));
}

.hp-kit-cat-photo .hp-kit-cat-fallback i {
  color: #fff;
  font-size: 1.35rem;
}

.hp-kit-cat-name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.25;
}

/* ── SANJU10 strip ── */
.hp-kit-sanju-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--kit-radius-lg);
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(27, 94, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.hp-kit-sanju-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hp-kit-sanju-strip .hp-strip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD54F;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.hp-kit-sanju-strip .hp-strip-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hp-kit-sanju-strip .hp-strip-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
}

.hp-kit-sanju-strip .hp-strip-text span {
  font-size: 0.6875rem;
  opacity: 0.92;
  line-height: 1.4;
}

.hp-kit-sanju-strip .hp-strip-text em {
  font-style: normal;
  color: #FFD54F;
  font-weight: 800;
}

.hp-kit-sanju-strip .hp-strip-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: #FFD54F;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.hp-kit-sanju-strip .hp-strip-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(255, 213, 79, 0.4);
}

/* ── Promo tiles ── */
.hp-kit-promos {
  padding: 0 0 20px;
}

.hp-kit-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hp-kit-promo-grid--compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hp-kit-promo-grid--compact.is-collapsed .hp-poster-tile:nth-child(n+13) {
  display: none;
}

.hp-promo-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.hp-promo-show-more {
  border: 1px solid rgba(46, 125, 50, 0.2);
  background: #fff;
  color: #2E7D32;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.hp-promo-show-more:hover {
  background: #f1f8e9;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.12);
}

.hp-promo-show-more i {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.hp-promo-show-more[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.hp-poster-tile {
  display: block;
  position: relative;
  min-height: 120px;
  border-radius: var(--kit-radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--kit-shadow);
  background: #2E7D32 center / cover no-repeat;
  background-image: var(--hp-poster-img);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Full graphic posters from assets/images/posters/ (1024×1024) */
.hp-poster-tile--photo {
  min-height: 0;
  padding: 0;
  line-height: 0;
  background: #f5f5f5;
  aspect-ratio: 1 / 1;
}

.hp-poster-tile--photo .hp-poster-tile-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  transition: transform 0.25s ease;
}

.hp-poster-tile--photo .hp-poster-tile-action {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #2E7D32;
  font-size: 0.625rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.hp-poster-tile--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hp-poster-tile--photo:hover::after,
.hp-poster-tile--photo:focus-visible::after {
  opacity: 1;
}

.hp-poster-tile--photo:hover .hp-poster-tile-action,
.hp-poster-tile--photo:focus-visible .hp-poster-tile-action {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hp-poster-tile--photo:hover .hp-poster-tile-photo {
  transform: scale(1.04);
}

.hp-poster-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--kit-shadow-lg);
}

.hp-poster-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.hp-poster-tile-text {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
}

.hp-poster-tile-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hp-poster-tile-text span {
  font-size: 0.625rem;
  opacity: 0.92;
  font-weight: 600;
}

.hp-promo-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: var(--kit-radius);
  text-decoration: none;
  color: #fff;
  box-shadow: var(--kit-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.hp-promo-tile::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 0 0 100%;
}

.hp-promo-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--kit-shadow-lg);
}

.hp-promo-tile:active {
  transform: scale(0.98);
}

.hp-promo-tile strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}

.hp-promo-tile span {
  font-size: 0.6875rem;
  opacity: 0.92;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.hp-promo-tile--green { background: linear-gradient(135deg, #43A047, #1B5E20); }
.hp-promo-tile--red { background: linear-gradient(135deg, #E53935, #B71C1C); }
.hp-promo-tile--orange { background: linear-gradient(135deg, #FB8C00, #E65100); }
.hp-promo-tile--navy { background: linear-gradient(135deg, #1E88E5, #0D47A1); }
.hp-promo-tile--brown { background: linear-gradient(135deg, #8D6E63, #4E342E); }
.hp-promo-tile--earth { background: linear-gradient(135deg, #795548, #3E2723); }
.hp-promo-tile--festive { background: linear-gradient(135deg, #C62828, #6A1B9A); }

/* ── Product sections ── */
.hp-kit-products {
  padding: 24px 0;
  background: var(--kit-surface);
  margin-bottom: 0;
}

.hp-kit-products-muted {
  background: transparent;
}

.hp-kit-categories-full {
  padding: 40px 0 48px;
  background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
}

@media (min-width: 992px) {
  .hp-kit-promo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .hp-kit-promo-grid--compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .hp-poster-tile:not(.hp-poster-tile--photo) {
    min-height: 140px;
  }

  .hp-kit-hero {
    padding: 20px 0 24px;
  }

  .hp-kit-swiper {
    border-radius: 22px;
  }

  .hp-kit-banner:not(.hp-kit-banner--photo) {
    min-height: 360px;
  }

  .hp-kit-banner-body {
    padding: 40px 48px 56px;
    max-width: 48%;
  }

  .hp-kit-banner-title {
    font-size: 2.5rem;
  }

  .hp-kit-banner-sub {
    font-size: 1rem;
  }

  .hp-kit-banner-features li {
    font-size: 0.8125rem;
  }

  .hp-kit-banner-cta {
    padding: 12px 26px;
    font-size: 0.875rem;
  }

  .hp-kit-nav {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hp-kit-section-head h2 {
    font-size: 1.5rem;
  }

  .hp-kit-services-scroll {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    overflow: visible;
  }

  .hp-kit-service-chip {
    min-width: 0;
  }

  .hp-kit-promo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .hp-kit-promo-grid--compact {
    grid-template-columns: repeat(6, 1fr);
  }

  .hp-kit-cats-scroll {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    gap: 24px;
  }

  .hp-kit-cat-chip {
    flex: 0 0 100px;
  }

  .hp-kit-cat-photo {
    width: 80px;
    height: 80px;
  }

  .hp-kit-products {
    padding: 32px 0;
  }
}

@media (max-width: 991px) {
  body.page-grocery-kit .hp-desktop-only {
    display: none;
  }

  .hp-kit-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow: visible;
  }

  .hp-kit-section-head {
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .hp-kit-promo-grid--compact {
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .hp-kit-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .hp-kit-promo-grid--compact {
    grid-template-columns: repeat(4, 1fr);
  }

  .hp-promo-tile {
    flex: unset;
  }
}

@media (max-width: 380px) {
  .hp-kit-banner-title {
    font-size: 1.35rem;
  }

  .hp-kit-banner-body {
    max-width: 88%;
  }

  .hp-kit-sanju-strip {
    flex-wrap: wrap;
  }

  .hp-kit-sanju-strip .hp-strip-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-kit-banner,
  .hp-kit-swiper .swiper-slide-active .hp-kit-banner {
    animation: none;
  }
}
