.search-container {
	margin-left: 25px;
	display: flex;
	height: 40px;
	border-radius: 3px;
	overflow: hidden;
}

.search-container:hover {
	outline: 1px solid #099;
}

.search-select {
	width: 70px;
	border: none;
	background-color: #e6e3e3;
	padding-left: 4px;
}

.search-input {
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
	padding: 3px;
	font-size: 1.6rem;
}

.search-icon {
	width: 50px;
	background-color: #099;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.2rem;
	color: #fff;
}

.header {
	padding: 7px;
	background-color: #404040;
}

.header ul {
	display: flex;
	justify-content: center;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.header ul li {
	margin: 0 3px;
	font-size: 12px; /* Original size - unchanged */
}

.header ul li:hover {
	border: 1px solid #099;
	border-bottom: 3px solid #099;
	border-left: 3px solid #099;
	border-radius: 5px;
}

.nav ul li a:hover {
	border-bottom: 3px solid #099;
	border-radius: 5px;
}

#all_cat:hover {
	border-right: 3px solid #099;
	border-left: 3px solid #099;
	border-radius: 3px;
	padding: 3px;
}

p,a,li,h1,h2,h3,h4,h5,h6 {
	font-family: "Roboto",sans-serif,"Abyssinica SIL",serif;
	font-weight: 400;
}


li,a {
	list-style: none;
	text-decoration: none;
	color: #fff;
}

.dropdown ul {
	display: none;
}

.dropdown li:hover>ul {
	display: inline;
	background-color: #fff;
}

.header-second-row li {
	font-size: 13px; /* Original size - unchanged */
	font-weight: 700;
}

#contain {
	position: relative;
	top: -7px;
	left: -15px;
	text-align: center;
	color: #ffff1a;
	border-top: 2px solid #ff0;
	border-right: 2px solid #ff0;
	border-radius: 50%;
	padding: 5px;
}

.badge {
	position: relative;
	top: -19px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 18px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	color: #fff;
	background-color: red;
}

#progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0;
	height: 4px;
	background-color: #099;
	z-index: 9999;
	transition: width 0.3s ease;
}

.scrollable-tabs-container {
	max-width: 100%;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.scrollable-tabs-container svg {
	width: 24px;
	height: 24px;
	padding: 2px;
	cursor: pointer;
	color: #fff;
	border-radius: 50%;
}

.scrollable-tabs-container ul {
	display: flex;
	gap: 12px;
	padding: 12px 18px;
	margin: 0;
	list-style: none;
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.scrollable-tabs-container ul.dragging a {
	pointer-events: none;
}

.scrollable-tabs-container ul.dragging {
	scroll-behavior: auto;
}

.scrollable-tabs-container ul::-webkit-scrollbar {
	display: none;
}

.scrollable-tabs-container a {
	color: #fff;
	text-decoration: none;
	padding: 4px 14px;
	display: inline-block;
	border-radius: 4px;
	user-select: none;
	white-space: nowrap;
}

.scrollable-tabs-container a.active {
	border-bottom: 2px solid #099;
	border-radius: 3px;
	color: #000;
}

.scrollable-tabs-container a:hover {
	border-left: 3px solid #099;
	border-right: 3px solid #099;
}

.scrollable-tabs-container .right-arrow,.scrollable-tabs-container .left-arrow {
	position: absolute;
	height: 100%;
	width: 100px;
	top: 0;
	align-items: center;
	padding: 0 5px;
	pointer-events: auto;
	z-index: 10;
	cursor: pointer;
}

.scrollable-tabs-container .left-arrow {
	display: none;
	left: 0;
	background: linear-gradient(to right,#000 50%,transparent);
}

.scrollable-tabs-container .left-arrow.visible {
	display: flex;
}

.scrollable-tabs-container .right-arrow {
	display: flex;
	right: 0;
	background: linear-gradient(to left,#000 50%,transparent);
	justify-content: flex-end;
}

.scrollable-tabs-container svg:hover {
	background: #333;
}

/* NEW: Targeted font size increases for specific navigation items only */
.colmd5:last-child ul li {
    font-size: 13px; /* Increased from 12px - ONLY for right navigation */
     font-weight: 600;
}

.deliver-to-container .country-name {
    font-size: 13px; /* Increased from 12px - ONLY for country name */
    font-weight: 600;
    color:white;
}

#currency-form select,
#lan_list select {
    font-size: 13px; /* Increased for better readability - ONLY for selects */
     font-weight: 600;
}

.colmd5:last-child ul li a {
    font-size: 13px; /* Ensure consistent size - ONLY for right nav links */
     font-weight: 600;
}

#contain {
    font-size: 13px; /* Increased for better visibility - ONLY for cart counter
    */
     font-weight: 600;
}

/* NEW: Mobile responsive fixes for specific navigation only */
@media screen and (max-width: 768px) {
    .colmd5:last-child ul li {
        font-size: 13px; /* Increased from smaller size */
    }
    
    #currency-form select,
    #lan_list select {
        font-size: 13px; /* Increased from smaller size */
        max-width: 85px;
        padding: 3px 5px;
        height: 28px;
    }
    
    .deliver-to-container .country-name {
        font-size: 13px; /* Increased from smaller size */
        font-weight:600;
    }
    
    .colmd5:last-child ul li a {
        font-size: 13px; /* Increased from smaller size */
        padding: 5px 8px;
        font-weight:600;
    }
    
    #contain {
        font-size: 13px; /* Increased from smaller size */
        top: -6px;
        left: -13px;
        padding: 4px;
        font-weight:600;
    }
}

