:root {
    --primary-orange: #FF8C00;
    --secondary-orange: #FFA500;
    --dark-brown: #3E2723;
    --light-cream: #FFF8E1;
    --white: #FFFFFF;
    --accent-gradient: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    --logo-h: 50px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fdfdfd;
    color: var(--dark-brown);
}

h1, h2, h3, .brand-font {
    font-family: 'Playfair+Display', serif;
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    z-index: 1030;
}

@keyframes cartBounce {
    0%   { transform: translate(-50%, -50%) scale(1); }
    40%  { transform: translate(-50%, -50%) scale(1.5); }
    70%  { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.cart-count-badge { animation: none; }

.nav-logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-orange) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-brown) !important;
    padding: 0.4rem 0.8rem !important;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange) !important;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    border-radius: 50rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    background: var(--accent-gradient);
    filter: brightness(1.1);
}

.footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer h5 {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    body { padding-bottom: 80px; }

    .navbar {
        padding: 0 !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        background: white !important;
    }

    .navbar>.container-fluid {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
    }

    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-logo, .mobile-logo-icon {
        --logo-h: 55px;
        height: var(--logo-h) !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 60px !important;
        display: flex !important;
        align-items: center !important;
    }

    .marquee-text {
        font-size: 1rem !important;
        font-weight: bold !important;
        color: var(--primary-orange) !important;
        opacity: 1 !important;
    }

    .mobile-header-icon {
        font-size: 3.5rem !important;
        width: auto !important;
        height: auto !important;
        vertical-align: middle;
    }

    .marquee-container {
        flex: 1 1 0;
        min-width: 0;
        margin-left: 8px !important;
        overflow: hidden;
    }
}

.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    z-index: 999;
}

.mobile-nav-item {
    color: #8E8E93;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--primary-orange);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-text {
    display: inline-block;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.transition-all {
    transition: all 0.3s ease;
}

.premium-account-trigger {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.15) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    color: var(--dark-brown) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-account-trigger:hover, .premium-account-trigger.show {
    background: white !important;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.12);
    border-color: var(--primary-orange) !important;
    transform: translateY(-2px);
}

