/* ==========================================================================
   متجر أبو ضحى - التنسيقات الفاخرة للوضع الداكن والتجارة الإلكترونية
   ========================================================================== */

/* 1. التنسيقات العامة والخلفية الداكنة */
body,
.site,
#page,
.ast-container,
.site-content {
    background-color: var(--abudoha-bg-main) !important;
    color: var(--abudoha-text-main) !important;
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.product_title {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

a {
    color: var(--abudoha-gold);
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: var(--abudoha-gold-light);
}

/* 2. شريط الإعلانات الترويجي أعلى الترويسة */
.abudoha-announcement-bar {
    background: linear-gradient(90deg, #111827 0%, #1e293b 50%, #111827 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: #f3f4f6;
    padding: 9px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 100;
}

.abudoha-announcement-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: abudoha-pulse-subtle 3s infinite ease-in-out;
}

@keyframes abudoha-pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.01); }
}

/* 3. الشعار وهوية الموقع */
.abudoha-branding-wrap {
    display: inline-flex;
    align-items: center;
}

.abudoha-custom-logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.abudoha-custom-logo-img:hover {
    transform: scale(1.03);
}

.abudoha-text-logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    line-height: 1.15;
}

.abudoha-text-logo-gold {
    font-size: 1.65rem;
    font-weight: 900;
    background: var(--abudoha-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
    letter-spacing: -0.5px;
}

.abudoha-text-logo-tagline {
    font-size: 0.75rem;
    color: var(--abudoha-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* 4. ترويسة الموقع الداكنة */
.main-header-bar,
.ast-main-header-wrap,
.ast-header-breadcrumb {
    background-color: #0d1117 !important;
    border-bottom: 1px solid var(--abudoha-border) !important;
}

.ast-builder-menu .main-navigation .main-header-menu > .menu-item > .menu-link {
    color: var(--abudoha-text-main) !important;
    font-weight: 600;
}

.ast-builder-menu .main-navigation .main-header-menu > .menu-item:hover > .menu-link {
    color: var(--abudoha-gold) !important;
}

/* أيقونة السلة في الترويسة */
.ast-site-header-cart-data,
.ast-header-woo-cart {
    background-color: var(--abudoha-bg-surface);
    border: 1px solid var(--abudoha-border);
    border-radius: var(--abudoha-radius-md);
    padding: 6px 12px;
    color: var(--abudoha-gold) !important;
    transition: all 0.25s ease;
}

.ast-header-woo-cart:hover {
    border-color: var(--abudoha-gold);
    box-shadow: var(--abudoha-shadow-gold);
}

/* 5. شبكة المنتجات (WooCommerce Product Grid) - عام وهاتف */
ul.products {
    margin: 0 !important;
    padding: 0 !important;
}

/* ميزة حاسمة: شبكة من عمودين على الهواتف الذكية */
@media (max-width: 768px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    .abudoha-custom-logo-img {
        max-height: 42px;
    }

    .abudoha-text-logo-gold {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 20px !important;
    }

    ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* 6. بطاقة المنتج (Product Card) */
ul.products li.product {
    background-color: var(--abudoha-bg-card) !important;
    border: 1px solid var(--abudoha-border) !important;
    border-radius: var(--abudoha-radius-md) !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--abudoha-shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
}

ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

ul.products li.product img {
    border-radius: var(--abudoha-radius-sm) !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px !important;
    background-color: #0b0e14;
    transition: transform 0.3s ease;
}

ul.products li.product:hover img {
    transform: scale(1.03);
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 8px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* شارة التخفيض الذهبية */
.abudoha-sale-badge,
span.onsale {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: auto !important;
    min-width: auto !important;
    line-height: normal !important;
}

/* أسعار المنتجات */
.price {
    font-size: 1.15rem !important;
    color: var(--abudoha-gold) !important;
    font-weight: 800 !important;
    margin: 6px 0 10px 0 !important;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.price del {
    color: var(--abudoha-text-dim) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-decoration: line-through;
}

.price ins {
    text-decoration: none !important;
    color: var(--abudoha-gold) !important;
    font-weight: 800 !important;
}

/* وسوم الدفع عند الاستلام والتوصيل */
.abudoha-loop-cod-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.abudoha-tag-pill {
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--abudoha-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.abudoha-tag-pill.cod-highlight {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
    font-weight: 600;
}

/* 7. أزرار الشراء الخضراء الموجهة للتحويل (Conversion Focused Buttons) */
.button.add_to_cart_button,
.single_add_to_cart_button,
.abudoha-btn-instant-order,
#place_order,
.woocommerce-checkout button[type="submit"] {
    background: linear-gradient(135deg, var(--abudoha-green) 0%, var(--abudoha-green-hover) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--abudoha-radius-md) !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--abudoha-shadow-green);
    transition: all 0.25s ease;
    width: 100%;
}

.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.abudoha-btn-instant-order:hover,
#place_order:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
}

/* 8. صفحة المنتج الفردي (Single Product Page) */
.single-product .product {
    background-color: var(--abudoha-bg-card);
    border: 1px solid var(--abudoha-border);
    border-radius: var(--abudoha-radius-lg);
    padding: 24px;
    box-shadow: var(--abudoha-shadow-card);
    margin-bottom: 40px;
}

.single-product .product_title {
    font-size: 1.75rem !important;
    margin-bottom: 12px !important;
}

.single-product .price {
    font-size: 1.6rem !important;
}

/* زر الشراء المباشر COD في صفحة المنتج */
.abudoha-direct-cod-action {
    margin: 18px 0;
}

.abudoha-btn-instant-order {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    border-radius: var(--abudoha-radius-md) !important;
    font-size: 1.15rem !important;
    animation: abudoha-pulse-btn 2.5s infinite;
}

.abudoha-btn-instant-order .abudoha-btn-sub {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 3px;
}

@keyframes abudoha-pulse-btn {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* صندوق الضمانات في صفحة المنتج */
.abudoha-product-guarantees {
    background-color: var(--abudoha-bg-surface);
    border: 1px solid var(--abudoha-border);
    border-radius: var(--abudoha-radius-md);
    padding: 18px;
    margin-top: 24px;
}

.abudoha-guarantee-header {
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.abudoha-guarantee-title {
    font-weight: 800;
    color: var(--abudoha-gold);
    font-size: 0.95rem;
}

.abudoha-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 540px) {
    .abudoha-guarantee-grid {
        grid-template-columns: 1fr;
    }
}

.abudoha-guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.abudoha-g-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.abudoha-g-text strong {
    display: block;
    font-size: 0.85rem;
    color: #ffffff;
}

.abudoha-g-text span {
    font-size: 0.75rem;
    color: var(--abudoha-text-muted);
}

/* 9. شريط الشراء الثابت أسفل الهاتف (Mobile Sticky Buy Bar) */
.abudoha-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(17, 21, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 14px;
    z-index: 9999;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    animation: abudoha-slide-up 0.35s ease;
}

@keyframes abudoha-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 768px) {
    .abudoha-mobile-sticky-bar.is-visible {
        display: block;
    }
    body.single-product {
        padding-bottom: 75px !important;
    }
}

.abudoha-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.abudoha-sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.abudoha-sticky-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--abudoha-border);
    flex-shrink: 0;
}

.abudoha-sticky-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.abudoha-sticky-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abudoha-sticky-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--abudoha-gold);
}

.abudoha-sticky-cta-btn {
    background: linear-gradient(135deg, var(--abudoha-green) 0%, var(--abudoha-green-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--abudoha-radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--abudoha-shadow-green);
}

/* 10. صفحة إتمام الطلب (WooCommerce Checkout) البسيطة والفاخرة */
.woocommerce-checkout {
    background-color: var(--abudoha-bg-card);
    border: 1px solid var(--abudoha-border);
    border-radius: var(--abudoha-radius-lg);
    padding: 24px;
    box-shadow: var(--abudoha-shadow-card);
}

.woocommerce-checkout h3 {
    color: var(--abudoha-gold) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    background-color: var(--abudoha-bg-surface) !important;
    color: #ffffff !important;
    border: 1px solid var(--abudoha-border) !important;
    border-radius: var(--abudoha-radius-sm) !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    transition: border-color 0.25s ease;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--abudoha-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2) !important;
}

/* تمييز حقول الهاتف والاسم */
.abudoha-field-phone input,
.abudoha-field-highlight input {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.abudoha-hidden-field {
    display: none !important;
}

/* جدول ملخص الطلب في الشيك أوت */
#order_review,
.woocommerce-checkout-review-order-table {
    background-color: var(--abudoha-bg-surface);
    border-radius: var(--abudoha-radius-md);
    border: 1px solid var(--abudoha-border);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #f3f4f6 !important;
    padding: 12px 16px !important;
}

.woocommerce-checkout-review-order-table .order-total strong {
    color: var(--abudoha-gold) !important;
    font-size: 1.25rem;
}

/* بوابة الدفع COD */
.wc_payment_method {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--abudoha-radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.payment_box {
    background-color: transparent !important;
    color: var(--abudoha-text-muted) !important;
    font-size: 0.85rem;
    padding: 8px 0 0 0 !important;
}

/* 11. تبويب الفيديو */
.abudoha-video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--abudoha-radius-md);
    background: #000;
}

.abudoha-video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 12. تذييل الموقع (Footer) الفاخر */
.site-footer {
    background-color: #080a0f !important;
    border-top: 1px solid var(--abudoha-border) !important;
    color: var(--abudoha-text-muted);
    padding-top: 40px;
    padding-bottom: 30px;
}

.site-footer a {
    color: var(--abudoha-text-muted);
}

.site-footer a:hover {
    color: var(--abudoha-gold);
}

.abudoha-whatsapp-float{position:fixed;left:18px;bottom:20px;z-index:9998;display:flex;align-items:center;gap:7px;padding:11px 16px;background:#128c55;color:#fff!important;border-radius:999px;box-shadow:0 4px 18px rgba(0,0,0,.25);text-decoration:none;font-weight:700}
@media(max-width:767px){.abudoha-whatsapp-float{left:10px;bottom:88px;padding:10px 12px;font-size:13px}}
