﻿
.cart-badge {
    position: relative;
    line-height: 1;
}

    .cart-badge::after {
        content: attr(data-count);
        position: absolute;
        top: -10px;
        right: -12px;
        background: #ff1a1a; /* red */
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px #fff; /* white ring (like screenshot) */
    }

/*    .cart-badge::after {
        content: attr(data-count);
        position: absolute;
        top: -8px;
        right: -10px;
        background-color: red;
        color: white;
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 50%;
    }*/

.alert-popup-success {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f9ffe5;
    padding: 15px 30px;
    border: 1px solid #cbdb9b;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 90%;
    min-width: 300px;
    width: auto;
    white-space: nowrap;
    font-family: sans-serif;
}

    .alert-popup-success p {
        margin: 0 0 10px;
        white-space: normal;
    }

.progress-bar {
    height: 5px;
    background: #f4a261;
    width: 100%;
    border-radius: 3px;
    animation: shrinkBar 4s linear forwards;
}

.alert-popup-error {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffc8c8;
    padding: 15px 30px;
    border: 1px solid #f8a4a4;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 90%;
    min-width: 300px;
    width: auto;
    white-space: nowrap;
    font-family: sans-serif;
}

    .alert-popup-error p {
        margin: 0 0 10px;
        white-space: normal;
    }

.progress-bar-error {
    height: 5px;
    background: #f63f3f;
    width: 100%;
    border-radius: 3px;
    animation: shrinkBar 4s linear forwards;
}


@keyframes shrinkBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/*----------------progress bar style--------------------------------*/

.gift-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #f9ded6;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

    .gift-bar .progress-line {
        position: absolute;
        top: 40%;
        left: 0;
        height: 4px;
        width: 100%;
        background: #ffffff;
        z-index: 1;
    }

    .gift-bar .progress-fill {
        position: absolute;
        top: 40%;
        left: 0;
        height: 4px;
        background: #ff7347;
        z-index: 2;
        transition: width .3s ease;
    }

.gift-step {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 33%;
}

    .gift-step .circle {
        width: 50px;
        height: 50px;
        background: #fff;
        border: 3px solid #ff7347;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 5px;
        font-size: 20px;
        color: #ff7347;
    }

    .gift-step .label {
        font-size: 14px;
        color: #333;
    }

.gift-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    color: #ff7347;
}

.gift-step {
    flex: 1;
    width: auto;
}
/* Optional (looks nicer and makes geometry more predictable) */
.gift-bar {
    padding-left: 16px;
    padding-right: 16px;
}

/*----------------Category page style--------------------------------*/

.category-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.category-name {
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
}

.category-card {
    transition: transform 0.2s;
    cursor: pointer;
}

    .category-card:hover {
        transform: scale(1.03);
    }

/*----------------Product page style--------------------------------*/
.product-card {
    transition: transform 0.2s;
    cursor: pointer;
}

    .product-card:hover {
        transform: scale(1.02);
    }

.product-img {
    width: 100%;
    height: 320px;
    object-fit: fill;
}

.back-btn-cursor {
    cursor: pointer;
}

.spinner-border {
    border: var(--bs-spinner-border-width) solid #FF5722;
    border-right-color: transparent;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* Dropdown panel */
.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 180px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 1000;
}

/* Show on hover/focus */
.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown,
.profile-menu.open .profile-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Items */
.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

    .profile-dropdown .dropdown-item:hover {
        background: #f6f7fb;
    }

/* Keep dropdown readable on dark navbar */
.navbar.bg-dark .profile-dropdown {
    border-color: #2b2f35;
}


/* -------------------------Header menu-----------------------------------------------------*/

