/* ═══════════════════════════════════════════════
   Myntra Clone — style.css
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink:    #ff3f6c;
  --pink-d:  #e5265a;
  --text:    #282c3f;
  --muted:   #94969f;
  --border:  #e9e9eb;
  --bg:      #f4f4f5;
  --white:   #fff;
  --t: .18s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Assistant', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ── NAVBAR ──────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(40,44,63,.12);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1340px; margin: 0 auto;
  padding: 0 1.5rem; height: 64px; gap: 1rem;
}
.nav-left  { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.nav-right { display: flex; align-items: center; gap: .75rem; }

/* Logo */
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.logo-img  { width: 36px; object-fit: contain; }
.logo-text { font-size: 1.55rem; font-weight: 800; color: var(--pink); letter-spacing: -.02em; }

/* Categories */
.nav-cats { display: flex; align-items: center; gap: 0; }
.cat-link {
  font-size: .77rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text); text-decoration: none; padding: .5rem .8rem;
  position: relative; white-space: nowrap;
  transition: color var(--t);
}
.cat-link::after {
  content: ''; position: absolute; bottom: 0; left: .8rem; right: .8rem;
  height: 2px; background: var(--pink); transform: scaleX(0);
  transition: transform var(--t); border-radius: 2px;
}
.cat-link:hover, .active-cat { color: var(--pink); }
.cat-link:hover::after, .active-cat::after { transform: scaleX(1); }
.new-badge {
  background: var(--pink); color: #fff;
  font-size: .55rem; padding: .08rem .35rem; border-radius: 3px;
  margin-left: .25rem; vertical-align: middle;
}

/* Search */
.search-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; flex: 1; max-width: 420px; min-width: 160px;
}
.search-icon { color: var(--muted); padding: 0 .7rem; font-size: .85rem; }
.search-input {
  flex: 1; border: none; background: transparent; padding: .55rem .5rem .55rem 0;
  font-family: 'Assistant', sans-serif; font-size: .88rem; color: var(--text);
  outline: none; min-width: 0;
}
.search-input::placeholder { color: var(--muted); font-size: .84rem; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.nav-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .3rem .6rem; text-decoration: none; color: var(--text);
  font-size: .7rem; font-weight: 600; border-radius: 4px;
  position: relative; transition: color var(--t);
  white-space: nowrap;
}
.nav-action i   { font-size: 1.1rem; }
.nav-action:hover { color: var(--pink); }
.back-nav { font-size: .68rem; color: var(--muted); }
.back-nav:hover { color: var(--pink); }
.badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--pink); color: #fff;
  font-size: .55rem; font-weight: 700;
  min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  opacity: 0; transition: opacity var(--t);
}
.badge.show { opacity: 1; }

