/* 
 * Konafa Queen Ecosystem - Main Core Styles 
 * Clean, Responsive, and Premium Design
 */

:root {
    --kq-teal: #3CD6CA;
    --kq-red: #F13E3E;
    --kq-gold: #DBBA5D;
    --kq-dark: #103B66;
    --kq-light-bg: #f0fdfc;
    --kq-white: #ffffff;
    --kq-text-dark: #1A1A1A;
    --kq-shadow-sm: 0 5px 20px rgba(60, 214, 202, 0.15);
    --kq-glass-bg: rgba(255, 255, 255, 0.85);
    --kq-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #f0fdfc !important;
}

/* ============================================================
   FONT AWESOME 6 SCOPE FIX
   Forces all icons inside our plugin to use FA6 font-family,
   preventing Elementor's FA4 from overriding our icons.
   ============================================================ */
.konafa-queen-ecosystem i[class*="fa-"],
.konafa-queen-ecosystem .fas,
.konafa-queen-ecosystem .far,
.konafa-queen-ecosystem .fab,
.konafa-queen-ecosystem .fal,
.konafa-queen-ecosystem .fad,
.konafa-queen-ecosystem .fa-solid,
.konafa-queen-ecosystem .fa-regular,
.konafa-queen-ecosystem .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "FontAwesome" !important;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}


/* Global Fixes */
.proderma-ecosystem,
.konafa-queen-ecosystem {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    max-width: 100%;
}

.kq-brand-logo-img {
    height: 70px !important;
    width: 70px !important;
    max-width: 70px !important;
    min-width: 70px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

.proderma-ecosystem *,
.konafa-queen-ecosystem * {
    box-sizing: border-box;
}

/* Fix Breakout - Overflow control */
html,
body {
    overflow-x: hidden;
}

/* --- PRODUCT BUTTONS (Menu/Home) --- */
.kq-btn-add-item {
    background: var(--kq-teal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--kq-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(60, 214, 202, 0.3);
    border: 2px solid transparent;
}

.kq-btn-add-item:hover {
    background: var(--kq-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 59, 102, 0.2);
}

.kq-btn-add-item.added {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.item-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

/* --- CART DRAWER (Premium) --- */
.kq-cart-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: var(--kq-white);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.kq-cart-drawer.active {
    left: 0;
}

.kq-cart-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--kq-dark), #0d2e50);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--kq-gold);
}

.kq-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart-drawer {
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--kq-transition);
}

.close-cart-drawer:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.kq-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8fbfb;
    scrollbar-width: thin;
}

.kq-cart-item {
    background: white;
    border-radius: 18px;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.kq-cart-item:hover {
    transform: translateY(-2px);
}

.item-info h4 {
    margin: 0 0 4px;
    color: var(--kq-dark);
    font-size: 0.95rem;
    font-weight: 800;
}

.item-info span {
    color: var(--kq-teal);
    font-weight: 950;
    font-size: 1.1rem;
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 50px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--kq-dark);
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--kq-teal);
    color: white;
}

.item-qty .qty-num {
    font-weight: 900;
    min-width: 20px;
    text-align: center;
}

.kq-cart-footer {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
}

.kq-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 950;
    color: var(--kq-dark);
}

.kq-btn-whatsapp {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.kq-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.kq-btn-clear {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: transparent;
    border: 1px solid #eee;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    color: #999;
    font-family: 'Cairo', sans-serif;
    transition: 0.3s;
}

.kq-btn-clear:hover {
    background: #fffafa;
    color: var(--kq-red);
    border-color: var(--kq-red);
}

/* --- TRUCK BOOKING --- */
.kq-truck-container {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.kq-truck-header {
    text-align: center;
    margin-bottom: 60px;
}

.kq-truck-header h2 {
    font-size: 3rem;
    color: var(--kq-dark);
    margin-bottom: 15px;
    font-weight: 900;
}

.kq-truck-header p {
    font-size: 1.2rem;
    color: #666;
}

.kq-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.kq-package-card {
    background: white;
    border-radius: 35px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: var(--kq-transition);
    position: relative;
}

.kq-package-card:hover {
    transform: translateY(-15px);
    border-color: var(--kq-teal);
    box-shadow: 0 30px 60px rgba(60, 214, 202, 0.15);
}

.package-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--kq-teal);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
}

.package-price .amount {
    font-size: 3.5rem;
    font-weight: 950;
    color: var(--kq-red);
}

.kq-btn-select-package {
    width: 100%;
    background: var(--kq-dark);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 30px;
}

.kq-btn-select-package:hover {
    background: var(--kq-teal);
}

/* --- AI WIDGET (Premium Redesign) --- */
.kq-ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.kq-ai-launcher {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--kq-dark), var(--kq-teal));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 59, 102, 0.4);
    transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
    border: 3px solid #fff;
    position: relative;
}

.kq-ai-launcher::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulsingAI 2s infinite;
    opacity: 0.5;
}

@keyframes pulsingAI {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.kq-ai-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(60, 214, 202, 0.6);
}

.kq-ai-panel {
    display: none;
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-direction: column;
}

