* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Header - Black */
.top-header {
    background-color: #000;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    align-items: center;
    gap: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.logo-adv {
    color: #ff6b00;
}

.logo-moto {
    color: #fff;
}

.logo img {
    height: 30px;
    display: block;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container form {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 50px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b00;
    border: none;
    color: #fff;
    padding: 0 20px;
    height: calc(100% - 10px);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.cart-icon {
    position: relative;
    color: #000;
    font-size: 24px;
    transition: color 0.2s;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b00;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Main Navigation */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 35px;
    justify-content: center;
    padding: 0 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 0;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #ff6b00;
}

.nav-link.has-dropdown::after {
    content: '\2304';
    margin-left: 5px;
    font-size: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: #ff6b00;
}

.mobile-menu-btn i {
    display: block;
}

/* Mobile Cart Icon */
.mobile-cart-icon {
    display: none;
    position: relative;
    color: #fff;
    font-size: 24px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-cart-icon:hover {
    color: #ff6b00;
}

.mobile-cart-icon .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
}

/* Mobile cart badge in drawer */
.mobile-cart-badge {
    background: #ff6b00;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 600;
}

/* Mobile Header Icons Container */
.mobile-header-icons {
    display: none;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}


/* Mobile Navigation Drawer */


.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: #ff6b00;
}

.mobile-nav-content {
    padding: 15px 0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.mobile-user-info i {
    font-size: 24px;
    color: #ff6b00;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #ff6b00;
}

.mobile-nav-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.mobile-nav-link.mobile-nav-primary {
    background: #ff6b00;
    color: #fff;
    margin: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
}

.mobile-nav-link.mobile-nav-primary:hover {
    background: #e55e00;
    color: #fff;
}

.mobile-nav-divider {
    height: 1px;
    background: #eee;
    margin: 15px 20px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    padding: 10px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #ff6b00;
}

/* Chip Styles for Lists */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chip {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chip:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.bot-message .chip-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #343a40;
    font-size: 0.95rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    flex: 1;
    background: url('/media/hero-adventure.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    width: 100%;
    padding-left: 80px;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
    color: white;
}

/* Footer - Black */
.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-text {
    color: #999;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #ff6b00;
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 50px;
    height: 32px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.header-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-link:hover {
    color: #ff6b00;
}

.header-link.has-dropdown::after {
    content: '▼';
    font-size: 9px;
    margin-left: 3px;
}

.cart-icon {
    color: #fff;
    font-size: 20px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.cart-icon:hover {
    color: #ff6b00;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b00;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* ========================================
           PREMIUM CHATBOT DESIGN SYSTEM
           ======================================== */

:root {
    --chat-primary: #ff6b00;
    --chat-primary-dark: #e55e00;
    --chat-primary-light: #ffaa66;
    --chat-bg: #f8f9fa;
    --chat-surface: #ffffff;
    --chat-text: #1a1a2e;
    --chat-text-secondary: #6b7280;
    --chat-border: #f0f0f0;
    --chat-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    --chat-radius: 20px;
    --chat-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Floating Chat Button */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--chat-primary) 0%, #ff8533 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    transition: var(--chat-transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-pulse 3s infinite;
}

@keyframes float-pulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(255, 107, 0, 0.5);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    }
}

.chatbot-button:hover {
    transform: scale(1.1);
    animation: none;
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 650px;
    background: var(--chat-surface);
    border-radius: var(--chat-radius);
    box-shadow: var(--chat-shadow);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header with Glassmorphism */
.chatbot-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.95) 0%, rgba(255, 133, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.chatbot-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.chatbot-header-actions {
    display: flex;
    gap: 8px;
}

.chatbot-action-btn,
.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--chat-transition);
}

.chatbot-action-btn:hover,
.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--chat-bg);
    scroll-behavior: smooth;
}

.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 20px;
}

.chat-date-divider span {
    background: #e0e0e0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

/* Bot Message */
.bot-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--chat-primary) 0%, #ff8533 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.message-content {
    background: #fff;
    padding: 15px 18px;
    border-radius: 4px 18px 18px 18px;
    max-width: calc(100% - 50px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 14px;
    color: var(--chat-text);
    line-height: 1.6;
}

/* User Message */
.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