/* ── HERO CAROUSEL ───────────────────────────────── */
.hero-section { background: var(--bg); }
.carousel { position: relative; overflow: hidden; }
.slides {
  display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.slide { flex: 0 0 100%; position: relative; }
.slide img { width: 100%; height: clamp(260px, 40vw, 520px); object-fit: cover; display: block; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex; align-items: center;
}
.slide-content { padding: 2rem 4rem; color: #fff; }
.slide-sub   { font-size: .75rem; font-weight: 700; letter-spacing: .12em; opacity: .85; margin-bottom: .4rem; }
.slide-title { font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: .4rem; }
.slide-disc  { font-size: .95rem; opacity: .85; margin-bottom: 1.2rem; }
.slide-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white); color: var(--text);
  border: none; border-radius: 4px; padding: .6rem 1.4rem;
  font-family: 'Assistant', sans-serif; font-size: .85rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background var(--t), transform .12s;
}
.slide-btn:hover { background: var(--pink); color: #fff; transform: translateY(-1px); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); border: none; border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; font-size: .9rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.carousel-btn:hover { background: #fff; }
.prev { left: 1rem; }
.next { right: 1rem; }

.carousel-dots { position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.c-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background var(--t); border: none; }
.c-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ── SECTIONS ────────────────────────────────────── */
.section { padding: 2rem 0; }
.section-inner { max-width: 1340px; margin: 0 auto; padding: 0 1.5rem; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.section-head h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.view-all {
  font-size: .82rem; font-weight: 700; color: var(--pink); text-decoration: none;
  display: flex; align-items: center; gap: .3rem; transition: gap var(--t);
}
.view-all:hover { gap: .5rem; }

/* ── CATEGORIES ──────────────────────────────────── */
.categories-sec { background: var(--white); }
.cat-grid { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.cat-grid::-webkit-scrollbar { display: none; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.cat-card span { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.cat-img-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t), box-shadow var(--t);
}
.cat-card:hover .cat-img-wrap { transform: scale(1.06); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.cat-big-icon { font-size: 2rem; color: #555; }

/* ── SALE BANNER ─────────────────────────────────── */
.sale-banner {
  background: linear-gradient(135deg, #ff3f6c 0%, #c0392b 100%);
  padding: 1.8rem 1.5rem;
}
.sale-inner {
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
}
.sale-text .sale-tag {
  display: inline-block; background: rgba(255,255,255,.2); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  padding: .2rem .7rem; border-radius: 3px; margin-bottom: .5rem;
}
.sale-text h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.sale-text h2 span { text-decoration: underline; }
.sale-text p { color: rgba(255,255,255,.8); font-size: .9rem; }
.sale-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.btn-pink {
  background: #fff; color: var(--pink); border: none; border-radius: 4px;
  padding: .7rem 1.6rem; font-family: 'Assistant', sans-serif;
  font-size: .9rem; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

.sale-timer { display: flex; align-items: center; gap: .35rem; }
.st-box {
  background: rgba(255,255,255,.15); border-radius: 4px; padding: .35rem .65rem;
  text-align: center; min-width: 48px;
}
.st-box span { font-size: 1.4rem; font-weight: 800; color: #fff; display: block; line-height: 1; font-family: monospace; }
.st-box small { font-size: .65rem; color: rgba(255,255,255,.75); text-transform: uppercase; }
.st-sep { color: rgba(255,255,255,.7); font-size: 1.4rem; font-weight: 700; }

/* ── FILTERS ─────────────────────────────────────── */
.filters-bar { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.filter-chip {
  background: var(--white); border: 1px solid var(--border);
  color: var(--text); border-radius: 20px; padding: .35rem .9rem;
  font-family: 'Assistant', sans-serif; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: var(--t);
}
.filter-chip:hover, .active-chip {
  background: var(--pink); border-color: var(--pink); color: #fff;
}

/* ── PRODUCT GRID ────────────────────────────────── */
.products-sec { background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.prod-card {
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  background: var(--white); position: relative;
  transition: box-shadow var(--t), transform var(--t);
  cursor: pointer;
}
.prod-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.prod-card:hover .prod-hover-actions { opacity: 1; }

.prod-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg); }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }

.prod-discount-badge {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--pink); color: #fff;
  font-size: .65rem; font-weight: 700; padding: .18rem .5rem; border-radius: 2px;
}
.wishlist-btn {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(255,255,255,.92); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--muted); transition: var(--t);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.wishlist-btn:hover, .wishlist-btn.wishlisted { color: var(--pink); }
.wishlist-btn.wishlisted i { font-weight: 900; }

.prod-hover-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(40,44,63,.9); opacity: 0;
  display: flex; align-items: center; justify-content: center;
  padding: .65rem; transition: opacity var(--t);
}
.add-bag-btn {
  background: #fff; color: var(--text); border: none; border-radius: 4px;
  padding: .45rem 1rem; font-family: 'Assistant', sans-serif;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: .35rem;
  transition: background var(--t), color var(--t);
  width: 100%; justify-content: center;
}
.add-bag-btn:hover { background: var(--pink); color: #fff; }

.prod-info { padding: .7rem .75rem .8rem; }
.prod-brand { font-size: .88rem; font-weight: 800; color: var(--text); margin-bottom: .15rem; }
.prod-name  { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-price-row { display: flex; align-items: center; gap: .45rem; }
.prod-price    { font-size: .95rem; font-weight: 700; color: var(--text); }
.prod-mrp      { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.prod-off      { font-size: .8rem; font-weight: 700; color: #03a685; }
.prod-rating   { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; }
.rating-pill {
  display: inline-flex; align-items: center; gap: .22rem;
  background: #03a685; color: #fff; border-radius: 3px;
  font-size: .72rem; font-weight: 700; padding: .08rem .4rem;
}
.rating-count { font-size: .72rem; color: var(--muted); }

/* ── BRANDS ──────────────────────────────────────── */
.brands-sec { background: var(--bg); }
.brands-grid { display: flex; gap: .75rem; flex-wrap: wrap; }
.brand-card {
  flex: 1; min-width: 80px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 1rem .5rem; text-align: center;
  font-size: .82rem; font-weight: 800; color: var(--text);
  cursor: pointer; transition: var(--t);
}
.brand-card:hover { border-color: var(--pink); color: var(--pink); box-shadow: 0 2px 8px rgba(255,63,108,.1); }

/* ── FEATURE STRIP ───────────────────────────────── */
.features-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 1.5rem; }
.fstrip-inner   { max-width: 1340px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.2rem; }
.fstrip-item    { display: flex; align-items: center; gap: .85rem; }
.fstrip-item i  { font-size: 1.5rem; color: var(--pink); }
.fstrip-item strong { font-size: .88rem; font-weight: 700; display: block; }
.fstrip-item p  { font-size: .76rem; color: var(--muted); margin: 0; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: #f5f5f6; border-top: 1px solid var(--border); }
.footer-top  {
  max-width: 1340px; margin: 0 auto;
  display: flex; gap: 2rem; flex-wrap: wrap; padding: 2.5rem 1.5rem 1.5rem;
}
.footer-col { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: .5rem; }
.footer-col h4 {
  font-size: .72rem; font-weight: 800; letter-spacing: .07em;
  color: var(--muted); margin-bottom: .2rem;
}
.footer-col a {
  font-size: .82rem; color: #696b79; text-decoration: none; transition: color var(--t);
}
.footer-col a:hover { color: var(--pink); }
.footer-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; }

.app-badges { display: flex; flex-direction: column; gap: .5rem; }
.app-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--text); color: #fff; border-radius: 5px;
  padding: .4rem .85rem; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.socials { display: flex; gap: .6rem; margin-top: .4rem; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; text-decoration: none;
  transition: background var(--t);
}
.socials a:hover { background: var(--pink); }

.footer-bar {
  border-top: 1px solid var(--border); padding: 1rem 1.5rem;
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; color: var(--muted);
}
.footer-back {
  color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: .3rem;
  border: 1px solid var(--border); border-radius: 20px; padding: .25rem .75rem;
  font-size: .76rem; transition: var(--t);
}
.footer-back:hover { color: var(--pink); border-color: var(--pink); }

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--text); color: #fff; border-radius: 4px;
  padding: .65rem 1.1rem; font-size: .83rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; max-width: 280px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-cats { display: none; }
  .nav-wrap  { flex-wrap: wrap; height: auto; padding: .6rem 1rem; gap: .5rem; }
  .nav-left  { flex: 1 1 100%; }
  .nav-right { flex: 1 1 100%; }
  .search-wrap { max-width: 100%; }
}
@media (max-width: 600px) {
  .slide-content { padding: 1.5rem; }
  .sale-inner { flex-direction: column; align-items: flex-start; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .footer-top { flex-direction: column; }
  .nav-action span { display: none; }
  .nav-action i { font-size: 1.2rem; }
}
