    /* Custom Properties */
    :root {
        --primary-color: #4285f4;
        --primary-dark: #1a73e8;
        --secondary-color: #f8f9fa;
        --text-dark: #2c3e50;
        --text-light: #6c757d;
        --border-color: #e9ecef;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
        --border-radius: 12px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Base Styles */
    * {
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
        min-height: 100vh;
        margin: 0;
        padding: 20px;
    }
    

    /* Chat Toggle Button */
    .chat-toggle {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1001;
        color: white;
        font-size: 24px;
    }

    .chat-toggle:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 70px rgba(66, 133, 244, 0.3);
        background: var(--primary-dark);
    }

    .chat-toggle.active {
        background: #dc3545;
    }

    .chat-toggle.active i::before {
        content: "\f00d";
    }

    .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        animation: pulse 2s infinite;
    }

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

        50% {
            transform: scale(1.1);
        }

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

    /* Chat Container */
    .chat-container {
        position: fixed;
        bottom: 30px;
        right: 105px;
        width: 450px;
        height: calc(100vh - 16vh);
        /* top:10px;
        bottom: 10px; */
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        display: flex;
        flex-direction: column;
        transform: translateY(100%) scale(0.8);
        opacity: 0;
        transition: var(--transition);
        z-index: 1000;
        overflow: hidden;
    }

    .chat-container.active {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* Chat Header */
    .chat-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .avatar {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
    }

    .status-indicator {
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #28a745;
        border-radius: 50%;
        margin-right: 5px;
        animation: blink 2s infinite;
    }

    @keyframes blink {

        0%,
        50% {
            opacity: 1;
        }

        51%,
        100% {
            opacity: 0.3;
        }
    }

    /* Quick Actions */
    .quick-actions {
        padding: 20px;
        background: #f8f9fa;
        border-bottom: 1px solid var(--border-color);
    }

    .quick-action-btn {
        width: 100%;
        padding: 12px 8px;
        border: 2px solid var(--border-color);
        background: white;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        color: var(--text-dark);
    }

    .quick-action-btn:hover {
        border-color: var(--primary-color);
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
    }

    .quick-action-btn i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .quick-action-btn span {
        font-size: 11px;
        font-weight: 500;
        text-align: center;
        line-height: 1.2;
    }

    /* Chat Messages */
    .chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        scroll-behavior: smooth;
        font-family: system-ui;
    }

    .chat-messages::-webkit-scrollbar {
        width: 4px;
    }

    .chat-messages::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .chat-messages::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .message {
        display: flex;
        margin-bottom: 20px;
        animation: slideIn 0.3s ease-out;
    }

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

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

    .message-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .bot-message .message-avatar {
        background: var(--primary-color);
        color: white;
    }

    .user-message {
        flex-direction: row-reverse;
    }

    .user-message .message-avatar {
        background: #6c757d;
        color: white;
        margin-right: 0;
        margin-left: 12px;
    }
            
    .user-message .message-content {
        align-items: flex-end;
    }

    .message-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 75%;
    }

    .message-bubble {
        background: #f8f9fa;
        padding: 12px 16px;
        border-radius: 18px;
        margin-bottom: 4px;
        position: relative;
        word-wrap: break-word;
        width: 100%;
    }

    .bot-message .message-bubble {
        background: #f8f9fa;
        border-bottom-left-radius: 4px;
    }

    .user-message .message-bubble {
        background: var(--primary-color);
        color: white;
        border-bottom-right-radius: 4px;
    }

    .message-bubble p {
        margin: 0;
        line-height: 1.4;
        font-size: 14px;
    }

    .message-time {
        color: var(--text-light);
        font-size: 11px;
        margin-top: 2px;
    }

    /* Typing Indicator */
    .typing-indicator {
        display: none;
        align-items: center;
        padding: 0 20px 10px;
        animation: slideIn 0.3s ease-out;
    }

    .typing-indicator.active {
        display: flex;
    }

    .typing-dots {
        display: flex;
        align-items: center;
        gap: 4px;
        background: #f8f9fa;
        padding: 12px 16px;
        border-radius: 18px;
        border-bottom-left-radius: 4px;
    }

    .typing-dots span {
        width: 6px;
        height: 6px;
        background: var(--text-light);
        border-radius: 50%;
        animation: typing 1.4s infinite;
    }

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

    .typing-dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes typing {

        0%,
        60%,
        100% {
            transform: translateY(0);
            opacity: 0.4;
        }

        30% {
            transform: translateY(-10px);
            opacity: 1;
        }
    }

    /* Chat Input */
    .chat-input {
        padding: 11px 14px 11px;
        border-top: 1px solid var(--border-color);
        background: white;
    }

    .chat-input .input-group {
        border-radius: 25px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .chat-input .form-control {
        border: none;
        padding: 12px 16px;
        font-size: 14px;
    }

    .chat-input .form-control:focus {
        box-shadow: none;
        border-color: transparent;
    }

    .chat-input .btn {
        border: none;
        padding: 12px 16px;
        font-size: 14px;
    }

    .chat-input .btn-outline-secondary {
        background: #f8f9fa;
        color: var(--text-light);
    }

    .chat-input .btn-outline-secondary:hover {
        background: var(--primary-color);
        color: white;
    }

    .chat-input .btn-primary {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .chat-input .btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    /* Chat Footer */
    .chat-footer {
        padding: 8px 20px;
        background: #f8f9fa;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }

    /* Chat Overlay */
    .chat-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(241 241 241 / 50%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .chat-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .chat-container {
            width: calc(100vw - 20px);
            /* height: calc(100vh - 90px); */

            height: -webkit-fill-available;
            bottom: 10px;
            right: 10px;
            left: 10px;
            top: 10px;
            border-radius: var(--border-radius);
        }

        .chat-toggle {
            bottom: 20px;
            right: 20px;
        }

        .quick-actions .col-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }

        .message-content {
            max-width: 85%;
        }
    }

    @media (max-width: 480px) {
        .chat-header {
            padding: 15px;
        }

        .quick-actions {
            padding: 15px;
        }

        .chat-messages {
            padding: 15px;
        }

        .chat-input {
            padding: 15px;
        }

        .quick-action-btn {
            padding: 10px 6px;
        }

        .quick-action-btn i {
            font-size: 16px;
        }

        .quick-action-btn span {
            font-size: 10px;
        }
    }

    /* Animation Classes */
    .fade-in {
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .slide-up {
        animation: slideUp 0.3s ease-out;
    }

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

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

    /* Utility Classes */
    .text-gradient {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .shadow-custom {
        box-shadow: var(--shadow);
    }

    .shadow-custom-lg {
        box-shadow: var(--shadow-lg);
    }

    

    .product-card {
    animation: fadeIn 0.4s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* .card-title {
    font-size: 1rem;
    font-weight: bold;
} */

/* .product-card {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
} */

/* .product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    background: #f9f9f9;
    display: flex;
    gap: 10px;
    transition: transform 0.2s;
} */

.card-text{
    color: var(--primary-dark);
}
.btn-outline-primary{
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary:hover{
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}


.product-card:hover {
    transform: scale(1.02);
}
.product-image{
    align-items: center;
    align-content: center;
}
.product-image img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin: 5px;
}
.product-details {
    flex: 1;
}
.product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}
.product-price {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 0 6px;
}
.product-features {
    list-style: disc;
    padding-left: 16px;
    margin: 0;
}
.product-features li {
    font-size: 12px;
}

/* Store Card Styles */
.store-card {
    animation: fadeIn 0.4s ease-in;
    margin: 8px 0;
}

.store-card:hover {
    transform: scale(1.02);
}

.store-card .card {
    border: 1px solid var(--border-color);
}

/* Product Details Card Styles */
.product-details-card {
    animation: fadeIn 0.5s ease-in;
    margin: 12px 0;
}

.product-detail-card {
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transition: var(--transition);
}

.product-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.2);
}

.product-detail-card .card-header {
    background: var(--primary-color) !important;
    border-bottom: none;
}

.product-detail-card .specifications {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.product-detail-card .delivery-options {
    background: #e8f5e8;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.product-detail-card .description {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.product-detail-card .action-buttons .btn {
    min-width: 120px;
    font-weight: 600;
}

.product-detail-card .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.product-detail-card img {
    border: 2px solid #f1f3f4;
    transition: var(--transition);
}

.product-detail-card img:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .product-detail-card .col-md-4,
    .product-detail-card .col-md-8 {
        text-align: center;
    }
    
    .product-detail-card .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .product-detail-card .action-buttons .btn {
        width: 100%;
    }
}

.store-card .card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.store-card .card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.store-card .bg-light {
    background-color: #f8f9fa !important;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.store-card .text-primary {
    color: var(--primary-color) !important;
}

.store-card .text-success {
    color: #28a745 !important;
}

.store-card .text-muted {
    color: var(--text-light) !important;
}

.store-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 0.8rem;
}

.store-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.store-card .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    font-size: 0.8rem;
}

