/* ============================================================
   CHINKUL — HOMEPAGE
   Mobile-first, no dependencies
   ============================================================ */

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Section wrapper ──────────────────────────────────────── */
.hp-section {
  padding: 20px 0 8px;
  background: #fff;
  margin-bottom: 8px;
}
.hp-section--deals { background: #fff8f0; }
.hp-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
}
.hp-section__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0;
  letter-spacing: -.2px;
}
.hp-section__link {
  font-size: 12.5px;
  font-weight: 600;
  color: #2e7d32;
  text-decoration: none;
  white-space: nowrap;
}
.hp-section__link:hover { text-decoration: underline; }

/* ── Button ───────────────────────────────────────────────── */
.hp-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.hp-btn--white { background: #fff; color: #2e7d32; }
.hp-btn--white:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════
   SHOP BY CATEGORY — horizontal scroll chips
═══════════════════════════════════════════════════════════ */
.hp-cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hp-cat-scroll::-webkit-scrollbar { display: none; }

.hp-cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  width: 76px;
}
.hp-cat-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f0f0;
  flex-shrink: 0;
}
.hp-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-cat-icon { font-size: 28px; line-height: 1; }
.hp-cat-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD (shared by New Arrivals, Hot Deals, Interest)
═══════════════════════════════════════════════════════════ */
.hp-prod-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hp-prod-scroll::-webkit-scrollbar { display: none; }

.hp-prod-card {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  transition: box-shadow .15s;
}
.hp-prod-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.hp-prod-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}
.hp-prod-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.hp-prod-card:hover .hp-prod-card__img-wrap img { transform: scale(1.04); }

/* Lazy placeholder shimmer */
.hp-lazy {
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: hp-shimmer 1.4s infinite;
}
.hp-lazy--loaded {
  background: none;
  animation: none;
}
@keyframes hp-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hp-prod-card__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.hp-prod-card__badge--label { background: #2e7d32; }
.hp-prod-card__badge--deal  { background: #ff6d00; font-size: 11px; }

.hp-prod-card__info {
  padding: 8px 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-prod-card__name {
  font-size: 12px;
  font-weight: 500;
  color: #222;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.hp-prod-card__price {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}
.hp-prod-card__price-main {
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
}
.hp-prod-card__price-mrp {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════════════
   SHOP BY COLLECTIONS — 2-col grid, each with 4-image mosaic
═══════════════════════════════════════════════════════════ */
.hp-collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 12px;
}

.hp-col-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  transition: box-shadow .15s;
}
.hp-col-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.hp-col-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.hp-col-card__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hp-col-card__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-col-card__label {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  border-top: 1px solid #f0f0f0;
}
.hp-col-card__label svg { color: var(--col-accent, #2e7d32); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — tablet / desktop
═══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .hp-prod-card { flex: 0 0 170px; }
  .hp-cat-item  { width: 88px; }
  .hp-cat-img   { width: 80px; height: 80px; }
  .hp-collections { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hp-section { max-width: 1100px; margin-left: auto; margin-right: auto; border-radius: 12px; }
  .hp-hero     { max-width: 1100px; margin: 8px auto; border-radius: 12px; }
  .hp-prod-card { flex: 0 0 190px; }
  .hp-collections { grid-template-columns: repeat(4, 1fr); }
  .hp-hero__arrow { width: 44px; height: 44px; font-size: 26px; }
}

@media (max-width: 380px) {
  .hp-prod-card { flex: 0 0 128px; }
  .hp-cat-img   { width: 62px; height: 62px; }
  .hp-cat-item  { width: 68px; }
}
