/*!
Theme Name:   astrachild
Author:       Adel Ach 
Author URI:   https://adelach.com
Description:  astra child
Version:      1.0.0
template:     astra
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  astrachild
*/
/* ===========================================
   MONTSERRAT ARABIC FONT IMPLEMENTATION
   =========================================== */

/* 1. FONT-FACE DECLARATION */
@font-face {
    font-family: 'Montserrat Arabic';
    src: url('fonts/Montserrat-Arabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}
@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Medium.ttf') format('truetype');

    
    
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}
/* Your global font rule */
* {
    font-family: 'Montserrat Arabic', 'Arial', 'Helvetica', sans-serif !important;
    font-weight: 400;
}

/* EXCEPTION: Exclude star ratings */
.star-rating,
.star-rating *,
.woocommerce .star-rating,
.woocommerce .star-rating *,
[class*="star"],
[class*="rating"] {
    font-family: 'WooCommerce', 'dashicons', Arial !important;
    font-weight: normal !important;
}
/* 2. APPLY TO ALL ELEMENTS (Global Application) */


/* 3. BODY AND HTML */
html, body {
    font-family: 'Montserrat Arabic','Raleway', sans-serif !important;
    font-weight: 400;
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right;
}

/* 4. HEADINGS */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat Arabic', 'Raleway', sans-serif !important;
    font-weight: 400;
}

/* 5. PARAGRAPH AND TEXT ELEMENTS */
p, span, div, a, li, td, th, label, input, textarea, select, button {
    font-family: 'Montserrat Arabic', 'Raleway', sans-serif !important;
    font-weight: 400;
}

/* 11. ARABIC TEXT SPECIFIC STYLING */
body {
    line-height: 1.8; /* Better line spacing for Arabic text */
    letter-spacing: 0.5px; /* Slight letter spacing */
}

/* 12. RESPONSIVE FONT SIZES (Optional) */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.2rem; }
    h6 { font-size: 1.1rem; }
}


#nav_menu-6,#nav_menu-4,#nav_menu-1{
text-align: right !important;
}
/* ========== GENERAL STYLES ========== */
body {
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

p {
    text-align: right;
}

strong {
    font-size: 26px;
}

/* ========== LAYOUT & CONTAINERS ========== */
.site-content-contain {
    background: FEEF97;
}

.content, .ast-woocommerce-container {
    background-color: #F0F0F0FF;
}

.ast-woocommerce-container {
    margin-top: 100px;
}

.astra-shop-summary-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.astra-shop-thumbnail-wrap {
    margin: 10% !important;
}

/* ========== HEADERS ========== */
.ast-main-header-wrap.main-header-bar-wrap {
    background-color: #F26722;
}

.ast-above-header-bar.ast-above-header.site-header-focus-item {
    background: #f26722;
}

.site-header.ast-primary-submenu-animation-slide-up.header-main-layout-1.ast-primary-menu-enabled.ast-has-mobile-header-logo.ast-builder-menu-toggle-icon.ast-mobile-header-inline {
    position: sticky;
    top: 0;
}

.ast-builder-grid-row-container-inner {
    margin-bottom: 15px;
}

/* ========== NAVIGATION ========== */
.menu-link {
    color: black !important;
}

.menu-link:hover {
    color: #F26722;
}

.menu-item.menu-item-type-custom.menu-item-object-custom.current-menu-ancestor.current-menu-parent.menu-item-has-children.menu-item-5733 {
    padding-top: 15px;
}

/* ========== BUTTONS & CALL TO ACTION ========== */
.call-buttons {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 2%;
}

.call-button {
    display: inline-block;
    padding: 10px 10px;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    color: #f26722;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 88%;
    margin: auto;
}

.call-button:hover {
    background-color: #f26722;
    transform: scale(1.1);
    color: white;
}

/* Primary action buttons */
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart,
.button.product_type_variable.add_to_cart_button,
.single_add_to_cart_button.button.alt,
#submit,
.single_link_to_cart_button.button.alt,
.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed,
.checkout-button.button.alt.wc-forward,
.wpforms-submit,.single_add_to_cart_button.button.qlwcdc_quick_purchase {
    background: #F26722;
    border-radius: 20px;
}

.button.product_type_variable.add_to_cart_button.cfvsw_ajax_add_to_cart {
    color: white;
}

/* Fixed buttons */
#btn123, #btn1234 {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #F26722;
}

#btn123 {
    text-align: center;
}