@media screen and (max-width: 480px) {
    .colmd5:last-child ul li {
        font-size: 12px; /* Increased from smaller size */
    }
    
    #currency-form select,
    #lan_list select {
        font-size: 12px; /* Increased from smaller size */
        max-width: 75px;
        padding: 2px 4px;
        height: 26px;
    }
    
    .deliver-to-container .country-name {
        font-size: 12px; /* Increased from smaller size */
    }
}

@media screen and (max-width: 360px) {
    .colmd5:last-child ul li {
        font-size: 11px; /* Increased from smaller size */
    }
    
    #currency-form select,
    #lan_list select {
        font-size: 11px; /* Increased from smaller size */
        max-width: 65px;
        padding: 2px 3px;
        height: 24px;
    }
    
    .deliver-to-container .country-name {
        font-size: 11px; /* Increased from smaller size */
    }
}

@media screen and (max-width: 320px) {
    .colmd5:last-child ul li {
        font-size: 10px; /* Increased from smaller size */
    }
    
    #currency-form select,
    #lan_list select {
        font-size: 10px; /* Increased from smaller size */
        max-width: 60px;
        height: 22px;
    }
    
    .deliver-to-container .country-name {
        font-size: 10px; /* Increased from smaller size */
    }
}

/* Media Queries for Small Devices */
@media screen and (max-width: 768px) {
    .scrollable-tabs-container ul {
        padding-right: 50px;
    }
    
    .scrollable-tabs-container .right-arrow {
        width: 60px;
        padding-right: 10px;
    }
    
    .header-second-row {
        margin-right: 10px;
    }
}

/* For very small devices */
@media screen and (max-width: 480px) {
    .scrollable-tabs-container ul {
        padding-right: 40px;
    }
    
    .scrollable-tabs-container .right-arrow {
        width: 50px;
    }
    
    .header-second-row li:last-child {
        margin-right: 15px;
    }
}

@media screen and (max-width: 207px) {
	#all_cat,#currency-form,#lan_list,#searches_product {
		display: none;
	}
}

/* Enterprises --> */
.modal.fade {
    animation: modalFadeIn 0.4s ease-out;
}

.modal-dialog {
    margin: 2rem auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content {
    border: 3px solid #009999;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 153, 153, 0.2);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.modal-header {
    background: linear-gradient(135deg, #009999 0%, #006666 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid #008080;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00cccc, transparent);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close {
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.close span {
    color: white;
    font-size: 24px;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-body {
    padding: 1.5rem;
    background: #ffffff;
    max-height: 60vh;
    overflow-y: auto;
}

.dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
}

.dropdown li {
    margin: 0;
}

.dropdown li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: #333;
    text-decoration: none;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #009999;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown li a:hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    border-color: #009999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.15);
}

.dropdown li a:hover::before {
    transform: scaleY(1);
}

.dropdown li a::after {
    content: '→';
    margin-left: auto;
    color: #009999;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.dropdown li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Scrollbar styling */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #009999;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #006666;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dropdown {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        margin: 0 auto;
    }
}

/* Ensure sidebar starts completely hidden */
.sidenav {
    display: none;
    z-index:100000000001;
}
#overlay {
    display: none;
}
#closeBtn {
    display: none;
}

/* user profile section */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.profile-icon {
    width: 25px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    padding: 5px;
    line-height: 1;
    font-size: 14px;
    background-color:#009999;
}

.user-name{
    color:black;
    font-size:12px !important;
}
.profile-dropdown-menu {
    position: absolute;
    top: 30px;
    right: 5px;
    background: white;
    width: 180px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    margin: 2px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100000;
    display: block !important;
    margin-top:10px;
}

.profile-dropdown-container:hover .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    font-size: 14px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.menu-item {
    display: block !important;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    float: none !important;
    clear: both !important;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item.logout {
    color: #dc3545;
}

.menu-item.logout:hover {
    background: #fff5f5;
}

/* Force vertical layout for all children */
.profile-dropdown-menu > * {
    display: block !important;
    float: none !important;
    width: 100% !important;
}

/* Deliver country section - SHOW ONLY FLAG ON MOBILE */
.deliver-to-container {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.deliver-to-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    margin-left: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    gap: 6px;
    white-space: nowrap;
    padding: 4px 8px;
}

.deliver-to-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flag-img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    display: block !important;
    visibility: visible !important;
    flex-shrink: 0;
    object-fit: cover;
}

.deliver-text {
    font-size: 12px;
    opacity: 0.9;
    display: inline !important;
}

.country-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