.store-card .btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.store-card .fa-store {
    color: var(--primary-color);
}

.store-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* ============================================================= */
/* Comparison and recommendation cards + UI polish              */
/* ============================================================= */

/* --- Product comparison --- */
.comparison-card {
    margin: 10px 0;
}
.cmp-wrap {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cmp-head {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.cmp-table th,
.cmp-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}
.cmp-table thead th {
    background: #f3fbfa;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
}
.cmp-table tbody tr:nth-child(even) { background: #fafcfc; }
.cmp-feature { color: var(--text-light); font-weight: 600; white-space: nowrap; }
.cmp-diffs {
    margin: 10px 14px;
    padding-left: 18px;
    font-size: 0.82rem;
    color: var(--text-dark);
}
.cmp-diffs li { margin-bottom: 4px; }
.cmp-verdict {
    margin: 0 14px 14px;
    padding: 9px 12px;
    background: #eafff6;
    border-left: 3px solid #28a745;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #1a7d47;
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

/* --- Recommendation header --- */
.reco-header {
    margin: 12px 0 4px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.reco-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* ============================================================= */
/* FLOATING CARD LAYOUT — chat card popping out of a gradient    */
/* ============================================================= */
html, body {
    height: 100%;
}
body {
    padding: 0 !important;
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Attractive animated gradient backdrop */
    background: linear-gradient(135deg, #4285f4 0%, #6a5cff 32%, #a24ff0 66%, #4285f4 100%);
    background-size: 300% 300%;
    animation: bgShift 20s ease infinite;
}
@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hide the widget chrome that only makes sense in floating mode */
.chat-toggle,
.chat-overlay,
#minimizeChat {
    display: none !important;
}

/* The chat is a centered card that "pops" off the gradient */
.chat-container {
    position: relative;
    inset: auto;
    top: auto; right: auto; bottom: auto; left: auto;
    width: min(1060px, 94vw);
    height: min(900px, 92vh);
    max-width: none;
    border-radius: 26px;
    background: #ffffff;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
    box-shadow:
        0 30px 80px rgba(24, 39, 75, 0.35),
        0 12px 30px rgba(24, 39, 75, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    animation: cardPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-container.active {
    transform: none !important;
    opacity: 1 !important;
}
@keyframes cardPop {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header: title left-aligned, corners clipped by the card radius */
.chat-header {
    border-radius: 0;
    padding: 18px 26px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.10);
    justify-content: flex-start;
    z-index: 5;
}
.chat-header h6 { font-size: 1.1rem; }
.chat-header .avatar { width: 44px; height: 44px; font-size: 20px; }

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.chat-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.chat-back-btn:hover,
.chat-back-btn:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

/* Messages fill the card comfortably */
.chat-messages {
    padding: 22px 26px 10px;
}
.message-content { max-width: 74%; }
.message-bubble p { font-size: 15px; }

.quick-actions { padding: 18px 26px; }
.quick-action-btn span { font-size: 12px; }

.typing-indicator { padding: 0 26px 10px; }

.chat-input {
    padding: 16px 26px;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.05);
    z-index: 5;
}
.chat-input .input-group { border: 1px solid var(--border-color); }
.chat-input .form-control { font-size: 15px; padding: 14px 18px; }

.chat-footer { padding: 9px 26px; }

.chat-messages .card { font-size: 0.95rem; }

/* On small screens the card grows to (nearly) full bleed */
@media (max-width: 768px) {
    body { padding: 0 !important; }
    .chat-container {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }
    .message-content { max-width: 84%; }
    .chat-header { padding: 14px 16px; }
    .chat-messages { padding: 16px 14px 6px; }
    .quick-actions { padding: 16px 14px; }
    .chat-input { padding: 12px 14px; }
    .typing-indicator { padding: 0 14px 10px; }
}

/* ============================================================= */
/* UI ENHANCEMENTS — refined, modern look                        */
/* ============================================================= */

/* Softer, layered page background behind the message column */
.chat-messages {
    background:
        radial-gradient(1200px 400px at 50% -8%, rgba(66, 133, 244, 0.08), transparent 70%),
        #f5f8fb;
}

/* --- Header: richer gradient, glassy depth, brand mark --- */
.chat-header {
    background: linear-gradient(120deg, #1a73e8 0%, #4285f4 45%, #669df6 100%);
    position: relative;
    overflow: hidden;
}
.chat-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 88% -40%, rgba(255, 255, 255, 0.22), transparent 60%);
    pointer-events: none;
}
.chat-header .avatar {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.chat-header h6 { letter-spacing: 0.2px; font-weight: 700; }

/* --- Avatars & message bubbles --- */
.message-avatar {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    width: 34px; height: 34px;
}
.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.message-bubble {
    box-shadow: 0 2px 10px rgba(20, 40, 60, 0.06);
    border: 1px solid rgba(20, 40, 60, 0.04);
    padding: 13px 17px;
}
.bot-message .message-bubble {
    background: #ffffff;
}
.user-message .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.28);
}
.message-time { font-size: 10.5px; opacity: 0.8; }

/* --- Quick action tiles: colored icon chips + lift --- */
.quick-actions {
    background: transparent;
    border-bottom: none;
    padding-top: 22px;
}
.quick-action-btn {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 40, 60, 0.05);
    gap: 8px;
}
.quick-action-btn i {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: rgba(66, 133, 244, 0.12);
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 2px;
    transition: var(--transition);
}
.quick-action-btn span { font-weight: 600; color: var(--text-dark); }
.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: #fff;
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(66, 133, 244, 0.18);
}
.quick-action-btn:hover i { background: var(--primary-color); color: #fff; transform: scale(1.05); }
.quick-action-btn:hover span { color: var(--primary-dark); }

/* --- Product cards: modern, elevated, image-forward --- */
.product-card .card,
.chat-messages .card.mb-2 {
    border: 1px solid rgba(20, 40, 60, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(20, 40, 60, 0.07) !important;
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover .card { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 40, 60, 0.12) !important; }
.product-card .product-image {
    background: #f7fafc;
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
}
.product-card .product-image img { max-height: 130px; object-fit: contain; }
.product-card .card-title { color: var(--text-dark); font-weight: 700 !important; }
.product-card .text-success { color: var(--primary-dark) !important; font-size: 1rem; }
.product-card .btn-outline-primary {
    border-radius: 9px;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(66, 133, 244, 0.08);
    border-color: transparent;
    color: var(--primary-dark);
}
.product-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}
.product-features li { color: var(--text-light); }

/* --- Input bar: pill field + circular send button --- */
.chat-input {
    background: #fff;
    border-top: 1px solid rgba(20, 40, 60, 0.06);
}
.chat-input .input-group {
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px 4px 4px 6px;
    box-shadow: 0 4px 18px rgba(20, 40, 60, 0.06);
    transition: var(--transition);
    background: #fff;
    align-items: center;
}
.chat-input .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 6px 22px rgba(66, 133, 244, 0.18);
}
.chat-input .form-control { background: transparent; }
.chat-input .btn-primary {
    width: 46px; height: 46px;
    border-radius: 50% !important;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
    flex-shrink: 0;
}
.chat-input .btn-primary:hover { transform: scale(1.06); }

/* --- Footer --- */
.chat-footer {
    background: #fff;
    border-top: 1px solid rgba(20, 40, 60, 0.05);
}

/* --- Refined scrollbar --- */
.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(66, 133, 244, 0.35);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(66, 133, 244, 0.6); background-clip: padding-box; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }

