/* Home page (loaded after store.css). Colours come from Settings. */
body.home { --deep: color-mix(in srgb, var(--primary) 78%, black); --gold-soft: color-mix(in srgb, var(--accent) 16%, white); }

/* ---------- section shell ---------- */
.h-sec { padding: 34px 0; }
.h-sec.bg-white { background: #fff; }
.h-sec.bg-soft { background: color-mix(in srgb, var(--primary) 6%, #f8faf9); }
.h-sec.bg-primary { background: var(--primary); color: #fff; }
.h-sec.bg-primary .h-head h2, .h-sec.bg-primary .h-more { color: #fff; }
.h-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.h-head h2 { position: relative; padding-left: 14px; font-size: clamp(21.5px, 2.6vw, 27px); font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.h-head h2::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 4px; border-radius: 4px; background: var(--accent); }
.h-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--primary); white-space: nowrap; }
.h-more svg { transition: transform .2s; }
.h-more:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */
.h-hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; isolation: isolate; }
.h-hero::before { /* soft light + fine dots, so the teal isn't flat */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 85% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(520px 360px at 0% 0%, rgba(255,255,255,.08), transparent 70%),
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 20px 20px;
}
.h-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 84px; }
.h-hero-copy h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
.h-hero-copy .hl { color: var(--accent); }
.h-hero-copy .hl::after { /* hand-drawn underline */
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 90 4 197 9' fill='none' stroke='%23F39200' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .9;
}
.h-hero-copy p { font-size: clamp(17px, 1.8vw, 20.5px); color: rgba(255,255,255,.82); margin: 18px 0 28px; max-width: 34em; line-height: 1.7; }
.h-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.h-btn { height: 54px; padding: 0 26px; font-size: 18px; border-radius: 10px; gap: 10px; --slide: #fff; }
.h-btn:hover { color: var(--deep); }
.h-call { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 18px; font-family: "Poppins", sans-serif; }
.h-call small { display: block; font-family: "Hind Siliguri", sans-serif; font-weight: 400; font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.2; }
.h-call-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.35); transition: background .2s, border-color .2s; }
.h-call:hover .h-call-ic { background: rgba(255,255,255,.12); border-color: #fff; }

.h-hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.h-hero-img { width: 100%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.3)); }
.h-collage { position: relative; width: min(100%, 470px); aspect-ratio: 1 / .92; }
.h-collage::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 55%, white), color-mix(in srgb, var(--accent) 20%, transparent) 70%); opacity: .55; }
.h-tile { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 22px 40px -16px rgba(0,0,0,.45); overflow: hidden; color: var(--ink); transition: transform .3s ease; }
.h-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.h-tile span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px 10px; font-size: 13.5px; line-height: 1.3; }
.h-tile b { color: var(--primary); font-family: "Poppins", sans-serif; white-space: nowrap; }
.h-tile:hover { transform: translateY(-6px) rotate(0deg) !important; }
.h-collage .t1 { width: 54%; left: 23%; top: 4%; z-index: 3; }
.h-collage .t2 { width: 40%; left: 0; top: 40%; transform: rotate(-6deg); z-index: 2; }
.h-collage .t3 { width: 40%; right: 0; top: 34%; transform: rotate(6deg); z-index: 2; }
.h-collage.n1 .t1 { width: 62%; left: 19%; top: 10%; }
.h-collage.n2 .t1 { left: 4%; top: 6%; }
.h-collage.n2 .t2 { left: auto; right: 2%; top: 38%; transform: rotate(5deg); }

/* ---------- trust strip (overlaps the hero) ---------- */
.h-trust { position: relative; z-index: 2; margin-top: -44px; }
.h-trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(31, 74, 63, .45); }
.h-trust-list.n2 { grid-template-columns: repeat(2, 1fr); }
.h-trust-list.n3 { grid-template-columns: repeat(3, 1fr); }
.h-trust-list.n5 { grid-template-columns: repeat(5, 1fr); }
.h-trust-list.n6 { grid-template-columns: repeat(6, 1fr); }
.h-trust-list li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.h-trust-list li + li { border-left: 1px solid #edf1ef; }
.h-trust-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: color-mix(in srgb, var(--accent) 80%, black); }
.h-trust-list b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.h-trust-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.h-hero + .h-trust + .h-sec, .h-trust + .h-sec { padding-top: 40px; }
:not(.h-hero) + .h-trust { margin-top: 24px; }

