/**
 * Alkhat Services Configurator - Frontend Styles
 * Brand Primary: #6222cc
 * Secondary Accent: #8e44ad, #00d084
 * Dark Theme: #0a0612, #140d24
 */

/* Hide unwanted duplicate description injected by Qutiiz theme */
.single-product section.product-description.product-content {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Preloader bypass to guarantee instant interaction */
.preloader {
    display: none !important;
}

/* Product gallery visibility fix & modern framing */
.single-product .woocommerce-product-gallery {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: 18px !important;
    box-shadow: 0 15px 45px rgba(98, 34, 204, 0.12) !important;
    border: 1px solid rgba(98, 34, 204, 0.1) !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Ensure WooCommerce form.cart flows vertically and spans full column width */
.single-product form.cart,
.elementor-widget-woocommerce-product-add-to-cart form.cart,
.elementor-add-to-cart form.cart,
.product__card-right form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Single Product Layout Enhancements */
.single-product .product__card {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Configurator Container */
.alkhat-configurator-wrap {
    margin: 25px 0 20px 0;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 255, 0.98));
    border: 1px solid rgba(98, 34, 204, 0.15);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(98, 34, 204, 0.08);
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    text-align: right !important;
}

.alkhat-configurator-wrap * {
    box-sizing: border-box;
}

.alkhat-configurator-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #6222cc, #9b51e0, #00d084);
}

/* Section Header */
.alkhat-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a0f35;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alkhat-section-title .alkhat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(98, 34, 204, 0.1);
    color: #6222cc;
    border-radius: 8px;
    font-size: 14px;
}

/* Packages Radio Grid */
.alkhat-packages-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.alkhat-package-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid #e5e0f5;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.25s ease-in-out;
}

.alkhat-package-card:hover {
    border-color: #9b51e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(98, 34, 204, 0.1);
}

.alkhat-package-card.is-selected {
    border-color: #6222cc;
    background: #faf7ff;
    box-shadow: 0 8px 24px rgba(98, 34, 204, 0.14);
}

.alkhat-package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.alkhat-pkg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.alkhat-pkg-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #110826;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alkhat-custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #bbb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.alkhat-package-card.is-selected .alkhat-custom-radio {
    border-color: #6222cc;
    background: #6222cc;
}

.alkhat-custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.alkhat-package-card.is-selected .alkhat-custom-radio::after {
    opacity: 1;
}

.alkhat-pkg-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #6222cc;
    white-space: nowrap;
}

.alkhat-pkg-old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: normal;
}

.alkhat-pkg-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00d084, #00a86b);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
}

.alkhat-pkg-badge.popular {
    background: linear-gradient(135deg, #ff6900, #fcb900);
}

.alkhat-pkg-desc {
    font-size: 0.88rem;
    color: #555169;
    line-height: 1.5;
    margin: 0;
    padding-right: 30px;
}

/* Add-ons Section */
.alkhat-addons-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #d8d0ee;
}

.alkhat-addons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alkhat-addon-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1.5px solid #ece7f8;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.alkhat-addon-card:hover {
    border-color: #6222cc;
    background: #faf8fe;
}

.alkhat-addon-card.is-checked {
    border-color: #6222cc;
    background: #f4efff;
}

.alkhat-addon-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.alkhat-addon-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.alkhat-custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #bbb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.alkhat-addon-card.is-checked .alkhat-custom-checkbox {
    background: #6222cc;
    border-color: #6222cc;
}

.alkhat-custom-checkbox i {
    opacity: 0;
}

.alkhat-addon-card.is-checked .alkhat-custom-checkbox i {
    opacity: 1;
}

.alkhat-addon-title-wrap {
    display: flex;
    flex-direction: column;
}

.alkhat-addon-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a0f35;
}

.alkhat-addon-subtitle {
    font-size: 0.8rem;
    color: #6c6680;
    margin-top: 2px;
}

.alkhat-addon-badge-price {
    background: rgba(98, 34, 204, 0.08);
    color: #6222cc;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.alkhat-addon-card.is-checked .alkhat-addon-badge-price {
    background: #6222cc;
    color: #ffffff;
}

/* Total Price Calculator Card */
.alkhat-total-summary-card {
    margin-top: 22px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1b0e38, #0b021d);
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(27, 14, 56, 0.3);
}

.alkhat-total-label {
    display: flex;
    flex-direction: column;
}

.alkhat-total-label .title {
    font-size: 0.85rem;
    color: #d1c8eb;
}

.alkhat-total-label .subtitle {
    font-size: 0.75rem;
    color: #9f94c4;
}

.alkhat-total-amount {
    font-size: 1.7rem;
    font-weight: 900;
    color: #00d084;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.alkhat-total-amount .currency {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
}

/* Quantity and Cart Button Enhancements */
.single-product .product-details__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 20px 0 10px 0 !important;
    width: 100% !important;
}

.single-product .product-details__quantity-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a0f35 !important;
    margin-right: 0 !important;
    margin-left: 10px !important;
}

.single-product .single_add_to_cart_button,
.single-product .button.alt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #6222cc 0%, #8338ec 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(98, 34, 204, 0.35) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
}

.single-product .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(98, 34, 204, 0.45) !important;
}

/* Trust Bar */
.alkhat-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 25px 0;
    padding: 16px;
    background: #fbf9ff;
    border: 1px solid #eee8fb;
    border-radius: 14px;
}

.alkhat-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2b1f4a;
}

.alkhat-trust-item i,
.alkhat-trust-item .icon {
    font-size: 18px;
    color: #6222cc;
    flex-shrink: 0;
}

