﻿body {
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fafafa;
    color: #333;
}

header {
    background: #ff3269;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1 !important;
}

.location {
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center; /* centers vertically */
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
    .location a {
        color:#fff;
        text-decoration:none;
    }


    .cart-icon1 {
        position: relative;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }


.fly-icon {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    transition: transform 0.7s ease-in-out, opacity 0.7s;
    z-index: 9999;
}

.cart-icon1 img {
    width: 20px;
}

.cart-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .cart-icon img {
        width: 20px;
    }

.cart-count {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #fff;
    color: #ff3269;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    margin: 0.5rem 0.5rem;
    padding: 0.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

    .search-bar input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 0.95rem;
    }

    .search-bar img {
        width: 20px;
        margin-right: 0.5rem;
    }

/* FILTER BAR */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem 0.5rem;
    scroll-behavior: smooth;
}

.filter-btn {
    border-color: #fff;
}
    /*.filter-btn {*/
    /*background: #fff;*/
    /* border: 1px solid #ddd;*/
    /*border-radius: 20px;*/
    /*width:100%;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;*/
    /*cursor: pointer;*/
    /*white-space: nowrap;*/
    /*}*/

    .filter-btn.active {
        background: #ff3269;
        color: #fff;
        border-color: #ff3269;
    }

    .filter-btn img {
        border-radius: 10px;
        border: 1px solid #ddd;
        width: 30px;
        height: 30px;
    }

.filter-btn1 {
    border-color: #fff;
}

    .filter-btn1.active {
        background: #ff3269;
        color: #fff;
        border-color: #ff3269;
    }

    .filter-btn1 img {
        border-radius: 10px;
        border: 1px solid #ddd;
        width: 30px;
        height: 30px;
    }


.filter-btn2 {
    border-color: #fff;
}

    .filter-btn2.active {
        background: #ff3269;
        color: #fff;
        border-color: #ff3269;
    }

    .filter-btn2 img {
        border-radius: 10px;
        border: 1px solid #ddd;
        width: 30px;
        height: 30px;
    }

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.product {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 0.8rem;
    text-align: center;
}

    .product img {
        width: 100%;
        border-radius: 8px;
    }

    .product h4 {
        font-size: 0.9rem;
        margin: 0.5rem 0 0.2rem;
        height: 100px;
        padding-bottom: 5px;
        color: #000;
    }

    .product p {
        color: #ff3269;
        font-weight: bold;
        font-size: 0.85rem;
    }


.discount-badge {
    position: absolute;
    /* top: 10px;
  left: 10px;*/
    background: red;
    color: white;
    padding: 5px 10px;
    border-radius: 5px 0px;
    font-weight: bold;
    width: 40px;
    font-size: 12px;
}

/*.add-btn {
    background: #ff3269;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}*/

.add-btn {
    width: 100%;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: #ff3269;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 6px #ff3269;
    transition: all 0.1s ease;
}

    .add-btn:hover {
      /*  background: #43a047;*/
    }

    .add-btn:active {
        box-shadow: 0 2px #2e7d32;
        transform: translateY(4px);
    }


.add-btn1 {
    width: 100%;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: #ff3269;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 6px #ff3269;
    transition: all 0.1s ease;
}

.add-btn1:hover {
    /*background: #43a047;*/
}

.add-btn1:active {
    box-shadow: 0 2px #2e7d32;
    transform: translateY(4px);
}

.add-btn2 {
    width: 100%;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: #ff3269;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 6px #ff3269;
    transition: all 0.1s ease;
}

    .add-btn2:hover {
        /*background: #43a047;*/
        /*#43a047*/
    }

    .add-btn2:active {
        box-shadow: 0 2px #2e7d32;
        transform: translateY(4px);
    }

/*.add-btn2 {
    background: #ff3269;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}*/

/*.add-btn1 {
    background: #ff3269;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}
*/
/* CART PANEL */
.cart-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -3px 8px rgba(0,0,0,0.2);
    transition: bottom 0.3s ease;
    z-index: 200;
    max-height: 70vh;
    overflow-y: auto;
}

    .cart-panel.open {
        bottom: 50px;
    }

