﻿/* ── Navbar ─────────────────────────────────────── */
/*.navbar-search-form {
    width: 30rem;
}*/
/* Search merged pill */
.search-merged {
    display: flex;
    align-items: center;
    border: 1.5px solid #dee2e6;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    
}

    .search-merged:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    }

.search-merged-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0.35rem 0.25rem 0.35rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    color: inherit;
    box-shadow: none !important; /* override Bootstrap focus ring */
}

    /* Keep native X (clear) button visible — browser renders it inside input */
    .search-merged-input::-webkit-search-cancel-button {
        cursor: pointer;
    }

.search-merged-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.9rem 0.35rem 0.5rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    transition: color 0.18s;
    font-size: 0.9rem;
}

    .search-merged-btn:hover {
        color: #0d6efd;
    }

.navbar-avatar {
    width: 32px;
    height: 32px;
    font-size: .8rem;
}

/* ── Footer ─────────────────────────────────────── */
.footer-tagline {
    font-size: .875rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-brand-icon {
    color: var(--primary);
}

.footer-social-link {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .55);
}

.footer-payment-badge {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .78rem;
    padding: .45em .8em;
}

.footer-trust {
    font-size: .82rem;
}

.footer-icon-secure {
    color: var(--success);
}

.footer-icon-delivery {
    color: var(--primary);
}

.footer-icon-returns {
    color: var(--accent);
}






/* ═══════════════════════════════════════
   CART SIDEBAR
═══════════════════════════════════════ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 1040;
}

    .cart-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cart-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    display: flex;
    z-index: 1050;
    transform: translateX(100%);
    transition: .35s ease;
}

    .cart-wrapper.active {
        transform: translateX(0);
    }

.recommend-panel {
    width: 270px;
    background: #fff;
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
    display: flex;
    flex-direction: column;
}

.cart-panel {
    width: 500px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid #ededed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

    .panel-head h3 {
        font-size: 20px;
        font-weight: 500;
        color: #111;
        margin: 0;
    }

.close-btn {
    border: none;
    background: transparent;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.panel-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 14px 16px 18px;
}

    .panel-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .panel-scroll::-webkit-scrollbar-thumb {
        background: #d8d8d8;
        border-radius: 30px;
    }

.recommend-card {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ececec;
}

.recommend-img-box {
    background: #f3f3f3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .recommend-img-box img {
        max-width: 100%;
        max-height: 94%;
        object-fit: contain;
        border-radius: 10px;
    }

.recommend-title {
    font-size: 18px;
    line-height: 1.35;
    color: #111;
    margin-bottom: 8px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.new-price {
    color: #d85b5b;
    font-size: 18px;
    font-weight: 600;
}

.old-price {
    color: #9a9a9a;
    font-size: 18px;
    text-decoration: line-through;
}

.free-box {
    background: #fafafa;
    border-radius: 10px;
    padding: 18px 18px 20px;
    margin-bottom: 18px;
}

    .free-box p {
        font-size: 15px;
        color: #222;
        margin-bottom: 10px;
    }

        .free-box p span {
            color: #d85b5b;
            font-weight: 700;
        }

.progress-custom {
    width: 100%;
    height: 4px;
    background: #e6e6e6;
    border-radius: 50px;
    overflow: hidden;
}

    .progress-custom .fill {
        height: 100%;
        background: #4caf50;
        border-radius: 50px;
        min-width: 4px;
    }

.mini-line {
    width: 78px;
    height: 5px;
    background: #dedede;
    border-radius: 10px;
    margin: 12px 0 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 12px 0 16px;
    border-top: 1px solid #ededed;
}

    .cart-item:first-of-type {
        border-top: none;
    }

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    background: #f3f3f3;
    overflow: hidden;
    flex-shrink: 0;
}

    .cart-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-top-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cart-product-title {
    font-size: 16px;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.remove-link {
    color: #d85b5b;
    font-size: 13px;
    text-decoration: underline;
    white-space: nowrap;
}

.item-meta {
    font-size: 14px;
    color: #9a9a9a;
    margin-bottom: 4px;
}

    .item-meta span {
        color: #333;
    }

.item-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.item-price {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.action-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 22px;
}

.action-item {
    border: 1px solid #ececec;
    border-radius: 6px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    cursor: pointer;
}

    .action-item:hover {
        background: #f5f5f5;
    }

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

    .subtotal-row .amount {
        font-size: 20px;
        font-weight: 700;
        color: #111;
    }

.agree-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

    .agree-box input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #111;
        cursor: pointer;
        flex-shrink: 0;
    }

    .agree-box label {
        font-size: 14px;
        color: #111;
        margin: 0;
        cursor: pointer;
    }

    .agree-box a {
        color: #111;
        text-decoration: underline;
    }

.cart-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.btn-cart-outline {
    height: 54px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    border: 1.5px solid #111;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .2s, color .2s;
}

    .btn-cart-outline:hover {
        background: #111;
        color: #fff;
    }

.btn-cart-dark {
    height: 54px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .btn-cart-dark:hover {
        background: #333;
        color: #fff;
    }

.continue-text {
    text-align: center;
    font-size: 16px;
    color: #111;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}



/* Base — desktop unchanged */
.announce-bar {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.announce-inner {
    display: inline; /* desktop: normal static text */
}

/* Mobile only — text scroll */
@media (max-width: 767.98px) {

    .announce-bar {
        padding: 8px 0;
        text-align: left; /* center ka koi matlab nahi jab text scroll ho */
    }

    .announce-inner {
        display: inline-block;
        white-space: nowrap;
        animation: mobile-ticker 18s linear infinite;
    }

    .announce-bar:hover .announce-inner {
        animation-play-state: paused;
    }

    @keyframes mobile-ticker {
        0% {
            transform: translateX(100vw);
        }
        /* right se aayega */
        100% {
            transform: translateX(-100%);
        }
        /* left se nikl jayega */
    }
}




.mbvl {
    display: flex;
    width: 100%;
}






/* Responsive */
@media (max-width: 991.98px) {
    .recommend-panel {
        width: 240px;
    }

    .cart-panel {
        width: 430px;
    }
    #mainNav {
        padding-bottom: 0px;
    }
    .mbvl { display:flex;}

    #mainNav .navbar-nav {
        padding-top: 4px;
    }

        #mainNav .nav-link {
            padding: 8px 4px;
        }

    /* Suggestion box full width on mobile */
    .search-suggestions {
        min-width: unset;
        width: 100%;
    }
    .search-merged {
        width: 100%;
    }

}
@media (min-width: 992px) {
    .navbar-search-form {
        width: 30vw;
        padding: 0;
        display: flex;
        align-items: center;
    }


    /* ── Navbar layout ───────────────────────────── */
    .navbar-container {
        flex-wrap: wrap;
    }

    /* Search — centered on desktop, full width on mobile */




    /* Make search-merged fill its container */
    .search-merged {
        width: 100%;
        position: relative;
    }

    /* Avatar size */
    .navbar-avatar {
        width: 32px;
        height: 32px;
        font-size: .8rem;
        flex-shrink: 0;
    }
}


#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1019; /* ✅ sticky navbar (1020) ke neeche */
    display: none;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    border: none;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    #backToTop:hover {
        background-color: #0b5ed7;
    }

    #backToTop.show {
        display: flex;
    }


.sticky-top2 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9;
}


.navbar-brand img {
    width: 150px;
}