/* ===== TOP BAR ===== */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:56px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  z-index:80;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}

/* spacing fix */
/* ===== FIX EXTRA GAP BEFORE PRODUCTS ===== */
.page{
  padding-top:70px;
}

.products{
  padding-top:0;   /* 🔴 yahin se unwanted gap aa raha tha */
}

/* ===== LOGO ANIMATION ===== */
/* ===== LOGO SIZE FIX ===== */
.logo-wrap{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===== LOGO ANIMATION (FIXED) ===== */
/* ===== LOGO BASE ===== */
#logoAnim{
  width:56px;
  height:auto;
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  opacity:0;
  transform-origin:center;
  will-change:transform;
}

/* ===== ONE CONTINUOUS ANIMATION ===== */
@keyframes logo-full-path{

  /* CENTER BOOM */
  0%{
    opacity:0;
    transform:
      translate(calc(50vw - 50%), calc(50vh - 50%))
      scale(0.2)
      rotate(0deg);
  }

  25%{
    opacity:1;
    transform:
      translate(calc(50vw - 50%), calc(50vh - 50%))
      scale(1.15)
      rotate(0deg);
  }

  /* FLOATING TRAVEL */
  70%{
    transform:
      translate(30px, 40px)
      scale(1)
      rotate(260deg);
  }

  /* FINAL POSITION (TOP LEFT) */
  100%{
    opacity:1;
    transform:
      translate(12px, 10px)
      scale(1)
      rotate(360deg);
  }
}

/* ===== IDLE FLOAT (AFTER SET) ===== */
@keyframes logo-idle{
  0%,100%{
    transform:translate(12px,10px) rotate(0deg);
  }
  50%{
    transform:translate(12px,6px) rotate(6deg);
  }
}


/* ===== SEARCH BOX (PREMIUM) ===== */
.search-wrap{
  flex: 0 0 60%;   /* 👈 width kam */
  margin: 0 12px;
}


.search-wrap input{
  width:100%;
  padding:8px 50px;
  border-radius:20px;
  border:1px solid #ddd;
  background:#f6f6f6;
  font-size:14px;
  transition:.3s;
}

.search-wrap input:focus{
  background:#fff;
  box-shadow:0 0 0 2px rgba(255,215,0,.35);
  outline:none;
}

/* ===== MENU BUTTON ===== */
.menu-btn{
  background:#000;
  color:#fff;
  border:none;
  border-radius:10px;
  width:36px;
  height:36px;
  font-size:18px;
}



/* ===== RESET ===== */
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f6f6f6;
}

/* ===== BOTTOM NAV (FIXED & BEAUTIFUL) ===== */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:64px;
  background:#fff;
  border-top:1px solid #e5e5e5;
  display:flex;
  justify-content:space-around;
  align-items:center;
  z-index:50;
}

.bottom-nav a{
  flex:1;
  text-align:center;
  text-decoration:none;
  color:#444;
  font-size:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* ===== CONTENT SPACING (VERY IMPORTANT) ===== */
.products,
.page{
  padding-bottom:140px; /* space for bottom nav + icon */
}

/* ===== CONTACT BANNER (COMPACT & FLOATING) ===== */
.contact-banner{
  position:fixed;
  left:12px;
  right:12px;
  bottom:72px; /* above bottom nav */
  background:linear-gradient(135deg,#FFD24D 0%, #FFC107 35%, #FF9800 70%, #FF7A18 100%);
  border-radius:14px;
  padding:12px 14px 14px;
  z-index:55;

  /* animation base */
  opacity:0;
  transform:translateY(24px) scale(0.96);
  transition:
    transform .45s cubic-bezier(.22,.61,.36,1),
    opacity .35s ease;
}

/* OPEN STATE (JS ye class add karta hai) */
.contact-banner.show{
  opacity:1;
  transform:translateY(0) scale(1);
}

/* CLOSED STATE */
.contact-banner.closed{
  transform:translateY(120%);
  opacity:0;
}

/* Close button – right top */
.contact-close{
  position:absolute;
  top:6px;
  right:6px;
  width:26px;
  height:26px;
  border-radius:50%;
  border:none;
  background:#000;
  color:#fff;
  font-size:16px;
  line-height:26px;
  cursor:pointer;
}


/* ===== WHATSAPP FLOAT ICON ===== */
.whatsapp-float{
  position:fixed;
  bottom:32px; /* overlaps bottom nav slightly */
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.35);
  z-index:60;
}

.whatsapp-float img{
  width:30px;
}

.whatsapp-float.hide{
  opacity:0;
  pointer-events:none;
}

/* ===== DESKTOP vs MOBILE POSITIONING ===== */

/* Desktop → RIGHT */
@media (min-width:769px){
  .whatsapp-float{
    right:20px;
  }
}

/* Mobile → CENTER (APP STYLE) */
@media (max-width:768px){
  .whatsapp-float{
    left:50%;
    transform:translateX(-50%);
  }
}
/* ===== DESKTOP: HIDE BOTTOM NAV ===== */
@media (min-width:769px){
  .bottom-nav{
    display:none;
  }
}

/* ===== BANNER SLIDER (FIXED SIZE) ===== */
.banner-slider{
  margin:12px;
  border-radius:12px;
  overflow:hidden;
  max-height:420px;   /* desktop control */
}

.banner-slider .slide img{
  width:100%;
  height:420px;       /* desktop height */
  object-fit:cover;
  display:block;
  border-radius:12px;
}

/* Mobile banner size */
@media (max-width:768px){
  .banner-slider .slide img{
    height:220px;
  }
}

/* ===== CATEGORIES – HARD GRID FIX (SAFE) ===== */
.categories{
  padding:12px;
  display:grid;                       /* 🔴 fallback grid */
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}

/* agar cat-grid present ho */
.categories .cat-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}

