/* =========================
   TailMate CSS (from scratch)
   Preserves original visuals
   ========================= */

/* Design tokens */
:root {
  --pink: #ED3B5A;
  --pink-2: #F04668;
  --green: #2E9B68;
  --red: #E5493F;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;

  --n-50: #f8fafc;
  --n-100: #f1f5f9;
  --n-200: #e5e7eb;
  --n-300: #d1d5db;
  --n-700: #374151;

  --shadow-1: 0 4px 16px rgba(17,24,39,.08);
  --shadow-2: 0 12px 30px rgba(17,24,39,.12);
  --ring-pink: 0 0 0 3px rgba(237,59,90,.18);

  --container: 1500px;
  --radius: 14px;
  --radius-pill: 20px;

  --safe-bottom: max(16px, env(safe-area-inset-bottom));

  /* Skeleton */
  --skel-base: var(--n-100);
  --skel-mid:  var(--n-200);
}

/* Base */
html, body { height: 100%; }
body {
  overflow-x: hidden;
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(130%) blur(10px);
  background: #ED3655;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 100px; max-width: var(--container); margin: 0 auto;
}
.brand {
  width: clamp(84px, 9vw, 120px);
  height: 70px;
  display: block; overflow: hidden; padding-top: 2px; padding-left: 1%;
}
.brand video { width: 50%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 5vw, 70px); }
.nav-links a { color: #fff; font-weight: 600; font-size: 16px; opacity: .95; }
.nav-links a:hover { opacity: 1; text-shadow: 0 0 1px rgba(255,255,255,.3); }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
#userPhoto { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }

/* Mobile nav */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.14); position: relative; cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
}
.nav-toggle__bar { top: 50%; transform: translate(-50%,-50%); }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

@media (max-width: 680px) {
  .brand { width: 50%; overflow: hidden; height: 70px; }
}
@media (max-width: 960px) {
  .nav { padding: 0 16px; flex-wrap: nowrap; }
  .nav-toggle { display: inline-block; }
  #primary-nav.nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(237,59,90,.98), rgba(240,70,104,.98));
    display: grid; gap: 12px;
    transform-origin: top; transform: scaleY(0);
    opacity: 0; pointer-events: none;
  }
  #primary-nav.nav-links.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 16px; flex-wrap: nowrap; }
  .nav-links { gap: clamp(16px, 5vw, 40px); }
  .nav-actions { flex-shrink: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; padding: 12px 22px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  min-height: 44px;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring-pink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #fff; box-shadow: 0 6px 16px rgba(237,59,90,.35);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; border: 2px solid #fff; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.65); background: transparent; color: #fff;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
}
.btn-link { color: var(--pink); font-weight: 700; }
.btn-link:hover { text-decoration: underline; }