.cart-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.cart-item-name {
    font-size: 0.9rem;
}

.cart-item-price {
    color: #ff3269;
    font-weight: bold;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.checkout-btn {
    background: #ff3269;
    color: #fff;
    border: none;
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
}



.menu {
    display: none; /* Hidden by default */
    position: absolute;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1;
    margin: 60px 0px;
    width: 120px;
    height: 80px;
}

    .menu button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }



.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    /*top: -10px;*/
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.picon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

 .picon-box .icon-box {
    
    width:80px !important ;
    /*margin:0px 5px !important ;*/
}

    .icon-box i {
        font-size: 18px;
    }

    .icon-box span {
        font-size: 10px;
    }



.cart-panel1 {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Header */
.cart-header1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

    .cart-header1 h3 {
        font-size: 1.1rem;
        margin: 0;
    }

#closesetting1 {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer / Links */
.cart-footer1 {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-link1 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    color: #000;
    border-radius: 8px;
    background: #f7f7f7;
    font-size: 1rem;
}

    .setting-link1:hover {
        background: #eaeaea;
    }

/* Mobile optimization */
@media (max-width: 480px) {
    .cart-panel1 {
        max-width: 100%;
    }
}


/*.settings-horizontal {
    display: flex;
    gap: 12px;
    padding: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}*/

.settings-horizontal {
    display: flex;
    flex-wrap: wrap; /* allow cards to move to the next line */
    gap: 12px;
    padding: 15px;
    overflow-x: visible; /* remove horizontal scroll */
    scroll-snap-type: none; /* no snap needed when wrapping */
}

.setting-card {
    min-width: 100px;
    flex-shrink: 0;
    background: #f7f7f7;
    border-radius: 10px;
    padding:3px;
    text-align: center;
    text-decoration: none;
    color: #000;
    scroll-snap-align: start;
}

.setting-card i {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.setting-card span {
    font-size: 0.85rem;
    display: block;
}

.setting-card.logout {
    background: #ffecec;
    color: #c00;
}



.category-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

    .category-bar .filter-btn {
        display: inline-block;
        text-align: center;
        margin-right: 15px;
        cursor: pointer;
        padding: 5px;
    }

        .category-bar .filter-btn.active {
            border-bottom: 3px solid #ff0000; /* highlight active category */
        }


.settings-horizontal1 {
    display: flex;
    flex-wrap: nowrap; /* force single row */
    gap: 5px;
    /*padding: 15px;*/
    overflow-x: auto; /* horizontal scroll if needed */
    overflow-y: hidden; /* prevent vertical scroll */

    scroll-snap-type: x mandatory; /* optional */
}

.settings-horizontal1 {
    scroll-behavior: smooth;
}







.sidebar2 {
    position: fixed;
    top: 60px;
    left: 0;
    width: 70px;
    height: calc(100vh - 10px);
    overflow-y: auto;
    z-index: 0;
    background: #2c3e50;
    padding-bottom: 100px;
}

    /* Optional: hide scrollbar but keep scrolling */
    .sidebar2::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar2::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    /* Button alignment inside 80px */
    .sidebar2 .filter-btn {
        display: block;
        width: 100%;
        padding: 8px 4px;
        border-bottom: 1px solid #fff;
        text-decoration: none;
    }

    .sidebar2 img {
        max-width: 40px;
        height: auto;
    }

    .sidebar2 span {
        font-size: 11px;
        display: block;
        line-height: 1.2;
        color:#fff;
    }


.setting-card1 {
    width: 90px;
    flex-shrink: 0;
    background: #f7dcdc;
    border-radius: 10px;
    padding: 3px;
    text-align: center;
    text-decoration: none;
    color: #000;
    scroll-snap-align: start;
    font-size: 12px;
}

    .setting-card1 i {
        font-size: 14px;
        margin-bottom: 6px;
    }

