
.nav-search-mobile {
    display: none;
}

.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 300px;
    flex: 1;
    margin: 0 20px;
}

.nav-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.nav-search-input:focus {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-search-icon {
    position: absolute;
    right: 16px;
    color: #666;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-categories {
    font-size: 12px;
    color: #666;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}


.product-search-section {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.product-search-container {
    position: relative;
}

.product-search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.product-search-input:focus {
    border-color: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.no-results-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 18px;
}


.chat-toggle-btn {
    position: fixed;
    bottom: 176px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #000000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    background: #1a1a1a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.chat-toggle-btn svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.chat-toggle-btn.hidden {
    display: none;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 420px;
    height: 80%;
    max-height: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: #000000;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.chat-header-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-header-info p {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chat-header-right {
    display: flex;
    gap: 8px;
}

.chat-header-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: opacity 0.2s;
}

.chat-header-btn:hover {
    opacity: 0.7;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: #000000;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-bubble {
    background: #f0f0f0;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.message.bot .message-bubble p {
    margin-bottom: 8px;
}

.message.bot .message-bubble p:last-child {
    margin-bottom: 0;
}

.message.bot .message-bubble a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.message.bot .message-bubble a:hover {
    text-decoration: underline;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f0f0f0;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    background: white;
    border-radius: 0 0 12px 12px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    outline: none;
    max-height: 80px;
    transition: border 0.2s;
}

.chat-input:focus {
    border-color: #000;
}

.chat-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #000;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-btn:hover:not(:disabled) {
    background: #1a1a1a;
    transform: scale(1.05);
}

.chat-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
}

.chat-voice-btn.recording {
    background: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}


@media (max-width: 768px) {
    .nav-search-container {
        display: none;
    }


.nav-search-mobile {
    display: block;
}

@media (min-width: 769px) {
    .nav-search-mobile {
        display: none;
    }
}

    .nav-search-container-mobile {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
    }

    .nav-search-input-mobile {
        width: 100%;
        padding: 12px 40px 12px 14px;
        border: 2px solid #e5e5e5;
        border-radius: 20px;
        font-size: 15px;
        font-family: 'Poppins', sans-serif;
        transition: all 0.3s ease;
        outline: none;
    }

    .nav-search-input-mobile:focus {
        border-color: #000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .nav-search-icon-mobile {
        position: absolute;
        right: 28px;
        color: #666;
        pointer-events: none;
    }

    .search-results-mobile {
        position: absolute;
        top: calc(100% + 4px);
        left: 15px;
        right: 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .search-results-mobile.show {
        display: block;
    }

    .search-results-mobile .search-result-item {
        display: block;
        padding: 14px;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }

    .search-results-mobile .search-result-item:last-child {
        border-bottom: none;
    }

    .search-results-mobile .search-result-item:hover {
        background: #f8f8f8;
    }

    .search-results-mobile .search-result-name {
        font-weight: 500;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .search-results-mobile .search-result-categories {
        font-size: 11px;
        color: #666;
    }

    .search-results-mobile .search-no-results {
        padding: 16px;
        text-align: center;
        color: #666;
        font-size: 13px;
    }


    .mobile-search-bar {
        display: block !important;
        width: 100%;
        padding: 16px 20px;
        background: white;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .chat-window {
        width: calc(100% - 32px);
        height: calc(100vh - 140px);
        right: 16px;
        bottom: 90px;
    }
    
    .chat-toggle-btn {
        bottom: 176px;
        right: 24px;
    }
}

@media (min-width: 769px) {
    .mobile-search-bar {
        display: none;
    }
}


@media (min-width: 769px) {
    .nav-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .nav-search-bar-wrapper {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 400px;
    }
}


.dropdown-menu {
    column-count: 2;
    column-gap: 20px;
    padding: 20px;
}

.dropdown-category {
    font-weight: 600;
    color: #000;
    padding: 12px 16px 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    break-inside: avoid;
}

.dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 12px 0;
    break-inside: avoid;
}

.dropdown-item.category-filter {
    padding-left: 24px;
}

.product-keywords {
    max-width: 800px;
    align-items: center;
    align-self: center;
    margin: 40px auto;
    padding: 30px 20px;
    border-radius: 12px;
}


.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    font-size: 12px;
    padding: 8px 16px;
    background: rgb(0, 0, 0);
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
    color: #fffefe;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background: #000;
    color: white;
    border-color: #000;
}


.language-dropdown.active .language-dropdown-menu {
    display: block;
}

.language-dropdown-menu {
    display: none;
}

@media (max-width: 1024px) {
    .dropdown-menu {
        column-count: 1;
    }
}
