/* ==========================================
   ⭐ PRODUCT CATALOG CSS v3.0 - FORCE NEW
   ========================================== */

/* FORCE RESET EVERYTHING */
* {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: #ffffff !important;
}

/* CONTAINER */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ==========================================
   📱 HEADER - WHITE BACKGROUND
   ========================================== */
.header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.8rem 0 !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.logo-image {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
}

.logo-icon {
    width: 40px !important;
    height: 40px !important;
    background: #007bff !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 1rem !important;
}

.logo-text h1 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
}

.logo-text p {
    font-size: 0.75rem !important;
    color: #666 !important;
    margin: 0 !important;
}

.nav {
    display: flex !important;
    gap: 0 !important;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.nav-link:hover,
.nav-link.active {
    background: #f8f9fa !important;
    color: #007bff !important;
}

.admin-link {
    background: #007bff !important;
    color: white !important;
}

.admin-link:hover {
    background: #0056b3 !important;
}

/* ==========================================
   🏠 HERO - BLUE GRADIENT
   ========================================== */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    padding: 3rem 0 !important;
    text-align: center !important;
}

.hero-content h2 {
    font-size: 2rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    opacity: 0.9 !important;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================
   ⏳ LOADING
   ========================================== */
.loading-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.loading-section.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* AGGRESSIVE LOADING HIDE - ULTIMATE FIX */
.loading-section.hidden,
#loadingSection.hidden,
[id*="loading"].hidden,
[class*="loading"].hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
}

/* ===== CONTACT SECTION STYLES ===== */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-top: 50px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-card p a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-card p a:hover {
    text-decoration: underline;
}