/* --- Comparison card shadow harmonization --- */
.cmp-wrap {
    box-shadow: 0 6px 20px rgba(20, 40, 60, 0.08);
    border-color: rgba(20, 40, 60, 0.06);
}

/* --- Support ticket card --- */
.ticket-card { margin: 10px 0; }
.ticket-wrap {
    background: #fff;
    border: 1px solid rgba(20, 40, 60, 0.06);
    border-left: 4px solid var(--primary-color);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 20px rgba(20, 40, 60, 0.08);
}
.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
}
.ticket-status {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.ticket-id-row {
    margin: 8px 0 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
}
.ticket-id-row strong { color: var(--primary-dark); }
.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.ticket-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-issue {
    background: #f6f8fb;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.82rem;
    color: var(--text-dark);
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.ticket-issue .fa-circle-exclamation { color: #e65100; margin-top: 2px; }
.ticket-foot {
    font-size: 0.74rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Storefront assistant shell — UI-only layer; chat element IDs and API wiring
   remain unchanged in chatbot-sale.js.
   -------------------------------------------------------------------------- */
:root {
    --lotus-ink: #17233d;
    --lotus-muted: #71809a;
    --lotus-teal: #008d96;
    --lotus-teal-dark: #006a75;
    --lotus-coral: #ff6e61;
    --lotus-canvas: #f5f7fc;
    --lotus-line: #e6eaf3;
}

body.assistant-page {
    min-height: 100vh;
    padding: 0;
    color: var(--lotus-ink);
    background: radial-gradient(circle at 15% 5%, #e2fbfa 0, transparent 27rem), var(--lotus-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.storefront-shell { min-height: 100vh; padding-bottom: 36px; }
.storefront-header {
    height: 74px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(22px, 4vw, 66px);
    background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--lotus-line); backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 50;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--lotus-ink); text-decoration: none; min-width: 166px; }
.brand-lockup strong { display: block; letter-spacing: -.7px; font-size: 1.18rem; line-height: 1; }
.brand-lockup small { display: block; color: var(--lotus-teal); font-size: .69rem; letter-spacing: .11em; margin-top: 3px; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; border-radius: 13px; background: linear-gradient(135deg, var(--lotus-teal), #2bc1b4); box-shadow: 0 8px 18px #008d962e; }
.catalog-search { flex: 1; max-width: 620px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--lotus-line); border-radius: 13px; background: #f8fafc; color: var(--lotus-muted); }
.catalog-search:focus-within { border-color: var(--lotus-teal); box-shadow: 0 0 0 4px #008d9615; background: white; }
.catalog-search input { width: 100%; border: 0; outline: 0; color: var(--lotus-ink); background: transparent; font-size: .87rem; }
.header-actions { margin-left: auto; display: flex; gap: 21px; color: #53627b; font-size: .82rem; font-weight: 700; }
.header-actions span { display: inline-flex; align-items: center; gap: 7px; }

.storefront-main { max-width: 1510px; margin: 0 auto; padding: 30px clamp(22px, 4vw, 66px); padding-right: min(38vw, 570px); }
.catalog-stage { max-width: 920px; }
.breadcrumb-row { display: flex; align-items: center; gap: 9px; color: var(--lotus-muted); font-size: .76rem; margin: 0 0 18px 3px; }
.breadcrumb-row i { color: #b3bdcc; font-size: .62rem; }
.breadcrumb-row strong { color: var(--lotus-teal); }
.hero-card { min-height: 205px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 31px 38px; color: white; border-radius: 25px; background: linear-gradient(112deg, #006b76 0%, #009da1 57%, #70d8cb 115%); box-shadow: 0 18px 38px #008d9626; }
.hero-card:after { content: ""; position: absolute; width: 260px; height: 260px; border: 34px solid #ffffff20; border-radius: 50%; right: -83px; bottom: -150px; }
.eyebrow { display: block; color: inherit; font-weight: 800; font-size: .65rem; letter-spacing: .14em; }
.hero-card h1 { position: relative; z-index: 1; margin: 7px 0; font-size: clamp(1.65rem, 3.2vw, 2.45rem); line-height: 1.05; letter-spacing: -1.4px; }
.hero-card p { position: relative; z-index: 1; max-width: 410px; margin: 0; color: #e9fffc; font-size: .88rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; margin-top: 18px; }
.hero-pills span { border: 1px solid #ffffff40; padding: 6px 9px; border-radius: 9px; font-size: .7rem; background: #ffffff14; }
.hero-orb { width: 120px; height: 120px; flex: none; display: grid; place-items: center; z-index: 1; font-size: 3.1rem; color: var(--lotus-coral); border: 1px solid #ffffff3b; border-radius: 38px; background: linear-gradient(145deg, #ffffff, #dffdfa); transform: rotate(10deg); box-shadow: 0 15px 20px #004c5340; }

.category-section { margin-top: 28px; padding: 24px; border: 1px solid var(--lotus-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px #26365a08; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading .eyebrow { color: var(--lotus-teal); }
.section-heading h2 { margin: 4px 0 0; color: var(--lotus-ink); letter-spacing: -.55px; font-size: 1.25rem; }
.text-link { color: var(--lotus-teal); border: 0; background: transparent; font-size: .78rem; font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.category-tile { min-height: 135px; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; padding: 8px 5px 13px; color: #44526b; border: 1px solid #edf0f6; border-radius: 16px; background: #fbfcfe; font-size: .69rem; font-weight: 800; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.category-tile:hover { color: var(--lotus-teal); border-color: #70d8cb; transform: translateY(-4px); box-shadow: 0 12px 20px #26365a12; }
.category-icon { width: 76px; height: 76px; display: block; background-image: url('/static/images/category-icons-3d-v1.png'); background-size: 300% 200%; background-repeat: no-repeat; border-radius: 14px; }
.icon-phone { background-position: 0 0; }.icon-tv { background-position: 50% 0; }.icon-laptop { background-position: 100% 0; }.icon-ac { background-position: 0 100%; }.icon-washer { background-position: 50% 100%; }.icon-blender { background-position: 100% 100%; }
.insight-strip { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 15px 17px; border: 1px solid #c9f1ed; border-radius: 16px; background: #effcfb; color: #42626d; font-size: .8rem; }
.insight-strip > i { color: var(--lotus-teal); font-size: 1.15rem; }.insight-strip strong { color: var(--lotus-ink); }.insight-strip button { margin-left: auto; white-space: nowrap; color: white; border: 0; border-radius: 9px; padding: 9px 12px; background: var(--lotus-teal); font-size: .72rem; font-weight: 800; }

/* Persistent desktop assistant panel, retaining the original chat markup. */
@media (min-width: 900px) {
    .chat-toggle, .chat-overlay { display: none !important; }
    .chat-container { position: fixed; right: clamp(18px, 3vw, 46px); top: 93px; bottom: 27px; width: min(34vw, 486px); height: auto; opacity: 1; transform: none; border: 1px solid var(--lotus-line); border-radius: 23px; box-shadow: 0 18px 42px #26365a1b; z-index: 40; }
    .chat-header { padding: 16px 18px; border-radius: 22px 22px 0 0; background: linear-gradient(135deg, #007b85, #00a49d); }.chat-header h6 { font-weight: 800; }
    .chat-header .avatar { width: 38px; height: 38px; background: #ffffff24; }.chat-back-btn { display: none; }
    .quick-actions { display: none; }.chat-messages { padding: 18px 15px; background: linear-gradient(180deg, #fbfdff, #f6f8fc); }.chat-input { padding: 13px 15px; background: white; }.chat-input .form-control { min-height: 42px; border-radius: 12px !important; border-color: var(--lotus-line); }.chat-input .btn { border-radius: 12px !important; background: var(--lotus-teal); border-color: var(--lotus-teal); }.chat-footer { display: none; }
}

@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); }.storefront-main { padding-right: 390px; }.hero-orb { width: 92px; height: 92px; font-size: 2.3rem; } }
@media (max-width: 899px) { .storefront-header { gap: 12px; }.header-actions { display: none; }.catalog-search { max-width: none; }.storefront-main { padding: 22px 16px; }.category-grid { grid-template-columns: repeat(3, 1fr); }.hero-card { padding: 26px; }.hero-orb { display: none; }.insight-strip { align-items: flex-start; flex-wrap: wrap; }.insight-strip button { margin-left: 0; }.chat-container { width: min(450px, calc(100vw - 28px)); right: 14px; bottom: 14px; height: min(720px, calc(100vh - 28px)); }.chat-toggle { background: var(--lotus-teal); }.chat-header { background: linear-gradient(135deg, #007b85, #00a49d); } }
@media (max-width: 520px) { .storefront-header { height: 62px; padding: 0 16px; }.brand-lockup { min-width: auto; }.brand-lockup small { display: none; }.catalog-search { height: 37px; }.catalog-search input { font-size: .76rem; }.category-section { padding: 15px; }.category-grid { gap: 7px; }.category-tile { min-height: 112px; font-size: .62rem; }.category-icon { width: 60px; height: 60px; }.hero-card { min-height: 182px; }.hero-card h1 { font-size: 1.65rem; } }
