/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
html, body {
    width: -webkit-fill-available !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== 
.site-header {
    display: grid;
    position: fixed;
    width: -webkit-fill-available !important;
    top: 0;
    z-index: 1000;
}*/


/* sticky-header.css */

/* قاعدة الهيدر العادية */
.site-header {
  position: relative;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease;
  will-change: transform;
  z-index: 20;
  background: #fff; /* عدّل حسب التصميم */
}

/* placeholder يمنع ازاحة المحتوى عند تثبيت الهيدر */
.site-header-placeholder {
  height: 0;
  display: block;
  width: 100%;
}

/* الحالة المثبتة */
.site-header.is-fixed {
  position: fixed;
  transform: translateY(0);
  box-shadow: 0 8px 26px rgba(11,22,40,0.08);
  z-index: 9999;
  left: 0;
  right: 0;
}

/* اخفاء الهيدر عند النزول (سلس) */
.site-header.is-fixed.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

/* ضبط للهيدر عند وجود شريط ادمن في الأعلى (#wpadminbar) */
.admin-bar .site-header.is-fixed {
  /* top مضبوط ديناميكياً في JS. هذا فقط احتياطي */
  top: 32px;
}

/* تعديل على أحجام الشاشات الصغيرة */
@media (max-width: 900px) {
  .site-header {
    transition: transform 200ms cubic-bezier(.2,.8,.2,1);
  }
  .site-header.is-fixed {
    box-shadow: 0 6px 18px rgba(11,22,40,0.08);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header.is-fixed,
  .site-header.is-fixed.is-hidden {
    transition: none !important;
  }
}

/* نصيحة: اضبط خصائص .site-header (height, padding) لتناسب موقعك */


/* ==========================================================================
   PRODUCT CARD & LAYOUT STYLES
   ========================================================================== */
.counter-template-one {
    direction: ltr;
}

.woocommerce-js ul.products li.product .woocommerce-loop-category__title {
    bottom: 0rem !important;
}

.woocommerce-js ul.products li.product.product-category a img,
.wpsf-product,
.woocommerce ul.products li.product.mobile-align-center,
.woocommerce-page ul.products li.product.mobile-align-center {
    box-shadow: 0px 3px 5px 2px #66339966 !important;
    border-radius: .3rem !important;
}

.site .site-content #primary .ast-article-single, .ast-separate-container .site-content #secondary .widget {
    padding-top: 0;
}


/* ==========================================================================
   PRICE STYLES
   ========================================================================== */
p.price {
    font-size: 100% !important;
    margin: auto !important;
}

.price ins {
    color: green !important;
    font-weight: bold !important;
}

/* Discount text styling - currently commented */
.custom-savings {
    color: black;
    font-size: 70%;
    font-weight: 400;
    text-shadow: -3px 0 yellow, 0 3px yellow, 3px 0 yellow, 0 -3px yellow;
}


/* ==========================================================================
   PRODUCT TITLE STYLES
   ========================================================================== */
@media (min-width: 992px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
        margin-bottom: .5em !important;
        width: 95% !important;
        font-size: .88em !important;
        height: 45px !important;
        word-break: break-word !important;
        overflow: hidden !important;
        text-overflow: ellipsis;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

.wpsf-product-title a {
    margin-bottom: 1.2em !important;
    margin-top: .1em !important;
    width: 100% !important;
    padding: .5em !important;
    font-size: .9em !important;
    height: 50px !important;
    word-break: break-word !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   PRODUCT GRID & LAYOUT
   ========================================================================== */
.woocommerce-js .products ul,
.woocommerce-js ul.products,
.woocommerce-page ul.products {
    column-gap: .5rem !important;
    padding-left: .0rem !important;
    padding-right: .0rem !important;
    margin: auto !important;
}

#wps-slider-section .wps-product-section {
    padding-left: 2.5em !important;
    padding-bottom: 1em !important;
}

/* ==========================================================================
   STOCK & AVAILABILITY
   ========================================================================== */
.woocommerce div.product .stock {
    font-weight: 700 !important;
    color: green !important;
}

.woocommerce div.product .out-of-stock {
    font-weight: 700 !important;
    color: red !important;
}

/* ==========================================================================
   RATING STYLES
   ========================================================================== */
.star-rating span {
    color: gold;
}

p.meta em.woocommerce-review__verified.verified {
    color: green !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.woocommerce div.product form.cart .button.single_add_to_cart_button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page.woocommerce-checkout #payment #place_order,
.woocommerce.woocommerce-checkout #payment #place_order,
.woocommerce-page ul.products .discount-text,
.catalog-discount {
    animation: shake 0.99s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* ==========================================================================
   DELIVERY INFORMATION STYLES
   ========================================================================== */
.delivery-info {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 12px 15px;
    border-right: 4px solid #28a745;
    background-color: #f0f8f0;
    border-radius: 8px;
    direction: rtl;
    text-align: right;
}

.delivery-icon {
    margin-left: 12px;
    font-size: 1.4em;
    color: #2a7a1a;
}

.delivery-icon svg {
    width: 1.3em;
    height: 1.3em;
    vertical-align: middle;
}

.delivery-text {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.delivery-date {
    color: #2a7a1a;
    font-weight: bold;
    font-size: 14px;
}

/* ==========================================================================
   REWARDS & SPECIAL MESSAGES
   ========================================================================== */
.custom-product-message {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f0f8f0;
    border-right: 4px solid #28a745;
    border-radius: 5px;
    text-align: right;
    direction: rtl;
    font-size: 14px;
    line-height: 1.5;
}

.reward-icon {
    color: #2a7a1a;
    font-weight: bold;
    font-size: 1.5em;
    margin-left: 8px;
}

.reward-text {
    color: #333;
    font-weight: 500;
    margin: 0 5px;
    font-size: 14px;
}

.reward-points {
    color: #2a7a1a;
    font-weight: bold;
    font-size: 14px;
}

/* ==========================================================================
   CHECKOUT & PAYMENT STYLES
   ========================================================================== */
.woocommerce-checkout #payment ul.payment_methods li img {
    display: flex !important;
    flex-direction: row !important;
}

.woocommerce-checkout #payment div.payment_box p:last-child {
    color: black;
    font-weight: bold;
}

/* ==========================================================================
   TABS & NAVIGATION
   ========================================================================== */
.tabs {
    display: flex !important;
    justify-content: space-between !important;
}

/* ==========================================================================
   CONTACT & SPECIAL SECTIONS
   ========================================================================== */
.contactus {
    background-color: lightgoldenrodyellow;
}

/* ==========================================================================
   HIDDEN ELEMENTS
   ========================================================================== */
#wpcp-error-message,
a.woocommerce-button.button.wt_pklist_invoice_download,
.main-header-bar .main-header-bar-navigation .menu-item-has-children>a:after,
.site-header-focus-item .main-header-bar-navigation .menu-item-has-children>.menu-link:after,
.woocommerce-breadcrumb,
.ast-sticky-add-to-cart-content .discount-text,
.ast-sticky-add-to-cart-content .delivery-info,
.ast-sticky-add-to-cart-content p,
.count,
.woocommerce-result-count,
.woocommerce-ordering,
form.cart div.quantity,
.ast-shop-product-out-of-stock,
a.woocommerce-store-notice__dismiss-link,
li.product .custom-savings {
    display: none !important;
}

/* ==========================================================================
   TEXT DIRECTION & ALIGNMENT
   ========================================================================== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
button#wps_cart_points_apply+p,
.ast-footer-copyright p {
    direction: ltr !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .ast-on-card-button,
    .ast-on-card-button .ahfb-svg-iconset {
        visibility: visible !important;
        opacity: 80 !important;
    }
}

/* ==========================================================================
   PRODUCT FAQ STYLES
   ========================================================================== */
.astra-child-product-faq {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
    direction: rtl;
}

.faq-title {
    color: #2d3748;
    margin-bottom: 25px;
    text-align: right;
    font-size: 1.5em;
    font-weight: 700;
    border-bottom: 2px solid #663399;
    padding-bottom: 10px;
}

.faq-list {
    direction: rtl;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.faq-item:hover {
    border-color: #cbd5e0;
}

.faq-item.active {
    border-color: #663399;
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.15);
}

.faq-question {
    background-color: #f8fafc;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: right;
    font-size: 16px;
}

.faq-item.active .faq-question {
    background-color: #f0ebf8;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question:hover {
    background-color: #edf2f7;
}

.faq-question-text {
    color: #2d3748;
    flex: 1;
    margin-left: 15px;
}

.faq-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #663399;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.faq-toggle-icon:hover {
    background: #5a2d8a;
}

.faq-plus,
.faq-minus {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 18px;
    line-height: 1;
}

.faq-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.faq-item.active .faq-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.active .faq-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 20px;
    background: #ffffff;
    color: #4a5568;
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0 0 15px 0;
    font-size: 15px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .astra-child-product-faq {
        padding: 20px;
        margin: 30px 0;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question-text {
        font-size: 15px;
        margin-left: 12px;
    }
    
    .faq-answer-content {
        padding: 15px;
    }
    
    .faq-title {
        font-size: 1.3em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .astra-child-product-faq {
        padding: 15px;
    }
    
    .faq-question {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .faq-question-text {
        font-size: 14px;
    }
    
    .faq-answer-content {
        padding: 12px 15px;
        font-size: 14px;
    }
}






.onsale, .ast-onsale-card { display: none !important; }

.ayatie-discount-badge {
    position: absolute;
    top: 2.5em;
    right: 1.2em;
    padding: 1px 5px;
    border-radius: 7px;
    background: #481173;
    color: #EADAFF;
    font-weight: 700;
    font-size: 0.7em;
    z-index: 12;
}




.ast-scroll-to-top-right {
			bottom: 180px;
		}
		.ast-scroll-to-top-left {
			bottom: 180px;
		}


