/* ============================================
   MODERN PREMIUM HEADER DESIGN
   Elegant, Professional & Eye-catching
   ============================================ */

.modern-header-wrapper {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.header-top-bar {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background effect */
.header-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(33, 150, 243, 0.03),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ============================================
   LEFT SECTION - Logo + Premium Badge
   ============================================ */

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 auto;
}

.logo-section {
    padding-right: 25px;
}

/* Subtle glowing effect on logo border */
.logo-section::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(33, 150, 243, 0.4),
            transparent);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.main-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    position: relative;
}

.company-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a5276;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.main-logo:hover .company-name {
    color: #2196F3;
    transform: translateY(2px);
}

.main-logo img {
    height: 87px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-logo:hover img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(33, 150, 243, 0.3));
}

.certification-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.badge-item i {
    font-size: 14px;
    color: #ffd700;
}

/* ============================================
   CENTER SECTION - Premium Search Bar
   ============================================ */

.header-center {
    flex: 1 1 auto;
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.search-container {
    width: 100%;
}

.search-form {
    display: flex;
    background: #f8f9fa;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Glowing ring effect on focus */
/*.search-form::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    inset: -3px;*/
/*    background: linear-gradient(45deg,*/
/*            #2196F3,*/
/*            #1976D2,*/
/*            #2196F3);*/
/*    border-radius: 30px;*/
/*    opacity: 0;*/
/*    transition: opacity 0.3s ease;*/
/*    z-index: -1;*/
/*    filter: blur(8px);*/
/*}*/

.search-form:focus-within {
    background: white;
    border-color: #2196F3;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.search-form:focus-within::before {
    opacity: 0.4;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        filter: blur(8px) hue-rotate(0deg);
    }

    100% {
        filter: blur(8px) hue-rotate(360deg);
    }
}

.search-form input[type="text"] {
    flex: 1;
    padding: 14px 24px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 400;
    background: transparent;
}

.search-form input[type="text"]::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.search-btn {
    background: var(--c1);
    color: white;
    border: none;
    padding: 14px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.search-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #EE5A6F 0%, #E74C3C 100%);
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
    transform: scale(1.02);
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn i {
    font-size: 18px;
}

/* ============================================
   RIGHT SECTION - Premium Info Cards
   ============================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

/* Hotline Info - Clean Card */
.location-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    padding: 12px 18px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on background */
.location-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(33, 150, 243, 0.05),
            transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.location-info:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
}

.location-info:hover::before {
    left: 100%;
}

.location-info i {
    font-size: 28px;
    color: #2196F3;
    filter: drop-shadow(0 2px 4px rgba(33, 150, 243, 0.2));
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.location-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 180px;
}

.location-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-value {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
}

/* Address Info - Clean Card */
.address-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    padding: 12px 18px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on background */
.address-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(76, 175, 80, 0.05),
            transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.address-info:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
}

.address-info:hover::before {
    left: 100%;
}

.address-info i {
    font-size: 28px;
    color: #4CAF50;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.2));
    animation: pulse-icon 2s ease-in-out infinite;
}

.address-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 235px;
}