/* Hero */
.hero { width: 100%; margin: 0; padding: 0; overflow: hidden; }
.hero-inner {
  position: relative; width: 100%;
  min-height: 100vh; min-height: 100svh; min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.10));
}
.hero-inner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.15));
  z-index: 1; pointer-events: none;
}
.slider-wrapper { position: absolute; inset: 0; max-width: 100%; overflow: hidden; }
.hero-content {
  position: absolute; z-index: 2;
  top: 58%; left: 17%; transform: translate(-50%, -50%);
  text-align: start; color: #fff; padding: 20px; max-width: 80%;
}
.hero-content h1,
.hero-content .sub,
.hero-content .desc {
  text-shadow: 0 3px 8px rgba(157,146,146,0.45);
}
.eyebrow { color: #ffe9ee; font-size: 14px; font-weight: 600; letter-spacing: .4px; margin: 0 0 6px; opacity: .95; }
h1 { font-weight: 800; line-height: 1.04; font-size: clamp(34px, 5.4vw, 40px); margin: 0 0 8px; }
.sub { font-weight: 700; font-size: clamp(16px, 2.2vw, 24px); margin: 0 0 8px; color: #fff4f6; }
.desc { font-weight: 400; font-size: clamp(14px, 1.6vw, 20px); margin: 0 0 22px; color: #fff6f8; max-width: 760px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: start; gap: clamp(16px, 6vw, 100px); }
.benefits {
  display: flex; gap: 18px; flex-wrap: wrap; padding: 0;
  list-style: none; color: #fffeff; font-weight: 600; font-size: 14px;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .hero-content { transform: translate(-50%, -50%) scale(.95); }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { display: none; }
  .cta-row { display: flex; flex-direction: column; }
  .benefits li { display: inline; }
  .hero { height: 80%; overflow: hidden; }
}
@media (max-width: 992px) {
  .hero-content { left: 28%; transform: translate(-50%, -50%) scale(.9); }
}
@media (max-width: 820px) {
  .hero-content { left: 28%; transform: translate(-50%, -50%) scale(.86); max-width: 100%; top: 70%; }
}
@media (max-width: 680px) {
  .hero-content { transform: translate(-50%, -50%) scale(.8); }
  .benefits { font-size: 13px; }
}
@media (max-width: 480px) {
  .s1 { object-position: 0% 100%; }
  .hero-content { transform: translate(-50%, -50%) scale(.72); }
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(237,59,90,.09), transparent 50%),
    radial-gradient(120% 120% at 90% 90%, rgba(46,155,104,.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #ffffff);
  border-top: 1px solid var(--n-200);
}
.cta-band-inner { padding: 48px 16px; display: grid; gap: 16px; text-align: center; }
.cta-band h2 { margin: 0; font-size: clamp(22px, 3.6vw, 32px); }
.signup { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup input {
  width: min(520px, 90vw); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--n-300);
  font: inherit; outline: none; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.signup input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(237,59,90,.12); }

/* Footer */
.footer { background: #0f172a; color: #e5e7eb; margin-top: 10px; }
.footer-inner { padding: 28px 16px 46px; display: grid; gap: 16px; text-align: center; }

/* Carousel images */
.carousel-inner img { display: block; width: 100%; height: auto; margin: 0; padding: 0; }
@media (max-width: 768px) {
  .carousel-item img {
    width: 100%; height: auto; object-fit: cover; object-position: center; max-height: 100vh;
  }
  .carousel-item .s1 { object-position: calc(50% - 100px) center; }
  .s2 { object-position: calc(50% + 37px) center; }
  .s3 { object-position: calc(50% + 37px) center; }
}
@media (max-width: 480px) {
  .carousel-item img { height: 80vh; object-fit: cover; }
}
@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-inner { min-height: 30vh; }
  .carousel-item img { height: 30vh; object-fit: cover; }
  .slider-wrapper { height: 80vh; }
}

/* Login buttons pinned bottom */
.login-buttons {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--safe-bottom);
  z-index: 1000;
  display: flex;
  gap: 12px;
  width: min(92vw, 560px);
  padding: 0 8px;
  justify-content: center;
  pointer-events: none;
}
.login-buttons .btn {
  pointer-events: auto;
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 480px) { .login-buttons { gap: 8px; width: min(96vw, 520px); } }

/* Popup overlay */
.popup-overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.popup-overlay.active { opacity: 1; pointer-events: auto; }
.popup {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  transform: translateY(20px) scale(.98);
  transition: transform .28s ease;
}
.popup-overlay.active .popup { transform: translateY(0) scale(1); }
.no-scroll { overflow: hidden; }

/* Preloader */
#preloader {
  position: fixed; inset: 0; background: #0b0f17;
  display: flex; justify-content: center; align-items: center; flex-direction: column;
  z-index: 9999; transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader { display: flex; gap: 10px; }
.dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink);
  animation: bounce 0.6s infinite alternate;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-15px); } }
body.loaded #preloader { opacity: 0; visibility: hidden; }