.user-message p {
    background: linear-gradient(135deg, var(--chat-primary) 0%, #ff8533 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    max-width: 80%;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Input Area */
.chatbot-input {
    padding: 15px 20px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    transition: var(--chat-transition);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.input-wrapper:focus-within {
    background: #fff;
    border-color: var(--chat-primary);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

#chatbot-input-field {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--chat-text);
}

.chatbot-send-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: var(--chat-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--chat-transition);
}

.chatbot-send-btn:hover {
    background: var(--chat-primary-dark);
    transform: scale(1.05);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-action-btn {
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: var(--chat-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.quick-action-btn i {
    color: var(--chat-primary);
}

.quick-action-btn:hover {
    background: #fff5eb;
    border-color: var(--chat-primary);
    color: var(--chat-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.15);
}

/* Typing Indicator (New) */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}


/* ========================================
           RESPONSIVE: 2K / 4K MONITORS
           ======================================== */
@media (min-width: 1600px) {

    .header-container,
    .nav-container,
    .footer-container {
        max-width: 1700px;
    }
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    font-size: 11px;
    color: var(--chat-text-secondary);
}

.input-hint i {
    color: var(--chat-primary);
    font-size: 10px;
}

/* Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.typing-indicator .message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.typing-dots {
    background: var(--chat-surface);
    padding: 14px 18px;
    border-radius: 4px 16px 16px 16px;
    display: flex;
    gap: 4px;
    align-items: center;
    border: 1px solid var(--chat-border);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--chat-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal */
.chat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: var(--chat-radius);
}

.chat-modal-content {
    background: var(--chat-surface);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    width: 85%;
    max-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #f59e0b;
}

.chat-modal-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--chat-text);
    font-size: 17px;
}

.modal-description {
    font-size: 13px;
    color: var(--chat-text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.chat-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.chat-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--chat-transition);
    font-size: 13px;
}

.chat-modal-btn.confirm {
    background: #ef4444;
    color: #fff;
}

.chat-modal-btn.confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.chat-modal-btn.cancel {
    background: var(--chat-bg);
    color: var(--chat-text);
    border: 1px solid var(--chat-border);
}

.chat-modal-btn.cancel:hover {
    background: #e5e7eb;
}

/* Feedback Buttons */
.message-feedback {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--chat-border);
}

.feedback-btn {
    background: transparent;
    border: 1px solid var(--chat-border);
    color: var(--chat-text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--chat-transition);
}

.feedback-btn:hover {
    background: var(--chat-bg);
    border-color: var(--chat-text-secondary);
}

.feedback-btn.positive:hover,
.feedback-btn.positive.selected {
    background: #dcfce7;
    border-color: #22c55e;
    color: #22c55e;
}

.feedback-btn.negative:hover,
.feedback-btn.negative.selected {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.feedback-btn.selected {
    cursor: default;
}

.feedback-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-thanks {
    font-size: 11px;
    color: var(--chat-text-secondary);
    margin-left: 8px;
    display: flex;
    align-items: center;
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--chat-border);
    scrollbar-width: thin;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 300px;
}

.comparison-table th,
.comparison-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--chat-border);
    border-right: 1px solid var(--chat-border);
    vertical-align: top;
    text-align: left;
}

