 @import url('https://fonts.googleapis.com/css2?family=Koulen&family=Poppins:wght@600;700;800;900&display=swap');
 html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
 :root {
    --primary: #0c831f;
    --soft-blue: #e3f2fd;
    --soft-pink: #fce4ec;
}

body {
    background-color: #fffbfb;
    font-family: 'Poppins', sans-serif;margin: 0; 

    scroll-behavior: smooth;


}

h3{font-size: 24px;
        margin-bottom: 3px;
        margin-top: 24px;
        margin-left: 15px;}
/* STICKY NAV */
.sticky-nav {
    position: sticky; top: 0; background: #fff; z-index: 1000;
    padding: 10px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {border-radius: 20px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; font-size: 14px; }

/* LOGO */
.logo{
    margin-left: 6px;
        font-weight: bold;
    font-size: 1.6em;
}
.logo span {font-size: 1.6em;
    display: inline-block;
    transition: transform 0.3s ease;
}
#p { 
    font-size: 2em;
    color: var(--primary); }
#e { 
        margin-right: -4px;
    margin-left: -7px;
    color: #ff6a00; }
#pp { 
    margin-left: -4px;
    color: var(--primary); }
#a { 
       margin-right: -4px;
    margin-left: -7px;
    color: #ee0979; }
#l { 
    margin-left: -4px;
    color: var(--primary); }
.mobile-nav-links li a {
    display: block;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1.2em;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}
.navbar {
    background-color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000; /* Stays above everything else */
}

.nav-container {
    background: #dde9e8;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.search-wrapper { position: relative; }
.search-icon { position: absolute; right: -3px; top: 11px; }

.slider-container {
    position: relative;
    height: 300px;
    margin: 0;
    overflow: hidden;
    border-radius: 15px;
}
/* SEARCH BAR */
.search-section { padding: 20px; text-align: center; background: #f8f9fb; }
#item-search { width: 80%; max-width: 600px; padding: 12px 20px; border-radius: 12px; border: 1px solid #ddd; outline: none; }

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    background: #f1f2f6;
    border-radius: 8px;
    padding: 5px 15px;
}

.search-icon {
    color: #888;
    margin-right: 10px;
}

#item-search {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 8px 0;
    font-size: 1rem;
}
.search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f2f6;
    border-radius: 25px;
    padding: 5px 15px;
    max-width: 500px;
}

#item-search {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px;
    width: 100%;
    font-size: 14px;
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-link {
    margin-right: 30px;
    position: relative;
    text-decoration: none;
    font-size: 24px;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #040404;
    color: rgb(255 255 255);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;

}

.hidden { display: none !important; }

/* hamburger menu */
/* ===============================
   HAMBURGER BUTTON
================================ */
.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===============================
   MOBILE MENU WITH BOUNCE
================================ */


/* .mobile-nav-overlay.active {
    right: 0;
} */

/* Backdrop */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    display: none;
}

.mobile-backdrop.active {
    display: block;
}

.close-menu-btn {

    border: none;
    font-size: 2em;
    color: #555;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
}
.mobile-nav-overlay {
    border-radius: 4%;
    position: fixed;
    top: 0;
    right: -100%;
    width: 51%;
    max-width: 100vh;
    /* height: 54%; */
    background: #ffffff;
    z-index: 1000;
    transition: right 0.4s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}
/* Menu Links */
.mobile-nav-links {
    list-style: none;
    margin-top: 31px;
    margin-bottom: 60px;

}

.mobile-nav-links li {
    margin-bottom: 18px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}


.flash-badge{
background:#ff3d00;
color:white;
font-size:10px;
padding:3px 6px;
border-radius:4px;
margin-left:6px;
}

.timer{
font-size:12px;
color:#ff3d00;
font-weight:600;
}
/* Removes the "X" clear button in Chrome/Safari if you want a custom look */
#item-search::-webkit-search-cancel-button {
    position: relative;
    right: 0px;
}
/* CATEGORY TILES (Matching your images) */
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px; padding: 20px; max-width: 1200px; margin: 0 auto;
}
.cat-card {
    background: var(--soft-blue); border-radius: 15px; padding: 15px;
    text-align: center; cursor: pointer; transition: 0.3s;
}
/* .cat-card:nth-child(even) { background: var(--soft-pink); } */
.cat-card img { width: 80px; height: 80px; object-fit: contain; }
.cat-card p { font-size: 15px; font-weight: 600; margin-top: 10px; color: #333; }
.cat-card:hover { transform: scale(1.05); }

/* PRODUCT VIEW */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; padding: 20px; }
.hidden { display: none; }
.back-btn { margin: 20px; padding: 10px; border: none; background: #eee; cursor: pointer; border-radius: 5px; }

.offer-tag {
    position: absolute; background: red; color: white; padding: 5px 15px;
    font-weight: bold; border-radius: 0 0 10px 0; z-index: 10;
}
/* SECTION TITLES */
.section-title {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Hero Banner  */
.hero-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(to right, #ff6a00, #ee0979);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 20px;
}

.shop-btn {
    padding: 12px 30px;
    border: none;
    background: white;
    color: #ee0979;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.shop-btn:hover {
    background: black;
    color: white;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

#main-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide-item {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slide-content {
    background: rgba(0,0,0,0.5);
    padding: 20px 40px;
    border-radius: 10px;
}
/* CATEGORY CARDS - SMOOTH DESIGN */
.cat-card {
    background: #f2fffd;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #f0f0f0;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cat-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 8px;
}

.cat-card p {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #444;
}
#social-media-icon{
    display: flex;
 
    flex-direction: column;
 
 align-items: center
   
}
.socials {
  display: flex;
  flex-direction: row;
  gap: 10px;
justify-content: center;
 
}

.socials .line {display: flex;
    flex-direction: row;
  background-color: #031ee1;
  height: 10vh;
  width: 2px;
  
}
.socials .line2 {
 
  margin-top:5px ;
}

.socials i {
 
  font-size: 20px;
}

.fb{
  color: #000000;
font-size: 16px;
}
footer{
    text-align: center;
}
#selected-cat-title{
    margin-left: 15px;
    font-size: 20px;

}
.cart-bar{

position:fixed;
bottom:15px;
left:10px;
right:10px;

background:#0a8f2f;
color:white;

display:flex;
justify-content:space-between;
align-items:center;

padding:1px 16px;

border-radius:10px;

box-shadow:0 4px 12px rgba(0,0,0,0.2);

z-index:999;
}

