@import url("https://googleapis.com");

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

:root {
  --black: #0d0d0d;
  --navy: #111827;
  --white: #ffffff;
  --offwhite: #f5f5f5;
  --accent: #1e3a5f;
  --gold: #c9a84c;
  --red: #e63946;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --footer-bg: #5e84c7;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  /* background: var(--white); */
  color: var(--text);
}

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  /* position: sticky; */
  top: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 62px;
  gap: 32px;
}

.navbar-brand {
  font-family: "Afcad", sans-serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 1px;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  gap: 50px;
  list-style: none;
  margin-left: 150px;
}
.navbar-links a {
  font-family: "Poppins", sans-serif;
  color: var(--black);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.navbar-links a:hover {
  color: var(--navy);
}

.navbar-search {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
  display: flex;
  align-items: center;
  background: #f0f0f0;
  /* border: 1px solid black; */
  border-radius: 50px;
  padding: 5px 14px;
  gap: 8px;
}
.navbar-search svg {
  opacity: 0.6;
  flex-shrink: 0;
  color: #0d0d0d;
}
.navbar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--black);
  font-size: 15px;
  width: 100%;
  padding: 8px 0;
}
.navbar-search input::placeholder {
  color: black;
}

/* Pre-login actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}
.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.search-submit {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  color: white;
}
.search-clear {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: rgba(243, 57, 57, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.search-clear:hover {
  color: white;
}

.btn-signup {
  background: var(--white);
  color: var(--navy);
  border: 1px solid black;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-signup:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

/* Post-login icon group */
.nav-user-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── HERO BANNER ────────────────────────────────────── */
.hero {
  margin-top: 5px;
  position: relative;
  overflow: hidden;
  height: 370px;
  background: #1a2744;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #0d1b35 0%, #1a3560 45%, #2a4a7f 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 520px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 76px;
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 2px;
}
.hero-title span {
  color: var(--gold);
}
.hero-subtitle {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 320px;
}
.btn-hero {
  margin-top: 28px;
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-hero:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 55%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}

/* ── SECTIONS ───────────────────────────────────────── */
.section {
  padding: 52px 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}
.section-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.section-link:hover {
  text-decoration: underline;
}

/* ── CAROUSEL ───────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
}
.carousel-track-outer {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.carousel-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.06);
}
.carousel-btn.prev {
  left: -18px;
}
.carousel-btn.next {
  right: -18px;
}
.carousel-btn svg {
  pointer-events: none;
}

/* ── PRODUCT CARD ───────────────────────────────────── */
.product-card {
  flex: 0 0 calc(25% - 15px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: #f8f8f8;
}
.product-card-body {
  padding: 12px 14px 16px;
}
.product-card-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 5px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-cat {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
}
.star {
  color: #f59e0b;
  font-size: 11px;
}
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
.price-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.price-mrp {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-off {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: #fef2f2;
  padding: 1px 5px;
  border-radius: 4px;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin-right: 6px;
}

/* ── MID BANNER ─────────────────────────────────────── */
.mid-banner {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0d0d0d 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
}
.mid-banner-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
}
.mid-banner-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mid-banner-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 64px;
  color: var(--white);
  line-height: 1;
  letter-spacing: 1px;
}
.mid-banner-brand em {
  font-style: italic;
  color: var(--gold);
}
.mid-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}
.mid-banner-img {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-radius: 28px 28px 0 0;
  padding: 56px 60px 32px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-card {
    flex: 0 0 calc(33.33% - 14px);
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    gap: 16px;
  }
  .navbar-links {
    display: none;
  }
  .hero {
    height: 280px;
  }
  .hero-content {
    padding: 0 28px;
  }
  .hero-title {
    font-size: 52px;
  }
  .section {
    padding: 36px 20px;
  }
  .product-card {
    flex: 0 0 calc(50% - 10px);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer {
    padding: 40px 28px 24px;
    border-radius: 18px 18px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

.cat-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.cat-modal-overlay.open {
  display: block;
}

.cat-modal {
  display: none;
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: 95vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 201;
  padding: 24px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.cat-modal.open {
  display: block;
}

.cat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cat-modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cat-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 0 4px;
}
.cat-modal-close:hover {
  color: #111;
}

.cat-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

.cat-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
  transition: transform 0.2s;
}
.cat-modal-item:hover {
  transform: translateY(-3px);
}

.cat-modal-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}
.cat-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-modal-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.product-card {
  position: relative;
}

.card-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border, #e5e7eb);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.card-wishlist-btn:hover {
  border-color: var(--red, #e63946);
}
.card-wishlist-btn.wishlisted svg {
  fill: var(--red, #e63946);
  stroke: var(--red, #e63946);
}