/* Page fade-in */
.page-content {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
body.loaded .page-content { opacity: 1; transform: translateY(0); }

/* Horizontal card scrollers */
.horizontal-cards-oversized {
  display: flex; flex-direction: row; height: auto; width: auto;
  overflow-x: auto; margin-left: 2%; scroll-behavior: smooth;
}
.horizontal-cards-oversized > .h-card-1 {
  width: 40%;
  margin: 2%;
}

/* Generic card */
.h-card-1 {
  height: auto; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-con {
  width: 100%; height: 15rem; overflow: hidden;
  display: flex; justify-content: center; align-items: center; position: relative;
}
.img-con img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 2; opacity: 0; transition: opacity .28s ease;
}
.img-con.loaded img { opacity: 1; }

/* Card content text */
.content { display: flex; align-self: flex-start; width: 100%; flex-direction: column; height: auto; text-overflow: ellipsis; }
.h-card-1 .content { padding: 8px 10px 12px; }

.content p:nth-of-type(1) {
  font-size: 0.7em; width: 100%; margin: 2%; margin-left: 5%;
  font-family: 'Poppins', sans-serif; color: var(--pink-2); font-weight: 700;
}
.content p:nth-of-type(2) {
  font-size: 0.7em; width: 100%; margin: 1%; margin-top: 2%;
  font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--muted);
}
.content p:nth-of-type(3) {
  font-size: 0.9em; width: 100%; display: inline-block; margin: 2%; margin-left: -43%;
  margin-top: 2%;
  font-family: 'Poppins', sans-serif; color: var(--green); font-weight: 700;
}

#title { margin: 0 0 6px 0; }

.product-desc {
  display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--muted); line-height: 1.35; font-size: 0.62rem;
}
.product-desc--2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; white-space: normal;
}

/* Horizontal 2-up scroller behavior */
.scroller {
  display: flex; gap: 1%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 12px 8px; -webkit-overflow-scrolling: touch;
}
.scroller .h-card-1 {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  scroll-snap-align: start;
}
.scroller::-webkit-scrollbar { display: none; }
@media (max-width: 420px) {
  .scroller .h-card-1 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .scroller .h-card-1 { flex: 0 0 33.33%; max-width: 33.33%; }
}

