* {
    box-sizing: border-box;
    font-family: Arial, sans-serif
}

body {
    margin: 0;
    background: #f7f7f3
}

.nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer
}

.logo-img {
    height: 42px
}

.logo-text {
    font-weight: bold;
    color: #2f855a
}

.hero {
    background: linear-gradient(135deg, #2f855a, #38a169);
    color: #fff;
    text-align: center;
    padding: 70px 20px
}

.hero h1 {
    font-size: 36px
}

.hero button {
    margin-top: 20px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    background: #fbbc04
}

.trust-section {
    background: #fff;
    padding: 60px 20px;
    text-align: center
}

.trust-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px
}

.trust-box {
    background: #f7f7f3;
    padding: 25px;
    border-radius: 16px
}

.trust-box i {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, #2f855a, #38a169);
    margin-bottom: 10px;
    animation: pulse 2.5s infinite
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.08)
    }

    100% {
        transform: scale(1)
    }
}

.grid {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px
}

.category,
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    text-align: center;
    cursor: pointer
}

.category img,
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0
}

.card {
    padding: 14px
}

.floating-cart {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: #ff5722;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px
}

.count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px
}

.site-footer {
    background: #1f2933;
    color: #e5e7eb;
    padding: 25px 20px 10px;
}


.footer-inner {
    padding-bottom: 10px;
}


.fssai-logo {
    width: 55px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
    margin: 6px auto;
    display: block;
}


.social-icons {
    display: flex;
    gap: 14px
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff
}

.instagram {
    background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5)
}

.youtube {
    background: #FF0000
}

.footer-bottom {
    margin-top: 30px;
    padding: 15px;
    background: #111827;
    text-align: center
}

/* ---------- CART MODAL FIX ---------- */



.cart-overlay.hidden {
    display: none;
}

.cart-drawer {
    width: 360px;
    max-width: 100%;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-item button {
    padding: 4px 10px;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.pay-btn {
    width: 100%;
    padding: 10px;
    background: #2f855a;
    color: #fff;
    border: none;
    border-radius: 6px;
    margin-bottom: 10px;
}

.wa-btn {
    width: 100%;
    padding: 10px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 6px;
}

/* NAV CART SVG */
.nav-cart-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    margin: 0 6px;
    vertical-align: middle;
}

/* FLOATING CART SVG */
.floating-cart-svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

/* BOUNCE ANIMATION */
@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.25);
    }

    50% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ---------- FLY IMAGE ---------- */
.fly-img {
    position: fixed;
    z-index: 5000;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- CART BOUNCE ---------- */
.cart-bounce {
    animation: cartBounce 0.6s ease;
}

/* ---------- BACK BUTTON ---------- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px;
    padding: 10px 18px;
    border-radius: 30px;
    border: none;
    background: #ffffff;
    color: #2f855a;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
}

.back-btn:hover {
    background: #2f855a;
    color: #fff;
    transform: translateX(-3px);
}

/* ---------- ADD TO CART BUTTON ---------- */
.add-btn {
    margin-top: 12px;
    padding: 12px;
    width: 100%;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 87, 34, 0.35);
    transition: all 0.25s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 87, 34, 0.45);
}

.add-btn:active {
    transform: scale(0.96);
}

/* DISABLED STATE */
.add-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* ADDED STATE */
.add-btn.added {
    background: linear-gradient(135deg, #2f855a, #38a169);
    box-shadow: 0 8px 18px rgba(56, 161, 105, 0.4);
}

/* ---------- WEIGHT CHIPS ---------- */
.weight-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

.weight-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #2f855a;
    background: #fff;
    color: #2f855a;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

.weight-chip:hover {
    background: #2f855a;
    color: #fff;
}

.weight-chip.active {
    background: linear-gradient(135deg, #2f855a, #38a169);
    color: #fff;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.45);
}

/* ---------- CART QTY CHIPS ---------- */
.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #2f855a;
    background: #fff;
    color: #2f855a;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-chip:hover {
    background: #2f855a;
    color: #fff;
}

.cart-qty span {
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

.cart-body input,
.cart-body textarea,
.cart-body select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.ship-box,
.ship-total {
    font-weight: bold;
    margin-top: 10px;
}

/* CART SLIDE ANIMATION */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: flex-end;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.cart-overlay.show .cart-drawer {
    transform: translateX(0);
}

/* CLOSE BUTTON STYLE */
.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cart-close-btn:hover {
    background: #8e7cc3;
    transform: rotate(90deg);
}

/* ===== HEADER CART ===== */

.header-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-cart:hover {
    transform: scale(1.03);
}

.header-cart i {
    font-size: 18px;
    color: #ff6a00;
}

.header-count {
    background: #ff3b3b;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: -8px;
    margin-top: -10px;
}

.header-cart-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
}

.header-cart-text .items {
    color: #555;
}

.header-cart-text .price {
    font-weight: bold;
    color: #000;
}

.text-center {
    text-align: center;
}

.footer-follow {
    text-align: center;
}

.footer-follow h4 {
    margin-bottom: 8px;
}

.footer-follow .social-icons {
    justify-content: center;
    margin-bottom: 10px;
}

/* ===== NAV MENU ===== */

.nav-inner {
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li a {
    font-weight: 600;
    color: #1f2933;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    padding: 6px 0;
}

/* underline animation */
.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #2f855a;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* hamburger */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        right: 14px;
        background: #fff;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 3000;
    }

    .nav-menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-left: 14px;
    }
}

/* ===== LOGIN BUTTON ===== */

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #2f855a;
    background: #fff;
    color: #2f855a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-btn i {
    font-size: 14px;
}

.login-btn:hover {
    background: #2f855a;
    color: #fff;
    transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 900px) {
    .login-btn span {
        display: none;
    }
}

/* ===== LOGOUT BUTTON ===== */

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #d32f2f;
    background: #fff;
    color: #d32f2f;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

.logout-btn i {
    font-size: 14px;
}

.logout-btn:hover {
    background: #d32f2f;
    color: #fff;
    transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 900px) {
    .logout-btn span {
        display: none;
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #8b0000;
    padding: 10px 0;
}

.marquee-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* LOGIN POPUP */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-overlay.hidden {
    display: none;
}

.login-box {
    background: #fff;
    padding: 35px;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-box h2 {
    margin-bottom: 6px;
    color: #7a0c0c;
}

.login-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.login-box input {
    width: 100%;
    height: 46px;
    margin-bottom: 15px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.login-box input:focus {
    border-color: #7a0c0c;
    outline: none;
}

.login-submit {
    width: 100%;
    height: 46px;
    background: #7a0c0c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-submit:hover {
    background: #5e0909;
}

.login-footer {
    margin-top: 18px;
    font-size: 14px;
}

.login-footer span {
    color: #7a0c0c;
    font-weight: 600;
    cursor: pointer;
}

.login-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* ========== USER MENU STYLES ========== */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 160px;
    margin-top: 6px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-radius: 8px;
    margin: 4px;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background: #f5f5f5;
}

.logout-item {
    color: #d32f2f;
}

.logout-item:hover {
    background: #ffebee;
}