.cart-left{
display:flex;
align-items:center;
gap:10px;
}

.cart-bar-icon{
width:24px;
height:24px;
}

.cart-info{
display:flex;
flex-direction:column;
font-weight:600;
}

.view-cart-btn{
color:white;
text-decoration:none;
font-weight:bold;
}

.hidden{
display:none;
}
/* Adjust grid for mobile */
@media (max-width: 600px) {
    h3{
        margin-bottom: 3px;
        margin-top: 24px;
        margin-left: 15px;
        font-size: 20px;
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 items per row like Blinkit */
        gap: 8px;
        padding: 10px;
    }
    .cat-card p { font-size: 11px; }
}
.admin-login-card {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.admin-login-card h2 { color: #0c831f; margin-bottom: 10px; }

.admin-login-card input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

#login-btn {
    width: 100%;
    padding: 12px;
    background: #0c831f;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.hidden { display: none !important; }

/* STICKY NAV */
.navbar {
border-radius: 11px;
    position: sticky;
    top: 0;
    background: #dde9e8;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-content {
    display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: auto;
}
.search-box input {
    width: 400px; padding: 10px; border-radius: 8px; border: 1px solid #ddd; outline: none;
}

/* CATEGORY TILES */
.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px; padding: 10px 20px;
}
.category-tile { text-align: center; cursor: pointer; transition: 0.2s; }
.category-tile:hover { transform: scale(1.05); }
.img-wrapper { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #eee; }
.img-wrapper img { width: 100%; height: 80px; object-fit: contain; }
.category-tile p { font-size: 12px; font-weight: 600; margin-top: 8px; color: #444; }

/* PRODUCT CARDS */
.product-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; padding: 20px;
}


.stock-warning {
    color: #e67e22;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-card.low-stock {
    border: 1px solid #f39c12;
}
/* PRODUCT CARD */
/* .item-card{

background:#fff;
border-radius:12px;
padding:10px;
border:1px solid #eee;
position:relative;

display:flex;
flex-direction:column;
gap:6px;

} */

.item-card{
background:#fff;
border-radius:12px;
padding:12px;
border:1px solid #eee;

display:flex;
flex-direction:column;
height:270px;

position:relative;   /* IMPORTANT */
}
/* IMAGE */

.product-img{

width:100%;
height:135px;
object-fit:contain;
border-radius:10px;
position:relative;
z-index:1;
}

/* DISCOUNT BADGE */
.discount-badge{

position:absolute;
top:8px;
left:8px;

background:#2a6df4;
color:white;

font-size:11px;
font-weight:600;

padding:3px 6px;

border-radius:4px;

z-index:2;

}


/* PRODUCT NAME */

.product-name{
font-size:13px;
font-weight:600;
line-height:1.3;

display:-webkit-box;
-webkit-box-orient:vertical;

-webkit-line-clamp:2;
line-clamp:2;

overflow:hidden;

min-height:33px;
}

/* UNIT */

.unit{

font-size:12px;
color:#666;

}

/* PRICE ROW */

.price-row{

display:flex;
justify-content:space-between;
align-items:center;

margin-top:auto;

}

/* PRICE */

.price{

font-size:12px;
font-weight:600;
color:#3a3434;

}

.old-price{

font-size:12px;
color:#999;
text-decoration:line-through;
margin-left:5px;

}

/* ADD BUTTON */

.add-btn{
font-size: 12px;
background:#fff;
border:2px solid #0c831f;

color:#0c831f;
font-weight:600;

padding:5px 14px;

border-radius:6px;

cursor:pointer;

}

.add-btn:hover{

background:#0c831f;
color:#fff;

}
.product-grid{

display:grid;
grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
gap:14px;

padding:10px;

} 
/* RESPONSIVE */
@media (max-width: 600px) {
    .search-box input { width: 150px; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .item-info h4 { font-size: 10px; }
    #product-name{
        font-size: 14px;
    }
}
/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {

        #product-name{
        font-size: 14px;
    }
   /* .search-wrapper {
        display: none;  Hide big search bar 
    }*/

    .navbar {
        padding: 10px 15px;
    }

    .logo svg {
        width: 130px;
    }

    .nav-icons {
        gap: 12px;
    }

    .hamburger-menu {
        font-size: 1.6rem;
    }
}