.kq-ai-header {
    background: linear-gradient(135deg, var(--kq-dark), #0d2e50);
    color: #fff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--kq-gold);
}

.kq-ai-header .ai-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.kq-ai-header .ai-info i {
    color: var(--kq-gold);
    font-size: 1.2rem;
}

.kq-ai-header .close-ai {
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.kq-ai-header .close-ai:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.kq-ai-chat {
    flex: 1;
    min-height: 200px;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}

.kq-ai-chat::-webkit-scrollbar {
    display: none;
}

.kq-ai-chat .msg {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kq-ai-chat .ai-msg {
    align-self: flex-start;
    background: white;
    color: var(--kq-dark);
    border-bottom-right-radius: 5px;
    border-left: 3px solid var(--kq-gold);
}

.kq-ai-chat .user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--kq-teal), #2bbbb0);
    color: #fff;
    border-bottom-left-radius: 5px;
}

.kq-ai-input {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.kq-ai-input input {
    flex: 1;
    border: 1px solid #f0f0f0;
    background: #f9f9f9;
    padding: 12px 18px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: 0.3s;
    font-size: 0.92rem;
}

.kq-ai-input input:focus {
    border-color: var(--kq-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(60, 214, 202, 0.1);
}

.kq-ai-input button {
    background: var(--kq-dark);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(16, 59, 102, 0.2);
}

/* AI Panel Enhancements */
.ai-avatar-glow {
    width: 40px;
    height: 40px;
    background: var(--kq-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(60, 214, 202, 0.4);
    font-size: 1.2rem;
    color: white;
}

.ai-status-row {
    display: flex;
    flex-direction: column;
}

.ai-status-row strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.ai-status-row small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.status-online {
    color: #4CAF50;
    font-size: 8px;
    vertical-align: middle;
}

.kq-ai-quick-actions {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
    scrollbar-width: none;
}

.kq-ai-quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-qa {
    white-space: nowrap;
    background: white;
    border: 1px solid #eee;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    color: var(--kq-dark);
    font-family: 'Cairo', sans-serif;
}

.quick-qa:hover {
    background: var(--kq-teal);
    color: white;
    border-color: var(--kq-teal);
}

.remove-cart-item {
    background: transparent;
    border: none;
    color: #ddd;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: 0.2s;
}

.remove-cart-item:hover {
    color: var(--kq-red);
    transform: scale(1.1);
}

.empty-cart-msg-premium {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}

.empty-cart-msg-premium i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.3;
}

.kq-ai-input button:hover {
    background: var(--kq-teal);
    transform: scale(1.1) rotate(-10deg);
}

/* --- MODALS --- */
.kq-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 59, 102, 0.6);
    backdrop-filter: blur(8px);
}

.kq-modal-content {
    background: white;
    margin: 3% auto;
    padding: 50px;
    border-radius: 40px;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

/* --- CONTACT FORM --- */
.kq-contact-wrapper {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 40px auto;
}

.kq-contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.kq-contact-info h3 {
    color: var(--kq-dark);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.kq-modern-form .form-group {
    margin-bottom: 20px;
}

.kq-modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--kq-dark);
}

.kq-modern-form input,
.kq-modern-form select,
.kq-modern-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: 0.3s;
}

.kq-modern-form input:focus {
    border-color: var(--kq-teal);
    box-shadow: 0 0 10px rgba(60, 214, 202, 0.1);
}

.kq-btn-send {
    width: 100%;
    background: var(--kq-dark);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.kq-btn-send:hover {
    background: var(--kq-teal);
    transform: translateY(-3px);
}

/* --- FLOATING CART --- */
.kq-floating-cart {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--kq-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(60, 214, 202, 0.4);
    transition: var(--kq-transition);
    z-index: 10000;
    border: 3px solid #fff;
}

.kq-floating-cart:hover {
    transform: scale(1.1);
    background: var(--kq-dark);
}

.kq-cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--kq-red);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
    .kq-cart-drawer {
        width: 85vw;
        max-width: 380px;
        left: auto;
        right: -100%;
        bottom: 85px;
        top: auto;
        height: auto;
        max-height: 75vh;
        border-radius: 25px;
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
        transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .kq-cart-drawer.active {
        right: 20px;
        left: auto;
    }

    .kq-cart-header {
        border-radius: 25px 25px 0 0;
        padding: 15px 20px;
    }

    .kq-cart-footer {
        border-radius: 0 0 25px 25px;
    }

    .kq-cart-body {
        flex: 1;
        max-height: 45vh;
        padding: 12px;
    }

    .kq-cart-header {
        padding: 15px 20px;
    }

    .kq-cart-item {
        padding: 10px;
        border-radius: 12px;
    }

    .kq-ai-widget {
        right: auto;
        left: 20px;
        bottom: 20px;
    }

    .kq-ai-panel {
        width: 85vw;
        max-width: 380px;
        left: 20px;
        right: auto;
        bottom: 85px;
        max-height: 60vh;
        display: none;
        flex-direction: column;
    }

    .kq-floating-cart {
        right: 20px;
        bottom: 20px;
    }

    .kq-ai-chat {
        flex: 1;
        height: auto;
        max-height: 35vh;
        min-height: 150px;
    }

    .kq-modal-content {
        width: 95%;
        padding: 25px;
        margin: 2% auto;
        border-radius: 25px;
    }

    .kq-truck-header h2 {
        font-size: 2.2rem;
    }

    .kq-package-card {
        padding: 40px 20px;
    }

    .kq-btn-add-item {
        width: 100%;
        margin-top: 10px;
    }

    .item-price {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}