body{
    background-color: #fff !important;
    position: relative;
}
.groceryHeroSec{
    background: linear-gradient(90deg, #3F5F42 0%, #3B7853 100%);
}
.greenUnderline{
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-color: #42C826;
    text-decoration-thickness: 10.5%; /* 5.04px */
    text-underline-offset: 16.5%; /* 7.92px */
    text-underline-position: from-font;
}
.grocerySearch{
    display: inline-flex;
    padding: 10px 28px;
    align-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.05);
}

.greenbutton{
    border-radius: 12px;
    background: #41C826;
    color: #fff;
    padding: 10px 20px;
    border: none;
}
.greenoutlinebutton{
    border-radius: 12px;
    border: 2px solid #41C826;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(3px);
    padding: 10px 20px;
    color: #41C826;
}
/*.cateDiv{*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    width: 100%;*/
/*    white-space: nowrap;*/
/*    flex-wrap: wrap;*/
/*}*/



.cateDiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* ðŸ”¥ IMPORTANT */
    gap: 30px;
}




.cateDiv .categoryImg{
   width: 10%;
   text-align: center;
}
.cateDiv .categoryImg img{
    width: 50px;
    height: 50px;
}
.cateDiv .categoryImg span{
    margin-top: 1rem;
    font-weight: 500;
    color: #202020;
}

.adtocartDiv{
    bottom: 3rem;
    right: 2rem;
    z-index: 1;
}
.addToCart{
    border-radius: 20px;
    background: rgb(70 167 50);
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    padding: 0.5rem 1rem;
}

.groceryCard{
    border: 1px solid #dee2e6;
    border-radius: 28px;
    padding: 1rem;
}
.groceryCard .btngreen{
    width: 80%;
}

.grocery-items-div{
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    flex-wrap: wrap;
}
.grocery-items-div .groceryItems{
    width: 12%;
    text-align: center;
}
.grocery-items-div .groceryItems .img-div{
    width: 100%;
    height: 100px;
}
.grocery-items-div .groceryItems .img-div img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.grocery-items-div .groceryItems span{
    margin-top: 1rem;
    white-space: wrap;
    font-weight: 500;
    color: rgba(32, 32, 32, 0.80);
}
.storeimg{
    width: 15px;
    height: 15px;
}

.recentorderimgdiv{
    border-radius: 12.479px;
    border: 1.55px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    text-align: center;
}
.recentorderimgdiv .imgDiv{
    width: 100%;
    height: 180px;
    padding: 0.5rem 0;
}
.recentorderimgdiv .imgDiv img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rating {
    font-size: 14px;
    padding: 2px 7px;
    border-radius: 0 9px 9px 0;
    background: #FC0;
    white-space: nowrap;
}

.navShadow{
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.10);
}
.searchGrocery{
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(251, 251, 251, 0.80);
    padding: 0.8rem 2rem;
}

.catNavgro a{
    font-weight: 500;
}
.catSideNav{
    padding: 3rem 0;
    border-right: 2px solid rgba(0, 0, 0, 0.30);
}

.categorySide{
    padding: 0.5rem;
}
.categorySide.active{
    background: #E4FFDF;
    border-left: 5px solid #1DAC00;;
}
.categorySide .img-div{
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    padding: 0 0.5rem;
    border: 1.6px solid rgba(0, 0, 0, 0.05);
}
.categorySide .img-div img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grocerySerNav{
    display: inline-flex;
    padding: 9px;
    padding-left: 9px !important;
    justify-content: center;
    align-items: flex-start;
    gap: 1px;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px 2px 15.6px 0px rgba(0, 0, 0, 0.10);
    width: fit-content;
}
.grocerySerNav .nav-link.active, .grocerySerNav .show>.nav-link {
    border-radius: 10px !important;
    background: #1DAC00 !important;
    color: #fff !important;
}
.grocerySerNav img{
    width: 15px;
    margin-right: 0.5rem;
    margin-bottom: 0.2rem;
}
.shopCrd .imgdiv{
    width: 100%;
    height: 250px;
}
.shopCrd .imgdiv img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}
.shopCrd .imgdiv .openNow{
    border-radius: 0px 12px 0 12px;
    background: rgba(231, 242, 234, 0.80);
    backdrop-filter: blur(3px);
    color: #1DAC00;
    padding: 2px 10px;
    right: 0;
    top: 0;
}
.shopCrd .imgdiv .closeNow{
    border-radius: 0px 12px 0px 12px;
    background: rgba(231, 242, 234, 0.80);
    backdrop-filter: blur(3px);
    color: #E93838;
    padding: 2px 10px;
    right: 0;
    top: 0;
}
.productimght .recentorderimgdiv{
    height: 150px;
}

.product-details{
    display: flex;
}
.product-details ul{
    list-style-type: none;
}
.product-details ul li{
    margin-bottom: 10px;
}
.product-details ul li .small_img_div{
    width: 90px;
    height: 90px; 
    flex-direction: column;   
    justify-content: space-between;  
    border-radius: 12px;
    border: 1px solid #1DAC00;
    background: #F4FFF2; 
    padding: 0.5rem;
}
.product-details ul li .small_img_div img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-details .big_img_div{
    width: 100%;
    height: 400px;
    float:left;
    border-radius: 14px;
    border: 2px solid #1DAC00;
    padding: 0.5rem;
}
.product-details .big_img_div .big_img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.QuantitySelect .active{
    border: 1px solid #42C826 !important;
    background: #E7FFE2;
}
.accordion-button:not(.collapsed) {
    color: #202020 !important;
    font-weight: 500;
}