/* individual category card */
.cat-card{
  display:flex;
  flex-direction:column;
  width:auto !important;
  max-width:100%;
  background:#fff;
  border-radius:12px;
  padding:10px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  text-decoration:none;
  color:#000;
}

/* image control (banner jaise stretch ko roko) */
.cat-card img{
  width:100%;
  height:90px;                        /* 🔴 fixed height */
  object-fit:cover;
  border-radius:10px;
}

.cat-card h4{
  margin:6px 0 0;
  font-size:13px;
}
/* ===== CONTENT START BELOW TOPBAR ===== */
/* ===== CONTENT START BELOW TOPBAR (FIXED GAP) ===== */
.banner-slider{
  margin-top:56px;   /* sirf ek baar */
}

.categories,
.products,
.page{
  margin-top:0;      /* extra gap hata diya */
}


/* ===== MOBILE MENU ===== */
.mobile-menu{
  position:fixed;
  top:56px; /* topbar ke niche */
  left:0;
  right:0;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
  display:none;
  flex-direction:column;
  z-index:90;
}

.mobile-menu a{
  padding:14px;
  border-bottom:1px solid #eee;
  text-decoration:none;
  color:#333;
  font-size:14px;
}

/* Desktop me hide */
@media (min-width:769px){
  .mobile-menu{
    display:none !important;
  }
}

/* ===== DESKTOP MENU ===== */
.desktop-menu{
  display:none;
  gap:18px;
}

.desktop-menu a{
  text-decoration:none;
  color:#333;
  font-size:14px;
  font-weight:500;
}

/* ===== DESKTOP VIEW ===== */
@media (min-width:769px){
  .desktop-menu{
    display:flex;
  }
  .menu-btn{
    display:none; /* ☰ hide */
  }
}

/* ===== MOBILE VIEW ===== */
@media (max-width:768px){
  .desktop-menu{
    display:none;
  }
}

/* ===== CATEGORY GRID – FINAL HARD FIX ===== */
.categories{
  display:block;
  padding:12px;
}

.categories .cat-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:12px;
}

.categories .cat-card{
  display:flex !important;
  flex-direction:column;
  width:100% !important;
  max-width:100% !important;
  overflow:hidden;
  background:#fff;
  border-radius:12px;
  padding:10px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  text-decoration:none;
  color:#000;
}

/* image ko banner banne se roko */
.categories .cat-card img{
  width:100% !important;
  height:90px !important;
  max-width:100% !important;
  object-fit:cover !important;
  display:block;
}

.categories .cat-card h4{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.2;
}

/* ===== CATEGORY PAGE PRODUCT SIZE FIX ===== */
.product-grid .card{
  max-width:100%;
  overflow:hidden;
}

.product-grid .card img{
  width:100%;
  height:160px;          /* 🔴 control height */
  object-fit:cover;      /* image crop, stretch nahi */
  border-radius:10px;
}

/* ===== PRODUCT GRID (RESPONSIVE FIX) ===== */
.product-grid{
  display:grid;
  gap:12px;
  padding:12px;
}

/* Mobile → 2 grid */
@media (max-width:768px){
  .product-grid{
    grid-template-columns:repeat(3, 1fr);
  }
}

/* Desktop / System → 4 grid */
@media (min-width:769px){
  .product-grid{
    grid-template-columns:repeat(6, 1fr);
  }
}

/* Product card safety */
.product-grid .card{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
