body {
  background: #f8f8f8;
}
/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  padding-top: 0px; /* space for floating header */
}

/* =========================
   FLOATING HEADER
========================= */
.header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  z-index: 1000;
}

.container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* =========================
   LOGO
========================= */
.logo img {
  height: 40px;
}

/* =========================
   MENU
========================= */
.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.menu-item {
 position: relative;
}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 20px;
  transition: 0.3s;
}

.menu-link:hover {
  background: #007bff;
  color: #fff;
}

/* =========================
   MEGA MENU (DESKTOP)
========================= */
.mega-menu {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);

  width: 95%;
  max-width: 1200px;

  background: #fff;
  padding: 30px 20px;

  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);

  z-index: 999;

  /* ✅ CORRECT */
  display: none;
  grid-template-columns: repeat(5, 220px);
justify-content: space-between;
  gap: 30px;
}

.menu-item:hover .mega-menu {
  display: grid;
}

.mega-column {
  display: flex;
  flex-direction: column;
}

.mega-title {
  font-size: 13px;
  font-weight: 700;
  color: #ff3f6c;
  margin-bottom: 10px;
}

.mega-column ul {
  display: block !important;   /* 🔥 FORCE VERTICAL */
}

.mega-column li {
  display: block !important;   /* 🔥 THIS FIXES YOUR ISSUE */
  width: 100%;
}

.mega-column li a {
  display: block;
  font-size: 13px;
  color: #282c3f;
  text-decoration: none;
  line-height: 1.6;
}

.mega-column li a:hover {
  color: #ff3f6c;
}

.mega-menu {
  align-items: start;
}

.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 40px;   /* adjust if needed */
}

/* =========================
   ICONS
========================= */
.header-icons {
  display: flex;
  gap: 15px;
}

.icon {
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   HAMBURGER
========================= */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  body {
    padding-top: -10px;
  }

  .container {
    border-radius: 10px;
  }

  .menu-toggle {
    display: block;
  }

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh; /* 🔥 FULL HEIGHT */

    background: #fff;

    z-index: 1000; /* 🔥 ABOVE EVERYTHING */

    transition: 0.3s ease;
  

   
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    display: block;
  }


  .arrow {
    font-size: 18px;
    cursor: pointer;
    transform: rotate(0deg);
    transition: 0.3s;
  }

  .menu-item.active > .mega-menu {
    display: block;
  }

  .menu-item.active > .menu-row .arrow {
    transform: rotate(90deg);
  }


@media (max-width: 768px) {

  .nav .mega-menu {
    display: none;
    position: static;
    box-shadow: none;
    padding: 10px 0;
  }

  .menu-item.active > .mega-menu {
    display: block !important;   /* 🔥 CRITICAL FIX */
  }

}

  .mega-column ul {
    padding-left: 15px;
  }
}


.banner-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.banner-slider .slide {
  display: none;
  width: 100%;
}

.banner-slider .slide.active {
  display: block;
}

.banner-slider img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  z-index: 999; /* just below menu */

  display: none;
}

#menuOverlay.active {
  display: block;
}

@media (max-width: 768px) {
  .banner-slider {
    height: 280px;
    width: 100%;
  }
}

/* HIDE ARROW IN DESKTOP */
.arrow {
  display: none;
}

@media (max-width: 768px) {
  .arrow {
    display: block;
  }
}

@media (max-width: 768px) {

  .nav ul {
    display: block !important;
    padding: 0;
  }

  .menu-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

}

@media (max-width: 768px) {

  .menu-link {
    display: block;
    width: 100%;
    padding: 12px;
    color: #000;   /* ensure visible */
  }

}

@media (max-width: 768px) {

  .nav {
    z-index: 9999;   /* 🔥 bring front */
  }

}

@media (min-width: 769px) {
  .back-btn {
    display: none !important;
  }
}

/* ❌ Hide in desktop */
.mobile-menu-banner,
.mobile-static-menu {
  display: none;
}

.header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* ✅ WHEN SCROLLED */
.header.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

.header.scrolled .container {
  border-radius: 0;
}





.home-section {
  margin: 30px 0;
}

.sec-header h2 {
  font-size: 24px;
  font-weight: bold;
}

.sec-header p {
  color: #777;
  font-size: 14px;
}

.sec-grid {
  display: grid;
  gap: 15px;
  overflow-x: auto;
}

.img-block img {
  width: 100%;
  border-radius: 10px;
}

.pl-img {
  width: 100%;
  aspect-ratio: 3 / 4;   /* 🔥 BEST FOR FASHION */
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.pl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔥 KEY FIX */
  display: block;
}

.img-block {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5px;
}





/* DOTS */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dots span {
  width: 8px;
  height: 8px;
  background: #ccc;
  display: inline-block;
  margin: 4px;
  border-radius: 50%;
}

.dots .active {
  background: #000;
}

/* CENTER HEADER */
.sec-header {
  text-align: center;
  margin-bottom: 20px;
}

/* FADE ANIMATION */
.home-section {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
}

.home-section.show {
  opacity: 1;
  transform: translateY(0);
}
/* HIDE SCROLLBAR */
.scroll-x {
  scrollbar-width: none; /* Firefox */
}

.scroll-x::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}
.scroll-x {
  display: flex !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 15px;
}

.scroll-x > * {
  min-width: 25%;
  flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .scroll-x > * {
    min-width: 70%;
  }
}


/* MOBILE FIX - FORCE 2 COLUMN */
@media (max-width: 768px) {
  .sec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
