/* @import url('assets/css/color.css');
@import url('assets/css/image.css');
@import url('assets/css/font.css');
@import url('assets/css/card.css');
@import url('assets/css/link.css');
@import url('assets/css/header.css');
@import url('assets/css/footer.css');
@import url('assets/css/general.css');
@import url('assets/css/block.css');
@import url('assets/css/responsive.css'); */


/* --- Global Reusable Classes --- */
:root {
    --primary-cyan: #00AEEF;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease-in-out;
    --light-grey: #f2f2f2;
    --main-font: 'Alexandria', sans-serif;
}

body {
    font-family: var(--main-font);
    direction: rtl; /* Ensuring global RTL support */
    text-align: right;
}

h1, h2, h3, h4, h5, h6, .section-title, .product-title {
    font-family: var(--main-font);
    font-weight: 700; /* Bold for titles */
}

.nav-link-custom, .btn-custom {
    font-family: var(--main-font);
    font-weight: 500; /* Medium for interactive elements */
}

.section-wrapper {
    position: relative;
    width: 100%;
}

.bg-black {
    background-color: var(--black) !important;
}

/* --- Navigation Custom Styles --- */
img.custom-logo{
    max-width: 140px;
    height: auto;
}

.main-nav .nav > li {
    margin: 0 1rem; /* spacing between menu items */
}

.main-nav .nav > li > a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

/* Hover & active */
.main-nav .nav > li > a:hover,
.main-nav .nav > li.current-menu-item > a,
.main-nav .nav > li.current_page_item > a {
    color: var(--primary-cyan);
}

/* Underline effect */
.main-nav .nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-cyan);
    transition: var(--transition);
}

.main-nav .nav > li > a:hover::after,
.main-nav .nav > li.current-menu-item > a::after,
.main-nav .nav > li.current_page_item > a::after {
    width: 100%;
}

/* --- Logo Styling --- */
.logo-title-ar {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.2;
}

.logo-title-en {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-search {
    transition: var(--transition);
    cursor: pointer;
}

.btn-search:hover {
    color: var(--primary-cyan) !important;
    transform: scale(1.1);
}

/* --- Mobile Adjustments --- */
@media (max-width: 991px) {
    .nav-link-custom {
        font-size: 1.1rem;
    }
}

/* Reusable Button Component */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

/* --- Section Specific Styles --- */

/* Search Input Styling */
.search-container-custom {
    position: relative;
    width: 100%;
}

.search-input-custom {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Extra padding on left for icon */
    background-color: var(--light-grey);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #333;
    text-align: right; /* RTL */
}

.search-input-custom:focus {
    outline: 1px solid var(--primary-cyan);
}

.search-icon-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 1.2rem;
}

