/* AARAM Custom Extensions - WhatsApp Live Chatbot, Single Slide Carousels, and Fixed Image Boxes */

/* ==========================================
   1. FIXED SIZE BOXES FOR PRODUCTS & SLIDES
   ========================================== */

/* Slide show image box: 1 slide per view with centered containment */
.elementor-image-carousel-wrapper.swiper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.elementor-image-carousel-wrapper.swiper .swiper-wrapper {
    display: flex !important;
    align-items: center !important;
}

.elementor-image-carousel-wrapper.swiper .swiper-slide {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.elementor-image-carousel-wrapper.swiper .swiper-slide figure,
.elementor-image-carousel-wrapper.swiper .swiper-slide-inner {
    width: 100% !important;
    height: 380px !important;
    max-height: 420px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.elementor-image-carousel-wrapper.swiper .swiper-slide img,
.elementor-image-carousel-wrapper.swiper .swiper-slide-image {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
    border-radius: 6px !important;
}

/* Sections with Variable Products (Grids, Categories, Parts) */
.elementor-widget-image .elementor-image,
.elementor-widget-image .elementor-widget-container > a,
.elementor-widget-image .elementor-widget-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Fixed size image box for product cards */
.elementor-widget-image img {
    height: 250px !important;
    max-height: 250px !important;
    width: 100% !important;
    max-width: 320px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Exception for Logo */
img.custom-logo,
.site-logo-img img,
.site-branding img,
.custom-logo-link img {
    height: auto !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 220px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Swiper navigation buttons */
.elementor-swiper-button {
    background: rgba(255, 255, 255, 0.9) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.elementor-swiper-button:hover {
    background: #ffffff !important;
    transform: scale(1.08) !important;
}

.elementor-swiper-button svg {
    width: 16px !important;
    height: 16px !important;
    fill: #0F172A !important;
}

/* Swiper pagination dots */
.swiper-pagination {
    bottom: -28px !important;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #94A3B8 !important;
    opacity: 0.6 !important;
    margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
    background: #E0251C !important;
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 6px !important;
}


/* ==========================================
   2. WHATSAPP INLINE CTA BUTTONS
   ========================================== */
.aaram-wa-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 50px !important;
    padding: 14px 34px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
}

.aaram-wa-btn:hover {
    background: #1EBE5D !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45) !important;
    color: #ffffff !important;
}


/* ==========================================
   3. WHATSAPP LIVE CHATBOT WIDGET
   ========================================== */
.aaram-chatbot-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    outline: none;
    user-select: none;
}

.aaram-chatbot-bubble:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.aaram-chatbot-bubble i {
    font-size: 22px;
}

.aaram-chatbot-bubble .badge-dot {
    width: 9px;
    height: 9px;
    background: #00FF66;
    border-radius: 50%;
    box-shadow: 0 0 6px #00FF66;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Chatbot Popup Window */
.aaram-chat-window {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 36px);
    height: 490px;
    max-height: calc(100vh - 110px);
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    animation: slideUpChat 0.25s ease;
    border: 1px solid #E2E8F0;
}

.aaram-chat-window.active {
    display: flex;
}

@keyframes slideUpChat {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Header */
.aaram-chat-header {
    background: #075E54;
    color: #FFFFFF;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aaram-chat-header .chat-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aaram-chat-header .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.aaram-chat-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
}

.aaram-chat-header p {
    margin: 3px 0 0 0;
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #E2E8F0;
}

.aaram-chat-header .status-indicator {
    width: 7px;
    height: 7px;
    background: #00FF66;
    border-radius: 50%;
    display: inline-block;
}

.aaram-chat-header .chat-close-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.aaram-chat-header .chat-close-btn:hover {
    opacity: 1;
}

/* Chat Body */
.aaram-chat-body {
    flex: 1;
    background: #ECE5DD;
    background-image: radial-gradient(#d5cbbd 1px, transparent 1px);
    background-size: 18px 18px;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-bubble.bot {
    background: #FFFFFF;
    color: #1F2937;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.chat-bubble.user {
    background: #E7FFDB;
    color: #1F2937;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.chat-bubble .msg-time {
    font-size: 10px;
    color: #9CA3AF;
    display: block;
    text-align: right;
    margin-top: 4px;
}

/* Quick Question Chips */
.chat-quick-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.chat-chip {
    background: #FFFFFF;
    border: 1px solid #25D366;
    color: #075E54;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.chat-chip:hover {
    background: #25D366;
    color: #FFFFFF;
}

/* Chat WhatsApp Send CTA button inside bot */
.chat-wa-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: background 0.2s ease;
}

.chat-wa-cta-btn:hover {
    background: #1EBE5D;
}

/* Chat Footer / Input */
.aaram-chat-footer {
    background: #F0F2F5;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #E5E7EB;
}

.aaram-chat-footer input {
    flex: 1;
    border: 1px solid #D1D5DB;
    border-radius: 24px;
    padding: 9px 16px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    background: #FFFFFF;
}

.aaram-chat-footer input:focus {
    border-color: #25D366;
}

.aaram-chat-footer button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.2s ease;
}

.aaram-chat-footer button:hover {
    background: #1EBE5D;
}

@media (max-width: 600px) {
    .aaram-chatbot-bubble {
        bottom: 18px;
        right: 18px;
        padding: 12px 18px;
    }
    .aaram-chat-window {
        bottom: 80px;
        right: 15px;
        left: 15px;
        width: auto;
        height: 460px;
    }
}
