body {
    font-family: 'Manrope', sans-serif;
}

.navbar {
    padding: 15px 0;
    background-color: #fff !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #000 !important;
    text-decoration: none;
}

.navbar-brand img {
    transition: transform 0.2s ease;
    margin-right: 8px;
}

.navbar-brand:hover {
    color: #000 !important;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-arrow.rotated {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.mobile-dropdown-menu.show {
    display: block;
}

.mobile-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    display: block;
}

.mobile-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu .dropdown-item:hover {
    background-color: #e9ecef;
    color: #22c55e;
}

/* Center the main navigation */
.navbar-nav.main-nav {
    position: absolute;
    left: 40%;
    transform: translateX(-36%);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 15px !important;
    margin: 0 2px;
    white-space: nowrap;
}

/* CSS Changes: Add to your base_style.css - Mobile Sign In & Cart Bold Styling */

@media (max-width: 991.98px) {
    /* Mobile Sign In Button Styling */
    .mobile-nav-items .nav-item:has(a[href*="login"]) .nav-link,
    .mobile-nav-items .nav-item a[href*="login"] {
        background: linear-gradient(135deg, #24511D, #2d6124);
        color: #fff !important;
        font-weight: 700;
        padding: 12px 20px;
        border-radius: 12px;
        margin: 8px 0;
        border: 2px solid #24511D;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-items .nav-item:has(a[href*="login"]) .nav-link::before,
    .mobile-nav-items .nav-item a[href*="login"]::before {
        content: '👤';
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .mobile-nav-items .nav-item:has(a[href*="login"]) .nav-link:hover,
    .mobile-nav-items .nav-item a[href*="login"]:hover {
        background: linear-gradient(135deg, #1d4217, #24511D);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(36, 81, 29, 0.3);
    }
    
    /* Mobile Cart Button Styling */
    .mobile-nav-items .nav-item:has(a[href*="cart"]) .nav-link,
    .mobile-nav-items .nav-item a[href*="cart"],
    .mobile-nav-items .nav-item a[onclick*="openAuthSidebar"] {
        background: linear-gradient(135deg, #000, #333);
        color: #fff !important;
        font-weight: 700;
        padding: 12px 20px;
        border-radius: 12px;
        margin: 8px 0;
        border: 2px solid #000;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-items .nav-item:has(a[href*="cart"]) .nav-link::before,
    .mobile-nav-items .nav-item a[href*="cart"]::before,
    .mobile-nav-items .nav-item a[onclick*="openAuthSidebar"]::before {
        content: '🛒';
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .mobile-nav-items .nav-item:has(a[href*="cart"]) .nav-link:hover,
    .mobile-nav-items .nav-item a[href*="cart"]:hover,
    .mobile-nav-items .nav-item a[onclick*="openAuthSidebar"]:hover {
        background: linear-gradient(135deg, #333, #555);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Alternative approach using direct targeting */
    .navbar-nav.main-nav .mobile-nav-items .nav-link {
        margin: 2px 0;
    }
    
    /* Sign In specific styling */
    .navbar-nav.main-nav .mobile-nav-items a[href$="login/"] {
        background: linear-gradient(135deg, #24511D, #2d6124) !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 8px 0 !important;
        border: 2px solid #24511D !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href$="login/"]:before {
        content: '👤 ';
        font-size: 1rem;
    }
    
    /* Cart specific styling for both authenticated and non-authenticated */
    .navbar-nav.main-nav .mobile-nav-items a[href*="cart"],
    .navbar-nav.main-nav .mobile-nav-items a[onclick*="openAuthSidebar"] {
        background: linear-gradient(135deg, #000, #333) !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 8px 0 !important;
        border: 2px solid #000 !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="cart"]:before,
    .navbar-nav.main-nav .mobile-nav-items a[onclick*="openAuthSidebar"]:before {
        content: '🛒 ';
        font-size: 1rem;
    }
    
    /* Hover effects */
    .navbar-nav.main-nav .mobile-nav-items a[href$="login/"]:hover {
        background: linear-gradient(135deg, #1d4217, #24511D) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(36, 81, 29, 0.3);
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="cart"]:hover,
    .navbar-nav.main-nav .mobile-nav-items a[onclick*="openAuthSidebar"]:hover {
        background: linear-gradient(135deg, #333, #555) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Customizations specific styling */
    .navbar-nav.main-nav .mobile-nav-items a[href*="customizer"] {
        background: linear-gradient(135deg, #8B5A2B, #A0632E) !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 8px 0 !important;
        border: 2px solid #8B5A2B !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="customizer"]:before {
        content: '🎨 ';
        font-size: 1rem;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="customizer"]:hover {
        background: linear-gradient(135deg, #7A4F25, #8B5A2B) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
    }
    
    /* My Profile specific styling */
    .navbar-nav.main-nav .mobile-nav-items a[href*="my_profile"],
    .navbar-nav.main-nav .mobile-nav-items a[href*="profile"] {
        background: linear-gradient(135deg, #4C63D2, #5B73E8) !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 8px 0 !important;
        border: 2px solid #4C63D2 !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="my_profile"]:before,
    .navbar-nav.main-nav .mobile-nav-items a[href*="profile"]:before {
        content: '👤 ';
        font-size: 1rem;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="my_profile"]:hover,
    .navbar-nav.main-nav .mobile-nav-items a[href*="profile"]:hover {
        background: linear-gradient(135deg, #3B4FBD, #4C63D2) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(76, 99, 210, 0.3);
    }
    
    /* My Orders specific styling */
    .navbar-nav.main-nav .mobile-nav-items a[href*="my_orders"],
    .navbar-nav.main-nav .mobile-nav-items a[href*="orders"] {
        background: linear-gradient(135deg, #DC2626, #EF4444) !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 8px 0 !important;
        border: 2px solid #DC2626 !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="my_orders"]:before,
    .navbar-nav.main-nav .mobile-nav-items a[href*="orders"]:before {
        content: '📦 ';
        font-size: 1rem;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="my_orders"]:hover,
    .navbar-nav.main-nav .mobile-nav-items a[href*="orders"]:hover {
        background: linear-gradient(135deg, #B91C1C, #DC2626) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }
    
    /* Log Out specific styling */
    .navbar-nav.main-nav .mobile-nav-items a[href*="sign_out"] {
        background: linear-gradient(135deg, #9333EA, #A855F7) !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 8px 0 !important;
        border: 2px solid #9333EA !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="sign_out"]:before {
        content: '🚪 ';
        font-size: 1rem;
    }
    
    .navbar-nav.main-nav .mobile-nav-items a[href*="sign_out"]:hover {
        background: linear-gradient(135deg, #7C3AED, #9333EA) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    }
}

.nav-link:hover {
    color: #22c55e !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #22c55e;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Products dropdown - hover trigger */
.nav-link.dropdown-toggle i {
    font-size: 0.75rem;
    margin-left: 6px;
    position: relative;
    top: 1px; /* perfect vertical alignment */
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 15px 0;
    margin-top: 8px;
    min-width: 200px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown {
    padding-bottom: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #22c55e;
    transform: translateX(5px);
}

.dropdown-item i {
    color: #22c55e;
}

.nav-link.dropdown-toggle::after {
    content: none !important;
    border: none !important;
}

/* Add caret ONLY to the Products dropdown */
.nav-item.dropdown > a.nav-link.dropdown-toggle::after {
    content: "";
    display: inline-block !important;
    border-top: 0.45em solid currentColor !important;
    border-right: 0.35em solid transparent !important;
    border-left: 0.35em solid transparent !important;
    margin-left: 6px !important;
    margin-top: 2px !important;
}

/* Right side actions */
.navbar-nav.right-nav {
    margin-left: auto;
    padding-left: 20px;
    flex-shrink: 0;
    align-items:center;
}

.navbar-nav .nav-item .nav-link i {
    transition: transform 0.2s ease;
}

.navbar-nav .nav-item .nav-link:hover i {
    transform: scale(1.1);
}

.cart-badge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #22c55e !important;
}

.hotline-text {
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    padding: 0 15px;
}

.hotline-text .hotline-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.hotline-text .hotline-number {
    font-weight: 700;
    color: #000;
    font-size: 0.9rem;
}

.btn-signup {
    background-color: #000;
    border-color: #000;
    color: #fff;
    font-weight: 600;
    /* padding: 10px 25px; */
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.navbar-nav .dropdown-menu {
    margin-top: 10px; /* Add space between button and dropdown */
}

.btn-signup:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Search and cart icons */
.action-icon {
    font-size: 1.2rem;
    color: #333;
    transition: color 0.2s ease;
}

.action-icon:hover {
    color: #22c55e;
}

@media (max-width: 1200px) {
    .navbar-nav.main-nav {
        left: 35%;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav.main-nav {
        position: static;
        transform: none;
        margin: 20px 0;
        left: auto;
    }
    
    .navbar-nav.right-nav {
        display: none; /* Hide right nav on mobile */
    }
    
    .mobile-nav-items {
        display: block !important; /* Show mobile nav items */
    }
    
    .navbar-nav .nav-item {
        margin: 4px 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .hotline-text {
        margin: 15px 0;
    }
}

@media (min-width: 992px) {
    .mobile-nav-items {
        display: none !important; /* Hide on desktop */
    }
}

.footer {
    background-color: #f8f9fa;
    font-family: 'Manrope', sans-serif;
}

.footer-brand .brand-name {
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
}

.footer-title {
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #22c55e !important;
}

.contact-info i {
    color: #22c55e;
    width: 16px;
}

.newsletter-form .input-group {
    max-width: 400px;
}

.newsletter-input {
    border: 1px solid #e5e7eb;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-right: none;
    background-color: #fff;
}

.newsletter-input:focus {
    box-shadow: none;
    border-color: #22c55e;
    background-color: #fff;
}

.newsletter-btn {
    background-color: #000;
    border: 1px solid #000;
    border-radius: 0 25px 25px 0;
    color: #fff;
    padding: 12px 20px;
    transition: all 0.2s ease;
    border-left: none;
}

.newsletter-btn:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
    transform: translateX(2px);
}

.footer-logo-bottom img {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-logo-bottom:hover img {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .newsletter-form .input-group {
        max-width: none; /* Remove max-width restriction */
        width: 100%; /* Use full width */
        margin: 0; /* Remove auto margin */
        flex-direction: row; /* Keep horizontal layout */
    }
    
    .newsletter-input {
        flex: 1; /* Take remaining space */
        border-right: none;
        border-radius: 25px 0 0 25px;
    }
    
    .newsletter-btn {
        flex-shrink: 0; /* Don't shrink */
        width: auto; /* Remove 100% width */
        border-radius: 0 25px 25px 0;
    }
    
    .newsletter-btn {
        padding: 10px 15px; /* Reduced padding */
    }
    
    .col-md-6.text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .newsletter-form .input-group {
        max-width: none; /* Remove max-width restriction */
        width: 100%; /* Use full width */
        flex-direction: row; /* Keep horizontal layout */
    }
    
    .newsletter-btn {
        width: auto; /* Remove 100% width */
    }
    
    .newsletter-input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .input-group {
        flex-direction: column;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #7A7A7A;
    border: none;
    border-radius: 10%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top img {
    filter: brightness(0) invert(1); /* Makes the icon white */
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top img {
        width: 18px;
        height: 18px;
    }
}

.nav-link.active {
    color: #22c55e !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
    background-color: #22c55e;
}

/* Active dropdown link */
.dropdown .nav-link.active {
    color: #22c55e !important;
}

.dropdown .nav-link.active::after {
    width: 80%;
}

/* Hanger icon styling */
.action-icon-img {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.action-icon-img:hover {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(47%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

/* Logout Modal Styles */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.logout-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.logout-modal-overlay.show .logout-modal {
    transform: scale(1) translateY(0);
}

.logout-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    position: relative;
}

.logout-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.logout-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logout-icon i {
    font-size: 24px;
    color: white;
}

.logout-modal-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.logout-modal-body {
    padding: 25px 30px;
    text-align: center;
}

.logout-modal-body p {
    margin: 0 0 10px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.logout-subtitle {
    color: #666 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

.logout-modal-actions {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel, .btn-logout {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-logout {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: 2px solid transparent;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ee5a52, #dc4c47);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(238, 90, 82, 0.3);
}

.btn-cancel:active, .btn-logout:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .logout-modal {
        width: 95%;
        margin: 20px;
    }
    
    .logout-modal-header {
        padding: 25px 20px 15px;
    }
    
    .logout-modal-body {
        padding: 20px;
    }
    
    .logout-modal-actions {
        padding: 0 20px 25px;
        flex-direction: column;
    }
    
    .btn-cancel, .btn-logout {
        flex: none;
    }
}

.btn-primary {
    background-color: #24511D !important;
    border-color: #24511D !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #1d4217 !important;
    border-color: #1d4217 !important;
    color: white !important;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: #24511D !important;
    border-color: #24511D !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(36, 81, 29, 0.25) !important;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #163312 !important;
    border-color: #163312 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(36, 81, 29, 0.25) !important;
}

.btn-primary:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(36, 81, 29, 0.25) !important;
}

/* Small laptop screen fixes for navbar */
@media (min-width: 992px) and (max-width: 1400px) {
    .btn-signup {
        font-size: 0.85rem;
        padding: 8px 18px;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .navbar-nav.main-nav {
        left: 35%;
    }
    
    .navbar-nav.right-nav {
        padding-left: 10px;
    }
    
    .hotline-text {
        font-size: 0.75rem;
        padding: 0 10px;
    }
    
    .hotline-text .hotline-number {
        font-size: 0.8rem;
    }
}

/* Multi-level dropdown styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 8px 8px 8px;
    min-width: 180px;
    display: none !important; /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Show submenu only when hovering over the specific parent */
.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #666;
    margin-top: 5px;
    margin-right: -10px;
    transition: border-left-color 0.2s ease;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #22c55e;
}

/* Ensure main dropdown behavior is preserved */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Override the global dropdown hover for submenus */
.dropdown-submenu .dropdown-menu {
    margin-top: 0 !important;
}

/* Mobile subcategory styling */
@media (max-width: 991.98px) {
    .mobile-dropdown-menu .sub-category {
        background-color: #f8f9fa;
        font-size: 0.85rem;
    }
    
    .mobile-dropdown-menu .main-category {
        font-weight: 600;
        background-color: #e9ecef;
        border-bottom: none;
    }
    
    /* Disable hover effects on mobile */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: none;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .mobile-dropdown-menu {
        display: none;
        list-style: none;
        padding: 8px 0;
        margin: 8px 0 0 0;
        background-color: #fff;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .mobile-dropdown-menu.show {
        display: block;
    }

    .mobile-dropdown-menu .dropdown-item {
        padding: 10px 16px;
        color: #333;
        text-decoration: none;
        border-bottom: none;
        font-size: 0.9rem;
        display: block;
        transition: all 0.2s ease;
    }

    .mobile-dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #24511D;
    }

    /* Main category with subcategories */
    .main-category.mobile-sub-dropdown-toggle {
        background-color: #fff !important;
        font-weight: 600 !important;
        color: #333 !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-category.mobile-sub-dropdown-toggle:hover {
        background-color: #f8f9fa !important;
        color: #24511D !important;
    }

    /* Subcategories styling */
    .mobile-subdropdown-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }

    .mobile-subdropdown-menu.show {
        display: block;
    }

    .mobile-subdropdown-menu .dropdown-item {
        background-color: #f8f9fa !important;
        font-size: 0.85rem !important;
        color: #666 !important;
        padding: 10px 24px !important;
        border-bottom: 1px solid #e9ecef;
        font-weight: normal !important;
    }

    .mobile-subdropdown-menu .dropdown-item:hover {
        background-color: #e9ecef !important;
        color: #24511D !important;
    }

    .mobile-subdropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Arrow styling */
    .mobile-sub-arrow {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        color: #999;
    }

    .mobile-sub-arrow.rotated {
        transform: rotate(180deg);
    }

    /* Categories without subcategories */
    .mobile-dropdown-menu .dropdown-item:not(.main-category) {
        font-weight: 500;
        padding: 12px 16px;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-brand a {
    color: inherit;
    text-decoration: none;
}

.footer-brand a:hover .brand-name {
    color: #24511D;
}

.footer-brand a:focus {
    text-decoration: none;
    outline: none;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}


/* Contact button */
.contact-btn {
    background: #0c0c0c;
    color: #fff;
    border: none;
    /* padding: 5px 14px; */
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    align-items: center !important;
}


/* Floating popup */
.contact-popup {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    padding: 12px 15px;
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
    animation: fadeSlide 0.2s ease;
}

/* Animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.contact-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Items */
.contact-item {
    display: block;
    padding: 8px 10px;
    background: #f8f9fa;
    margin-bottom: 6px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.contact-item:hover {
    background: #e6e6e6;
    color:#22c55e;
}


.desktop-only { display: block; }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    
}


body.contact-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: transparent;
}

.nav-right-group {
    position: relative;
}

@media (min-width: 992px) {
    .nav-right-group .dropdown .dropdown-menu {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    .navbar .container-fluid {
        overflow: visible !important;
    }
}

.nav-right-group .contact-btn,
.nav-right-group .btn-signup,
.nav-right-group .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;
    padding: 0 14px !important;

    font-size: 0.95rem !important;
    line-height: 1 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.nav-right-group .dropdown-toggle {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


.nav-right-group .dropdown-toggle::after {
    margin-top: 0 !important;
    vertical-align: middle !important;
}
/* Add this to your product_detail.css */

.size-qty-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 0.75rem;
    padding: 2px 4px;
    color: #333;
    background: #fff;
    outline: none;
    margin-top: 4px;
    -moz-appearance: textfield;
}

/* Remove number input arrows */
.size-qty-input::-webkit-outer-spin-button,
.size-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.size-qty-input:focus {
    border-color: #24511D;
    box-shadow: 0 0 0 2px rgba(36, 81, 29, 0.15);
}

.size-qty-input:disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    border-color: #eee;
}

/* Red border when over stock */
.size-qty-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

/*------------------ Location Comment Box -------------------------------------*/
.location-comment-box {
    margin-top: 18px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.location-comment-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #242E49;
    margin-bottom: 10px;
}

.location-comment-input {
    border-radius: 10px;
    border: 1px solid #dcdfe4;
    padding: 12px 14px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 110px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.location-comment-input:focus {
    border-color: #24511D;
    box-shadow: 0 0 0 3px rgba(36, 81, 29, 0.12);
}

.location-comment-input::placeholder {
    color: #9aa1ad;
    font-size: 0.88rem;
}

.location-comment-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #6b7280;
}

#locationCommentCount {
    font-weight: 600;
    color: #24511D;
}

/* Mobile */
@media (max-width: 768px) {
    .location-comment-box {
        padding: 14px;
    }

    .location-comment-input {
        min-height: 95px;
        font-size: 0.88rem;
    }

    .location-comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/*------------------ Location Comment Box -------------------------------------*/
/* =========================
   Upload Component
========================= */

.bp-upload-container {
    width: 100%;
}

.bp-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 2.25rem 1rem;

    background: #ffffff;
    border: 1px dashed #cccccc;
    border-radius: 4px;

    cursor: pointer;
    position: relative;

    user-select: none;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.bp-upload-dropzone:hover {
    background-color: #fafafa;
    border-color: #999999;
}

/* Drag State */
.bp-upload-dropzone.dragover {
    background-color: #f1f8e9;
    border-color: #2E7D32;
}

/* Main Row */
.bp-upload-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    flex-wrap: wrap;

    margin-bottom: 0.5rem;
}

.bp-upload-lead-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon */
.bp-cloud-icon {
    font-size: 1.6rem;
    color: #cccccc;

    display: inline-block;
    vertical-align: middle;
}

/* Text */
.bp-upload-text {
    font-size: 0.95rem;
    color: #555555;
    font-weight: 500;
}

/* Upload Button */
.bp-upload-custom-btn {
    display: inline-block;

    padding: 0.4rem 1.2rem;

    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;

    color: #222222;

    font-weight: 700;
    font-size: 0.9rem;

    transition: all 0.15s ease;
}

.bp-upload-dropzone:hover .bp-upload-custom-btn {
    border-color: #adadad;
    background: #f5f5f5;
}

/* Subtext */
.bp-upload-subtext {
    font-size: 0.85rem;
    color: #666666;
}

/* =========================
   Preview Overlay
========================= */

.bp-upload-preview-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: #ffffff;

    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1rem;

    z-index: 5;
}

/* Preview Card */
.bp-preview-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    background: #f8f9fa;

    border: 1px solid #e0e0e0;
    border-radius: 4px;

    padding: 0.5rem 1rem;

    max-width: 90%;
}

.bp-preview-details {
    display: flex;
    align-items: center;
    gap: 0.4rem;

    font-size: 0.9rem;
}

.bp-preview-name {
    font-weight: 600;
    color: #222222;

    max-width: 180px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-preview-meta {
    color: #666666;
}

/* Remove Button */
.bp-preview-remove {
    background: transparent;
    border: none;

    color: #888888;

    cursor: pointer;

    padding: 0.1rem 0.3rem;

    display: flex;
    align-items: center;

    border-radius: 3px;

    transition: all 0.15s ease;
}

.bp-preview-remove:hover {
    color: #c62828;
    background: #f1f1f1;
}

.cart-placement-attachment {
    max-width: 260px;
}

.cart-placement-attachment-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 12px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fafafa;
}

.cart-placement-thumb {
    width: 56px;
    height: 56px;

    object-fit: cover;

    border-radius: 10px;
    border: 1px solid #dcdcdc;

    flex-shrink: 0;
}

.cart-placement-attachment-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cart-placement-attachment-subtitle {
    font-size: 12px;
    color: #6b7280;
}