/* Header CSS - Updated 2026-02-28 00:15 */

/* Font Face Declarations */
@font-face {
    font-family: 'eduma-icon';
    src: url('../fonts/eduma-icon.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove blue outline on focus for all elements */
*:focus {
    outline: none !important;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent horizontal scroll globally */
html {
    overflow-x: hidden;
}

body {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
}

/* Container - High specificity to prevent override */
.top-banner .container,
.main-header .container,
.main-nav .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fallback for other containers */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background-color: #356DF1;
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
}

.top-banner p {
    margin: 0;
}

.top-banner a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.top-banner a:hover {
    text-decoration: underline;
}

/* Main Header */
.main-header {
    background-color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1F2937;
}

.logo img,
.logo svg {
    height: auto;
    width: 200px;
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-dropdown.active .categories-btn {
    color: #356DF1;
}

.categories-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    text-decoration: none;
}

.categories-btn:hover {
    color: #356DF1;
}

.dropdown-arrow {
    width: 10px;
    height: 6px;
    margin-left: 8px;
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Remove all hover effects - only click on arrow works */

.categories-menu a {
    display: block;
    padding: 8px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.categories-menu a:hover {
    color: #356DF1;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: none;
}

.search-bar form {
    display: flex;
    background-color: #E1E9FD;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    outline: none;
}

.search-bar form:focus-within {
    outline: none;
    border: none;
    box-shadow: none;
}

.search-btn {
    background: none;
    border: none;
    padding: 13px 16px;
    cursor: pointer;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    outline: none;
    line-height: 1.2;
    border-left: none !important;
    box-shadow: none !important;
}

.search-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.search-input::placeholder {
    color: #000000;
    font-weight: 0;
    font-size: 15px;
}

/* Main Navigation */
.main-nav {
    background-color: white;
    position: relative;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1320px;
    height: 1px;
    background-color: #E5E7EB;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    padding: 22px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.main-menu > li > a svg {
    margin-left: 8px;
    flex-shrink: 0;
}

/* Dropdown button styling */
.dropdown-btn {
    display: flex;
    align-items: center;
    padding: 22px 16px;
    color: #374151;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-btn svg {
    margin-left: 8px;
    flex-shrink: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Show dropdown on hover */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Remove all hover effects - only click on arrow works */

/* Ensure dropdown still works when parent has button */
.has-dropdown > a,
.has-dropdown > .dropdown-btn {
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.dropdown-menu a:hover {
    color: #356DF1;
}

.new-badge {
    background: #34c759;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 600;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Cart Icon in Header */
.header-cart-wrapper {
    position: relative;
}

.header-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cart-icon:hover {
    background-color: #f3f4f6;
    color: #356DF1;
}

.cart-count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    border: 2px solid white;
}

.header-cart-wrapper:hover .cart-dropdown,
.header-cart-wrapper:focus-within .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-dropdown-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cart-dropdown-count {
    font-size: 12px;
    color: #6b7280;
}

.cart-dropdown-content {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
}

.cart-dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #6b7280;
}

.cart-dropdown-empty {
    text-align: center;
    padding: 30px 15px;
    color: #6b7280;
}

.cart-dropdown-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: #d1d5db;
}

.cart-dropdown-empty p {
    margin: 0 0 12px;
    font-size: 13px;
}

.cart-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.cart-dropdown-item:hover {
    background-color: #f9fafb;
}

.cart-dropdown-item-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

.cart-dropdown-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-dropdown-item-info {
    flex: 1;
    margin-left: 10px;
    min-width: 0;
}

.cart-dropdown-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-item-price {
    font-size: 12px;
    color: #356DF1;
    font-weight: 600;
}

.cart-dropdown-item-quantity {
    font-size: 11px;
    color: #6b7280;
}

.cart-dropdown-footer {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.btn-view-cart {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #356DF1;
    color: white;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-view-cart:hover {
    background-color: #2563eb;
    color: white;
}

.btn-get-started {
    background-color: #356DF1;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    cursor: pointer;
}


.btn-get-started:hover {
    background-color: #000000;
    color: white;
    transform: translateY(-1px);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: #356DF1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        gap: 20px;
    }
    
    .search-bar {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .main-menu {
        display: none;
    }
    
    .header-buttons {
        gap: 15px;
    }
    
    .btn-get-started {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .categories-dropdown {
        display: none;
    }
    
    .header-buttons {
        gap: 10px;
    }
}
/* Active menu styling - ensure only one active at a time */
.main-menu > li.active > a,
.main-menu > li.active > .dropdown-btn {
    color: #356DF1 !important;
}

.main-menu > li:not(.active) > a,
.main-menu > li:not(.active) > .dropdown-btn {
    color: #374151;
}

.main-menu > li:hover > a,
.main-menu > li:hover > .dropdown-btn,
.main-menu > li.active > a,
.main-menu > li.active > .dropdown-btn {
    color: #356DF1;
}