/* Filter Button Variants */
.btn-filter {
    background-color: var(--black);
    color: var(--white);
    min-width: 120px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter img {
    height: 20px;
    margin-left: 10px; /* RTL spacing */
}

.btn-filter.active {
    background-color: var(--primary-cyan);
    color: var(--white);
    border-color: var(--primary-cyan);
}

.btn-filter:hover:not(.active) {
    background-color: #222;
    border-color: var(--primary-cyan);
}

.filter-divider {
    border-top: 2px solid #000;
    opacity: 1;
    width: 100%;
}

/* Flex Gap Utility (Fallback for older browsers) */
.gap-2 {
    gap: 0.5rem;
}


/* --- New Reusable Component: .card-custom --- */
.card-custom {
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    background-color: var(--white);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-box {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    min-height: 200px;
}

.card-img-box img {
    max-height: 160px;
    object-fit: contain;
}

.card-content {
    background-color: var(--light-grey);
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

/* --- Typography & Elements inside Card --- */
.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

/* Specific button variant for the card, reusing .btn-custom logic */
.btn-add-cart {
    background-color: var(--primary-cyan);
    color: var(--white);
    border-radius: 20px 0 20px 0;
    padding: 12px;
    font-size: 1.1rem;
}

.btn-add-cart:hover {
    background-color: #008dba; /* Slightly darker cyan */
    color: var(--white);
}

/* RTL adjustment for FontAwesome icon in button */
[dir="rtl"] .btn-add-cart i {
    margin-right: 10px;
    margin-left: 0;
}

/* --- New Reusable Class --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    position: relative;
    margin-bottom: 1.5rem;
}

.bg-light-grey {
    background-color: var(--light-grey) !important;
}

/* --- Reusing Global Variables --- */
/* (Vars: --primary-cyan, --black, --light-grey, --main-font, --transition) */

/* --- Info Card Component --- */
.info-card-custom {
    background-color: var(--light-grey);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.spec-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
}

.spec-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

/* Color Swatches */
.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.swatch:hover {
    transform: scale(1.15);
}

[data-color].active {
    border: 4px solid var(--primary-cyan);
}

.card-divider {
    border-top: 1px solid #ccc;
    opacity: 0.6;
}

/* Custom Price Slider UI */
.custom-range-wrapper {
    position: relative;
    padding: 15px 0;
}

.range-track {
    height: 4px;
    background-color: #dee2e6;
    border-radius: 2px;
    position: relative;
}

.range-progress {
    position: absolute;
    right: 0; /* RTL: starts from right */
    width: 65%; /* Representing the range in the image */
    height: 100%;
    background-color: var(--primary-cyan);
}

.range-handle {
    position: absolute;
    right: 65%; /* Matches the progress end */
    top: 50%;
    transform: translate(50%, -50%);
    width: 14px;
    height: 14px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .spec-label, .spec-value {
        font-size: 1.1rem;
    }
}

.ajax-pagination {
    display:flex;
    justify-content:center;
    margin-top:40px;
}

.ajax-pagination ul {
    display:flex;
    gap:10px;
    list-style:none;
    padding:0;
}

.ajax-pagination a,
.ajax-pagination span {

    display:flex;
    align-items:center;
    justify-content:center;

    width:40px;
    height:40px;

    border-radius:10px;
    background:#f3f3f3;
    text-decoration:none;
}

.ajax-pagination .current {
    background:#000;
    color:#fff;
}

.single-product .flex-viewport{
    direction: ltr;
}
.woocommerce div.product .product_title{
    margin-top: 30px;
}
.single-product :is(.product_meta,.woocommerce-breadcrumb){
    display: none;
}
.single-product .woocommerce-tabs * {
    display: none;
}
.single-product form.cart{
    display: flex;
    gap: 20px;
    align-items: center;
}
.single-product form.cart p.price{
    margin-left: auto;
    color: black;
}
.single-product .product-short-description{
        margin: 30px 0;
    line-height: 2.5;
    color: #1C709F;
    font-size: 18px;
}
.woocommerce div.product form.cart .button{
    background-color: var(--primary-cyan);
    color: var(--white);
    border-radius: 20px 0 20px 0;
    padding: 12px 40px;
    font-size: 1.1rem;
}
.woocommerce-notices-wrapper{
    display: none;
}
.flex-control-nav{
    display: flex;
    gap: 10px;
    justify-content: center;
}
.flex-control-nav li{
    overflow: hidden;
}
.flex-control-nav li:has(.flex-active){
    border-radius: 10px;
    border: 2px solid var(--primary-cyan);
}

#fkcart-floating-toggler{
        visibility: hidden !important;
}

.related.products{
	display:none;
}

.search-container-custom {
    position: relative;
    width: 100%;
}

.search-input-custom {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.search-icon-left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 1.2rem;
}

.custom-search-results-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 9999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.custom-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-search-results .search-item {
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.custom-search-results .search-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.custom-search-results .search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

.custom-search-results .search-title {
    font-weight: 500;
}

.custom-search-results .search-price {
    margin-right: auto;
    font-weight: bold;
    color: #182C8B;
}

.custom-search-results .search-item:hover {
    background: #f9f9f9;
}

.no-results {
    padding: 10px;
    text-align: center;
    color: #777;
}


    /* checkout */

    /* 1. Main Layout Split (Flexbox) */
    form.woocommerce-checkout {
        direction: rtl;
        display: flex;
        flex-direction: row; /* Places billing on right, summary on left for RTL */
        align-items: flex-start;
        gap: 40px;
        margin-top: 30px;
    }

    /* 2. Right Side: Billing & Shipping Fields */
    .col2-set {
        flex: 1;
        width: 60% !important;
        float: none !important;
    }

    .col2-set .col-1, .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
    }

    /* 3. Left Side: Order Details (Sticky/Fixed) */
    #order_review_heading, 
    #order_review {
        width: 35% !important;
        float: none !important;
    }

    #order_review {
        position: -webkit-sticky;
        position: sticky;
        top: 100px; /* Distance from top of screen when scrolling */
        background: #fdfdfd;
        padding: 45px 0 0;
        border: unset;
        border-radius: 12px;
        box-shadow: unset;
    }

    /* 4. Input Field Design (Matching your image) */
    .woocommerce-checkout .form-row input.input-text, 
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .form-row textarea {
        border: 1px solid #E2E2E2 !important;
        border-radius: 8px !important;
        padding: 12px 15px !important;
        background-color: #fff !important;
        height: 50px;
        font-size: 15px;
    }

    .woocommerce-checkout .form-row label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        color: #333;
    }

    /* 5. Order Table Styling (Left Side) */
    .shop_table.woocommerce-checkout-review-order-table {
        border: none !important;
        background: transparent !important;
    }

    .shop_table.woocommerce-checkout-review-order-table thead {
        display: none; /* Hide header for cleaner look */
    }

    .shop_table tr td, .shop_table tr th {
        border: none !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    /* 6. Place Order Button */
    #place_order {
        background-color: transparent;
        color: var(--primary-cyan);
        font-size: 18px;
        border-radius: 10px;
        width: 100%;
        transition: 0.3s ease;
        border: 2px solid var(--primary-cyan);
    }

    #place_order:hover {
        background-color: var(--primary-cyan) !important;
        color: #fff !important;
    }

    /* 7. RTL Specific Adjustments */
    body.rtl .woocommerce-checkout .form-row-first {
        float: right !important;
        width: 48% !important;
    }

    body.rtl .woocommerce-checkout .form-row-last {
        float: left !important;
        width: 48% !important;
    }

    /* Responsive: Stack on Mobile */
    @media (max-width: 991px) {
        form.woocommerce-checkout {
            flex-direction: column;
        }
        .col2-set, #order_review, #order_review_heading {
            width: 100% !important;
        }
        #order_review {
            position: relative;
            top: 0;
        }
    }

    #order_review_heading,.woocommerce-form-coupon-toggle,.woocommerce-terms-and-conditions-wrapper{
        display: none;
    }
    th.translated-ar {
        text-align: start;
    }

    .shop_table tr td.product-name {
        text-align: justify;
        padding-left: 13px !important;
    }

    .woocommerce-checkout #payment ul.payment_methods li{
        text-align: right;
    }
    .woocommerce-checkout #payment{
        background-color: unset;
    }

    .woocommerce-checkout #payment div.payment_box::before{
        display: none;
    }

    .woocommerce-checkout #payment div.payment_box{
        background-color: rgb(228, 228, 228);
        margin: 5px 0;
        p{
            color: #000;
        }
    }
    .woocommerce-shipping-fields{
        display: none;
    }
    .woocommerce-checkout .form-row label[for="order_comments"]{
        display: none;
        & + span{
            margin-top: 20px;
            display: block;
        }
    }
    .woocommerce-billing-fields h3{
        margin-bottom: 20px;
        color: #000;
    }

    .woocommerce form .form-row {
        margin: 0 0 25px;
    }

    #order_review :is(span,label){
        color: #000;
    }
    .woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th {
        text-align: start;
    }

    .woocommerce form .form-row-first, .woocommerce-page form .form-row-first{
        float: right;
    }
    .woocommerce form .form-row-last, .woocommerce-page form .form-row-last{
        float: left;
    }

    /* --- Thank You Page Container --- */
    .woocommerce-order {
        max-width: 800px;
        margin: 40px auto;
        padding: 30px;
        background: #ffffff;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        direction: rtl; /* Ensures proper Arabic alignment */
    }

    /* Success Message */
    .woocommerce-notice--success {
        background-color: #e6fcf5 !important;
        color: #0ca678 !important;
        padding: 20px !important;
        border-radius: 10px;
        border-right: 5px solid #0ca678; /* Green accent on the right for RTL */
        font-weight: 600;
        margin-bottom: 30px;
        text-align: center;
    }

    /* --- Order Overview Bar (Number, Date, Total) --- */
    .woocommerce-order-overview {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 0 0 40px 0;
        border-bottom: 2px dashed #eee;
        padding-bottom: 20px;
    }

    .woocommerce-order-overview li {
        flex: 1;
        min-width: 140px;
        font-size: 14px;
        color: #888;
        text-align: center;
        border-left: 1px solid #eee;
    }

    .woocommerce-order-overview li:last-child {
        border-left: none;
    }

    .woocommerce-order-overview li strong {
        display: block;
        color: #333;
        font-size: 16px;
        margin-top: 5px;
    }

    /* --- Table Styling --- */
    .woocommerce-table--order-details {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .woocommerce-table--order-details thead th {
        background: #f8f9fa;
        padding: 15px;
        text-align: right;
        font-weight: 600;
        color: #555;
        border-radius: 8px 8px 0 0;
    }

    .woocommerce-table--order-details td, 
    .woocommerce-table--order-details th {
        padding: 15px;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    .woocommerce-table--order-details tfoot th {
        color: #888;
        font-weight: 400;
    }

    .woocommerce-table--order-details tfoot td {
        font-weight: 600;
        color: #333;
    }

    .order-total td strong {
        color: #d6336c; /* Color for the total amount */
        font-size: 1.2rem;
    }

    /* --- Address Section --- */
    .woocommerce-columns--addresses {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .woocommerce-column__title {
        font-size: 18px;
        border-bottom: 2px solid #333;
        display: inline-block;
        padding-bottom: 5px;
        margin-bottom: 15px;
    }

    address {
        font-style: normal;
        background: #fdfdfd;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 10px;
        line-height: 1.8;
        color: #666;
    }

    .woocommerce-column--shipping-address{
        display: none;
    }

    .woocommerce-page .col2-set::before{
        display: none;
    }

    .woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before,.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before{
        position: relative;
    }

    .woocommerce-thankyou-order-details + p{
        display: none;
    }
    .woocommerce-checkout .bg-image{
        background-position: top;
    }

    /* Responsive for Mobile */
    @media (max-width: 600px) {
        .woocommerce-order-overview {
            flex-direction: column;
            gap: 15px;
        }
        .woocommerce-order-overview li {
            border-left: none;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        .woocommerce-columns--addresses {
            grid-template-columns: 1fr;
        }
    }
    .added_to_cart{
        display: none;
    }
    .woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout{
        position: fixed;
        right: 10px;
        bottom: 10px;
        z-index: 1111;
        display: none;
    }

    .modern-contact-form{
    background:#000;
    padding:50px;
    max-width:600px;
    margin:auto;
    border:2px solid #00AEEF;
    border-radius:10px;
}

.modern-contact-form input,
.modern-contact-form textarea{

    width:100%;
    background:#000;
    border:2px solid #00AEEF;
    color:#00AEEF;
    padding:15px;
    margin-bottom:15px;
    border-radius:6px;
    font-size:16px;
    direction: rtl;
}

.modern-contact-form textarea{
    height:150px;
    resize:none;
}

.modern-contact-form input::placeholder,
.modern-contact-form textarea::placeholder{
    color:#00AEEF;
    opacity:.7;
}

.modern-contact-form button{

    width:100%;
    background:#00AEEF;
    border:none;
    color:#000;
    font-weight:bold;
    padding:15px;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.modern-contact-form button:hover{
    background:#0095d4;
}

.form-response{
    color:#00AEEF;
    margin-top:10px;
}
/* --- Footer Specific Styles --- */
.footer-custom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 400px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary-cyan);
    padding-right: 5px; /* Subtle RTL hover movement */
}

/* Social Icons */
.social-icon {
    font-size: 1.5rem;
    color: var(--black);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-cyan);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .footer-custom {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-text {
        margin: 0 auto;
    }
}