/* WhatsApp Direct Inquiries Card */
.alkhat-whatsapp-card {
    margin-top: 15px;
    padding: 12px 18px;
    background: #eefaf3;
    border: 1px solid #c7f0db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.alkhat-whatsapp-card .wa-text {
    font-size: 0.88rem;
    color: #0e5e34;
    font-weight: 600;
}

.alkhat-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.alkhat-whatsapp-btn:hover {
    background: #1da851;
}

/* Showcase Outer Container & Section */
.alkhat-portfolio-outer-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    clear: both;
}

.alkhat-showcase-section {
    padding: 35px;
    background: #ffffff;
    border: 1px solid #eee8fb;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.alkhat-showcase-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: #110826;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.alkhat-showcase-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: #6222cc;
    border-radius: 3px;
}

/* Portfolio Showcase Header */
.alkhat-portfolio-header {
    text-align: center;
    margin-bottom: 30px;
}

.alkhat-portfolio-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(98, 34, 204, 0.08), rgba(155, 81, 224, 0.12));
    color: #6222cc;
    border: 1px solid rgba(98, 34, 204, 0.2);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.alkhat-portfolio-header .alkhat-showcase-heading {
    text-align: center;
}

.alkhat-portfolio-header .alkhat-showcase-heading::after {
    right: 50%;
    transform: translateX(50%);
}

.alkhat-portfolio-desc {
    font-size: 1rem;
    color: #555169;
    max-width: 780px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

/* Portfolio Filter Bar */
.alkhat-portfolio-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.alkhat-filter-pill {
    background: #ffffff;
    border: 1.5px solid #e2dbf5;
    color: #3b3254;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alkhat-filter-pill:hover {
    border-color: #6222cc;
    color: #6222cc;
    transform: translateY(-2px);
}

.alkhat-filter-pill.is-active {
    background: linear-gradient(135deg, #6222cc, #8338ec);
    color: #ffffff !important;
    border-color: #6222cc;
    box-shadow: 0 6px 20px rgba(98, 34, 204, 0.3);
}

/* Portfolio Grid */
.alkhat-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
    margin-bottom: 35px;
}

.alkhat-project-card {
    background: #ffffff;
    border: 1.5px solid #ece6f8;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(98, 34, 204, 0.05);
    transition: all 0.3s ease;
}

.alkhat-project-card:hover {
    transform: translateY(-6px);
    border-color: #6222cc;
    box-shadow: 0 16px 40px rgba(98, 34, 204, 0.16);
}

.alkhat-project-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f0823;
}

.alkhat-project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.alkhat-project-card:hover .alkhat-project-thumb {
    transform: scale(1.07);
}

.alkhat-project-cat-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 8, 35, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
}

.alkhat-project-feat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #6222cc, #9b51e0);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.alkhat-project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 9, 39, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.alkhat-project-card:hover .alkhat-project-overlay {
    opacity: 1;
}

.alkhat-project-view-btn {
    background: #ffffff;
    color: #6222cc !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.alkhat-project-view-btn:hover {
    transform: scale(1.05);
}

.alkhat-project-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.alkhat-project-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #12092b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.alkhat-project-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.alkhat-project-title a:hover {
    color: #6222cc !important;
}

.alkhat-project-desc {
    font-size: 0.88rem;
    color: #55506a;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.alkhat-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.alkhat-tag {
    background: #f4efff;
    color: #6222cc;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(98, 34, 204, 0.1);
}

.alkhat-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f0eafc;
    margin-top: auto;
}

.alkhat-btn-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6222cc, #7c3aed);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.alkhat-btn-live:hover {
    box-shadow: 0 6px 18px rgba(98, 34, 204, 0.35);
    transform: translateY(-2px);
}

.alkhat-btn-inquire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eafaf1;
    color: #0e6437 !important;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #c2eed5;
    transition: all 0.25s ease;
}

.alkhat-btn-inquire:hover {
    background: #25D366;
    color: #ffffff !important;
    border-color: #25D366;
}

/* Portfolio Bottom CTA Banner */
.alkhat-portfolio-cta-banner {
    margin: 15px 0 35px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1b0e38, #0b021d);
    border: 1px solid rgba(155, 81, 224, 0.35);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(27, 14, 56, 0.3);
}

.alkhat-cta-text h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.alkhat-cta-text p {
    color: #c9c1e4;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.alkhat-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.alkhat-cta-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6222cc, #9b51e0);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(98, 34, 204, 0.4);
    transition: all 0.25s ease;
}

.alkhat-cta-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(98, 34, 204, 0.55);
}

.alkhat-cta-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.alkhat-cta-wa-btn:hover {
    background: #1eb956;
    transform: translateY(-2px);
}

.alkhat-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dcd4f2, transparent);
    margin: 40px 0;
}

@media (max-width: 991px) {
    .alkhat-portfolio-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .alkhat-cta-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

.alkhat-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.alkhat-feat-card {
    padding: 20px;
    background: #fbf9ff;
    border: 1px solid #ede7fb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.alkhat-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(98, 34, 204, 0.1);
    border-color: #6222cc;
}

.alkhat-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6222cc, #9b51e0);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.alkhat-feat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a0f35;
    margin-bottom: 8px;
}

.alkhat-feat-text {
    font-size: 0.9rem;
    color: #635e76;
    line-height: 1.6;
    margin: 0;
}

/* Steps Timeline */
.alkhat-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.alkhat-step-item {
    background: #ffffff;
    border: 1px solid #ede7fb;
    border-radius: 14px;
    padding: 18px;
    position: relative;
}

.alkhat-step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #6222cc;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alkhat-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a0f35;
    margin-bottom: 6px;
}

.alkhat-step-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alkhat-configurator-wrap {
        padding: 16px;
    }
    .alkhat-pkg-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .alkhat-total-summary-card {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
