*{margin:0;padding:0;box-sizing:border-box;font-family:'Noto Nastaliq Urdu',system-ui;-webkit-tap-highlight-color:transparent}
body{background:#f8f9fa;color:#1a1a1a;direction:ltr;padding-bottom:20px}
.header{
  background:#ff6f00;color:#fff;padding:16px 20px;
  position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,0.12);
  height:60px;display:flex;align-items:center;justify-content:space-between;
}
.logo{font-weight:700;font-size:20px}
.header-right{display:flex;align-items:center;gap:20px}
.cart-icon{position:relative;font-size:24px;cursor:pointer}
.cart-count{
  position:absolute;top:2px;right:-8px;background:#ff6f00;color:#fff;
  border-radius:50%;width:18px;height:18px;font-size:15px;display:none;
  place-items:center;font-weight:700;border:2px solid #ff6f00;z-index:5;line-height:1;
}
.cart-count.show{display:grid}
.menu-icon{font-size:26px;cursor:pointer;user-select:none}
.menu-icon:active{opacity:0.7}

/* DROPDOWN MENU */
.nav-menu{
  position:absolute;top:60px;right:0;background:#fff;width:200px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:0 0 0 12px;
  display:none;z-index:99;overflow:hidden;
}
.nav-menu.show{display:block}
.nav-menu a{
  display:block;padding:16px 20px;color:#1a1a1a;text-decoration:none;
  font-size:16px;font-weight:600;border-bottom:1px solid #f0f0f0;
}
.nav-menu a:last-child{border-bottom:none}
.nav-menu a:active{background:#f5f5f5}
/* HERO + AUTO SLIDER */
.hero{position:relative;height:45vh;overflow:hidden;margin-top: 0;}
.hero-slider{position:relative;width:100%;height:100%}
.slide{
  position:absolute;top:0;left:0;width:100%;height:100%;
  opacity:0;transition:opacity 1s ease-in-out;
}
.slide.active{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover}

.hero-overlay{
  position:absolute;top:0;left:0;right:0;bottom:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  z-index:1;
}
.hero-text{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  text-align:center;color:#fff;width:90%;z-index:2
}
.hero-text h1{font-size:32px;font-weight:700;margin-bottom:6px;text-shadow:0 2px 4px rgba(0,0,0,0.5)}
.hero-text p{font-size:16px;margin-bottom:20px;opacity:0.95;text-shadow:0 1px 2px rgba(0,0,0,0.5)}
.hero-text button{
  background:#ff6f00;color:#fff;border:none;padding:14px 32px;
  border-radius:25px;font-size:15px;cursor:pointer;font-weight:700;
  box-shadow:0 4px 15px rgba(255,111,0,0.4);text-transform:uppercase
}
.hero-text button:active{transform:scale(0.96)}

/* DOTS */
.hero-dots{
  position:absolute;bottom:20px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;z-index:3;
}
.dot{
  width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.5);
  cursor:pointer;transition:0.3s;
}
.dot.active{background:#fff;width:24px;border-radius:4px}

.cart {
  position: fixed;
  right: -100%;
  transition: 0.3s;
}
.cart.show {
  right: 0;
}

.overlay {
  display: none;
}
.overlay.show {
  display: block;
}

@media (min-width:768px){
.hero-text h1{font-size:54px}
.hero-text p{font-size:22px}
}
/* SEARCH */
.search-bar{padding:12px 16px;background:#fff}
.search-wrapper{position:relative}
.search-wrapper .search-icon{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  color:#999;font-size:18px
}
.search-bar input{
  width:100%;padding:14px 45px 14px 16px;border:1px solid #e0e0e0;
  border-radius:12px;font-size:15px;text-align:left;
  font-family:'Noto Nastaliq Urdu';background:#f8f9fa
}
.search-bar input:focus{border-color:#2e7d32;outline:none;background:#fff}

/* SECTIONS */
.sections{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px; /* 14px se 12px kar do */
  padding:16px 12px; /* ye add karo */
}
.sections.hide { 
  display: none; 
}
.section-card{
  background:#fff;
  border-radius:16px;
  padding:20px 8px; /* 20px 6px se 28px 8px kar do */
  text-align:center;
  box-shadow:0 1px 3px rgba(0,0,0,0.06);
  cursor:pointer;
  transition:0.2s;
  border:1px solid #f0f0f0;
  overflow: hidden;
  min-height: 100px; /* Ye line add karo - sab cards same height ke ho jayen ge */
  display: flex; /* Ye add karo */
  flex-direction: column; /* Ye add karo */
  justify-content: center; /* Ye add karo - content center mein aa jaye ga */
}
.section-card .emoji{
  font-size:44px;
  display:block;
  margin-bottom:12px; /* 10px se 12px kar do */
}
.section-card h3{
  font-size:15px;
  color:#1b5e20;
  margin-bottom:6px; /* 4px se 6px kar do */
  font-weight:700;
  line-height: 1.2;
  word-break: break-word;
}
.section-card p{
  font-size:12px;
  color:#666;
  line-height: 1.4; /* 1.3 se 1.4 kar do */
  word-break: break-word;
  margin: 0;
}
.section-card:active{transform:scale(0.97);background:#f8f8f8}

.page-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 15px;
  background:#fff;
  border-bottom:1px solid #eee;
  position: sticky;
  top: 60px;
  z-index: 99;
}

.page-topbar h2{
  margin:0;
  color:#1b5e20;
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
  flex-shrink: 0;
}

.page-topbar .search-box{
  flex:0 1 140px;  /* Bas 180px le ga, zyada nahi */
  display:flex;
  max-width: 140px;
  align-items:center;
  background:#f8f9fa;
  
  
  border: 1px solid #e0e0e0 ;
  border-radius:8px;
  padding:4px 8px;
  margin:0 auto; /* Center mein rahay ga */
}

.page-topbar .search-box input{
  
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-size:11px;
  min-width:0;
}

.page-topbar .search-box span{
  font-size:14px;
  flex-shrink:0;
  margin-left: 4PX;
}

.back-arrow{
  background:transparent ;
  background:transparent;
  font-size:14px;
  color:#1b5e20;
  cursor:pointer;
  padding:0 5px;
  line-height:1;
  user-select:none;
  flex-shrink: 0;
}

.back-arrow:active{
  opacity:0.5;
}
/* PAGES */
.page{display:none;padding:0 6px 50px 6px;min-height:calc(100vh - 60px);padding-top: 0;}
.page.active{display:block}

h2{margin-bottom:20px;color:#1b5e20;font-size:26px;font-weight:700}

/* PRODUCT */
/* PRODUCT */
.product{background:#fff;padding:16px;margin-bottom:12px;border-radius:16px;
  display:flex;gap:12px;align-items:flex-start;box-shadow:0 1px 3px rgba(0,0,0,0.06);border:1px solid #f0f0f0}
.product-img{width:70px;height:70px;
  min-width: 60px;min-height: 60px;flex-shrink: 0; border-radius:12px;object-fit:cover;background:#f5f5f5}
.product-info{flex:1}
.product-name{font-size:16px;font-weight:600;margin-bottom:4px;
line-height: 1.3;}
.product-weight{font-size:13px;color:#666}
.product-right{text-align:left}
.product-price{font-size:17px;font-weight:700;color:#2e7d32;margin-bottom:8px}
.add-btn{background:#ff6f00;color:#fff;border:none;padding:8px 16px;border-radius:8px;cursor:pointer;font-weight:600;font-size:14px}
.add-btn:active{transform:scale(0.95)}
/* PRODUCT - GRID FINAL FIX */

/* CART + QTY */
.cart-item{background:#fff;padding:16px;margin-bottom:12px;border-radius:16px;display:flex;gap:12px;align-items:center;box-shadow:0 1px 3px rgba(0,0,0,0.06);border:1px solid #f0f0f0}

.bill-card{background:#fff;padding:20px;border-radius:16px;margin:20px 0;box-shadow:0 1px 3px rgba(0,0,0,0.06);border:1px solid #f0f0f0}
.bill-row{display:flex;justify-content:space-between;margin-bottom:12px;font-size:15px}
.bill-row.total{font-size:20px;font-weight:700;color:#1b5e20;border-top:2px dashed #e0e0e0;padding-top:14px;margin-top:14px}
.address-input{width:100%;padding:14px;border:2px solid #e0e0e0;border-radius:10px;font-size:15px;text-align:left;margin:15px 0;font-family:'arial';resize:none}
.address-input:focus{border-color:#2e7d32;outline:none}
.checkout-btn{background:#ff6f00;color:#fff;border:none;padding:16px;width:100%;border-radius:12px;font-size:17px;cursor:pointer;font-weight:700;box-shadow:0 4px 12px rgba(255,111,0,0.35)}
.checkout-btn:active{transform:scale(0.98)}
.empty-cart{text-align:center;color:#666;padding:60px 20px;font-size:18px}
/* delete x*/
.cart-item{position:relative;background:#fff;padding:16px;margin-bottom:12px;border-radius:16px;display:flex;gap:12px;align-items:center;box-shadow:0 1px 3px rgba(0,0,0,0.06);border:1px solid #f0f0f0}
.delete-btn{
  background:#ff4444;color:#fff;border:none;width:28px;height:28px;
  border-radius:50%;cursor:pointer;font-size:16px;font-weight:700;
  display:grid;place-items:center;margin-left:8px;line-height:1;
}
.delete-btn:active{background:#cc0000;transform:scale(0.9)}
.qty-control{
  display:flex;
  align-items:center;
  background:#fff;
  border:2px solid #2e7d32;
  border-radius:8px;
  overflow:hidden;
  height:28px;
}

.qty-btn{
  background:#2e7d32;
  border:none;
  width:28px;
  height:28px;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
  color:#fff;
  display:grid;
  place-items:center;
  user-select:none;
  padding:0;
  line-height:1;
  font-family: Arial, sans-serif;
  padding-bottom: 2px;
}

.qty-btn:active{background:#1b5e20}

.qty-num{
  font-size:14px;
  font-weight:600;
  min-width:28px;
  text-align:center;
  color:#1a1a1a;
  line-height:28px;
  padding:0 2px;
  font-family: Arial, sans-serif;
}


.add-to-cart-box{
  margin-top:8px;
}

.product-qty-control{
  display:none;
  align-items:center;
  background:#fff;
  border:2px solid #ff6f00;
  border-radius:8px;
  overflow:hidden;
  height:32px;
}

.product-qty-control.show{
  display:flex;
}

.qty-btn-small{
  background:#ff6f00;
  border:none;
  width:32px;
  height:32px;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
  color:#fff;
  display:grid;
  place-items:center;
  user-select:none;
  padding:0;
  line-height:1;
  font-family: Arial, sans-serif;
}

.qty-btn-small:active{background:#e65100}

.qty-num-small{
  font-size:14px;
  font-weight:700;
  min-width:32px;
  text-align:center;
  color:#1a1a1a;
  line-height:32px;
  font-family: Arial, sans-serif;
}
.address-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}


@media (min-width:768px){
 .sections{grid-template-columns:repeat(4,1fr)}
 .hero-text h1{font-size:54px}
 .hero-text p{font-size:22px}
}