/* ---------- categories ---------- */
.h-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.h-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 4px; border-radius: 14px; }
.h-cat-img { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 6px; background: linear-gradient(160deg, #fff, var(--gold-soft)); box-shadow: inset 0 0 0 1px #e9efec, 0 8px 18px -12px rgba(31,74,63,.35); transition: transform .25s, box-shadow .25s; }
.h-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.h-cat-img i { font-style: normal; font-size: 36.5px; font-weight: 700; color: var(--primary); }
.h-cat:hover .h-cat-img { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--accent), 0 12px 22px -12px rgba(31,74,63,.45); }
.h-cat-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.h-cat small { color: var(--muted); font-size: 13.5px; }
.h-cats.style-card .h-cat { background: #fff; border: 1px solid #e8eeec; padding: 16px 10px; }
.h-cats.style-card .h-cat:hover { border-color: var(--primary); }
.h-cats.style-card .h-cat-img { width: 72px; height: 72px; }

/* ---------- product rows that scroll sideways ---------- */
.product-grid.h-scroll { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 18px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.product-grid.h-scroll > * { scroll-snap-align: start; }

/* ---------- banner slider ---------- */
.h-slider-wrap { padding-top: 18px; }
.h-slider { position: relative; border-radius: 16px; overflow: hidden; background: #e9efed; }
.h-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.h-track::-webkit-scrollbar { display: none; }
.h-slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.h-slide img { width: 100%; height: auto; display: block; }
.h-nav { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.15); opacity: 0; transition: opacity .2s; }
.h-slider:hover .h-nav, .h-nav:focus-visible { opacity: 1; }
.h-nav.prev { left: 14px; } .h-nav.next { right: 14px; }
.h-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.h-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.6); cursor: pointer; transition: width .25s, background .25s; }
.h-dots button.on { width: 22px; background: #fff; }

/* ---------- banners, text+image, reviews ---------- */
.h-banners { display: grid; gap: 14px; }
.h-banners.n2 { grid-template-columns: 1fr 1fr; }
.h-banners.n3 { grid-template-columns: repeat(3, 1fr); }
.h-banner { display: block; border-radius: 14px; overflow: hidden; }
.h-banner img { width: 100%; height: auto; transition: transform .4s; }
a.h-banner:hover img { transform: scale(1.03); }
.h-ti { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.h-ti.no-img { grid-template-columns: 1fr; max-width: 760px; }
.h-ti.pos-left img { order: -1; }
.h-ti img { width: 100%; border-radius: 16px; }
.h-ti h2 { font-size: clamp(23.5px, 3vw, 32px); font-weight: 700; margin-bottom: 12px; }
.h-ti .rich-text { color: var(--ink); font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
.h-reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.h-reviews img { width: 100%; border-radius: 12px; scroll-snap-align: start; box-shadow: var(--shadow); }

/* ---------- call / whatsapp ---------- */
.h-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 28px 32px; border-radius: 18px; color: #fff; background: var(--deep); position: relative; overflow: hidden; isolation: isolate; }
.h-callout::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 18px 18px; }
.h-callout h2 { font-size: clamp(21.5px, 2.6vw, 28px); font-weight: 700; }
.h-callout p { margin: 6px 0 0; color: rgba(255,255,255,.78); }
.h-callout-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.h-callout .btn { gap: 8px; font-family: "Poppins", "Hind Siliguri", sans-serif; }
.h-callout .btn-accent:hover { color: var(--deep); }
.h-wa { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.h-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1024px) {
  .product-grid.h-scroll { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .h-trust-list, .h-trust-list.n5, .h-trust-list.n6 { grid-template-columns: repeat(2, 1fr); }
  .h-trust-list li + li { border-left: 0; }
  .h-trust-list li:nth-child(even) { border-left: 1px solid #edf1ef; }
  .h-trust-list li:nth-child(n+3) { border-top: 1px solid #edf1ef; }
}
@media (max-width: 760px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 34px; padding-bottom: 70px; text-align: center; }
  .h-hero-copy p { margin-left: auto; margin-right: auto; }
  .h-hero-cta { justify-content: center; }
  .h-hero-art { min-height: 0; order: 2; margin-top: 18px; }
  .h-collage { width: min(86%, 290px); }
  .h-hero-copy h1 { font-size: 32px; }
  .h-call { font-size: 17px; }
  .h-tile span { font-size: 12px; padding: 6px 8px 8px; }
  .h-sec { padding: 26px 0; }
  .h-ti, .h-banners.n2, .h-banners.n3 { grid-template-columns: 1fr; }
  .h-ti.pos-left img { order: 0; }
  .h-callout { padding: 22px; text-align: center; justify-content: center; }
  .h-callout-btns { justify-content: center; width: 100%; }
  .h-nav { display: none; }
}
@media (max-width: 640px) {
  .h-cats.style-circle { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 92px; overflow-x: auto; gap: 8px; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; }
  .h-cats.style-circle::-webkit-scrollbar { display: none; }
  .h-cats.style-circle .h-cat { scroll-snap-align: start; }
  .h-cat-img { width: 74px; height: 74px; }
  .h-cat-name { font-size: 14.5px; }
  .h-cats.style-card { grid-template-columns: repeat(2, 1fr); }
  .product-grid.h-scroll { grid-auto-columns: 46%; gap: 10px; }
  .h-trust-list li { padding: 14px 12px; gap: 9px; }
  .h-trust-ic { width: 38px; height: 38px; border-radius: 10px; }
  .h-trust-ic svg { width: 20px; height: 20px; }
  .h-trust-list b { font-size: 14.5px; }
  .h-trust-list small { font-size: 12.5px; }
  .h-head { margin-bottom: 14px; }
}
@media (max-width: 640px) {
  .h-head h2 { font-size: 22.5px; }
  .h-more { font-size: 16px; }
  .h-hero-copy p { font-size: 17.5px; }
  .h-trust-list b { font-size: 15.5px; }
  .h-trust-list small { font-size: 13.5px; }
  .h-cat-name { font-size: 15.5px; }
  .h-cat small { font-size: 14px; }
  .h-callout p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .h-track { scroll-behavior: auto; } .h-tile, .h-cat-img, .h-banner img { transition: none; } }

/* call banner: compact */
.h-callout { padding: 18px 24px; border-radius: 14px; gap: 12px 24px; }
.h-callout h2 { font-size: clamp(19.5px, 2vw, 22.5px); }
.h-callout p { margin-top: 3px; font-size: 15.5px; }
.h-callout .btn { height: 44px; padding: 0 18px; font-size: 16.5px; }
.h-callout .btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .h-callout { padding: 18px 16px; } .h-callout .btn { flex: 1 1 0; justify-content: center; padding: 0 12px; } }

/* customers always see the light design, even in dark mode */
:root { color-scheme: only light; }

/* hero picture tiles: whole product name (two lines at most), price under it */
.h-tile span { flex-direction: column; justify-content: flex-start; gap: 2px; }
.h-tile span em { font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