.address-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-value {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Account Section - Premium Card */
.account-section {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 12px 20px;
    height: 80px;
    background: linear-gradient(135deg, var(--c1) 0%, #606de0 100%);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.25);
    position: relative;
    overflow: hidden;
}

.account-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent,
            rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-section:hover {
    background: linear-gradient(135deg, #EE5A6F 0%, #E74C3C 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

.account-section:hover::after {
    opacity: 1;
}

.account-section i {
    font-size: 30px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.account-section:hover i {
    transform: rotate(10deg) scale(1.1);
}

.account-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 180px;
}

.account-links {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.account-label {
    font-size: 13px;
    font-weight: 600;
}

/* Cart Section */
.cart-section {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 10px 18px;
    background: #e74c3c;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cart-link i {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: -5px;
    background: #fff;
    color: #e74c3c;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-text {
    font-size: 14px;
}

/* ============================================
   MAIN NAVIGATION MENU
   ============================================ */

.main-navigation {
    background: linear-gradient(135deg, #1a5276 0%, #2471a3 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-menu {
    width: 100%;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.menu-item {
    position: relative;
}

.menu-item>a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.menu-item>a:hover,
.menu-item>a.active {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item>a:hover::after,
.menu-item>a.active::after {
    width: 80%;
}

.menu-item>a i {
    font-size: 10px;
    opacity: 0.8;
}

/* Dropdown Menu */
.menu-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a,
.menu-dropdown-custom-color a {
    display: block;
    padding: 12px 20px;
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background: transparent !important;
}

.dropdown-menu a:hover,
.menu-dropdown-custom-color a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffd700 !important;
    -webkit-text-fill-color: #ffd700 !important;
    padding-left: 25px;
}

/* Sub-menu Level 3 & 4 Styling */
.menu-dropdown-custom-color {
    border-top: 3px solid var(--c1) !important;
}

.menu-dropdown-custom-color li {
    position: relative;
}

.menu-dropdown-lv3,
.menu-dropdown-lv4 {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--c1);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-top: 3px solid #ffd700;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) rotateX(0) !important;
    -webkit-transform: translateX(10px) rotateX(0) !important;
    transform-origin: left top;
    -webkit-transform-origin: left top;
    transition: all 0.3s ease;
    z-index: 101;
    border-radius: 4px;
}

.menu-dropdown-custom-color li:hover>.menu-dropdown-lv3,
.menu-dropdown-lv3 li:hover>.menu-dropdown-lv4 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) rotateX(0) !important;
    -webkit-transform: translateX(0) rotateX(0) !important;
}

.menu-dropdown-lv3 li,
.menu-dropdown-lv4 li {
    border-bottom: 1px solid #f0f0f0;
}

.menu-dropdown-lv3 li:last-child,
.menu-dropdown-lv4 li:last-child {
    border-bottom: none;
}

.menu-dropdown-lv3 a,
.menu-dropdown-lv4 a {
    display: block;
    padding: 12px 20px;
    color: white !important;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background: transparent !important;
}

.menu-dropdown-lv3 a:hover,
.menu-dropdown-lv4 a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffd700 !important;
    -webkit-text-fill-color: #ffd700 !important;
    padding-left: 25px;
}

/* Arrow indicators for items with submenus */
.menu-dropdown-custom-color li:has(ul)>a::after,
.menu-dropdown-lv3 li:has(ul)>a::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.menu-dropdown-custom-color li:hover>a::after,
.menu-dropdown-lv3 li:hover>a::after {
    color: white;
    right: 10px;
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .certification-badges {
        gap: 10px;
    }

    .badge-item {
        padding: 5px 10px;
        font-size: 10px;
    }

    .menu-item>a {
        padding: 14px 15px;
        font-size: 12px;
    }

    .header-center {
        max-width: 450px;
    }
}

@media (max-width: 992px) {
    .header-top-content {
        flex-wrap: wrap;
    }

    .header-left {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .certification-badges {
        display: none;
    }

    .header-center {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
        margin-top: 15px;
    }

    .header-right {
        gap: 10px;
    }

    .location-info,
    .account-section {
        padding: 10px 14px;
    }

    .location-info i {
        font-size: 24px;
    }

    .account-section i {
        font-size: 26px;
    }

    .location-text,
    .address-text,
    .account-text {
        display: none;
    }

    .main-navigation {
        display: none;
        /* Show mobile menu instead */
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        padding: 15px 0;
    }

    .main-logo img {
        height: 55px;
    }

    .logo-section {
        padding-right: 15px;
    }

    .location-info,
    .address-info {
        display: none;
    }

    .account-section {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .cart-text {
        display: none;
    }

    .search-form input[type="text"] {
        padding: 12px 18px;
        font-size: 14px;
    }

    .search-btn {
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .header-top-bar {
        padding: 12px 0;
    }

    .main-logo img {
        height: 50px;
    }

    .account-section {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .search-form input[type="text"] {
        padding: 10px 15px;
        font-size: 13px;
    }

    .search-btn {
        padding: 10px 16px;
    }

    .search-btn i {
        font-size: 16px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.cart-badge {
    animation: pulse 2s infinite;
}

/* ============================================
   STICKY HEADER (Optional)
   ============================================ */

.modern-header-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

.modern-header-wrapper.sticky .header-top-bar {
    padding: 10px 0;
}

.modern-header-wrapper.sticky .main-logo img {
    height: 45px;
}