/* Pantaloons app prototype — home top section and Categories screen (see nav.js).
   Structure follows the Myntra app; colours, type and tiles follow Pantaloons. */

/* ================= home top section ================= */
.mh, .mh-sticky, .mh-rail { --panel: #e2f6f6; --panel2: #f3fbfb; --tabtx: #007f83; }
.mh-women { --panel: #fde9ef; --panel2: #fff6f8; --tabtx: #b0335c; }
.mh-men { --panel: #e3edf8; --panel2: #f5f9fd; --tabtx: #2b5a8f; }
.mh-kids { --panel: #fff1c9; --panel2: #fffaea; --tabtx: #8a6100; }
.mh { background: linear-gradient(180deg, #00a7ac, #06b1b5); color: #fff; padding: 4px 12px 2px; }
.mh-top { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.mh-loc { display: flex; align-items: center; gap: 5px; font-size: 11.5px; min-width: 0; flex: 1; text-align: left; }
.mh-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-loc b { font-weight: 600; }
.mh-loc svg { width: 14px; height: 14px; flex: none; }
.mh-loc svg:last-child { width: 12px; height: 12px; }
.mh-60 { display: inline-flex; align-items: center; gap: 2px; background: var(--yellow); color: #000; font-weight: 700; font-size: 10px; padding: 3px 7px; border-radius: 12px; flex: none; }
.mh-60 svg { width: 10px; height: 10px; }
.mh-pts { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .95); color: #000; font-weight: 700; font-size: 11px; padding: 3px 9px 3px 3px; border-radius: 14px; flex: none; }
.mh-pts .coin { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #ffd85a, #f0a800); color: #fff; display: grid; place-items: center; }
.mh-pts .coin svg { width: 11px; height: 11px; }

.mh-sticky { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, #06b1b5, #12b9bd); padding: 6px 0 0; }
/* a strip of the panel colour under the tabs, so the active folder tab stays attached when scrolled */
.mh-sticky::after { content: ""; display: block; height: 6px; background: var(--panel); box-shadow: 0 6px 10px -6px rgba(0, 60, 62, .18); }
.mh-search { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 12px; }
.mh-field { flex: 1; min-width: 0; height: 40px; background: #fff; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 8px; color: #666; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 70, 72, .15); }
.mh-mark { position: relative; width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--teal); overflow: hidden; }
/* the wordmark, cropped to its first letter */
.mh-mark img { position: absolute; left: 5.5px; top: 4.5px; height: 13px; width: auto; max-width: none; filter: brightness(0) invert(1); clip-path: inset(0 calc(100% - 11.5px) 0 0); }
.mh-field .ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-field .ph b { font-weight: 500; color: #222; }
.mh-in { width: 32px; height: 32px; display: grid; place-items: center; color: #444; }
.mh-in:first-of-type { border-left: 1px solid #eee; }
.mh-in svg { width: 19px; height: 19px; }
.mh-ic { position: relative; width: 34px; height: 36px; display: grid; place-items: center; color: #fff; flex: none; }
.mh-ic svg { width: 22px; height: 22px; }
.mh-ic .dotn { position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--yellow); color: #000; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }

.mh-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 10px 8px 0 12px; }
.mh-tabs button[data-k] { flex: 1; height: 34px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .92); border-radius: 12px 12px 0 0; position: relative; transition: background .2s, color .2s; }
.mh-tabs button[data-k].on { background: var(--panel); color: var(--tabtx); height: 38px; }
/* folder-tab flare where the active tab meets the panel */
.mh-tabs button[data-k].on::before, .mh-tabs button[data-k].on::after { content: ""; position: absolute; bottom: 0; width: 12px; height: 12px; }
.mh-tabs button[data-k].on::before { left: -12px; background: radial-gradient(circle at 0 0, transparent 11.5px, var(--panel) 12px); }
.mh-tabs button[data-k].on::after { right: -12px; background: radial-gradient(circle at 12px 0, transparent 11.5px, var(--panel) 12px); }
.mh-grid { width: 38px; height: 32px; margin-left: 8px; margin-bottom: 5px; border-radius: 9px; background: rgba(255, 255, 255, .95); color: var(--teal-dk); display: grid; place-items: center; flex: none; }
.mh-grid svg { width: 19px; height: 19px; }

.mh-rail { background: linear-gradient(180deg, var(--panel), var(--panel2) 70%, #fff); display: grid; grid-auto-flow: column; grid-template-rows: auto auto; gap: 12px 6px; overflow-x: auto; padding: 8px 12px 14px; scrollbar-width: none; justify-content: start; }
.mh-rail::-webkit-scrollbar { display: none; }
.mh-rail.one { grid-template-rows: auto; padding-bottom: 16px; }
.mt { width: 66px; text-align: center; font-size: 10.5px; font-weight: 500; color: #222; }
.mt .im { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 5px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(0, 60, 62, .12); color: var(--teal); }
.mt .im img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.mt .im svg { width: 28px; height: 28px; }
.mt.big { width: 74px; }
.mt.big .im { width: 70px; height: 70px; border-radius: 18px; }
.mt.big .lb { font-weight: 600; }
.mt .lb { display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt.ev .im { overflow: visible; box-shadow: 0 0 0 2px var(--yellow), 0 0 18px 2px rgba(255, 201, 41, .75); animation: glow 2.4s ease-in-out infinite; }
.mt.ev .im img { border-radius: inherit; }
.mt.ev .evtag { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 6px; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px var(--yellow), 0 0 26px 6px rgba(255, 201, 41, .55); } }

/* ================= Categories screen ================= */
.cg { display: flex; height: calc(100% - 50px); }
.cg-rail { width: 86px; flex: none; background: #f2f5f5; overflow-y: auto; scrollbar-width: none; padding-bottom: 30px; }
.cg-rail::-webkit-scrollbar { display: none; }
.cg-rail button { position: relative; display: block; width: 100%; padding: 10px 6px 9px; font-size: 10.5px; line-height: 1.25; color: #444; text-align: center; }
.cg-rail button .im { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 5px; border-radius: 14px; overflow: hidden; background: #fff; color: var(--teal); }
.cg-rail button .im img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.cg-rail button .im svg { width: 26px; height: 26px; }
.cg-rail button.on { background: #fff; color: var(--teal-dk); font-weight: 700; }
.cg-rail button.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3.5px; border-radius: 0 3px 3px 0; background: var(--teal); }
.cg-rail button.on .im { box-shadow: 0 0 0 2px var(--teal); }
.cg-main { flex: 1; overflow-y: auto; padding: 10px 12px 0; scrollbar-width: none; }
.cg-main::-webkit-scrollbar { display: none; }
.cg-main section { padding-bottom: 14px; border-bottom: 6px solid #f4f6f6; margin-bottom: 12px; }
.cg-store { display: flex; align-items: center; gap: 8px; width: 100%; height: 64px; border-radius: 12px; background: linear-gradient(110deg, #dff4f4, #f6fbfb 60%); padding-left: 12px; overflow: hidden; text-align: left; margin-bottom: 6px; }
.cg-store span { flex: 1; }
.cg-store small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dk); font-weight: 700; }
.cg-store b { font-size: 15px; color: #0b3c3e; }
.cg-store img { width: 72px; height: 64px; object-fit: cover; object-position: top; }
.cg-store > svg { width: 16px; height: 16px; color: var(--teal-dk); margin-right: 8px; }
.cg-h { font-size: 14px; margin: 2px 0 4px; }
.cg-main h4 { font-size: 12.5px; font-weight: 700; margin: 12px 0 8px; color: #222; }
.cg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; }
.ct { text-align: center; font-size: 10.5px; color: #333; min-width: 0; }
.ct .c { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 5px; border-radius: 50%; background: #eef2f2; overflow: hidden; color: var(--teal); }
.ct .c img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.ct .c .ico svg { width: 28px; height: 28px; }
.ct .lb { display: block; line-height: 1.25; }
.ct.ev .c { box-shadow: 0 0 0 2px var(--yellow), 0 0 14px rgba(255, 201, 41, .8); overflow: visible; }
.ct.ev .c img { border-radius: 50%; }
.ct.br .c::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.ct.br .bn { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 800; font-size: 9.5px; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; padding: 6px; }
