/* Chat Page Styles */
body{background:#f5f6fb;font-family:Inter,sans-serif;}
.main-wrapper{padding:30px 0;min-height:100vh;display:flex;flex-direction:column;margin:0 auto}
.main-content{flex:1;display:flex;flex-direction:column;max-height:800px}
.chat-row{flex:1;max-width:100%}
.brand-logo{width:45px;height:45px;border-radius:50%;background:#4f6bff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px}
.top-search{background:#fff;border-radius:24px;padding:6px 10px;border:2px solid #d8dfff;box-shadow:0 2px 8px rgb(0 0 0 / .04)}
.top-search input{border:none;outline:none;width:100%;background:#fff0;font-size:18px}
.search-btn{width:30px;height:30px;border-radius:50%;border:none;background:#edf0ff}
.suggestions{background:#fff;border-radius:12px;padding:10px;margin-top:5px;border:1px solid #ececec}
.suggestions-title{font-size:13px;text-transform:uppercase;color:#666;margin-bottom:10px;display:block}
.suggestions-list{display:flex;flex-wrap:wrap;gap:8px}
.header-btn{background:#fff;border:1px solid #e0e0e0;color:#555;transition:all .2s ease;box-shadow:0 1px 3px rgb(0 0 0 / .04);padding:4px 7px;border-radius:20px;font-size:12px}
.header-btn:hover{background:#f8f9fa;border-color:#d0d0d0;color:#333;box-shadow:0 2px 6px rgb(0 0 0 / .08)}
.header-btn i{font-size:12px}
.suggestion-chip{border:1px solid #eee;padding:8px 14px;border-radius:20px;background:#fafafa;display:inline-block;font-size:13px;cursor:pointer;transition:all .2s ease-in-out}
.reset-btn{border:1px solid #eee;padding:4px 7px;border-radius:20px;background:#fafafa;display:inline-block;font-size:13px;cursor:pointer;transition:all .2s ease-in-out}
.suggestion-chip:hover{border-color:#ddd;background:#f0f0f0;transform:translateY(-1px)}
.chat-container{background:#fff;border-radius:28px;max-width:100%;margin-top:11px;padding:24px;border:1px solid #e8e8e8;overflow-y:auto;display:flex;flex-direction:column}
.chat-container.flex-grow-1{min-height:600px;max-height:650px}
.ai-message{display:flex;gap:15px}
.ai-avatar{width:42px;height:42px;border-radius:50%;background:#4f6bff;color:#fff;display:flex;align-items:center;justify-content:center}
.message-card{background:#fafafa;border:1px solid #eee;border-radius:18px;padding:18px;max-width:700px}
.offer-sidebar{background:#fff;border-radius:25px;min-height:800px;max-height:800px;max-width:100%;padding:15px;border:1px dashed #d7d7d7;display:flex;flex-direction:column}
.offer-sidebar.has-products{background:#f5f6fb;border:1px solid #e5e7eb}
.offer-sidebar .sidebar-products{flex:1;overflow-y:auto}
.empty-offer{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;color:#999}
.product-section{margin-top:60px}
.product-card{background:#fff;border-radius:16px;overflow:hidden;border:1px solid #e5e7eb;transition:all .3s ease;box-shadow:0 1px 3px rgba(0,0,0,.05);height:100%}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px rgba(0,0,0,.08)}
.product-card img{width:100%;height:200px;object-fit:contain;background:#fafafa;padding:20px}
.product-body{padding:20px}
.product-category{font-size:11px;text-transform:uppercase;letter-spacing:0.5px;color:#6b7280;margin-bottom:8px;font-weight:600}
.product-title{font-size:16px;font-weight:600;line-height:1.4;color:#1f2937;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}
.product-price-row{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.product-price{font-size:20px;font-weight:700;color:#1f2937}
.product-original-price{font-size:14px;color:#9ca3af;text-decoration:line-through}
.product-discount-badge{background:#fef2f2;color:#dc2626;font-size:11px;font-weight:600;padding:2px 8px;border-radius:4px}
.product-rating{display:flex;align-items:center;gap:4px;margin-bottom:12px}
.product-stars{color:#fbbf24;font-size:14px}
.product-rating-count{font-size:12px;color:#6b7280}
.amazon-link{display:block;width:100%;background:rgb(255, 153, 0);color:#fff!important;text-decoration:none;font-weight:600;font-size:14px;padding:10px 16px;border-radius:8px;transition:all .2s;text-align:center}
.amazon-link:hover{background:rgb(232, 139, 0)}
.footer-text{color:#999;font-size:14px;text-align:center;margin-top:50px}
.shopping-chat-message{display:flex;gap:15px;margin-bottom:20px}
.shopping-chat-message-user{flex-direction:row-reverse}
.shopping-chat-message-label{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;flex-shrink:0;background:#4f6bff;color:#fff}
.shopping-chat-message-user .shopping-chat-message-label{background:#6c757d}
.shopping-chat-message-content{background:#fafafa;border:1px solid #eee;border-radius:18px;padding:10px;max-width:700px;line-height:1.6}
.shopping-chat-message-user .shopping-chat-message-content{background:#e3f2fd}
.shopping-chat-message-content a{color:#06c;text-decoration:underline}
.shopping-chat-loading{padding:15px;margin-top:10px;background:#e3f2fd;border:1px solid #90caf9;border-radius:6px;color:#1976d2;font-style:italic;transition:all 0.3s ease}
.shopping-chat-loading.slow-loading{animation:slowPulse 2s infinite}
@keyframes slowPulse{
    0%,100%{opacity:0.7}
    50%{opacity:1}
}
.shopping-chat-error{padding:15px;margin-top:10px;background:#ffebee;border:1px solid #ffcdd2;border-radius:6px;color:#c62828;font-weight:500}
.shopping-chat-product-item{display:flex;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:12px;background:#fff;transition:all .3s ease;text-decoration:none;color:inherit}
.shopping-chat-product-item:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
.shopping-chat-product-item img{width:120px;height:120px;object-fit:contain;border-radius:8px;background:#fafafa;padding:8px;flex-shrink:0}
.shopping-chat-placeholder-image{width:80px;height:80px;background:linear-gradient(135deg,#f5f5f5,#e8e8e8);display:flex;align-items:center;justify-content:center;border-radius:8px;color:#999;font-size:10px;flex-shrink:0}
.shopping-chat-product-item-content{flex:1;min-width:0}
.shopping-chat-product-item h4{font-size:14px;font-weight:600;margin-bottom:4px;line-height:1.4;color:#1f2937;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shopping-chat-product-brand{font-size:12px;color:#6b7280;margin-bottom:6px}
.shopping-chat-product-price{font-weight:700;font-size:1.3rem;color:#1f2937;margin-bottom:4px;line-height: 2rem;}
.shopping-chat-product-availability{font-size:11px;color:#10b981;margin-bottom:6px}
.shopping-chat-product-rating{display:flex;align-items:center;gap:4px;margin-bottom:6px}
.shopping-chat-stars{color:#fbbf24;font-size:12px}
.shopping-chat-rating-count{font-size:11px;color:#6b7280}
.shopping-chat-product-link{display:block;width:100%;background:rgb(255, 153, 0);color:#fff!important;text-decoration:none;font-weight:600;font-size:12px;padding:8px 12px;border-radius:6px;transition:all .2s;text-align:center}
.shopping-chat-product-link:hover{background:rgb(232, 139, 0)}
.content-section{max-width:800px;margin:0 auto}
@media (max-width:991px){
    .offer-sidebar{margin-top:11px;min-height:400px;max-height:400px;max-width:100%}
    .chat-container{min-height:400px;max-height:400px;max-width:100%}
}
@media (max-width:767px){
    .chat-container{min-height:300px;max-height:300px;max-width:100%;padding:16px}
    .offer-sidebar{min-height:300px;max-height:300px;max-width:100%;padding:12px}
}

