
.search-wrapper {
    width: 100%;
    max-width: 760px;
}

.search-form-shopee {
    width: 100%;
}

.search-box-shopee {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #00826b;
    border-radius: 12px;
    overflow: hidden;
}

.search-category-wrap {
    height: 100%;
    flex-shrink: 0;
}

.search-category-btn {
    height: 100%;
    min-width: 100px;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0 16px;
    border-right: 1px solid #e5e7eb;
}

.search-category-btn:hover,
.search-category-btn:focus {
    background: #f9fafb;
    color: #00826b;
    box-shadow: none;
}

.search-input-shopee {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 18px;
    font-size: 0.92rem;
    color: #111827;
    background: #ffffff;
}

.search-input-shopee::placeholder {
    color: #9ca3af;
}

.search-button-shopee {
    height: 100%;
    min-width: 96px;
    border: none;
    background: #00826b;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
}

.search-button-shopee:hover {
    background: #006f5c;
}

.popular-keywords {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 7px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.popular-keywords::-webkit-scrollbar {
    display: none;
}

.popular-keywords a {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}

.popular-keywords a:hover {
    color: #00826b;
}

@media (max-width: 991px) {
    .search-wrapper {
        max-width: 100%;
    }

    .popular-keywords {
        padding-bottom: 4px;
    }
}

@media (max-width: 576px) {
    .search-box-shopee {
        height: 44px;
        border-radius: 10px;
    }

    .search-category-btn {
        min-width: 82px;
        font-size: 0.78rem;
        padding: 0 10px;
    }

    .search-button-shopee {
        min-width: 48px;
        padding: 0 14px;
    }

    .search-button-shopee span {
        display: none;
    }

    .search-input-shopee {
        font-size: 0.82rem;
        padding: 0 12px;
    }

    .popular-keywords {
        gap: 12px;
    }

    .popular-keywords a {
        font-size: 0.74rem;
    }
}


.nav-action-area {
    flex-shrink: 0;
}

.nav-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    transition: 0.2s ease;
}

.nav-action-icon i {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-action-icon:hover {
    background: #f3f8f6;
    color: #00826b;
    transform: translateY(-1px);
}

.nav-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background:#F2A63D;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    line-height: 1;
}

@media (max-width: 991px) {
    .nav-action-area {
        margin-top: 14px;
        justify-content: flex-start;
        gap: 10px !important;
    }

    .nav-action-icon {
        width: 40px;
        height: 40px;
        background: #f8fafc;
    }
}


.cart-hover-wrapper {
    position: relative;
}

.cart-hover-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    width: 410px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
}

.cart-hover-wrapper:hover .cart-hover-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-hover-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 30px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}

.cart-hover-title {
    color: #9ca3af;
    font-size: 14px;
    padding: 14px 14px 8px;
}

.cart-hover-list {
    max-height: 330px;
    overflow-y: auto;
}

.cart-hover-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #374151;
    transition: 0.15s ease;
}

.cart-hover-item:hover {
    background: #f8fafc;
}

.cart-hover-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.cart-hover-name {
    font-size: 14px;
    font-weight: 600;
    color: #333c49;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-hover-price {
    font-size: 14px;
    color: #012e26;
    font-weight: 600;
    white-space: nowrap;
}

.cart-hover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #f1f5f9;
}

.cart-other-count {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.btn-cart-hover {
    background: #f4a261;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 2px;
    white-space: nowrap;
}

.btn-cart-hover:hover {
    background: #f3974c;
    color: #ffffff;
}

@media (max-width: 576px) {
    .cart-hover-dropdown {
        width: 320px;
        right: -80px;
    }

    .cart-hover-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cart-hover {
        text-align: center;
    }
}


    .notification-hover-wrapper {
    position: relative;
}

.notification-hover-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -12px;
    width: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
}

.notification-hover-wrapper:hover .notification-hover-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-hover-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 34px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}

.notification-hover-title {
    font-size: 14px;
    color: #9ca3af;
    padding: 14px 14px 10px;
}

.notification-hover-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-hover-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #374151;
    transition: 0.15s ease;
}

.notification-hover-item:hover {
    background: #f8fafc;
}

.notification-hover-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.notification-hover-content {
    flex: 1;
    min-width: 0;
}

.notification-hover-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-hover-item-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-hover-footer {
    border-top: 1px solid #f1f5f9;
    padding: 14px;
    text-align: center;
}

.notification-hover-see-all {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.notification-hover-see-all:hover {
    color: #016956;
}

@media (max-width: 576px) {
    .notification-hover-dropdown {
        width: 320px;
        right: -110px;
    }

    .notification-hover-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .notification-hover-item img {
        width: 46px;
        height: 46px;
    }

    .notification-hover-item-title {
        font-size: 13px;
    }

    .notification-hover-item-desc {
        font-size: 12px;
    }
}