#btn12345 {
    position: fixed;
    width: 100%;
    bottom: 0;
    background: #f26722;
    color: white;
    left: 0;
    right: 0;
    display: block;
    z-index: 999999999;
}

#buttonHolder {
    width: 227px;
}

#buttonHolde:active {
    display: none;
}

/* ========== FORMS & INPUT FIELDS ========== */
.form-container {
    perspective: 1000px;
}

.form-3d {
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: rotateY(15deg);
    transition: transform 0.5s;
}

.form-3d:hover {
    transform: rotateY(0);
}

.form-3d h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.form-3d input[type="text"],
.form-3d input[type="email"],
.form-3d input[type="tel"],
.form-3d button[type="submit"],
.form-3d select,
.form-3d input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-3d input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #007BFF;
    border: none;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-3d input[type="submit"]:hover {
    background: #0056b3;
}

/* Billing form styling */
#billing_first_name, #billing_last_name, #billing_address_1, #billing_phone {
    border-radius: 25px;
}

#billing_first_name {
    width: 215%;
}

#phone12, #phone13 {
    text-align: right;
}

#name {
    background: url(https://ebox-dz.com/wp-content/uploads/2024/12/user.svg) no-repeat scroll 0 0;
}

#phone12 {
    background: url(https://ebox-dz.com/wp-content/uploads/2024/12/phone.svg) no-repeat scroll 0 0;
}

/* General rounded form fields */
#date_fi, #date_debut, #lot_search,
#phone12, #phone13, #name, #adresse, #buttonHolder, #Adresse {
    border-radius: 25px;
}

/* ========== WPFORMS STYLING (Active Forms Only) ========== */
.wpforms-entries-filter {
    margin-bottom: 20px;
}

.filter-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.wpforms-entries-count {
    margin: 10px 0;
    font-weight: bold;
}

.wpforms-frontend-entries {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wpforms-frontend-entries th,
.wpforms-frontend-entries td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.wpforms-frontend-entries th {
    background-color: #f2f2f2;
}

.wpforms-entries-table-wrapper {
    overflow-x: auto;
}

#wpforms-6939-field_3, #wpforms-6939-field_4, #wpforms-6939-field_5 {
    border-radius: 25px;
}

#wpforms-6939-field_6 {
    display: none;
}

#wpforms-4624-field_1, #wpforms-4624-field_2, #wpforms-4624-field_3 {
    border-radius: 25px;
}

#wpforms-submit-4624 {
    background: #F26722;
    border-radius: 25px;
}

.elementor-heading-title.elementor-size-default {
    display: none;
}

/* Image choice styling (for active forms) */
.choice-1.wpforms-image-choices-item.wpforms-selected,
.choice-2.wpforms-image-choices-item.wpforms-selected,
.choice-3.wpforms-image-choices-item.wpforms-selected,
.choice-4.wpforms-image-choices-item.wpforms-selected,
.choice-5.wpforms-image-choices-item.wpforms-selected,
.choice-6.wpforms-image-choices-item.wpforms-selected,
.choice-7.wpforms-image-choices-item.wpforms-selected {
    border: solid 3px red;
}

/* ========== WOOCOMMERCE STYLING ========== */
.woocommerce-loop-product__title {
    text-align: center;
}

.product_title.entry-title {
    text-align: right;
    font-weight: bold;
}

.woocommerce-thankyou-order-details,
.woocommerce-order-details {
    display: none;
}

.woocommerce-breadcrumb,
.woocommerce-products-header__title.page-title {
    display: none;
}

.quantity {
    visibility: hidden;
}

/* WooCommerce variations */
.woovr-variations[class*="woovr-variations-grid"] .woovr-variation {
    border: 3px solid #ddd !important;
}

.woovr-variations[class*="woovr-variations-grid"] .woovr-variation.woovr-variation-active::before {
    background-color: red !important;
}

.woovr-variations[class*="woovr-variations-grid"] .woovr-variation.woovr-variation-active {
    border-color: red !important;
}

.woovr-variation-info {
    display: none;
}

/* Product images */
.wp-post-image,
.woovr-variation.woovr-variation-radio,
.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    border-radius: 25px;
}

.attachment-large.size-large.wp-post-image {
    display: none;
}

/* ========== TABS STYLING ========== */
.tabs.wc-tabs {
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #F26722;
}

#tab-title-description,
#tab-title-additional_information,
#tab-title-reviews {
    float: right;
}

