/* ================================
   FLOATING BUTTON - Minimal
   ================================ */
.chatbot-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 99998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    border: none;
}

.chatbot-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

.chatbot-float-btn svg {
    width: 28px;
    height: 28px;
}

.chatbot-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #000;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid white;
}

/* ================================
   CHAT WINDOW - Minimal
   ================================ */
.chatbot-fullscreen {
    display: none;
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 99999;
}

.chatbot-fullscreen.active {
    display: block;
}

.chatbot-container {
    width: 420px;
    height: 600px;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================
   HEADER - Minimal
   ================================ */
.chatbot-fs-header {
    background: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.chatbot-fs-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-fs-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    padding: 8px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-fs-header-text h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    letter-spacing: -0.2px;
}

.chatbot-fs-subtitle {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

.chatbot-fs-close-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chatbot-fs-close-btn:hover {
    background: #f8f9fa;
    color: #212529;
}

.chatbot-fs-close-btn svg {
    width: 20px;
    height: 20px;
}

/* ================================
   CHAT BODY - Minimal
   ================================ */
.chatbot-fs-body {
    flex: 1;
    overflow: hidden;
    background: #fafafa;
}

.chatbot-fs-messages {
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    scroll-behavior: smooth;
}

.chatbot-fs-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-fs-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-fs-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chatbot-fs-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ================================
   MESSAGES - Minimal
   ================================ */
.chatbot-fs-message {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-fs-message.user-msg {
    flex-direction: row-reverse;
}

.chatbot-fs-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chatbot-fs-message.user-msg .chatbot-fs-message-avatar {
    background: #000;
    color: white;
}

.chatbot-fs-message-avatar svg {
    width: 16px;
    height: 16px;
}

.chatbot-fs-message-content {
    flex: 1;
    max-width: 75%;
}

.chatbot-fs-message.user-msg .chatbot-fs-message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-fs-message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.bot-bubble {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #212529;
    border-bottom-left-radius: 4px;
}

.user-bubble {
    background: #000;
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-fs-message-bubble h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.bot-bubble h3 {
    color: #212529;
}

.user-bubble h3 {
    color: white;
}

.chatbot-fs-message-bubble p {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.chatbot-fs-message-bubble p:last-child {
    margin-bottom: 0;
}

.chatbot-fs-message-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #adb5bd;
}

.user-image-preview {
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 200px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.user-image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   PRODUCT CARDS - Ultra Minimal
   ================================ */
.product-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.product-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.similarity-badge-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.product-card-body {
    padding: 12px;
}

.product-card-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 32px;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.product-price {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.product-view-btn {
    background: #f8f9fa;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.product-view-btn:hover {
    background: #000;
    color: white;
}

/* ================================
   LOADING - Minimal
   ================================ */
.loading-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #adb5bd;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ================================
   FOOTER - Minimal
   ================================ */
.chatbot-fs-footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
}

.chatbot-fs-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.chatbot-fs-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chatbot-fs-action-btn:hover {
    background: #212529;
    transform: translateY(-1px);
}

.chatbot-fs-action-btn svg {
    width: 16px;
    height: 16px;
}

.chatbot-fs-input-wrapper {
    flex: 1;
    display: flex;
    gap: 6px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s;
}

.chatbot-fs-input-wrapper:focus-within {
    border-color: #000;
}

.chatbot-fs-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    color: #212529;
}

.chatbot-fs-input-wrapper input::placeholder {
    color: #adb5bd;
}

.chatbot-fs-send-btn {
    width: 38px;
    height: 38px;
    background: #000;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-fs-send-btn svg {
    width: 16px;
    height: 16px;
}

.chatbot-fs-send-btn:hover {
    background: #212529;
    transform: scale(1.05);
}

.chatbot-fs-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chatbot-fs-footer-text {
    margin: 0;
    text-align: center;
    font-size: 10px;
    color: #adb5bd;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        max-height: 600px;
    }

    .chatbot-fullscreen {
        right: 16px;
        bottom: 90px;
    }

    .chatbot-float-btn {
        width: 60px;
        height: 60px;
        bottom: 16px;
        right: 16px;
    }

    .chatbot-fs-action-btn span {
        display: none;
    }

    .chatbot-fs-action-btn {
        padding: 12px;
    }

    .product-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 90px);
    }

    .chatbot-fullscreen {
        right: 10px;
        bottom: 80px;
    }

    .chatbot-fs-header {
        padding: 16px 20px;
    }

    .chatbot-fs-logo {
        width: 32px;
        height: 32px;
    }

    .chatbot-fs-header-text h2 {
        font-size: 14px;
    }

    .chatbot-fs-messages {
        padding: 16px;
    }
}