/* ===========================================================
   --- LIGHT PREMIUM THEME (ORANGE EDITION) --- 
   =========================================================== */

body {
    background-color: #ffffff; /* Light Premium Background */
    color: #333333;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}
body::-webkit-scrollbar {
    width: 0;
    display: none;
}
a { text-decoration: none; color: inherit; }

/* =========================================
   --- PROFESSIONAL NAVBAR (JET BLACK & BIG ICONS) ---
   ========================================= */
/* ---------- Blinkit-like Light Navbar (Fresh Green Accent) ---------- */
:root{
  --bg: #ffffff;
  --muted-text: #6b7280;
  --text: #111827;
  --accent: #f9c943; /* Blinkit-style green */
  --muted-border: #f1f5f9;
  --glass-border: rgba(0,0,0,0.04);
  --radius: 12px;
  --nav-height: 68px;
}

/* NAVBAR */
/* NAVBAR */
.navbar {
  background-color: var(--bg);
  height: var(--nav-height);
  padding: 0 28px;
  
 display: grid;
  grid-template-columns: 15% 70% 15%;
  align-items: center;

  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999999;

  border-bottom: 1px solid var(--muted-border);
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.nav-search .search-form {
  flex: 1;
}

.nav-search input {
  width: 100%;
}


/* LEFT SECTION */
.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 220px;
}
.nav-logo {
  width: 110px;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.logo-img { height: 44px; display:block; }

/* location small text */
.location-text {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 2px;
  font-weight: 500;
}

/* CENTER (search) */
.nav-search {
  width: 100%;              /* 🔥 take full grid column */
  max-width: none;          /* 🔥 remove artificial cap */
  padding: 0 32px;          /* breathing space from left/right */
  position: relative;
  display: flex;
  align-items: center;
}


.nav-search input {
  width: 100%;
  height: 48px;

  padding: 0 20px 0 52px;
  border-radius: 14px;

  border: 1px solid var(--muted-border);
  background: #f3f4f6;

  font-size: 16px;
  font-weight: 500;

  transition: all .25s ease;
}

.nav-search input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(52,199,89,0.22);
}

.nav-search input::placeholder {
  color: #9aa4ac;
}



/* Search icon */
.search-icon {
  position: absolute;
  left: 48px;
  font-size: 22px;
  color: #8b95a1;
  pointer-events: none;
}


/* RIGHT SECTION */
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 200px;
  justify-content: flex-end;
}
.nav-item {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  gap: 10px;
  position: relative;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color .12s, color .12s, transform .08s;
}
.nav-item:hover {
  background-color: #f3fff6;
  color: var(--accent);
  transform: translateY(-1px);
}

/* Icons */
.material-icons-outlined { font-size: 26px; color: #2b2b2b; }

/* CART BADGE - green */
.cart-badge {
  position: absolute;
  top: -8px; right: -6px;
  background-color: #f9c943;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(35,177,77,0.18);
}

/* PROFILE DROPDOWN */
.profile-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: -8px;
  padding: 6px;
  border-radius: 10px;
}
.profile-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--muted-border);
  background: #fff;
}
.user-name {
  font-weight: 600; font-size: 14px; color: var(--text); max-width: 120px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.arrow-icon { font-size: 18px; color: #64748b; transition: transform .18s; }

.profile-dropdown:hover .arrow-icon { transform: rotate(180deg); }

/* dropdown box */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(var(--nav-height) + 8px);
  right: 0;
  background-color: #ffffff;
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(16,24,40,0.12);
  padding: 8px 0;
  z-index: 2000;
  border: 1px solid var(--muted-border);
  flex-direction: column;
}
.profile-dropdown:hover .dropdown-menu { display: flex; }

/* dropdown items */
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; color: #233; font-size: 14px; font-weight: 600;
  width: 100%; box-sizing: border-box;
}
.menu-item:hover { background-color: #f7fff7; color: var(--accent); }
.menu-item .material-icons-outlined { font-size: 18px; color: #8b95a1; }
.menu-item:hover .material-icons-outlined { color: var(--accent); }

.divider { height: 1px; background-color: var(--muted-border); margin: 6px 0; }

/* small screens */
@media (max-width: 980px) {
  .nav-search { margin: 0 12px; max-width: 520px; }
  .location-text { display: none; }
  .nav-left { min-width: 120px; gap: 10px; }
}


/* =========================================
   --- STORE LAYOUT (HOME) ---
   ========================================= */
.main-container { max-width: 1500px; margin: 0 auto; }

/* HERO BANNER */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../images/banner.png');
    object-fit: cover; background-position: bottom;
    height: 100%;
    background-repeat: no-repeat; 
    padding: 100px 40px; border-radius: 20px; margin-bottom: 30px;
    margin-top: 10px; text-align: center; color: white;
}
/* home.css */
.hero-post {
    /* 🛑 REMOVE BACKGROUND PROPERTIES: */
    background: none; 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    background-color: #ffffff00; /* Background color ko bhi adjust karein agar zaroori ho */
    
    /* 💡 NEW FLEX LAYOUT PROPERTIES: */
    display: flex; /* Enable Flexbox */
    justify-content: space-between; /* Images ke beech space ke liye */
    align-items: center; 
    gap: 20px; /* Images ke beech ka gap */
    
    border-radius: 20px; 
    margin-bottom: 30px;
    margin-top: 10px; 
    height: 400px; /* Ek fixed height de dein */
    overflow: hidden;
}

/* 💡 NEW: Individual Image Styling */
.hero-post .hero-image {
    width: 50%;
    height: 100%; /* Height ko container jitna rakha */
    object-fit: cover; /* Image ko stretch hone se bachane ke liye */
    border-radius: 15px; /* Images ke liye andar rounded corners */
}

/* --- NEW GRID STYLING FOR 2x2 LAYOUT --- */

.product-grid-container {
    display: grid;
    /* 1. Equal Width: 2 barabar columns */
    grid-template-columns: repeat(2, 1fr); 
    
    /* Gap aur margin add karein */
    gap: 25px; 
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Base styling for all items (for padding, box-shadow) */
.grid-item {
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative; /* Image positioning ke liye */
    transition: transform 0.3s;
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 1. Equal Height/Square Ratio Fix */
.grid-image-square {
    /* Height ko 0 karke padding-bottom ko width ke barabar rakha (perfect square) */
    padding-bottom: 100%; 
    height: 0; 
    display: block; /* Anchor tag par display:block */
}

/* Image styling to fit the square box */
.grid-image-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Image ko poora fill kare */
    display: block;
}

/* 2. Full Width 3rd Row Styling */
.full-row-banner {
    /* Span all columns: 1st line se last line tak */
    grid-column: 1 / -1; 
    
    /* Height aur content styling */
    height: auto;
    padding: 30px; 
    background-color: #BF124D; /* Maroon color */
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.full-row-banner h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}
.full-row-banner p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.9;
}
/* CATEGORY & PRODUCTS */
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-right: 10px; }
.section-title { font-size: 32px; font-weight: 800; margin: 0; color: #222; border-left: 8px solid #BF124D; padding-left: 20px; }
.see-all-btn {
  color: #BF124D;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

   padding: 8px 18px;
  border-radius: 24px;
  background: transparent;

  transition:
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.see-all-btn:hover {
  color: #e71b1b;
  border-color: #e71b1b;
  transform: scale(1.07); /* 👈 thoda aur scale, still premium */
  box-shadow: 0 6px 18px rgba(191, 18, 77, 0.25);
  
    border: 1px solid rgba(191, 18, 77, 0.45);

}


.product-scroll-container { display: flex; overflow-x: auto; gap: 25px; padding-bottom: 30px; padding-top: 10px; scrollbar-width: none; }
.product-scroll-container::-webkit-scrollbar { display: none; }

/* ==================================================
   PRODUCT CARD
   ================================================== */
.product-card {
  background: #fffefe;
  border: 1px solid rgba(191,18,77,0.06);

  width: 100%;
  max-width: 300px;
  min-width: 260px;

  border-radius: 24px;
  padding: 15px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;

  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;

  position: relative;
  overflow: hidden;            /* 🔥 nothing escapes */
}

/* ===== HOME PAGE PRODUCT SCROLL ===== */
.product-scroll-container {
  overflow-x: auto;
  overflow-y: visible;         /* ribbon safe */
  padding: 12px 8px 30px;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: #e5e7eb;
}

/* ==================================================
   IMAGE
   ================================================== */
.img-box {
  width: 100%;
  height: 190px;
  background: #f9f9f9;
  border-radius: 14px;
  margin-bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 🔥 GLOBAL STANDARD */
  transition: transform 0.4s ease;
}

.product-card:hover .img-box img {
  transform: scale(1.06);
}

/* ==================================================
   TEXT
   ================================================== */
.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #222;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stock-info {
  color: #BF124D;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: #777;
  margin: 0 0 14px 0;
  line-height: 1.4;

  max-height: 36px;
  overflow: hidden;
}

/* ==================================================
   PRICE + BUTTON (MAIN FIX)
   ================================================== */
.price-row {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-wrap: wrap;             /* 🔥 wrap allowed */
  width: 100%;
}

.price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;

  flex: 1;
  min-width: 0;                /* 🔥 overflow fix */
  flex-wrap: wrap;
}