#tab-title-description a,
#tab-title-additional_information a,
#tab-title-reviews a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

#tab-title-description a:hover,
#tab-title-additional_information a:hover,
#tab-title-reviews a:hover {
    background-color: white;
    color: #F26722;
}

.active {
    background-color: #F26722;
    color: black;
}

/* ========== WIDGETS & SIDEBAR ========== */
#woocommerce_product_categories-3,
#aws_widget-5,
.woocommerce-result-count,
#woocommerce_top_rated_products-2 {
    display: none;
}

.ast-left-sidebar #content > .ast-container {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

/* ========== AUTHOR & CONTENT ========== */
.ast-author-bio {
    margin-top: 80px;
}

.page-title.ast-archive-title {
    text-align: right;
}

.ast-author-avatar {
    position: absolute;
}

.fc-content-inner {
    margin: auto;
    padding-bottom: 50px;
}

.wp-block-image.size-full.is-resized.has-custom-border {
    display: contents;
    padding-top: 30px;
}

/* ========== RESPONSIVE STYLES ========== */
/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
    .call-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .call-button {
        text-align: center;
        padding: 12px;
    }
    
    .filter-fields {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-submit {
        display: flex;
        gap: 10px;
    }
}

/* Mobile styles (max-width: 921px) */
@media only screen and (max-width: 921px) {
	.single_add_to_cart_button.button.qlwcdc_quick_purchase{
	margin-right: 25%;
}
    /* Image choices styling */
    .choice-1.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-2.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-3.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-4.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-5.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-6.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-7.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-1.depth-1.wpforms-image-choices-item,
    .choice-2.depth-1.wpforms-image-choices-item,
    .choice-3.depth-1.wpforms-image-choices-item,
    .choice-4.depth-1.wpforms-image-choices-item,
    .choice-5.depth-1.wpforms-image-choices-item,
    .choice-6.depth-1.wpforms-image-choices-item,
    .choice-7.depth-1.wpforms-image-choices-item,
    .choice-1.wpforms-image-choices-item,
    .choice-2.wpforms-image-choices-item,
    .choice-3.wpforms-image-choices-item,
    .choice-4.wpforms-image-choices-item,
    .choice-1.wpforms-image-choices-item.wpforms-selected,
    .choice-2.wpforms-image-choices-item.wpforms-selected,
    .choice-3.wpforms-image-choices-item.wpforms-selected,
    .choice-4.wpforms-image-choices-item.wpforms-selected {
        width: 175px;
        display: inline-block;
        background: red;
    }
    
    .choice-1.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-2.depth-1.wpforms-image-choices-item,
    .choice-1.depth-1.wpforms-image-choices-item,
    .choice-2.depth-1.wpforms-image-choices-item.wpforms-selected {
        width: 140px;
        display: inline-block;
    }
    
    .woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-4.images {
        display: none;
    }
    
    .form-3d {
        width: 100%;
    }
}

/* Small mobile (max-width: 400px) */
@media only screen and (max-width: 400px) {
    .form-3d {
        width: 250px;
    }
}

/* Medium mobile (min-width: 401px) */
@media only screen and (min-width: 401px) {
    .form-3d {
        width: 350px;
    }
}

/* Desktop styles (min-width: 922px) */
@media screen and (min-width: 922px) {
    .choice-1.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-2.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-3.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-4.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-5.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-6.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-7.depth-1.wpforms-image-choices-item.wpforms-selected,
    .choice-1.depth-1.wpforms-image-choices-item,
    .choice-2.depth-1.wpforms-image-choices-item,
    .choice-3.depth-1.wpforms-image-choices-item,
    .choice-4.depth-1.wpforms-image-choices-item,
    .choice-5.depth-1.wpforms-image-choices-item,
    .choice-6.depth-1.wpforms-image-choices-item,
    .choice-7.depth-1.wpforms-image-choices-item,
    .choice-1.wpforms-image-choices-item,
    .choice-2.wpforms-image-choices-item,
    .choice-3.wpforms-image-choices-item,
    .choice-4.wpforms-image-choices-item,
    .choice-1.wpforms-image-choices-item.wpforms-selected,
    .choice-2.wpforms-image-choices-item.wpforms-selected,
    .choice-3.wpforms-image-choices-item.wpforms-selected,
    .choice-4.wpforms-image-choices-item.wpforms-selected {
        width: 200px;
        display: inline-flex;
    }
}

.woocommerce-Price-bidi {
  unicode-bidi: embed !important;
}