/* public/assets/css/custom.css */

/* --- Core Logo Sizing and Positioning --- */
.nav-header .nav-brand .logo {
    display: block;
    height: auto;
    position: relative;
    top: -7px;
    max-width: 100%;
}

.navigation-landscape .nav-header .nav-brand .logo {
    width: 150px; /* Smaller for desktop */
}

.navigation-landscape .nav-header,
.navigation-landscape .nav-header .nav-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    line-height: normal !important;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .navigation-landscape .nav-header .nav-brand .logo {
        width: 180px !important;
        max-width: 100%;
    }
    .navigation-landscape .nav-header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        justify-content: center;
    }
}

/* --- Navigation & Menu Styles --- */
.user-greeting {
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.nav-menu-social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu-social > li {
    margin: 0;
}

.message-icon-container {
    display: flex;
    align-items: center;
}

.message-icon-desktop {
    padding: 8px 10px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-icon-desktop:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.message-icon-desktop i.bi-chat-dots {
    font-size: 18px !important;
    color: #fff;
}

.message-icon-desktop:hover i.bi-chat-dots {
    color: #f8f9fa;
}

.cart-content {
    padding: 8px 10px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-content:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.cart-content i.bi-basket2 {
    font-size: 18px !important;
    color: #fff !important;
}

.cart-content:hover i.bi-basket2 {
    color: #f8f9fa !important;
}

.head-cart-counter,
.unread-counter {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #3a4879;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile_nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile_nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .mobile_nav ul {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .mobile_nav li {
        margin: 0;
    }
    .mobile_nav a {
        padding: 8px 10px;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile_nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .mobile_nav i {
        font-size: 18px !important;
        color: #fff;
    }
    .mobile_nav .cart-content i.bi-basket2 {
        color: #fff !important;
    }
    .mobile_nav .unread-counter,
    .mobile_nav .head-cart-counter {
        top: -6px;
        right: -6px;
        width: 16px;
        height: 16px;
        font-size: 10px;
        box-shadow: none;
    }
    .nav-menu-social .d-none.d-md-block {
        display: none !important;
    }
}

.mobile-user-menu {
    position: fixed;
    top: 70px;
    right: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 250px;
}

.mobile-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-items {
    padding: 8px 0;
}

.mobile-menu-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    position: relative;
}

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

.mobile-menu-item button {
    background: none;
    border: none;
    color: #333;
    padding: 0;
    width: 100%;
    text-align: left;
}

.mobile-menu-item .unread-counter,
.dropdown-item .unread-counter {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 8px;
    display: inline-flex;
    width: 16px;
    height: 16px;
    font-size: 10px;
    box-shadow: none;
}

.dropdown-toggle::after {
    margin-left: 6px;
}

.nav-menu-social a,
.mobile_nav a {
    transition: all 0.3s ease;
}

.nav-menu-social a:hover,
.mobile_nav a:hover {
    transform: translateY(-1px);
}

.nav-menu-social,
.mobile_nav ul {
    align-items: center;
}

.nav-menu-social .dropdown {
    margin-left: 0;
}

.nav-menu-social .dropdown > a {
    padding: 8px 10px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu-social .dropdown > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu-social > li:not(:last-child) {
    margin-right: 2px;
}
/* public/assets/css/custom.css */

/* ... (your existing CSS code) ... */

/* --- INTL-TEL-INPUT SPECIFIC STYLES (now in custom.css) --- */
.iti {
    width: 100% !important;
    position: relative;
}

.iti__selected-flag {
    padding: 0 8px !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.iti__dropdown {
    /* Fixed position relative to the viewport, high z-index */
    position: fixed !important;
    z-index: 2147483647 !important; /* Max possible z-index value */

    box-sizing: border-box !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    white-space: nowrap !important; /* Prevent country names from wrapping */

    border: 1px solid #ccc !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    background-color: #fff !important;
    border-radius: 4px !important;

    /* Hide off-screen initially, JS will position it dynamically */
    left: -9999px;
    top: -9999px;
    width: auto;
    max-width: none; /* Keep this for desktop flexibility if needed */
    min-width: unset;
    transform: none; /* Ensure no conflicting transforms */
}

/* Add this media query for responsive width */
@media (max-width: 768px) {
    .iti__dropdown {
        /* On smaller screens, limit the max-width to make it narrower */
        max-width: 280px !important; /* Adjust this value as needed */
        width: 100% !important; /* Allow it to take full width up to max-width */
        box-sizing: border-box !important;
        /* Re-center it or adjust left/right for better appearance if needed */
        /* left: 50% !important; */
        /* transform: translateX(-50%) !important; */
    }

    /* You might also want to adjust the width of the country list itself */
    .iti__country-list {
        max-width: 330px !important; /* Match the dropdown width */
    }
}


.iti__country-list {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    column-count: unset !important;
    -webkit-column-count: unset !important;
    -moz-column-count: unset !important;
}

/* ... (rest of your CSS code) ... */
.iti__country {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.iti__country:hover {
    background-color: #f0f0f0 !important;
}

.iti__flag-box {
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

.iti__country-name {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    color: #333 !important;
}

.iti__dial-code {
    flex-shrink: 0 !important;
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-left: 8px !important;
}

/* Ensure Bootstrap modals are properly layered below this */
.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}

/* Aggressively ensure modal content and body don't clip */
.modal-content,
.modal-body,
.modal-dialog {
    overflow: visible !important;
}