.price {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}

.old-price {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
  white-space: nowrap;
}

/* ==================================================
   ADD BUTTON – PREMIUM (UPDATED COLOR)
   ================================================== */
.add-btn {
  background: #ffffff;
  color: #155264;
  border: 1.5px solid rgba(21,82,100,0.45);

  padding: 9px 22px;
  border-radius: 12px;

  font-weight: 800;
  font-size: 14px;
  letter-spacing: .25px;

  cursor: pointer;
  transition: all .18s ease;

  white-space: nowrap;
  flex-shrink: 0;
}

/* Hover */
.add-btn:hover {
  background: linear-gradient(
    135deg,
    #155264,
    #0e3b48
  );
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(21,82,100,0.35);
}

/* ADDED STATE */
.add-btn.is-added {
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #155264;
  color: #ffffff;

  min-width: 110px;
  white-space: nowrap;

  transition:
    min-width 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

/* ==================================================
   MOBILE RESPONSIVE
   ================================================== */
@media (max-width: 480px) {
  .product-card {
    max-width: 100%;
    min-width: 240px;
  }

  .price-row {
    flex-direction: column;
    align-items: stretch;
  }

  .add-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==================================================
   🔥 CLEAN FLOATING DISCOUNT RIBBON (BLINKIT STYLE)
   ================================================== */
.discount-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #2563eb; 
  color: #fff;
  font-size: 11px; /* Thoda chota kiya */
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 8px;
  line-height: 1;

  /* 🔥 SABSE ZAROORI: Isse ribbon card ke andar rahega 
     par navbar/cart ke niche chala jayega */
  z-index: 1; 

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Ribbon notch fix */
.discount-ribbon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: #2563eb;
  transform: rotate(45deg);
  border-radius: 1px;
  z-index: -1; /* Notch ribbon ke piche rahe */
}
/* =========================================
   --- MODERN FLOATING LOCATION MODAL ---
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); animation: fadeIn 0.3s ease-in-out;
}

.modal-box {
    background: #ffffff; padding: 35px; border-radius: 24px;
    width: 450px; max-width: 90%; text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative;
}
.modal-box h3 { margin: 0 0 10px; color: #222; font-size: 24px; font-weight: 800; }
.modal-box p { margin: 0 0 25px; color: #777; font-size: 15px; }

.input-wrapper { position: relative; width: 100%; margin-bottom: 20px; z-index: 10; }

.modal-box input {
    width: 100%; padding: 15px 20px; border: 2px solid #eee;
    border-radius: 12px; font-size: 16px; color: #333;
    outline: none; box-sizing: border-box; background-color: #f8f8f8;
    transition: all 0.3s;
}
.modal-box input:focus { background-color: #fff; border-color: #BF124D; box-shadow: 0 4px 15px rgba(230, 126, 34, 0.15); }

/* FLOATING DROPDOWN */
.suggestions-list {
    list-style: none; padding: 0; margin: 0; background: white;
    border: 1px solid #f0f0f0; border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
    z-index: 100; max-height: 220px; overflow-y: auto;
    display: none; animation: slideDown 0.2s ease;
}
.suggestion-item {
    padding: 14px 20px; font-size: 14px; color: #444; cursor: pointer;
    border-bottom: 1px solid #f9f9f9; display: flex; align-items: center;
    gap: 12px; text-align: left;
}
.suggestion-item::before { content: '📍'; font-size: 14px; opacity: 0.7; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: #fff8f2; color: #BF124D; font-weight: 500; }

.modal-buttons {background-color: rgba(255, 0, 0, 0); display: flex; justify-content: space-between; gap: 15px; margin-top: 10px; }
.close-btn { background: #d03e3e; color: #ffffff; border: none; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; flex: 1; }
.close-btn:hover { background: #ff0000; }
hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }
.detect-btn {
    background: #fff5ec; color: #BF124D; border: 2px solid #BF124D;
    padding: 12px; border-radius: 12px; width: 100%; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
}
.detect-btn:hover { background: #BF124D; color: white; }

/* =========================================
   --- CART PAGE STYLING ---
   ========================================= */
.cart-container {
    max-width: 1100px; margin: 0 auto;
    padding: 64px 0px 60px;
    display: flex; gap: 40px; align-items: flex-start;
}

/* LEFT SIDE */
.cart-items-section { flex: 1.6; }
.cart-card {
    background: white; border-radius: 16px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); border: 1px solid #f0f0f0;
    overflow: hidden;
}
.cart-header-inner {
    padding: 20px; border-bottom: 1px solid #f0f0f0;
    font-size: 20px; font-weight: 800; color: #222;
    display: flex; justify-content: space-between; align-items: center;
    background-color: #fff;
}
.cart-header-inner span { font-size: 14px; color: #777; font-weight: 600; }

.cart-item {
    display: grid; grid-template-columns: 1.5fr 150px 100px;
    align-items: center; padding: 20px; border-bottom: 1px solid #f5f5f5;
}
.cart-item:last-child { border-bottom: none; }

.item-left-group { display: flex; align-items: center; gap: 15px; }
.item-img { width: 70px; height: 70px; border-radius: 10px; border: 1px solid #eee; object-fit: cover; flex-shrink: 0; }
.item-details { display: flex; flex-direction: column; gap: 4px; }
.item-name { font-size: 15px; font-weight: 700; color: #333; text-decoration: none; }
.item-name:hover { color: #BF124D; }
.item-unit { font-size: 12px; color: #888; font-weight: 500; }
.remove-btn { color: #999; font-size: 12px; font-weight: 600; cursor: pointer; margin-top: 5px; display: flex; align-items: center; gap: 4px; width: fit-content; text-decoration: none; }
.remove-btn:hover { color: #ff4757; }

.qty-control {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #BF124D; 
    border-radius: 8px; width: 100px; height: 36px; margin: 0 auto;
}
.qty-btn { background: none; border: none; color: #BF124D; cursor: pointer; font-size: 18px; font-weight: bold; width: 30px; height: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.qty-btn:hover { background: #ffe0cc; }
.qty-val { font-size: 14px; font-weight: 700; color: #333; }
.item-subtotal { text-align: right; font-size: 15px; font-weight: 700; color: #333; }

/* RIGHT SIDE */
.bill-section { flex: 0.8; position: sticky; top: 100px; }
.bill-card { background: white; padding: 25px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; }
.bill-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; color: #222; }
.bill-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: #555; font-weight: 500; }
.total-row { border-top: 1px dashed #ddd; padding-top: 15px; margin-top: 15px; font-size: 16px; font-weight: 800; color: #222; }

/* FIXED CHECKOUT BUTTON */
.checkout-btn {
    background: #BF124D; color: white; width: 100%;
    padding: 14px; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    margin-top: 25px; display: block; text-align: center;
    text-decoration: none; box-sizing: border-box;
    transition: background 0.2s;
}
.checkout-btn:hover { background: #850E35; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3); }

.empty-state { text-align: center; padding: 80px 0; width: 100%; }
.shop-btn { background: #27ae60; color: white; padding: 12px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block; margin-top: 20px; }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes flyCart { 0% { left: -20px; opacity: 0; } 20% { left: 10px; opacity: 1; transform: translateY(-50%) rotate(-10deg); } 60% { left: 60%; transform: translateY(-50%) rotate(5deg); } 100% { left: 120%; opacity: 0; transform: translateY(-50%); } }

.suggestions-list::-webkit-scrollbar { width: 6px; }
.suggestions-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.suggestions-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* BUTTON ANIMATIONS */
.btn-loader { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
.btn-success-anim { background-color: #27ae60 !important; color: white !important; border-color: #27ae60 !important; animation: bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; }
.add-btn-anim { position: relative; overflow: hidden; transition: all 0.3s ease; }
.add-btn-anim.is-loading { background-color: #fff5ec; color: transparent !important; pointer-events: none; }
.add-btn-anim::after { content: '🛒'; font-family: 'Material Icons Outlined'; position: absolute; top: 50%; left: -30px; transform: translateY(-50%); font-size: 20px; color: #BF124D; opacity: 0; transition: none; }
.add-btn-anim.is-loading::after { opacity: 1; animation: flyCart 0.8s ease-in-out forwards; }
.add-btn-anim.is-added { background-color: #27ae60 !important; border-color: #27ae60 !important; color: white !important; padding-left: 30px; }
.add-btn-anim.is-added::before { content: '✔'; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: bold; }

/* --- Global Form Styles (Agar signup mein bhi yahi hai to reuse kar sakte ho) --- */
/* (Ye forms.py mein widget_tweaks ya direct setting se bhi ho sakta hai) */

/* Labels */
label {
    display: block; /* Label ko ek alag line par rakho */
    margin-bottom: 8px; /* Input se thoda space */
    color: #4a4a4a; /* Darker grey for labels */
    font-weight: 600; /* Thoda bold */
    font-size: 14px;
}

/* Error Text */
.errorlist {
    color: #e74c3c;
    font-size: 13px;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 600;
}
.help-text {
    font-size: 12px; /* Thoda bada */
    color: #888;
    margin-top: 5px;
    line-height: 1.5;
}

/* home.css ke end mein jod de */

/* Custom styling for file inputs */
input[type="file"].form-control-custom-file {
    border: 1px solid #dcdcdc; /* Simple border */
    padding: 6px 10px; /* Thodi kam padding */
    background-color: #f5f5f5; /* Light grey background */
    border-radius: 8px;
    cursor: pointer;
}

/* Ye CSS file input ke default button ko chhupa kar humara custom button dikhata hai */
input[type="file"].form-control-custom-file::-webkit-file-upload-button {
    visibility: hidden; /* Default button hide */
    width: 0;
    padding: 0;
    margin: 0;
}
input[type="file"].form-control-custom-file::before {
    content: 'Choose File'; /* Custom button text */
    display: inline-block;
    background: #BF124D; /* Orange button */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
input[type="file"].form-control-custom-file:hover::before {
    background: #d66c1b;
}

/* Jab koi file select na ho */
input[type="file"].form-control-custom-file:not(:valid)::after {
    content: 'No file chosen'; 
    margin-left: 10px;
    color: #888;
    font-size: 13px;
}

/* --- BACK TO TOP BUTTON STYLING --- */
.back-to-top-btn {
    /* 💡 Fixed position ensures it stays visible */
    position: fixed;
    bottom: 30px; 
    right: 30px;
    
    /* Styling */
    background-color: #BF124D; /* Maroon color */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 1; /* Icon ko center karne ke liye */
    
    /* Visibility and Smooth transition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999; /* Ensure it stays above other elements */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #930A39;
}
/* =========================================
   --- SCROLL TO TOP BUTTON ---
   ========================================= */

#scrollToTopBtn {
    position: fixed;
    bottom: 40px; /* Neeche se 30px upar */
    right: 40px; /* Right side se 30px andar */
    z-index: 90; /* Sabhi content ke upar rahega */
    
    background-color: #f9c943; /* Orange Brand Color */
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 35%; /* Gol shape */
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #155264; /* Darker orange on hover */
    transform: scale(1.1); /* Thoda bada hoga hover par */
}

#scrollToTopBtn .material-icons-outlined {
    font-size: 24px;
    vertical-align: middle;
    align-content: center;
    justify-content: center;
}
/* home.css में जोड़ें */


.category-section {
    position: relative;
    overflow: visible;
}

/* ==================================================
   SCROLL ARROWS – SOFT COLOR + 25% RADIUS + RESPONSIVE
   ================================================== */

/* Base Arrow */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  height: 44px;
  width: 44px;
  font-size: 26px;

  background: rgba(255,255,255,0.92);   /* 🔥 soft white */
  color: #2f6f7e;                        /* 🔥 soft teal (not dark) */
  border: 1.5px solid rgba(47,111,126,.45);

  border-radius: 25%;                   /* ✅ as requested */
  box-shadow: 0 6px 14px rgba(0,0,0,.12);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity .25s ease,
    visibility .25s ease,
    background .2s ease,
    transform .2s ease;
}

/* Hover */
.scroll-arrow:hover {
  background: #2f6f7e;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

/* Show on section hover */
.category-section:hover .scroll-arrow {
  opacity: 1;
  visibility: visible;
}

/* Position */
.left-arrow { left: 6px; }
.right-arrow { right: 6px; }

/* ==================================================
   MOBILE – EVEN SMALLER & CLEAN
   ================================================== */

@media (max-width: 768px) {
  .scroll-arrow {
    height: 34px;
    width: 34px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
  }
}

@media (max-width: 480px) {
  .scroll-arrow {
    height: 28px;
    width: 28px;
    font-size: 18px;
    border-radius: 25%;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
  }

  .left-arrow { left: 2px; }
  .right-arrow { right: 2px; }
}

/* =========================================
   RESPONSIVE LAYER (ADD AT END OF home.css)
   Do not remove any existing styles above — only overrides below.
   ========================================= */

/* ---------- Global responsive helpers ---------- */
:root {
    /* scale factors for typography on small screens */
    --scale-sm: 0.92;
    --scale-xs: 0.86;
}

/* Reset some fixed widths to be responsive-friendly */
img, .logo-img, .hero-image, .item-img, .img-box img {
    max-width: 100%;
   
}

/* ---------- NAVBAR RESPONSIVE ---------- */
.navbar {
    padding: 0 18px;
    height: 72px;
}
.nav-left { gap: 14px; font-size: 1rem; }
.nav-logo { font-size: 26px; }
.nav-search { max-width: 520px; margin: 0 20px; }
.nav-search input { padding: 12px 14px 12px 44px; font-size: 15px; border-radius: 10px; }
.material-icons-outlined { font-size: 28px; }
.nav-right { gap: 18px; }

/* Mobile: collapse center search (show icon only) and reduce nav items */
@media (max-width: 768px) {
    .navbar {
        height: 64px;
        padding: 0 12px;
    }
    .nav-left { gap: 10px; }
    .nav-logo { font-size: 22px; }
    .nav-search { margin: 0 8px; max-width: 320px; }
    .nav-search input { padding-left: 42px; font-size: 14px; border-radius: 10px; }
    .search-icon { left: 12px; font-size: 22px; }

    /* hide long username, keep avatar only */
    .user-name { display: none; }
    .nav-item { font-size: 14px; }

    /* move nav-right items into a compact spacing */
    .nav-right { gap: 12px; }
}

/* Small devices: convert some nav items into compact icons-only */
@media (max-width: 480px) {
    .nav-left { gap: 8px; }
    .material-icons-outlined { font-size: 22px; }
    .nav-logo { font-size: 20px; letter-spacing: -0.3px; }
    .navbar { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- HERO / HERO-POST RESPONSIVE ---------- */
.hero-banner { padding: 80px 20px; height: auto; }
.hero-post {
    height: auto;
    flex-direction: row;
    padding: 18px;
}
.hero-post .hero-image { width: 50%; height: 100%; border-radius: 12px; }

/* stack images on smaller screens */
@media (max-width: 900px) {
    .hero-post { flex-direction: column; gap: 14px; height: auto; padding: 12px; }
    .hero-post .hero-image { width: 100%; height: 220px; border-radius: 12px; object-fit: cover; }
}

/* ---------- PRODUCT GRID RESPONSIVE ---------- */
/* Default grid: 2 columns (already set). For larger screens allow 3 or 4 */
@media (min-width: 1400px) {
    .product-grid-container { grid-template-columns: repeat(4, 1fr); gap: 28px; }
    .grid-item { border-radius: 18px; }
}
@media (min-width: 1100px) and (max-width: 1399px) {
    .product-grid-container { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (max-width: 1099px) {
    .product-grid-container { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
    .product-grid-container { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
    .grid-image-square { padding-bottom: 70%; } /* slightly shorter square on mobile */
}

/* ---------- PRODUCT SCROLL / CARDS RESPONSIVE ---------- */
.product-scroll-container {
    padding: 8px 6px;
    gap: 18px;
}
.product-card { min-width: 260px; width: 260px; max-width: 90%; }
@media (max-width: 900px) {
    .product-card { min-width: 220px; width: 220px; }
}
@media (max-width: 480px) {
    .product-card { min-width: 180px; width: 180px; }
    .img-box { height: 150px; }
    .product-card h3 { font-size: 15px; }
    .price { font-size: 18px; }
    .add-btn { padding: 6px 16px; font-size: 13px; border-radius: 8px; }
}

/* Scroll arrows: position adjustments on small screens */
.scroll-arrow {
    height: 44px; width: 44px; font-size: 18px;
}
@media (max-width: 900px) {
    .left-arrow { left: 6px; }
    .right-arrow { right: 6px; }
}

/* For touch devices show arrows persistently (improves discoverability) */
@media (hover: none) and (pointer: coarse) {
    .scroll-arrow { opacity: 1 !important; visibility: visible !important; }
}

/* ---------- MODAL RESPONSIVE ---------- */
.modal-box { width: 450px; }
@media (max-width: 600px) {
    .modal-box { width: calc(100% - 40px); padding: 22px; border-radius: 14px; }
    .modal-box h3 { font-size: 20px; }
    .modal-box input { padding: 12px; font-size: 15px; }
}

/* suggestions-list max height */
.suggestions-list { max-height: 220px; }
@media (max-width: 480px) {
    .suggestions-list { max-height: 180px; font-size: 14px; }
}

/* ---------- CART PAGE RESPONSIVE ---------- */
.cart-container { padding: 38px 14px 60px; gap: 18px; }
.cart-item { grid-template-columns: 1.6fr 120px 90px; padding: 14px; gap: 10px; }
.item-img { width: 64px; height: 64px; }
.qty-control { width: 92px; height: 36px; }

/* Stack bill on bottom for small screens */
@media (max-width: 960px) {
    .cart-container { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
    .bill-section { position: relative; top: auto; order: 2; }
    .cart-items-section { order: 1; }
    .cart-item { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; align-items: start; }
    .item-subtotal { text-align: left; }
}

/* ---------- TYPOGRAPHY SCALE ADJUSTMENTS ---------- */
@media (max-width: 480px) {
    body { font-size: calc(14px * var(--scale-xs)); }
    .section-title { font-size: 24px; padding-left: 14px; border-left-width: 6px; }
    .section-title, .cart-header-inner { font-size: 20px; }
    .product-card h3 { font-size: 14px; }
}

/* ---------- BACK TO TOP & SCROLL BUTTONS ---------- */
/* keep them reachable on smaller screens */
#scrollToTopBtn, .back-to-top-btn {
    right: 18px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    font-size: 20px;
}
@media (max-width: 480px) {
    #scrollToTopBtn { right: 12px; bottom: 18px; padding: 12px; font-size: 20px; border-radius: 40%; }
}

/* ---------- FORM ELEMENTS (responsive inputs) ---------- */
.modal-box input, input[type="file"].form-control-custom-file {
    font-size: 15px;
}
@media (max-width: 480px) {
    .modal-box input { font-size: 14px; padding: 10px 12px; }
    label { font-size: 13px; }
}

/* ---------- BUTTONS / TAP TARGETS ---------- */
/* Increase tap target for mobile for accessibility */
@media (max-width: 700px) {
    .nav-item, .menu-item, .add-btn, .detect-btn, .checkout-btn { padding: 10px 12px; }
    .add-btn { padding: 8px 18px; }
    .checkout-btn { padding: 12px; font-size: 15px; }
}

/* ---------- SMALL FIXES FOR HOVER-DEPENDENT UI ON TOUCH ---------- */
/* For devices without hover, force dropdowns / hover states to be accessible via clicks */
/* NOTE: This only changes the visual availability — you should add JS to toggle classes on tap */
@media (hover: none) and (pointer: coarse) {
    .profile-dropdown:hover .dropdown-menu { display: none; } /* disable hover-only dropdown */
    .profile-dropdown .dropdown-menu { display: none; } /* default hidden, rely on JS click to toggle */
    .product-card:hover .img-box img { transform: none; } /* avoid hover transforms on touch */
}

/* ---------- PERFORMANCE / LAYOUT STABILITY ---------- */
/* prevent layout shifts by reserving heights where needed */
.img-box, .hero-post .hero-image, .item-img { min-height: 120px; }

/* ---------- Accessibility improvements ---------- */
.menu-item, .nav-item, .scroll-arrow, .add-btn, .checkout-btn {
    outline-offset: 3px;
}
.menu-item:focus, .nav-item:focus, .scroll-arrow:focus, .add-btn:focus, .checkout-btn:focus {
    box-shadow: 0 0 0 3px rgba(191,18,77,0.12);
    border-radius: 8px;
}

/* ---------- End of responsive overrides ---------- */
/* --- NEW CSS: Hamburger Menu Placeholder (Add this to your CSS) --- */
.mobile-menu-toggle {
    display: none; /* By default, hide the hamburger on desktop */
    color: white;
    cursor: pointer;
    font-size: 30px;
    margin-left: 15px; /* Right-side icons से थोड़ा गैप देने के लिए */
}

/* 📱 MEDIA QUERY: SMALLER SCREENS (Max-Width: 768px) */
@media (max-width: 768px) {
    /* 1. NAVBAR BASE */
    .navbar {
        height: 55px;
        padding: 0 10px; /* Padding kam kiya */
    }

    /* 2. SEARCH BAR (CENTER) - Hide it on mobile */
    .nav-search {
        display: none; 
    }
    
    /* 3. LOCATION & LOGO (LEFT) - Location text hide */
    .location-text {
        display: none; /* 'Select Location' text hide */
    }
    .logo-img {
        height: 30px; /* Logo chota kiya */
    }

    /* 4. RIGHT SECTION - Hide unnecessary items, show mobile toggle */
    .nav-right {
        gap: 15px;
        /* Toggle icon को rightmost corner पर दिखाने के लिए */
        position: relative; 
    }
    
    /* Home link and Cart text hide */
    .nav-item span:not(.material-icons-outlined, .cart-badge) {
        display: none; 
    }
    

    
   
    
    /* FULL-SCREEN OVERLAY MENU (For Home/Cart/Profile Menu Items) */
    .navbar-menu-overlay {
        display: none; /* Default hidden */
        position: fixed;
        top: 55px; /* Navbar height ke neeche se shuru ho */
        left: 0;
        width: 100%;
        height: calc(100vh - 55px);
        background-color: #000000; /* Black background */
        z-index: 999;
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
    }

    
    /* Menu Links Styling inside the overlay */
    .navbar-menu-overlay .nav-item {
        font-size: 20px;
        padding: 15px 0;
        border-bottom: 1px solid #1a1a1a;
        color: white;
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
    }
    .navbar-menu-overlay .material-icons-outlined {
        font-size: 28px;
    }
}
/* home.css (Only necessary responsive overrides) */

/* Hamburger icon shuru mein chhupa hua (desktop par) */
.mobile-menu-toggle {
    display: none; 
    color: white; 
    cursor: pointer;
    font-size: 30px !important;
    margin-left: 15px; /* Cart icon se thoda space */
}

/* Mobile Menu Overlay (Same as dropdown menu, but full screen on mobile) */
#mobile-dropdown-menu {
    /* Existing desktop positioning */
    z-index: 2000; 
    /* Desktop: display: none; is used in desktop CSS */
}

/* =========================================
    --- MOBILE RESPONSIVENESS (< 800px) ---
    ========================================= */
@media (max-width: 800px) {
    .navbar {
        padding: 0 15px; /* Side padding kam kiya */
    }
    
    /* 1. Hide Desktop Elements (Search, Username, Cart Text) */
    .nav-search, 
    .user-name, /* Username text chhupao */
    .cart-text, /* Cart label chhupao */
    .location-text { 
        display: none !important;
    }

    /* 2. Cart Icon ko thoda kareeb lao (gap kam kiya) */
    .nav-right {
        gap: 10px; /* Cart icon aur Profile/Hamburger ke beech kam gap */
    }
    
    /* 3. Hamburger Icon (Universal Toggle) ko dikhao */
    .mobile-menu-toggle {
        display: block; 
    }

    /* 4. Hide the entire Profile Icon/Arrow group (It will be opened by Hamburger) */
    .profile-dropdown-desktop { 
        display: none !important;
    }
    
    /* 5. Full Screen Menu Overrides (Menu Khulne par) */
    #mobile-dropdown-menu.mobile-active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: #000000 !important;
        box-shadow: none !important;
        padding: 0;
        z-index: 2500; 
    }
}
/* ================================
   NAVBAR SEARCH WIDTH FIX (70%)
   ================================ */
.navbar {
  grid-template-columns: 15% 60% 15%; /* explicit confirm */
}

.nav-search {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;          /* 🔥 pehle 32px tha, zyada kha raha tha */
}

.nav-search input {
  width: 100%;
}
/* ================================
   NAVBAR GRID FIX
   ================================ */
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto; /* 🔥 left | center | right fixed */
  column-gap: 24px;
}
/* ================================
   RIGHT SECTION STABILITY
   ================================ */
.nav-right {
  justify-content: flex-end;
  min-width: 220px;          /* 🔥 icons ko space mile */
}
.search-icon {
  position: absolute;
  left: calc(31% - 30% + 16px); /* 🔥 MAGIC LINE */
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #000000;
  pointer-events: none;
}

/* ================================
   PROFILE DROPDOWN – HOVER FIX
   ================================ */

/* parent ko reference banao */
.profile-dropdown {
  position: relative;
}

/* invisible hover bridge */
.profile-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;              /* 🔥 hover buffer */
}

/* dropdown ko thoda upar lao */
.dropdown-menu {
  top: calc(var(--nav-height) - 4px); /* pehle +8px tha */
  padding-top: 6px;
}

/* hover logic ko zyada forgiving banao */
.profile-dropdown:hover .dropdown-menu,
.profile-dropdown:focus-within .dropdown-menu {
  display: flex;
}
/* ================================
   APP STORE BADGES – SAME SIZE
   ================================ */
.app-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-badges img {
  height: 38px;        /* ✅ same height */
  width: auto;         /* aspect ratio safe */
  display: block;
}
/* ================================
   FORCE DISABLE HAMBURGER & MOBILE MENU
   ================================ */
.mobile-menu-toggle,
.mobile-menu,
#mobile-menu,
.navbar-menu-overlay,
#mobile-dropdown-menu {
  display: none !important;
}
/* ================================
   FORCE SHOW SEARCH ON MOBILE
   ================================ */
@media (max-width: 900px) {
  .nav-search {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 8px !important;
  }

  .nav-search input {
    height: 42px;
    font-size: 14px;
    padding-left: 42px;
    border-radius: 10px;
  }

  .search-icon {
    left: 14px;
    font-size: 20px;
  }
}
/* =========================================
   BLINKIT STYLE MOBILE NAVBAR (2 ROW)
   ========================================= */
@media (max-width: 900px) {

  .navbar {
    display: grid;
    grid-template-columns: 1fr auto;   /* logo | icons */
    grid-template-rows: auto auto;     /* row1 | row2 */
    row-gap: 8px;
    height: auto;
    padding: 8px 12px 10px;
    align-items: center;
  }
}
/* ===================================================
   BLINKIT STYLE MOBILE NAVBAR (ONLY MOBILE)
   Desktop remains untouched
   =================================================== */

@media (max-width: 900px) {

  /* NAVBAR → 2 ROW LAYOUT */
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    height: auto;
    padding: 8px 12px 10px;
  }

  /* LOGO → TOP LEFT */
  .nav-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .logo-img {
    height: 28px;
  }

  /* CART + PROFILE → TOP RIGHT */
  .nav-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    gap: 14px;
  }

  /* text hide, icons only */
  .cart-text,
  .user-name,
  .arrow-icon {
    display: none !important;
  }

  /* 🔍 SEARCH → FULL WIDTH SECOND ROW */
  .nav-search {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    display: flex !important;   /* 🔥 override old hide rules */
    padding: 0;
    margin-top: 6px;
  }

  .nav-search input {
    width: 100%;
    height: 44px;
    font-size: 15px;
    border-radius: 12px;
    padding-left: 42px;
    background: #f3f4f6;
  }

  .search-icon {
    left: 14px;
    font-size: 20px;
    color: #6b7280;
  }

  /* ❌ HAMBURGER COMPLETELY OFF */
  .mobile-menu-toggle,
  .mobile-menu,
  #mobile-menu {
    display: none !important;
  }
}
/* =====================================================
   MOBILE NAVBAR – BLINKIT STYLE FINAL FIX
   ===================================================== */
@media (max-width: 900px) {

  /* NAVBAR BASE */
  .navbar {
    padding-left: 14px;
    padding-right: 14px;   /* 🔥 right chipakna fix */
    align-items: center;
  }

  /* RIGHT ICONS (cart / profile) */
  .nav-right {
    margin-right: 6px;     /* 🔥 thoda breathing space */
    gap: 14px;
  }

  /* SEARCH WRAPPER */
  .nav-search {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex !important;
    justify-content: center;
  }

  /* SEARCH BAR */
  .nav-search input {
    width: calc(100% - 20px);   /* 🔥 true center feel */
    max-width: 100%;
    height: 46px;

    margin: 0 auto;
    padding-left: 44px;
    padding-right: 14px;

    border-radius: 14px;
    box-sizing: border-box;
  }

  /* SEARCH ICON */
  .search-icon {
    left: 18px;                 /* 🔥 exact alignment */
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #6b7280;
  }
}
/* ===============================
   MOBILE BLINKIT-STYLE NAVBAR FIX
   =============================== */
@media (max-width: 900px) {

  /* navbar padding control */
  .navbar {
    padding: 8px 14px 12px;
    height: auto;
    grid-template-columns: auto auto; /* logo | icons */
    row-gap: 10px;
  }

  /* LEFT: logo */
  .nav-left {
    justify-content: flex-start;
  }

  /* RIGHT: profile + cart */
  .nav-right {
    justify-content: flex-end;
    gap: 16px;
    padding-right: 6px;   /* 🔥 cart edge se chipkega nahi */
  }

  /* =========================
     SEARCH BAR – FULL CENTER
     ========================= */
  .nav-search {
    grid-column: 1 / -1;     /* 🔥 full width row */
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex !important;
    justify-content: center;
  }

  .nav-search form {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-search input {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 48px;
    padding-left: 44px;
    border-radius: 14px;
  }

  /* search icon perfect alignment */
  .search-icon {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 900px) {
  .nav-search input {
    margin-left: -10px;   /* 👈 yahin se left shift control hoga */
  }
}
/* =========================================
   SEARCH DROPDOWN – MOBILE ONLY ADJUSTMENT
   ========================================= */
@media (max-width: 768px) {

  .search-dropdown {
    /* 🔹 width thodi kam */
    width: calc(100% - 24px);

    /* 🔹 left shift (centered feel) */
    left:1px;
    right: auto;

    /* 🔹 smooth look */
    border-radius: 14px;
  }
}

/* ==============================
   FULL WIDTH HERO – NAVBAR TOUCH
============================== */

/* OUTER WRAPPER */
.hero-wrapper {
  width: 100%;
  margin-top: 0;        /* 👈 IMPORTANT */
  padding: 0;
  background: #fff;
}


/* FULL WIDTH CONTAINER (no pseudo card) */
.hero-container {
  width: 100%;
  height: 60vh;                        /* 👈 60% page height */
  min-height: 420px;
  max-height: 900px;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* SLIDER TRACK */
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 600ms ease;
  will-change: transform;
}

/* SLIDE */
.hero-slide {
  min-width: 100%;
  height: 100%;
  user-select: none;
  position: relative;
}

/* IMAGE – EDGE TO EDGE */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==============================
   ARROWS (SHOW ON HOVER ONLY)
============================== */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  width: 48px;
  height: 48px;
  border-radius: 25%;                 /* 👈 as requested */
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;

  opacity: 0;                         /* hidden by default */
  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    background .15s ease;
}

/* SHOW arrows only when hovering hero */
.hero-container:hover .hero-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hero-arrow:hover {
  background: rgba(0,0,0,0.55);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow.left { left: 20px; }
.hero-arrow.right { right: 20px; }

/* ==============================
   DOTS (UNCHANGED)
============================== */

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 30;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.hero-dots button.active {
  background: #fff;
  transform: scale(1.2);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1200px) {
  .hero-container {
    height: 55vh;
    min-height: 380px;
  }
}

@media (max-width: 900px) {
  .hero-container {
    height: 48vh;
    min-height: 320px;
  }
  .hero-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 680px) {
  .hero-container {
    height: 40vh;
    min-height: 220px;
  }
  .hero-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-dots {
    bottom: 10px;
  }
}
/* ------------------------
   PROFESSIONAL CATEGORIES UI (SPREAD + POLISHED)
------------------------ */

.categories-grid-wrap {
  max-width: 1280px;              /* thoda wider */
  margin: 36px auto -40px;        /* upar-niche breathing */
  padding: 0 20px;
  box-sizing: border-box;
}

/* GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 26px;                      /* 👈 MORE SPREAD */
  align-items: start;
  justify-content: center; /* 👈 ये ग्रिड को बीच में ला देगा */
    margin: 0 auto;
}

/* CARD */
.category-card {
  display: flex;
  justify-content: center;
}

/* LINK */
.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;                      /* image–text distance */
  text-align: center;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* IMAGE HOLDER */
.category-thumb {
    position: relative;
    width: 150px;   /* 👈 94px से बढ़ाकर 120px कर दिया */
    height: 150px;  /* 👈 हाइट भी बराबर कर दी */
    border-radius: 20px; /* डब्बा बड़ा हुआ तो कोनों को भी थोड़ा और राउंड किया */
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(16,24,40,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
/* IMAGE */
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER */
.category-link:hover .category-thumb {
  transform: scale(1.15px);
  box-shadow: 0 18px 36px rgba(16,24,40,0.10);
}
.category-link:hover .category-thumb img {
    transform: scale(1.15); /* 👈 इमेज अंदर की तरफ बड़ी होगी */
}
.category-link:hover .category-name {
    color: #000; /* नाम थोड़ा और डार्क दिखेगा */
}
/* LABEL */
.category-name {
    font-size: 15px;                /* 👈 14px से बढ़ाकर 15px किया ताकि बड़े डब्बे पर फिट लगे */
    font-weight: 800;               /* 👈 और भी strong (700 से 800) */
    color: #111827;                 /* 👈 thoda deep dark for premium look */
    line-height: 1.2;
    max-width: 140px;               /* 👈 120px से 140px किया ताकि नाम ज्यादा न फैले */
    margin-top: 8px;                /* 👈 फोटो से थोड़ी दूरी */
    letter-spacing: -0.3px;
    word-wrap: break-word;
    text-align: center;             /* 👈 पक्का किया कि नाम हमेशा बीच में रहे */
    display: block;
}

/* ------------------------
   RESPONSIVE BREAKPOINTS
------------------------ */

@media (max-width: 1400px) {
  .categories-grid { grid-template-columns: repeat(8, 1fr); gap: 24px; }
}

@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); gap: 22px; }
}

@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

@media (max-width: 680px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .category-thumb {
    width: 80px;
    height: 80px;
    border-radius: 14px;
  }

  .category-name {
    font-size: 13px;
    max-width: 100px;
  }
}

@media (max-width: 420px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .category-thumb {
    width: 70px;
    height: 70px;
  }

  .category-name {
    font-size: 12px;
    max-width: 92px;
  }
}
/* =========================
   CATEGORY BADGES
========================= */

/* Top grid badge */
.cat-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  color: #fff;
  z-index: 5;
  letter-spacing: .3px;
}

/* Badge colors */
.cat-badge-featured { background: #f59e0b; }  /* amber */
.cat-badge-new { background: #10b981; }       /* green */
.cat-badge-hot { background: #ef4444; }       /* red */


/* Inline badge (section heading) */
/* Inline badge (section heading) */
.inline-badge {
  margin-left: 10px;
  padding: 4px 10px;              /* ⬆ height & width dono increase */
  font-size: 12px;                /* thoda readable */
  font-weight: 800;
  border-radius: 999px;           /* pill shape = premium */
  color: #fff;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;

  /* animation */
  animation: badgePulse 1.8s ease-in-out infinite;
}

/* Variants */
.inline-badge-featured { background: #f59e0b; }
.inline-badge-new { background: #10b981; }
.inline-badge-hot { background: #ef4444; }

/* 🔁 Soft pulse animation */
@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(0,0,0,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

/* ♿ Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .inline-badge {
    animation: none;
  }
}
/* =========================
   MOBILE: 2 ROW + HORIZONTAL SCROLL CATEGORIES
========================= */
@media (max-width: 680px) {

  .categories-grid-wrap {
    overflow-x: auto;                 /* 🔥 horizontal scroll */
    -webkit-overflow-scrolling: touch;
  }

  .categories-grid {
    display: grid;
    grid-auto-flow: column;           /* 🔥 columns me flow */
    grid-template-rows: repeat(2, auto); /* ✅ sirf 2 rows */
    grid-auto-columns: max-content;   /* content ke hisaab se width */
    gap: 16px;

    width: max-content;               /* 🔥 grid shrink na ho */
    padding-bottom: 10px;
  }

  /* optional: scrollbar hide (clean look) */
  .categories-grid-wrap::-webkit-scrollbar {
    display: none;
  }
  .categories-grid-wrap {
    scrollbar-width: none;
  }
}

/* ==============================
   UNIVERSAL SLIDER ARROW
============================== */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  width: 48px;
  height: 48px;
  border-radius: 25%;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    background .15s ease;
}

/* show on hover of parent */
.slider-wrap:hover .slider-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.slider-arrow:hover {
  background: rgba(0,0,0,0.55);
  transform: translateY(-50%) scale(1.06);
}

.slider-arrow.left { left: 12px; }
.slider-arrow.right { right: 12px; }



/* ================= CATEGORY DIVIDER (ICON VERSION) ================= */

.categories-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    cursor: pointer;
}

/* Grey thin line */
.divider-line {
    flex: 1;
    height: 2px;                 /* 🔥 thinner stroke */
    background: #dcdcdc;         /* 🔥 grey */
}

/* Center circular icon */
.divider-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2c5547;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #00000000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    transition: transform 0.25s ease;
}

/* Image inside circle */
.divider-icon img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}






/* Rotate icon when expanded */
#categoriesGrid.categories-expanded + .categories-divider .divider-icon {
    transform: rotate(180deg);
}

/* ================= CATEGORY VISIBILITY ================= */

/* By default hide categories after 20 */
.extra-category {
    display: none;
}

/* When expanded, show them */
#categoriesGrid.categories-expanded .extra-category {
    display: block;
}
/* ================= PRODUCT CARD BASE ================= */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden; /* Ribbon को कार्ड के बाहर जाने से रोकने के लिए */
    transition: transform 0.2s ease;
}

/* ================= OUT OF STOCK RIBBON ================= */
.out-ribbon {
    position: absolute;
    top: 26px; /* Thoda adjust kiya taaki corner me sahi baithe */
    left: -35px;
    transform: rotate(-45deg);
    background: #dc2626; /* Deep Red */
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 40px;
    z-index: 10;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ================= DISABLED ADD BUTTON ================= */
.add-disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    border: 1px solid #e5e7eb !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Stock khatam hone par image thodi fade hogi */
.is-out-of-stock img {
    opacity: 0.6;
    filter: grayscale(0.8);
}
/* ===================================================
   CATEGORY RESPONSIVE OVERRIDE (7 COLUMN LOGIC)
   Paste this at the end of your file
   =================================================== */

/* 1. Desktop & Large Screens (Web) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* ✅ Web पर 7 कॉलम */
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.category-thumb {
    width: 150px;  /* ✅ तेरा नया वेब साइज */
    height: 150px;
}

/* 2. Tablet & Smaller Laptops (Max 1100px) */
@media (max-width: 1100px) {
    .categories-grid { 
        grid-template-columns: repeat(5, 1fr); /* 5 कॉलम ताकि 150px वाले डब्बे फिट आ सकें */
        gap: 18px;
    }
}

/* 3. Small Tablets (Max 900px) */
@media (max-width: 900px) {
    .categories-grid { 
        grid-template-columns: repeat(4, 1fr); /* 4 कॉलम */
        gap: 15px;
    }
    .category-thumb {
        width: 130px; /* डब्बा थोड़ा छोटा किया ताकि जगह बने */
        height: 130px;
    }
}

/* 4. Mobile Devices (Max 680px) 
   Isme purana horizontal scroll ya 2-row logic maintain rahega */
@media (max-width: 680px) {
    .categories-grid-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .categories-grid {
        display: grid;
        grid-auto-flow: column; /* 👈 पुरानी सेटिंग: हॉरिजॉन्टल फ्लो */
        grid-template-rows: repeat(2, auto); /* ✅ 2 rows logic */
        grid-auto-columns: max-content;
        gap: 15px;
        width: max-content;
    }

    .category-thumb {
        width: 100px; /* मोबाइल पर डब्बा 100px का */
        height: 100px;
        border-radius: 16px;
    }

    .category-name {
        font-size: 13px;
        max-width: 90px;
    }
}

/* 5. Very Small Phones (Max 420px) */
@media (max-width: 420px) {
    .category-thumb {
        width: 85px; /* छोटे मोबाइल पर 85px */
        height: 85px;
    }
}

/* 6. Fix for Hover Scale on Mobile (Touch devices par extra scale na ho) */
@media (hover: none) {
    .category-link:hover .category-thumb img {
        transform: none;
    }
}

/* ===================================================
   HIDE CATEGORY SECTION ON MOBILE DEVICES
   =================================================== */

@media (max-width: 680px) {

    /* 2. कैटेगरी के नीचे वाला डिवाइडर (Show More बटन) भी गायब करो */
    .categories-divider {
        display: none !important; 
    }
}

/* ===================================================
   MOBILE VIEW SPACING LOGIC
   =================================================== */

@media (max-width: 768px) {
    /* 1. पहले हर पेज को 140px नीचे धकेलो */
    body {
        padding-top: 90px !important;
    }

    /* 2. अगर बॉडी पर 'is-home' क्लास है (जो सिर्फ होम पेज पर होगी), 
       तो पैडिंग वापस 0 कर दो */
    body.is-home {
        padding-top: 0 !important;
    }
}

/* ===============================
   HIDE CATEGORY SCROLL ARROWS ON MOBILE
   =============================== */
@media (max-width: 768px) {
  .category-section .scroll-arrow {
    display: none !important;
  }
}
/* 🔥 Responsive Banner Toggle Logic */

/* 1. Badi screens par Mobile Image chhupao */
@media (min-width: 768px) {
    .d-none.d-md-block { display: block !important; }
    .d-block.d-md-none { display: none !important; }
}

/* 2. Mobile screens par Desktop Image chhupao */
@media (max-width: 767px) {
    .d-none.d-md-block { display: none !important; }
    .d-block.d-md-none { 
        display: block !important;
        width: 100%;
        /* 📱 Mobile par Blinkit jaisa lamba banner look dene ke liye */
        aspect-ratio: 4/5; 
        object-fit: cover;
    }
}