.contact-card span {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.contact-form-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form-section h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0;
    max-width: 250px;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

/* ===== FLOATING DRAGGABLE CHATBOX v2.0 - TOP POSITION ===== */
.floating-chatbox {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    overflow: hidden;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes slideInUp {
    from {
        transform: translateY(60px) scale(0.85);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-60px) scale(0.85);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.floating-chatbox:hover {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2), 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Enhanced animations */
@keyframes messageSlideIn {
    from {
        transform: translateY(15px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes flashAttention {

    0%,
    100% {
        border-color: rgba(102, 126, 234, 0.1);
    }

    50% {
        border-color: rgba(102, 126, 234, 0.6);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    }
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100px);
        opacity: 0;
    }
}

@keyframes chatPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }
}

/* Chatbox Header Enhanced */
.chatbox-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.chatbox-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.chatbox-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: headerShimmer 3s ease-in-out infinite;
}

@keyframes headerShimmer {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.header-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Chatbox Body */
.chatbox-body {
    display: flex;
    flex-direction: column;
    height: 494px;
    /* Total height - header height */
    background: #f8fafc;
}

.messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.messages-area::-webkit-scrollbar {
    width: 6px;
}

.messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.messages-area::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Welcome Message */
.welcome-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bot-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.message-bubble {
    max-width: 80%;
    animation: bubbleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bubbleIn {
    from {
        transform: scale(0.8) translateY(10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.bot-bubble {
    background: white;
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.user-bubble {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 18px 18px 6px 18px;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.bubble-content {
    padding: 16px 18px;
    line-height: 1.5;
}

.bubble-content strong {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
}

.user-bubble .bubble-content strong {
    color: rgba(255, 255, 255, 0.9);
}

.bubble-content p {
    margin: 6px 0 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.user-bubble .bubble-content p {
    color: rgba(255, 255, 255, 0.95);
}

.bubble-time {
    font-size: 0.7rem;
    color: #a0aec0;
    padding: 0 18px 8px;
    text-align: right;
}

.user-bubble .bubble-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Replies Enhanced */
.quick-replies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.quick-replies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.quick-reply {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quick-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: left 0.6s ease;
}

.quick-reply:hover::before {
    left: 100%;
}

.quick-reply:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.quick-reply:active {
    transform: translateY(-2px) scale(0.98);
}

.quick-reply i {
    font-size: 1.3rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.quick-reply:hover i {
    color: white;
    transform: scale(1.1);
}

.quick-reply span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
}

.quick-reply:hover span {
    color: white;
}

/* Input Area Enhanced */
.input-area {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    padding: 20px;
    position: relative;
}

.input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 8px 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s ease;
}

.input-container:focus-within::before {
    left: 100%;
}

.input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15), 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

.input-btn {
    background: none;
    border: none;
    color: #a0aec0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.input-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.1);
}

.input-container input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 8px;
    font-size: 0.95rem;
    outline: none;
    color: #2d3748;
    min-width: 0;
}

.input-container input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.send-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.send-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.send-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Typing Status */
.typing-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
    color: #718096;
    font-size: 0.8rem;
}

.typing-animation {
    display: flex;
    gap: 3px;
}

.typing-animation span {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDots {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Floating Chat Button - TOP POSITION */
.floating-chat-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    70% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.floating-chat-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.floating-chat-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.chat-icon {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.floating-chat-btn:hover .chat-icon {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: badgePulse 2s infinite;
    border: 2px solid white;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Draggable functionality */
.floating-chatbox.dragging {
    transition: none;
    user-select: none;
    z-index: 10001;
}

.floating-chatbox.dragging .chatbox-header {
    cursor: grabbing;
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* Responsive Design Enhanced */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-form-section {
        padding: 30px 20px;
        margin: 0 15px;
    }

    /* Mobile Chatbox Optimizations */
    .floating-chatbox {
        width: calc(100vw - 20px);
        height: calc(100vh - 60px);
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        border-radius: 15px;
        position: fixed;
    }

    .floating-chat-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .chatbox-header {
        padding: 16px 20px;
    }

    .company-name {
        font-size: 1rem;
    }

    .quick-replies {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .quick-reply {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .input-area {
        padding: 16px;
    }

    .input-container {
        padding: 6px 10px;
    }

    .input-container input {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-chatbox {
        width: 360px;
        height: 520px;
    }

    .quick-replies {
        padding: 20px;
    }
}

/* Large screens optimizations */
@media (min-width: 1440px) {
    .floating-chatbox {
        width: 400px;
        height: 580px;
    }

    .chatbox-header {
        padding: 24px 28px;
    }

    .quick-replies {
        padding: 28px;
        gap: 18px;
    }

    .input-area {
        padding: 24px;
    }
}

.loading-content {
    max-width: 300px !important;
}

.loading-spinner {
    font-size: 2rem !important;
    color: #007bff !important;
    margin-bottom: 1rem !important;
}

.loading-content h3 {
    font-size: 1.2rem !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.loading-content p {
    color: #666 !important;
}

/* ==========================================
   🔍 FILTERS - WHITE BACKGROUND
   ========================================== */
.products {
    padding: 2rem 0 !important;
    background: #ffffff !important;
}

.filters-section {
    background: #f8f9fa !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    margin-bottom: 2rem !important;
    border: 1px solid #e5e5e5 !important;
}

.search-container {
    margin-bottom: 1rem !important;
}

.search-box {
    position: relative !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.search-box i {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #666 !important;
}

.search-box input {
    width: 100% !important;
    padding: 10px 12px 10px 36px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    background: white !important;
}

.search-box input:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

.filters-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    align-items: end !important;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
}

.filter-group label {
    font-weight: 500 !important;
    margin-bottom: 5px !important;
    color: #333 !important;
    font-size: 0.9rem !important;
}

.filter-group select {
    padding: 8px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: white !important;
    font-size: 0.9rem !important;
}

.filter-group select:focus {
    outline: none !important;
    border-color: #007bff !important;
}

.filter-actions {
    display: flex !important;
    gap: 10px !important;
}

.btn-clear {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: background 0.2s ease !important;
}

.btn-clear:hover {
    background: #c82333 !important;
}

/* ==========================================
   📦 PRODUCTS GRID - WHITE CARDS
   ========================================== */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
    background: #ffffff !important;
}

.product-card {
    background: white !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.product-image {
    height: 160px !important;
    background: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    font-size: 2rem !important;
    position: relative !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    transition: all 0.2s ease !important;
}

.wishlist-btn:hover {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.wishlist-btn.active {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.product-info {
    padding: 1rem !important;
}

.product-category {
    background: #e3f2fd !important;
    color: #1565c0 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
}

.product-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.product-code {
    color: #666 !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
}

.product-price {
    margin-bottom: 8px !important;
}

.price-label {
    font-size: 0.8rem !important;
    color: #666 !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.price-value {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #dc3545 !important;
}

.product-unit {
    color: #666 !important;
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
}

.product-actions {
    display: flex !important;
    gap: 6px !important;
}

.view-details-btn,
.product-actions button {
    flex: 1 !important;
    padding: 8px 10px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
}

.view-details-btn {
    background: #007bff !important;
    color: white !important;
}

.view-details-btn:hover {
    background: #0056b3 !important;
}

.product-actions button:last-child {
    background: #28a745 !important;
    color: white !important;
}

.product-actions button:last-child:hover {
    background: #1e7e34 !important;
}

/* ==========================================
   📄 PAGINATION
   ========================================== */
.pagination-section {
    background: #f8f9fa !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    border: 1px solid #e5e5e5 !important;
    margin-bottom: 2rem !important;
}

.pagination-info {
    text-align: center !important;
    margin-bottom: 1rem !important;
    color: #666 !important;
    font-size: 0.9rem !important;
}

.pagination-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.pagination-btn {
    background: white !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
}

.pagination-btn:hover:not(:disabled) {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.pagination-btn:disabled {
    background: #f8f9fa !important;
    color: #aaa !important;
    cursor: not-allowed !important;
}

.page-numbers {
    display: flex !important;
    gap: 4px !important;
}

.page-number {
    background: white !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    min-width: 36px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
}

.page-number:hover,
.page-number.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

/* ==========================================
   🎯 WISHLIST COUNTER
   ========================================== */
.wishlist-counter {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #dc3545 !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    z-index: 999 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: none !important;
}

.wishlist-counter:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
}

/* ==========================================
   💬 CHAT BUTTON & BOX
   ========================================== */
.chat-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    z-index: 1000 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.chat-btn:hover {
    background: #1e7e34 !important;
    transform: scale(1.05) !important;
}

.chat-box {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 350px !important;
    height: 450px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.chat-header {
    background: #28a745 !important;
    color: white !important;
    padding: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.chat-body {
    flex: 1 !important;
    padding: 15px !important;
    overflow-y: auto !important;
    background: #f8f9fa !important;
}

.chat-message {
    margin-bottom: 10px !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    max-width: 80% !important;
    word-wrap: break-word !important;
}

.chat-message.bot {
    background: white !important;
    color: #333 !important;
    margin-right: auto !important;
}

.chat-message.user {
    background: #007bff !important;
    color: white !important;
    margin-left: auto !important;
}

.chat-input-area {
    padding: 15px !important;
    background: white !important;
    border-top: 1px solid #e1e8ed !important;
    display: flex !important;
    gap: 10px !important;
}

.chat-input {
    flex: 1 !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    outline: none !important;
}

.chat-send-btn {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.chat-send-btn:hover {
    background: #1e7e34 !important;
}

/* ==========================================
   🔍 MODAL
   ========================================== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 2000 !important;
    padding: 20px !important;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: white !important;
    border-radius: 8px !important;
    max-width: 800px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.modal-header {
    background: #007bff !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal-header h3 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 1rem !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.modal-body {
    padding: 1.5rem !important;
}

.modal-product-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
}

.modal-product-image {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    text-align: center !important;
    border: 1px solid #e5e5e5 !important;
}

.modal-product-info h2 {
    font-size: 1.3rem !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
}

.modal-product-details {
    margin-bottom: 1rem !important;
}

.detail-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.detail-label {
    font-weight: 500 !important;
    color: #666 !important;
}

.detail-value {
    color: #333 !important;
}

.price-highlight {
    background: #fff5f5 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    text-align: center !important;
    margin: 1rem 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #dc3545 !important;
}

.modal-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 1rem !important;
}

.contact-btn,
.wishlist-btn-modal {
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.contact-btn {
    background: #28a745 !important;
    color: white !important;
}

.contact-btn:hover {
    background: #1e7e34 !important;
}

.wishlist-btn-modal {
    background: #f8f9fa !important;
    color: #007bff !important;
    border: 1px solid #007bff !important;
}

.wishlist-btn-modal:hover {
    background: #007bff !important;
    color: white !important;
}

/* ==========================================
   🦶 FOOTER
   ========================================== */
.footer {
    background: #333 !important;
    color: white !important;
    padding: 2rem 0 1rem !important;
    margin-top: 3rem !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.8rem !important;
    font-weight: 600 !important;
}

.footer-section p,
.footer-links a {
    color: #ccc !important;
    text-decoration: none !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.footer-links a:hover {
    color: white !important;
}

.footer-links {
    list-style: none !important;
}

.footer-links li {
    margin-bottom: 0.5rem !important;
}

.footer-bottom {
    border-top: 1px solid #555 !important;
    padding-top: 1rem !important;
    text-align: center !important;
    color: #aaa !important;
    font-size: 0.9rem !important;
}

/* ==========================================
   📱 RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .nav {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-content h2 {
        font-size: 1.5rem !important;
    }

    .filters-container {
        grid-template-columns: 1fr !important;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .wishlist-counter {
        top: 80px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .modal-product-layout {
        grid-template-columns: 1fr !important;
    }

    .modal-actions {
        grid-template-columns: 1fr !important;
    }

    .chat-box {
        width: 90% !important;
        right: 5% !important;
        left: 5% !important;
    }
}

/* ==========================================
   🌙 DARK MODE SUPPORT
   ========================================== */
@media (prefers-color-scheme: dark) {
    .floating-chatbox {
        background: #1a1a1a;
        border-color: rgba(102, 126, 234, 0.3);
    }

    .chatbox-body {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .messages-area {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .bot-bubble {
        background: #333333;
        color: #ffffff;
        border-color: rgba(102, 126, 234, 0.2);
    }

    .bubble-content p {
        color: #e0e0e0;
    }

    .quick-replies {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .quick-reply {
        background: linear-gradient(135deg, #333333, #2a2a2a);
        border-color: #444444;
        color: #e0e0e0;
    }

    .quick-reply:hover {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

    .input-area {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .input-container {
        background: #333333;
        border-color: #444444;
    }

    .input-container input {
        color: #ffffff;
    }

    .input-container input::placeholder {
        color: #888888;
    }
}

/* ==========================================
   ♿ ACCESSIBILITY ENHANCEMENTS
   ========================================== */
.floating-chatbox {
    /* High contrast mode support */
    outline: 2px solid transparent;
}

.floating-chatbox:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.quick-reply:focus,
.input-btn:focus,
.send-btn:focus,
.action-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .floating-chatbox,
    .quick-reply,
    .input-container,
    .message-bubble {
        animation: none !important;
        transition: none !important;
    }
}

/* Screen reader support */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   🔧 UTILITIES
   ========================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-out !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HIDE/REMOVE PAGE LOADER ===== */
.page-loader {
    display: none !important;
    /* BỎ MÀN TÍM */
}

/* ===== SMALL LOADING OVERLAY FOR PRODUCTS GRID ===== */
.loading-overlay {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 15px !important;
    margin: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.loading-overlay .loading-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-bottom: 1rem !important;
}

.loading-overlay p {
    color: #667eea !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}