.comparison-table th {
    background: var(--chat-surface);
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 2;
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.compare-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ========================================
           RESPONSIVE DESIGN - MOBILE FIRST
           ======================================== */

/* Large Desktop - Larger window */
@media (min-width: 1200px) {
    .chatbot-window {
        width: 420px;
        height: 650px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .chatbot-window {
        width: 380px;
        height: 580px;
    }
}

/* Tablet Portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .chatbot-window {
        width: calc(100% - 40px);
        max-width: 400px;
        height: calc(100vh - 140px);
        max-height: 600px;
        right: 20px;
        bottom: 100px;
    }

    .chatbot-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .quick-action-btn {
        padding: 12px 14px;
    }
}

/* Mobile - Full Screen Experience */
@media (max-width: 480px) {
    .chatbot-window {
        position: fixed;
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        border-radius: 0;
        /* Safe area for notched phones */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .chatbot-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 24px;
        /* Ensure button is above any bottom navigation */
        z-index: 1001;
    }

    /* Larger header for easier touch */
    .chatbot-header {
        padding: 18px 16px;
        padding-top: calc(18px + env(safe-area-inset-top));
    }

    .chatbot-avatar {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .chatbot-header-text h4 {
        font-size: 16px;
    }

    .chatbot-status {
        font-size: 13px;
    }

    /* Larger touch targets for header actions */
    .chatbot-action-btn,
    .chatbot-close-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .chatbot-header-actions {
        gap: 8px;
    }

    /* Messages area fills available space */
    .chatbot-messages {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    /* Larger message text for readability */
    .message-content p,
    .user-message p {
        font-size: 15px;
        line-height: 1.7;
    }

    .message-content {
        padding: 14px 16px;
    }

    .message-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Improved quick actions on mobile */
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 16px 0;
    }

    .quick-action-btn {
        padding: 14px 12px;
        font-size: 14px;
        border-radius: 14px;
        /* Higher touch target */
        min-height: 52px;
    }

    .quick-action-btn i {
        font-size: 18px;
    }

    /* Improved input area on mobile */
    .chatbot-input {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .input-wrapper {
        padding: 6px 6px 6px 16px;
        border-radius: 16px;
    }

    #chatbot-input-field {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 12px 0;
    }

    .chatbot-send-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 12px;
    }

    .input-hint {
        font-size: 12px;
        padding-top: 10px;
    }

    /* Larger chips for touch */
    .chip {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Modal adjustments */
    .chat-modal-overlay {
        border-radius: 0;
    }

    .chat-modal-content {
        width: 90%;
        max-width: 320px;
        padding: 24px;
    }

    .chat-modal-btn {
        padding: 14px 24px;
        font-size: 14px;
        min-height: 48px;
    }

    .modal-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .chat-modal-title {
        font-size: 18px;
    }

    .modal-description {
        font-size: 14px;
    }
}

/* Small phones - Extra optimizations */
@media (max-width: 360px) {
    .chatbot-header {
        padding: 14px 12px;
    }

    .chatbot-avatar {
        width: 40px;
        height: 40px;
    }

    .chatbot-header-text h4 {
        font-size: 15px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .quick-action-btn {
        justify-content: center;
    }

    .chat-modal-buttons {
        flex-direction: column;
    }

    .chat-modal-btn {
        width: 100%;
    }
}

/* Landscape mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .chatbot-window {
        height: 100%;
    }

    .chatbot-messages {
        max-height: calc(100vh - 180px);
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hover disabled for touch devices */
@media (hover: none) and (pointer: coarse) {
    .chatbot-button:hover {
        transform: none;
    }

    .quick-action-btn:hover {
        transform: none;
        background: var(--chat-surface);
        color: var(--chat-text);
        border-color: var(--chat-border);
    }

    .quick-action-btn:hover i {
        color: var(--chat-primary);
    }

    .quick-action-btn:active {
        background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-light) 100%);
        color: #fff;
        transform: scale(0.98);
    }

    .quick-action-btn:active i {
        color: #fff;
    }

    .chip:hover {
        transform: none;
    }

    .chip:active {
        background: var(--chat-primary);
        color: #fff;
        border-color: var(--chat-primary);
    }

    .chatbot-send-btn:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    }

    .chatbot-send-btn:active {
        transform: scale(0.95);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .chatbot-button,
    .chatbot-window,
    .chat-modal-content,
    .message-content,
    .bot-message,
    .user-message,
    .quick-action-btn,
    .chip {
        animation: none;
        transition: none;
    }

    .typing-dot {
        animation: none;
        opacity: 0.6;
    }

    .status-dot {
        animation: none;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f5f5f5;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ff6b00;
}

.breadcrumbs span {
    color: #333;
}

/* Buttons */
.btn,
.btn-submit,
.btn-action,
.btn-choose,
.btn-brand-main,
.btn-add-cart,
.btn-apply-filters {
    display: inline-block;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
}

.btn-primary,
.btn-submit,
.btn-action,
.btn-choose,
.btn-brand-main,
.btn-add-cart,
.btn-apply-filters {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #fff;
}

.btn-primary:hover,
.btn-submit:hover,
.btn-action:hover,
.btn-choose:hover,
.btn-brand-main:hover,
.btn-add-cart:hover,
.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    color: #fff;
}

.btn-secondary,
.btn-reset-filters {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #ddd;
}

.btn-secondary:hover,
.btn-reset-filters:hover {
    border-color: #ff6b00;
    color: #ff6b00;
    background: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error,
.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #060;
    border: 1px solid #cec;
}

/* =========================================
   GLOBAL RESPONSIVENESS & ADAPTIVITY
   ========================================= */

/* 1. Large Screens (2K / 2560px and up) */
@media (min-width: 1921px) {

    .container,
    .header-container,
    .nav-container,
    .footer-content {
        max-width: 1800px;
        /* Allow wider content on huge screens */
        padding: 0 40px;
        /* More breathing room */
    }

    /* Increase base font size slightly for better readability on large monitors */
    body {
        font-size: 16px;
    }

    /* Grid adjustments for large screens */
    .products-grid,
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 40px;
        /* Increase gap */
    }
}

/* 2. Full HD (Standard 1920x1080) - already covered by default max-width: 1200px/1400px but ensuring consistency */
@media (min-width: 1441px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
        /* Standard wide container */
    }
}

