/*
Theme Name:     Woodmart Child
Theme URI:      https://eshtrakati.com/
Description:    Child theme for Woodmart
Author:         Abdulhadi
Author URI:     https://eshtrakati.com/
Template:       woodmart
Version:        1.0.0
*/

@import url("../woodmart/style.css");

/* Place your custom styles below */


/*phone_field in checkout page*/
.custom-phone-field {
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        max-width: 100%;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

.custom-phone-field .selected {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        padding: 7px 10px;
        border-radius: 4px;
        cursor: pointer;
        min-width: 100px;
        background-color: #fff;
        margin-left: 0px;
        gap: 6px;
        flex-direction: row-reverse;
    }

.custom-phone-field .flag-icon img {
        width: 24px;
        height: 18px;
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        display: block;
    }

.custom-phone-field .dial-code {
        /*font-weight: bold;*/
        /*font-size: 16px;*/
        /*color: #3a3a3a;*/
        margin: 0 2px;
    }

.custom-phone-field .arrow {
        display: flex;
        align-items: center;
        margin-left: 2px;
    }

.custom-phone-field .dropdown-list {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: unset;
        z-index: 99;
        background-color: white;
        border: 1px solid #e0e0e0;
        max-height: 200px;
        overflow-y: auto;
        width: 100%;
        border-radius: 8px;
        margin-top: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

.custom-phone-field .dropdown-item {
        padding: 6px 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.custom-phone-field .dropdown-item img {
        width: 24px;
        height: 16px;
        border-radius: 4px;
    }

.custom-phone-field input[type="text"] {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        min-width: 180px;
        color: #7a869a;
        /*font-size: 18px;*/
        /*text-align: left;*/
        width: 100%;
        box-sizing: border-box;
    }
    
    
    
/*اضافة الخط  الريال السعودى وتظبيط الاستايل=======================================*/
@font-face {
  font-family: 'RiyalFont';
  src: url('/wp-content/themes/woodmart-child/assets/fonts/riyal/riyalfont.woff2') format('woff2'),
       url('/wp-content/themes/woodmart-child/assets/fonts/riyal/riyalfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



/* اخفاء رمز العملة الافتراضي */
.woocommerce-Price-currencySymbol {
  font-size: 0 !important;
}

/* استبداله بأيقونة من الخط */
.woocommerce-Price-currencySymbol::before {
  font-family: 'RiyalFont' !important;
  content: "\e800"; /* الكود الخاص بالرمز من ملف CSS اللي انت جبته */
  font-size: 14px;  /* حجم الرمز */
  color: #231f20;   /* لون الرمز */
  margin-left: 3px; /* مسافة صغيرة بين الرقم والرمز */
  /*vertical-align: middle;*/
}
/*اضافة الخط  الريال السعودى وتظبيط الاستايل=======================================*/








/* 🔹 Scroll Utilities */
.scroll-x {
    display: flex;            /* عشان الكروت تيجي جنب بعض */
    overflow-x: auto;         /* يفعّل السكرول الأفقي */
    gap: 15px;                /* مسافة بين الكروت */
    scroll-snap-type: x mandatory; /* اختياري: سكرول أنيق */
    padding-bottom: 10px;     /* مساحة تحت عشان البار */
}

.scroll-x::-webkit-scrollbar {
    height: 8px;              /* تخلي الاسكرول رفيع */
}
.scroll-x::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
.scroll-x::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scroll-y {
    display: flex;
    flex-direction: column;   /* يخلي العناصر تحت بعض */
    overflow-y: auto;         /* يفعّل السكرول العمودي */
    gap: 15px;
    max-height: 400px;        /* ارتفاع محدد للسكرول */
    padding-right: 10px;
}

.scroll-y::-webkit-scrollbar {
    width: 8px;
}
.scroll-y::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
.scroll-y::-webkit-scrollbar-track {
    background: #f1f1f1;
}