.honey-glass-dropdown {
    background: rgba(255, 250, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 24px;
    padding: 12px;
    min-width: 240px;
    margin-top: 15px !important;
    box-shadow: 0 25px 50px -12px rgba(255, 140, 0, 0.15);
    animation: dropdownFade 0.4s cubic-bezier(0, 0, 0.2, 1);
    z-index: 1060 !important;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.honey-dropdown-item {
    border-radius: 16px;
    padding: 10px 16px;
    color: var(--dark-brown);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.honey-dropdown-item i {
    font-size: 1.1rem;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

.honey-dropdown-item:hover {
    background: white;
    color: var(--primary-orange) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.honey-dropdown-item:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.honey-dropdown-item.text-danger:hover {
    color: #dc3545 !important;
    background: #fff5f5;
}

.dropdown-divider-honey {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.2), transparent);
    margin: 8px 0;
    border: none;
}

.mobile-account-tray {
    background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
    border-radius: 30px;
    padding: 24px;
    margin: 15px;
    box-shadow: 0 15px 35px rgba(210, 105, 30, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.mobile-avatar-circle {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.mobile-nav-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 20px;
    background: white;
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.mobile-nav-pill i {
    width: 32px;
    height: 32px;
    background: #fff8e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1rem;
}

.mobile-nav-pill:active { transform: scale(0.96); }

.mobile-login-card {
    padding: 30px 20px;
    border-radius: 32px;
    background: white;
    box-shadow: 0 20px 40px rgba(210, 105, 30, 0.06);
    margin: 15px;
    text-align: center;
    border: 2px solid #fff8e1;
}

.btn-modern-mobile {
    border-radius: 20px;
    padding: 14px 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 100%;
    transition: all 0.3s ease;
}

.offcanvas-honey {
    background-color: #fffdfa !important;
    border-left: none !important;
    width: 250px !important;
    border-radius: 30px 0 0 30px !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05) !important;
}

.drawer-header {
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: none;
}

.drawer-title-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: drawerMarquee 6s linear infinite;
    color: var(--primary-orange);
}

.drawer-title-scroll-wrap {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

@keyframes drawerMarquee {
    0%   { transform: translateX(0%); }
    30%  { transform: translateX(0%); }
    70%  { transform: translateX(-35%); }
    100% { transform: translateX(0%); }
}

.drawer-body {
    padding: 0 1.25rem 1.25rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    background: transparent;
}

.drawer-link:active {
    background: #fff8e1;
    color: var(--primary-orange);
    transform: scale(0.98);
}

.drawer-link i {
    width: 32px;
    height: 32px;
    background: #fff8e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1rem;
}

.drawer-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #bfa08a;
    letter-spacing: 1.5px;
    margin: 0.75rem 0 0.5rem 0.5rem;
}

.drawer-link.active {
    background: #fff8e1;
    color: var(--primary-orange) !important;
}

.drawer-link.active i {
    background: var(--primary-orange);
    color: white;
}

.drawer-user-box {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #fff8e1;
}

.drawer-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 8px 15px rgba(255, 140, 0, 0.25);
    flex-shrink: 0;
}

.notification-bell-trigger {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.5rem 0.75rem !important;
}

.notification-bell-trigger:hover {
    transform: scale(1.1) rotate(15deg);
}

.notification-badge {
    font-size: 0.65rem !important;
    padding: 0.35em 0.5em !important;
    border: 2px solid white;
    top: 5px !important;
}

.notification-dropdown {
    width: 350px !important;
    max-height: 420px !important;
    display: none; 
    flex-direction: column;
    border-radius: 24px !important;
    padding: 1.25rem !important;
    z-index: 1060 !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(15px) !important;
    overflow: hidden !important;
    margin-top: 0 !important;
}

.notification-dropdown.show {
    display: flex !important;
}

.notification-list {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
    scrollbar-width: thin;
    max-height: 300px;
}

.notification-item {
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid rgba(255, 140, 0, 0.05);
    transition: all 0.3s ease;
    white-space: normal !important;
}

.notification-item:hover {
    background: #fffcf5;
    border-color: rgba(255, 140, 0, 0.2);
    transform: translateX(4px);
}

.notification-item.unread {
    background: rgba(255, 140, 0, 0.04);
    border-left: 4px solid var(--primary-orange);
}

.notification-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-info { background: #e0f2fe; color: #0284c7; }
.notif-success { background: #dcfce7; color: #16a34a; }
.notif-warning { background: #fef3c7; color: #d97706; }
.notif-admin { background: #fee2e2; color: #dc3545; }

.notif-time {
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .navbar { padding: 0.28rem 0 !important; }
    .navbar .container { flex-wrap: nowrap !important; padding-left: 10px !important; padding-right: 10px !important; }
    .navbar-brand { font-size: 0.95rem !important; margin-right: 5px !important; white-space: nowrap; overflow: hidden; flex: 1 1 0; min-width: 0; }
    .navbar-collapse { width: 100%; margin: 0 -10px; padding: 0 10px; }
    .navbar-brand i { font-size: 1rem !important; padding-right: 3px; }
    .navbar .d-flex.align-items-center.d-lg-none { gap: 0.15rem !important; flex-shrink: 0; }
    .nav-link.px-2 { padding-left: 0.3rem !important; padding-right: 0.3rem !important; }
    .navbar-toggler { padding-left: 0.15rem !important; flex-shrink: 0; }
    .bi-bell, .bi-cart3, .bi-list { font-size: 1.15rem !important; }
    .notification-badge { font-size: 0.55rem !important; padding: 0.2em 0.45em !important; top: 4px !important; right: -2px !important; }
}

@media (max-width: 400px) {
    .notif-time { white-space: normal !important; display: block; width: 100%; text-align: right; }
    .dropdown-item .d-flex { flex-wrap: wrap !important; }
}

@keyframes honeySlideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes honeySlideUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.honey-alert.fade-out {
    animation: honeySlideUp 0.4s ease forwards;
}

@media (max-width: 991.98px) {
    body { padding-bottom: 80px; }
}

/* --- Chatbot Styles --- */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-orange);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 140, 0, 0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--accent-gradient);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--primary-orange);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg.bot {
    align-self: flex-start;
    background: #f8f9fa;
    color: var(--dark-brown);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex-grow: 1;
    min-width: 0;
    /* Critical: prevent input from stretching parent */
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 8px 12px;
    outline: none;
    font-size: 0.85rem;
}

.chatbot-input-area button {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chatbot-input-area button i {
    font-size: 0.95rem;
    margin-left: 1px;
    /* Minimal offset for visual balance */
}

.chatbot-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s;
}

.chatbot-fab:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 576px) {
    .chatbot-container {
        right: 10px;
        bottom: 90px;
        width: calc(100vw - 20px);
    }

    .chatbot-fab {
        width: 48px;
        height: 48px;
        bottom: 85px;
        /* Restored to original place */
        right: 15px;
        font-size: 1.25rem;
        box-shadow: 0 8px 16px rgba(255, 140, 0, 0.25);
    }
}

/* Mobile adjustments for auth modal */
@media (max-width: 575.98px) {
    #authModal .modal-dialog {
        margin: 1.5rem auto;
        max-width: calc(100% - 2.5rem);
    }
    #authModal .modal-body {
        padding: 1.25rem 1rem !important;
    }
    #authModal .bi-shield-lock {
        font-size: 2.5rem !important;
    }
    #authModal h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    #authModal p {
        font-size: 0.78rem !important;
        margin-bottom: 1.25rem !important;
    }
    #authModal .btn {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
    }
    #authModal .modal-footer {
        padding-bottom: 1.25rem !important;
    }
}