.fooddeailpage2Imgdiv{
    border-radius: 12px;
    border: 1px solid #1DAC00;
    background: #F4FFF2;
    width: 220px;
    height: 160px;
}
.fooddeailpage2Imgdiv img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shopbg{
    background-image: url(groceryimg/shopbg.png);
    background-size: cover;
}
.shopbg .navbAr {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(3px);
    padding: 0.5rem 3rem;
}

.shopWid{
    width: 100%;
}

.food-filter-bar{
    width: 100%;
    white-space: nowrap;
    overflow-x: auto;
}
.food-filter-btn {
    display: flex;
    padding: 5px 10px;
    align-items: center;
    gap: 3px;
    border-radius: 7px;
    border: 1px solid #CACACA;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    body{
        font-size: 12px;
    }
    .groceryHeroSec .ps-4{
        padding-left: 0 !important;
    }
    .cateDiv {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    .cateDiv .categoryImg {
        width: 25%;
    }
    .grocery-items-div {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .grocery-items-div .groceryItems {
        width: 20%;
    }
    .groceryCard {
        border: none;
        padding: 0 0.5rem;
        font-size: 12px;
    }
    .recentorderimgdiv .imgDiv {
        height: 130px;
    }
    .groceryCard h6{
        font-size: 14px !important;
    }
    .groceryCard p{
        font-size: 13px !important;
    }
    .shopWid{
        margin-left: 10%;
        width: 90%;
    }
    .categoryWid{
        width: 8%;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
    }
    .categoryWidDiv{
        border-radius: 10px;
        border: 1px solid #1DAC00;
        border-left: none;
        background: linear-gradient(90deg, rgba(246, 255, 248, 0.50) 0%, rgba(231, 242, 234, 0.50) 100%);
        display: grid;
        height: 400px;
    }
    .categoryWid p{
        transform: rotate(90deg);
        width: 70%;
        position: absolute;
        top: 28%;
    }
    .categoryBar {
        border-radius: 0 10px 10px 0;
        border: 1px solid #1DAC00;
        border-left: none;
        background: linear-gradient(90deg, rgba(246, 255, 248, 0.80) 0%, rgba(231, 242, 234, 0.80) 100%);
        backdrop-filter: blur(2px);
        width: 20%;
        position: fixed;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
    }
    .categorySide .img-div{
        margin-left: auto;
        margin-right: auto;
    }
    .shopCrd{
        font-size: 12px;
    }
    .shopCrd .imgdiv {
        height: 120px;
    }
    .shopCrd p.fs-20{
        font-size: 14px;
    }
    .shopCrd p{
        margin-bottom: 0;
    }
    .shopCrd.p-3{
        padding: 0.2rem 0.5rem !important;
    }
    .grocerySerNav{
        padding: 0;
        padding-left: 0 !important;
    }
    .product-details{
        display: grid;
    }
    .small_img_items{
        display: flex;
        justify-content: space-between;
    }
    .shopdetails .categoryBar {
        position: unset;
        top: unset;
        transform: unset;
        width: 100%;
        margin-top: 7.5rem;
    }
}

        /* ── SKELETON SHIMMER ── */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite;
            border-radius: 8px;
        }
        @keyframes shimmer {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ── SCROLL FADE-IN ── */
        .fade-in-section {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 0.55s ease, transform 0.55s ease;
        }
        .fade-in-section.visible { opacity: 1; transform: translateY(0); }

        /* ── STAGGER ── */
        .stagger > * {
            opacity: 0;
            transform: translateY(14px);
            transition: opacity 0.38s ease, transform 0.38s ease;
        }
        <?php for($i=1;$i<=20;$i++): ?>
        .stagger.visible > *:nth-child(<?= $i ?>) { opacity:1; transform:none; transition-delay:<?= ($i-1)*0.06 ?>s; }
        <?php endfor; ?>

        /* ── CART BADGE ── */
        .cart-icon-wrap { position: relative; display: inline-flex; }
        .cart-badge {
            position: absolute; top: -6px; right: -8px;
            background: #41C826; color: #fff;
            font-size: 10px; font-weight: 700;
            border-radius: 50%; width: 18px; height: 18px;
            display: flex; align-items: center; justify-content: center;
        }

        /* ── SEARCH DROPDOWN ── */
        .grocerySearch { position: relative; }
        .search-dropdown {
            position: absolute; top: 110%; left: 0; right: 0;
            background: #fff; border: 1px solid #eee;
            border-radius: 12px; max-height: 280px; overflow-y: auto;
            z-index: 999; box-shadow: 0 8px 28px rgba(0,0,0,0.10);
            display: none;
        }
        .search-dropdown.show { display: block; }
        .search-result-item:hover { background: #f6f6f6; }

        /* ── TOAST ── */
        #cartToast {
            position: fixed; bottom: 24px; right: 24px;
            background: #41C826; color: #fff;
            padding: 12px 20px; border-radius: 12px;
            font-weight: 600; font-size: 14px;
            z-index: 9999; opacity: 0;
            transform: translateY(20px);
            transition: all 0.32s ease; pointer-events: none;
        }
        #cartToast.show { opacity: 1; transform: translateY(0); }

        /* ── ADD BUTTON STATE ── */
        .btngreen.added { background: #2a9e14 !important; }
        .btngreen.loading { opacity: 0.65; pointer-events: none; }
        
        /* ✅ AFTER — animate bottom instead, transform only used for centering */
.adtocartDiv {
    bottom: -100px;   /* hidden below screen */
    transform: translateX(-50%);  /* centering only, never changed */
    opacity: 0;
    transition: bottom 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
}
.adtocartDiv.show {
    bottom: 5rem;     /* slides up into view */
    opacity: 1;
    right:-6rem;
}

.customDiv{
    
    width: 90% !important;
}