/* Prices */
.price-offer,
.price-offer.v-offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.price, .v-price { font-weight: 800; color: #e11d48; }
.offered_price {
  text-decoration: line-through;
  position: relative;
  left: -20%;
  opacity: 0.85;
  color: #9ca3af;
}
.offer_percent, .offer_percent.v-percent {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.8rem;
}

/* Category tiles */
.category { width: auto; height: auto; padding: 1%; }
.parent {
  display: grid; margin-top: 3%;
  grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 12px; grid-row-gap: 12px; height: 41em;
}
.cat-img-con {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; justify-content: center; align-items: center; border-radius: 12px;
}
.cat-img-con img {
  width: 100%; height: 100%; position: relative;
  object-fit: cover; object-position: center 10%; display: block;
}
.cat-img-con p {
  position: absolute; bottom: 1%; left: 5%;
  padding: 6px 12px; background: rgba(0, 0, 0, 0.5);
  border-radius: 8px; color: #fff; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
  text-align: center; white-space: nowrap;
}

/* Promo banner */
.promo-banner {
  height: 8rem;
  border-radius: 12px;
  margin: 2%;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #F5405C, #FF6A84);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem 2rem; color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-content { display: flex; flex-direction: column; justify-content: center; width: 60%; }
.glow-p { font-weight: 600; letter-spacing: 0.2px; margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.timer {
  font-size: 1.8rem; font-weight: 700; background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem; border-radius: 10px; font-family: monospace; width: fit-content; text-align: center;
}
.promo-image { width: 40%; display: flex; justify-content: flex-end; padding: 5%; }
.promo-image img { height: 95%; border-radius: 8px; object-fit: cover; width: 100%; }

/* Hoodie banner + vertical product grid */
.hoodie-banner {
  padding: 1%; width: 100%; display: flex; justify-content: center; align-items: center;
  height: 20rem; overflow: hidden; border-radius: 12px; margin: 0;
}
.polo_cards { display: flex; width: 100%; height: 41em; margin: 0; }
.polo_cards > .parent {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; grid-auto-rows: auto; overflow-y: auto; margin-left: 0%; padding: 2%;
  align-items: stretch;
}

/* Ensure vertical cards fill their grid columns */
.polo_cards .h-card-1 { width: 100%; margin: 0; }
.polo_cards .v-card { width: 100%; height: 100%; }

/* Vertical card layout */
.polo_cards .h-card-1 {
  display: flex; flex-direction: column; height: 20rem; border-radius: 12px; overflow: hidden;
}
.polo_cards .img-con { flex: 0 0 12rem; height: 12rem; }
.polo_cards .content.v-container {
  display: grid; grid-template-rows: auto auto 1fr auto; row-gap: 6px; padding: 8px 10px 12px;
}

/* Title clamp (3 lines in both variants) */
.title,
.v-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2;
  max-height: calc(1.2em * 3);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Description clamp (~2 lines in vertical) */
.product-desc.v-oneline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.2;
  max-height: calc(1.2em * 2);
}

/* Price row at bottom, uniform columns */
.price-offer.v-offer {
  align-self: end;
  display: grid !important;
  grid-template-columns: auto auto auto;  /* selling | mrp | percent */
  align-items: center;
  column-gap: 10px;
  width: 100%;
  line-height: 1;
  min-height: 1.2rem;
}
.polo_cards .price.v-price {
  font-size: 0.95rem !important;
  font-weight: 800;
  color: #e11d48;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Reset horizontal offset for vertical MRP */
.offered_price.v-price {
  position: static;
  left: auto;
  text-decoration: line-through;
  opacity: 0.85;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer_percent.v-percent {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* Skeleton Loader + Shimmer */
.skel-box, .skel-line, .skel-chip, .skel-img {
  position: relative;
  background: linear-gradient(100deg, var(--skel-base) 20%, var(--skel-mid) 40%, var(--skel-base) 60%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s ease-in-out infinite;
  border-radius: 10px;
}
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Card skeleton shells */
.h-card-1.skel {
  height: auto;
  min-height: 18rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
}
.h-card-1.skel .img-con { height: 12rem; }
.h-card-1.skel .img-con .skel-img { width: 100%; height: 100%; border-radius: 0; }
.h-card-1.skel .content { padding: 8px 10px 12px; display: grid; gap: 8px; }

/* Skeleton lines */
.skel-line.title   { height: 16px; width: 90%; }
.skel-line.title-2 { height: 16px; width: 70%; }
.skel-line.desc    { height: 12px; width: 95%; }
.skel-line.desc-2  { height: 12px; width: 80%; }
.skel-price-row { display: inline-flex; gap: 10px; align-items: center; }
.skel-chip { height: 16px; border-radius: 6px; }
.skel-chip.price   { width: 56px; }
.skel-chip.mrp     { width: 48px; }
.skel-chip.percent { width: 40px; }

/* Vertical skeleton mirrors layout */
.polo_cards .h-card-1.skel { display: flex; flex-direction: column; height: 20rem; }
.polo_cards .h-card-1.skel .img-con { flex: 0 0 12rem; height: 12rem; }
.polo_cards .h-card-1.skel .content { display: grid; grid-template-rows: auto auto 1fr auto; row-gap: 6px; }

/* Image skeleton overlay + fade-in */
.img-con .skel-img {
  position: absolute;
  inset: 0;
  border-radius: 0;
  z-index: 1;
}
/* Keep overlay/image corners parity */
.img-con .skel-img, .img-con img { border-radius: 0; }