/* Mobile Responsive Fixes - SHOW ONLY FLAG, HIDE TEXT */
@media screen and (max-width: 768px) {
    .header ul {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .header ul li {
        margin: 0 2px;
        font-size: 11px;
        flex-shrink: 0;
    }
    
    /* Show only flag, hide text on mobile */
    .deliver-to-container {
        flex-shrink: 0;
    }
    
    .deliver-to-link {
        padding: 3px 6px;
        gap: 0;
        margin-left: 2px;
        min-width: auto;
    }
    
    .flag-img {
        width: 18px;
        height: 13px;
        display: block !important;
        flex-shrink: 0;
    }
    
    /* Hide deliver text and country name on mobile */
    .deliver-text,
    .country-name {
        display: none !important;
    }
    
    /* Profile icon fixes */
    .profile-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        padding: 0;
    }
    
    /* Ensure all navigation items stay in same row */
    .colmd5 ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 8px;
    }
    
    .colmd5 ul::-webkit-scrollbar {
        display: none;
    }
    
    .colmd5 ul li {
        flex-shrink: 0;
    }
    
    /* Search bar mobile fixes */
    .search-container {
        margin-left: 15px;
        height: 38px;
    }
    
    .search-select {
        width: 65px;
        font-size: 13px;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-icon {
        width: 45px;
    }
    
    /* Profile Dropdown Mobile Fix */
    .profile-dropdown-container {
        position: relative;
        z-index: 100001;
    }
    
    .profile-dropdown-menu {
        position: fixed;
        top: auto;
        right: 10px;
        left: auto;
        width: 200px;
        margin-top: 5px;
        z-index: 100002;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    .profile-dropdown-menu {
        transform: translateY(-5px);
    }
    
    .profile-dropdown-container:hover .profile-dropdown-menu,
    .profile-dropdown-container:focus-within .profile-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .header ul {
        gap: 6px;
    }
    
    .header ul li {
        margin: 0 1px;
        font-size: 10px;
    }
    
    /* Show only flag with smaller size */
    .deliver-to-link {
        padding: 2px 4px;
        gap: 0;
    }
    
    .flag-img {
        width: 16px;
        height: 12px;
        display: block !important;
    }
    
    /* Ensure text is hidden */
    .deliver-text,
    .country-name {
        display: none !important;
    }
    
    .profile-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    /* Ensure all items are visible and properly spaced */
    .colmd5 ul {
        gap: 6px;
    }
    
    /* Profile Dropdown Small Mobile Fix */
    .profile-dropdown-menu {
        width: 180px;
        right: 5px;
        top:43px;
    }
    
    .menu-item {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .menu-header {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Additional fixes for select elements alignment */
#currency-form,
#lan_list {
    display: inline-block;
    vertical-align: middle;
}

#currency-form select,
#lan_list select {
    vertical-align: middle;
    line-height: 1;
}

/* Ensure consistent height for all navigation items */
.deliver-to-container,
.profile-dropdown-container,
#currency-form,
#lan_list,
.header ul li {
    display: inline-flex;
    align-items: center;
    height: 32px;
    min-height: 32px;
}

/* Very small screen adjustments - SHOW ONLY FLAG */
@media screen and (max-width: 360px) {
    .header ul li {
        font-size: 9px;
    }
    
    /* Show only flag with minimum size */
    .deliver-to-link {
        padding: 2px 3px;
        gap: 0;
    }
    
    .flag-img {
        width: 14px;
        height: 10px;
        display: block !important;
    }
    
    /* Ensure text is hidden */
    .deliver-text,
    .country-name {
        display: none !important;
    }
    
    .profile-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Ensure horizontal scrolling works smoothly */
    .colmd5 ul {
        gap: 4px;
        padding-right: 10px;
    }
}

/* Extra small devices - SHOW ONLY FLAG */
@media screen and (max-width: 320px) {
    .header ul li {
        font-size: 8px;
    }
    
    /* Show only flag with minimum size */
    .deliver-to-link {
        padding: 1px 2px;
        gap: 0;
    }
    
    .flag-img {
        width: 12px;
        height: 9px;
    }
    
    /* Ensure text is hidden */
    .deliver-text,
    .country-name {
        display: none !important;
    }
    
    .profile-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .profile-dropdown-container {
        cursor: pointer;
    }
    
    .profile-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .menu-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Ensure dropdown works on all devices */
.profile-dropdown-menu {
    pointer-events: auto;
}

.profile-dropdown-container:hover .profile-dropdown-menu,
.profile-dropdown-container:focus .profile-dropdown-menu,
.profile-dropdown-container:focus-within .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent closing when clicking inside dropdown */
.profile-dropdown-menu {
    pointer-events: auto;
}

.profile-dropdown-menu * {
    pointer-events: auto;
}

/* Prevent any hiding of elements */
.deliver-to-container,
.profile-dropdown-container,
#currency-form,
#lan_list,
.header ul li {
    visibility: visible !important;
    display: inline-flex !important;
    opacity: 1 !important;
}

/* cart icon font size */
.fa-cart-plus {
    font-size:18px;
}

/* Tooltip for flag on mobile */
@media screen and (max-width: 768px) {
    .deliver-to-link {
        position: relative;
    }
    
    .deliver-to-link:hover::after {
        content: attr(title);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
    }
}