:root {
    --brand-orange: #f26f3b; /* tweak if you need */
    --brand-orange-d: #d65928; /* hover shade */
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

    .site-header .navbar-nav .nav-link {
        text-transform: uppercase;
        letter-spacing: .06em;
        font-weight: 600;
        font-size: 14px;
        padding: 0.75rem 0.9rem;
        color: #111;
    }

        .site-header .navbar-nav .nav-link:hover,
        .site-header .navbar-nav .nav-link:focus {
            color: var(--brand-orange);
        }

    .site-header .dropdown-toggle::after {
        margin-left: .35rem;
        vertical-align: .12em;
    }

.brand-logo {
    height: 63px; /* adjust to your logo */
}

.nav-actions a {
    color: #198754;
}

/* Smaller icons on mobile, prevent overflow */
@media (max-width: 991.98px) {

    .nav-actions i, .navbar .bi-person, .navbar .bi-cart {
        font-size: 1.35rem
    }
}

/* Clean toggler focus */
.navbar-toggler {
    border: 0
}

    .navbar-toggler:focus {
        box-shadow: none
    }


.cart-badge[data-count]:not([data-count="0"])::after {
    content: attr(data-count);
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e31b23;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
}

/* If you use a ::after cart badge, ensure it stays inside */
#cartIcon[data-count]:not([data-count="0"])::after {
    content: attr(data-count);
    position: absolute;
    top: -4px;
    right: -8px;
    background:#ff1a1a;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
}

/* breadcrumb bar like screenshot */
.subheader {
    background: #f3f3f3;
    border-bottom: 1px solid #eee;
}

    .subheader .crumbs {
        font-size: 14px;
        padding: .9rem 0;
        color: #666;
    }

        .subheader .crumbs a {
            color: #666;
            text-decoration: none;
        }

            .subheader .crumbs a:hover {
                color: #111;
            }

        .subheader .crumbs .current {
            color: #1e3c2b;
            font-weight: 700;
        }

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        margin-top: 10px;
    }

    .mx-lg-auto {
        margin-right: 0 !important;
    }
}

/* orange icons*/
.login-link, .login-link i, .cart-link, .cart-link i {
    color: #1e3c2b !important;
}

    .login-link:hover, .cart-link:hover {
        color: #198754 !important;
    }

.login-link {
    font-weight: 700;
}



/*--------------------- footer -------------------------------*/

/* Dark footer tune-up */
.site-footer.bg-dark {
    color: #e6e6e6;
    background: #1e3c2b !important;
    border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer .footer-title {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: .9rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-footer .footer-logo {
    height: 46px;
}

/* Links & icons */
.site-footer a {
    color: #cfcfcf;
    text-decoration: none;
}

    .site-footer a:hover {
        color: var(--brand-orange);
    }

.site-footer .footer-social a {
    font-size: 1.25rem;
    margin-right: .65rem;
    color: #bdbdbd;
    transition: transform .15s ease,color .15s ease;
}

    .site-footer .footer-social a:hover {
        color: var(--brand-orange);
        transform: translateY(-1px);
    }

.site-footer ul li {
    margin-bottom: .35rem;
}

/* Newsletter on dark */
.site-footer .newsletter .form-control {
    background: #1e352a;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
}

    .site-footer .newsletter .form-control::placeholder {
        color: #8b8b8b;
    }

    .site-footer .newsletter .form-control:focus {
        background: #198754;
        border-color: var(--brand-orange);
        box-shadow: 0 0 0 .25rem rgba(242,111,59,.15);
        color: #fff;
    }

.site-footer .newsletter .btn {
    background: #198754;
    color: #fff;
    border: none;
    border-radius: .5rem;
}

    .site-footer .newsletter .btn:hover {
        filter: brightness(1.06);
    }

/* Bottom strip */
.site-footer .footer-bottom {
    background: #042d1a;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #b8b8b8 !important;
}

    .site-footer .footer-bottom a {
        color: #7c7b7b !important;
    }

        .site-footer .footer-bottom a:hover {
            color: #fff !important;
        }

/*--------------------WhatsApp floating -------------------------------------*/

#whatsapp-popup {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 16px;
    width: 280px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

    #whatsapp-popup.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    #whatsapp-popup .close-btn {
        cursor: pointer;
        font-size: 18px;
        font-weight: bold;
        color: #999;
    }

.min-height-500 {
    min-height: 500px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .min-height-500 {
        min-height: 300px; /* Adjust to a smaller height for mobile if needed */
    }
}