/* 3. Mobile Adaptivity (Global Fixes) */
@media (max-width: 768px) {

    /* Safe padding for mobile */
    .container,
    .header-container,
    .nav-container {
        padding: 0 16px;
    }

    /* Typography scaling */
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    /* Touch targets */
    button,
    .btn,
    .nav-link,
    input,
    select {
        min-height: 44px;
    }

    /* Prevent horizontal scroll issues */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Stack flex containers by default on mobile if explicitly marked */
    .flex-responsive {
        flex-direction: column;
    }

    /* Header - More compact */
    .top-header {
        padding: 12px 0;
    }

    .header-container {
        gap: 10px;
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .logo img {
        height: 22px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
    }

    .search-button {
        padding: 0 15px;
        font-size: 14px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-link span {
        display: none;
    }

    .header-link {
        font-size: 12px;
    }

    .cart-icon {
        font-size: 18px;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }

    /* Navigation - Horizontal scroll */
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-container {
        justify-content: flex-start;
        gap: 15px;
        padding: 0 10px;
        min-width: min-content;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-link.has-dropdown::after {
        display: none;
    }

    /* User dropdown */
    .user-dropdown .dropdown-menu {
        right: -10px;
        left: auto;
        min-width: 180px;
    }

    .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Hero */
    .hero {
        min-height: 300px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Footer - Single column */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .footer-links li {
        margin: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 15px;
    }

    /* Chatbot - Full screen on mobile */
    .chatbot-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-button {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .chatbot-header {
        padding: 16px;
    }

    .chatbot-messages {
        padding: 15px;
    }

    .message-content {
        max-width: calc(100% - 45px);
        font-size: 13px;
        padding: 12px 14px;
    }

    .user-message p {
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Chips - Better mobile sizing */
    .chip {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .quick-action-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        order: 2;
        flex-shrink: 0;
    }

    /* Hide desktop navigation */
    .main-nav {
        display: none !important;
    }

    /* Header layout */
    .top-header {
        padding: 10px 0;
    }

    .header-container {
        gap: 10px;
        padding: 0 12px;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .logo img {
        height: 26px;
    }

    /* Search - full width on second row */
    .search-container {
        order: 4;
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 45px 10px 12px;
    }

    .search-button {
        padding: 0 15px;
        font-size: 15px;
    }

    /* Header actions */
    .header-actions {
        order: 3;
        gap: 10px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .header-link span {
        display: none;
    }

    .header-link {
        font-size: 0;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }

    .header-link i {
        font-size: 20px;
    }

    .cart-icon {
        font-size: 22px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-badge {
        width: 17px;
        height: 17px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }

    /* User dropdown */
    .user-dropdown .dropdown-menu {
        right: -10px;
        left: auto;
        min-width: 200px;
    }

    .dropdown-item {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 48px;
    }

    /* Hero */
    .hero {
        min-height: 300px;
    }

    .hero-content {
        padding: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 15px;
    }

    /* Chatbot */
    .chatbot-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-button {
        bottom: 15px;
        right: 15px;
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    /* Chips */
    .chip {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* Tablets Portrait and Mobile */
@media (max-width: 768px) {

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
    }

    /* Hide desktop navigation */
    .main-nav {
        display: none !important;
    }

    /* Hide profile/cart on mobile - only burger visible */
    .header-actions {
        display: none !important;
    }

    /* Header layout */
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 12px;
    }

    .logo img {
        height: 26px;
    }

    /* Search on second row */
    .search-container {
        order: 2;
        flex: none;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    /* Show mobile header icons (cart + burger) */
    .mobile-header-icons {
        display: flex;
        order: 1;
    }

    .mobile-cart-icon {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    /* Mobile search styling */
    .search-input {
        padding: 12px 55px 12px 15px;
        font-size: 16px;
        border: 1px solid #444;
        border-radius: 8px;
        background: #222;
        color: #fff;
    }

    .search-input::placeholder {
        color: #888;
    }

    .search-container form {
        position: relative;
    }

    .search-button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        height: 36px;
        width: 40px;
        border-radius: 6px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        min-height: 350px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Chatbot - не перекрывает контент */
    .chatbot-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 15px;
        z-index: 9990;
    }
}



/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .nav-link:hover,
    .header-link:hover {
        color: inherit;
    }

    .dropdown-item:hover {
        background: inherit;
        color: inherit;
    }

    /* Add active/tap states */
    .nav-link:active {
        color: #ff6b00;
    }

    .dropdown-item:active {
        background: #f5f5f5;
        color: #ff6b00;
    }

    /* Larger touch targets */
    .header-link,
    .cart-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}