﻿/* ==========================================================================
   El Gezeera - WooCommerce Styles (Final Master File)
   ==========================================================================
   تصميم كامل ومتكامل لصفحات WooCommerce:
   - السلة (Cart)
   - التصنيفات (Categories) - 3 في الصف (قوة قصوى)
   - المنتج الفردي (Single Product)
   ========================================================================== */


/* ==========================================================================
   🎨 1. Design Tokens (ألوان ومتغيرات التصميم)
   ========================================================================== */
:root {
    --elg-bg: #fafaf7;
    --elg-card: #ffffff;
    --elg-border: #eef0f3;
    --elg-text: #0a0a0a;
    --elg-text-soft: #6b7280;
    --elg-text-mute: #9ca3af;
    --elg-gold: #d4af37;
    --elg-gold-dark: #b89050;
    --elg-gold-soft: #faf6e8;
    --elg-dark: #1a1a2e;
    --elg-dark-2: #252540;
    --elg-success: #10b981;
    --elg-danger: #ef4444;
    --elg-radius: 12px;
    --elg-radius-lg: 16px;
    --elg-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --elg-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --elg-transition: 200ms ease;
}
/* 1 End */
/* ========================================================================== */


/* ==========================================================================
   🛒 2. CART PAGE (صفحة السلة)
   ========================================================================== */

/* 2.1 الحاوية الرئيسية للسلة */
.elgezeera-cart-page {
    background: var(--elg-bg);
    min-height: 60vh;
    padding: 40px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--elg-text);
    direction: rtl;
}
/* 2.1 End */

/* 2.2 حاوية المحتوى */
.elgezeera-cart-container {
    width: min(calc(100% - 40px), 1200px);
    margin: 0 auto;
}
/* 2.2 End */

/* 2.3 شريط الخطوات (Steps) */
.elgezeera-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.elgezeera-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.elgezeera-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: all var(--elg-transition);
    flex-shrink: 0;
}
.elgezeera-step.is-active .elgezeera-step__number {
    background: var(--elg-gold);
    color: #fff;
    box-shadow: 0 0 0 4px var(--elg-gold-soft);
}
.elgezeera-step__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--elg-text-mute);
    transition: color var(--elg-transition);
}
.elgezeera-step.is-active .elgezeera-step__label {
    color: var(--elg-text);
    font-weight: 700;
}
.elgezeera-step__line {
    width: 60px;
    height: 2px;
    background: var(--elg-border);
    margin: 0 16px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .elgezeera-step__line {
        width: 20px;
        margin: 0 6px;
    }
    .elgezeera-step__label {
        display: none;
    }
}
/* 2.3 End */

/* 2.4 شبكة السلة */
.elgezeera-cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}
@media (max-width: 992px) {
    .elgezeera-cart-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* 2.4 End */

/* 2.5 صندوق المنتجات */
.elgezeera-cart-items {
    background: var(--elg-card);
    border-radius: var(--elg-radius-lg);
    padding: 30px;
    box-shadow: var(--elg-shadow);
}
@media (max-width: 640px) {
    .elgezeera-cart-items {
        padding: 20px;
    }
}
.elgezeera-cart-items__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--elg-gold);
}
.elgezeera-cart-items__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--elg-text);
    margin: 0;
}
.elgezeera-cart-items__count {
    font-size: 14px;
    font-weight: 500;
    color: var(--elg-text-soft);
}
/* 2.5 End */

/* 2.6 جدول السلة */
.elgezeera-cart-table-wrap {
    overflow-x: auto;
}
.elgezeera-cart-table {
    width: 100%;
    border-collapse: collapse;
}
.elgezeera-cart-table thead th {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--elg-text);
    border-bottom: 2px solid var(--elg-gold);
    background: transparent;
}
.elgezeera-cart-table thead th.is-name { text-align: right; }
.elgezeera-cart-table thead th.is-image { width: 90px; }
.elgezeera-cart-table thead th.is-qty { width: 130px; }
.elgezeera-cart-table thead th.is-remove { width: 50px; }
.elgezeera-cart-row { transition: background var(--elg-transition); }
.elgezeera-cart-row:hover { background: #fafbfc; }
.elgezeera-cart-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid var(--elg-border);
}
.elgezeera-cart-table tbody td.is-name { text-align: right; }
/* 2.6 End */

/* 2.7 محتوى الصف (صورة، اسم، كمية) */
.elgezeera-cart-row__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid var(--elg-border);
    transition: all var(--elg-transition);
    cursor: pointer;
}
.elgezeera-cart-row__image:hover {
    border-color: var(--elg-gold);
    transform: scale(1.05);
}
.elgezeera-cart-row__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    display: block;
}
.elgezeera-cart-row__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--elg-text);
    text-decoration: none;
    line-height: 1.5;
    transition: color var(--elg-transition);
    cursor: pointer;
}
.elgezeera-cart-row__name:hover { color: var(--elg-gold-dark); }
.elgezeera-cart-row__meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--elg-text-soft);
}
/* 2.7 End */

/* 2.8 أزرار الكمية (Qty) */
.elgezeera-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--elg-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color var(--elg-transition);
}
.elgezeera-qty-wrap:focus-within { border-color: var(--elg-gold); }
.elgezeera-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 38px;
    background: #fafbfc;
    color: var(--elg-text);
    border: none;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--elg-transition);
    padding: 0;
    line-height: 1;
}
.elgezeera-qty-btn:hover { background: var(--elg-gold); color: #fff; }
.elgezeera-qty-btn:active { background: var(--elg-gold-dark); }
.elgezeera-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.elgezeera-qty-input {
    width: 50px;
    height: 38px;
    border: none;
    background: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--elg-text);
    outline: none;
    -moz-appearance: textfield;
}
.elgezeera-qty-input::-webkit-outer-spin-button,
.elgezeera-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 2.8 End */

/* 2.9 زرار الحذف */
.elgezeera-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--elg-danger);
    text-decoration: none;
    transition: all var(--elg-transition);
}
.elgezeera-remove-btn:hover { background: var(--elg-danger); color: #fff; }
/* 2.9 End */

/* 2.10 أزرار السلة (تحديث، متابعة) */
.elgezeera-cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--elg-border);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.elgezeera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--elg-transition);
    border: none;
}
.elgezeera-btn--outline {
    background: transparent;
    color: var(--elg-gold-dark);
    border: 2px solid var(--elg-gold);
    padding: 16px 28px;
    font-size: 15px;
    white-space: nowrap;
}
.elgezeera-btn--outline:hover { background: var(--elg-gold); color: #fff; }
.elgezeera-checkout-btn--inline {
    flex: 1;
    min-width: 220px;
    margin-top: 0;
    background: var(--elg-gold);
    color: var(--elg-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--elg-radius);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all var(--elg-transition);
    border: none;
    cursor: pointer;
}
.elgezeera-checkout-btn--inline:hover {
    background: var(--elg-dark);
    color: var(--elg-gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}
.elgezeera-checkout-btn--inline svg { transform: scaleX(-1); transition: transform var(--elg-transition); }
.elgezeera-checkout-btn--inline:hover svg { transform: scaleX(-1) translateX(-4px); }
@media (max-width: 640px) {
    .elgezeera-cart-actions { flex-direction: column; }
    .elgezeera-checkout-btn--inline,
    .elgezeera-cart-actions .elgezeera-btn--outline { width: 100%; }
}
/* 2.10 End */

/* 2.11 ملخص الطلب (Summary) */
.elgezeera-cart-summary {
    background: linear-gradient(145deg, var(--elg-dark), var(--elg-dark-2));
    border-radius: var(--elg-radius-lg);
    padding: 30px;
    color: #fff;
    position: sticky;
    top: 100px;
    box-shadow: var(--elg-shadow);
}
@media (max-width: 992px) {
    .elgezeera-cart-summary { position: relative; top: 0; }
}
.elgezeera-cart-summary__title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--elg-gold);
}
.elgezeera-cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #aaa;
}
.elgezeera-cart-summary__row strong { color: #fff; font-weight: 700; }
.elgezeera-cart-summary__row .is-free { color: var(--elg-success); }
.elgezeera-cart-summary__row--total {
    font-size: 18px;
    font-weight: 800;
    color: var(--elg-gold);
    padding-top: 18px;
    margin-top: 8px;
    border-top: 2px solid rgba(255,255,255,0.1);
    border-bottom: none;
}
.elgezeera-cart-summary__note { font-size: 13px; color: #aaa; font-weight: 500; }
.elgezeera-cart-summary__trust { margin: 15px 0 0; font-size: 12px; color: #aaa; text-align: center; }
.elgezeera-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 25px;
    padding: 16px 24px;
    background: var(--elg-gold);
    color: var(--elg-dark);
    border-radius: var(--elg-radius);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all var(--elg-transition);
    border: none;
    cursor: pointer;
}
.elgezeera-checkout-btn:hover {
    background: #fff;
    color: var(--elg-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}
.elgezeera-checkout-btn svg { transform: scaleX(-1); transition: transform var(--elg-transition); }
.elgezeera-checkout-btn:hover svg { transform: scaleX(-1) translateX(-4px); }
/* 2.11 End */

/* 2.12 السلة الفارغة (Empty Cart) */
.elgezeera-empty-cart {
    background: var(--elg-card);
    border-radius: var(--elg-radius-lg);
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--elg-shadow);
    max-width: 520px;
    margin: 0 auto;
}
.elgezeera-empty-cart__icon { color: var(--elg-text-mute); opacity: 0.4; margin-bottom: 24px; }
.elgezeera-empty-cart h2 { font-size: 24px; font-weight: 800; color: var(--elg-text); margin: 0 0 12px; }
.elgezeera-empty-cart p { font-size: 15px; color: var(--elg-text-soft); margin: 0 0 32px; }
.elgezeera-empty-cart .elgezeera-checkout-btn { max-width: 260px; margin: 0 auto; }
/* 2.12 End */

/* 2.13 المودال (Modal) */
.elgezeera-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.elgezeera-modal.is-open { display: flex; animation: elgezeera-fade-in 250ms ease; }
@keyframes elgezeera-fade-in { from { opacity: 0; } to { opacity: 1; } }
.elgezeera-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.elgezeera-modal__content {
    position: relative;
    background: #fff;
    border-radius: var(--elg-radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: elgezeera-slide-up 300ms ease;
    direction: rtl;
}
@keyframes elgezeera-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.elgezeera-modal__close {
    position: absolute;
    top: 15px;
    inset-inline-start: 15px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--elg-text);
    border: 1px solid var(--elg-border);
    cursor: pointer;
    transition: all var(--elg-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.elgezeera-modal__close:hover { background: var(--elg-danger); color: #fff; border-color: var(--elg-danger); }
.elgezeera-modal__body { padding: 40px; }
@media (max-width: 640px) {
    .elgezeera-modal__body { padding: 25px 20px; }
    .elgezeera-modal__content { max-height: 95vh; }
}
/* 2.13 End */

/* 2.14 محتوى المودال (Loading & Product) */
.elgezeera-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    color: var(--elg-text-soft);
    font-size: 14px;
}
.elgezeera-spin { animation: elgezeera-spin 1s linear infinite; color: var(--elg-gold); }
@keyframes elgezeera-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.elgezeera-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 640px) {
    .elgezeera-pm { grid-template-columns: 1fr; gap: 20px; }
}
.elgezeera-pm__image { background: #f8f9fa; border-radius: var(--elg-radius); padding: 20px; text-align: center; overflow: hidden; }
.elgezeera-pm__image img { width: 100%; height: auto; max-height: 350px; object-fit: contain; display: block; }
.elgezeera-pm__details { display: flex; flex-direction: column; gap: 15px; }
.elgezeera-pm__title { font-size: 22px; font-weight: 800; color: var(--elg-text); margin: 0; line-height: 1.4; }
.elgezeera-pm__desc { font-size: 14px; color: var(--elg-text-soft); line-height: 1.8; margin: 0; }
.elgezeera-pm__actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.elgezeera-pm__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--elg-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--elg-transition);
    border: none;
    flex: 1;
    min-width: 150px;
}
.elgezeera-pm__btn--primary { background: var(--elg-gold); color: var(--elg-dark); }
.elgezeera-pm__btn--primary:hover { background: var(--elg-gold-dark); color: #fff; transform: translateY(-1px); }
.elgezeera-pm__btn--secondary { background: transparent; color: var(--elg-text); border: 2px solid var(--elg-border); }
.elgezeera-pm__btn--secondary:hover { border-color: var(--elg-gold); color: var(--elg-gold-dark); }
body.elgezeera-modal-open { overflow: hidden; }
/* 2.14 End */
/* ========================================================================== */
/* ============================ نهاية صفحة السلة ============================ */


/* ==========================================================================
   🏪 3. CATEGORY PAGES (صفحات التصنيفات) - 3 في الصف (قوة قصوى)
   ========================================================================== */

/* 3.1 الحاوية الرئيسية */
.tax-product_cat .site-main,
.tax-product_cat main {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 30px 20px 60px !important;
    background: #fafbfc;
}
/* 3.1 End */

/* 3.2 العنوان والـ Breadcrumb */
.woocommerce-products-header {
    text-align: right !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #d4af37;
}
.woocommerce-products-header .page-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px;
}
/* 3.2 End */

/* 3.3 صندوق الوصف - تصميم أنيق ومختصر */
.term-description {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 25px 30px !important;
    margin: 0 auto 30px !important;
    max-width: 100% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    border: 1px solid #eef0f3 !important;
    border-right: 4px solid #d4af37 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #444 !important;
    text-align: right;
}
.term-description p { margin: 0 0 10px 0 !important; }
.term-description p:last-child { margin: 0 !important; }
.term-description ul { margin: 10px 0 !important; padding-right: 20px !important; }
.term-description li { margin-bottom: 8px !important; list-style-type: disc !important; color: #444 !important; }
/* 3.3 End */

/* 3.4 شريط الترتيب والعدد */
.woocommerce-result-count {
    font-size: 14px !important;
    color: #777 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}
.woocommerce-ordering select {
    padding: 8px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    cursor: pointer !important;
}
/* 3.4 End */

/* 3.5 شبكة المنتجات - 3 في الصف (القوة القصوى) */
html body ul.products,
html body ul.products.elementor-grid,
html body .elementor-widget-woocommerce-products ul.products,
html body .elementor-widget-wc-archive-products ul.products,
html body ul.products[class*="columns-"] {
    --grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body ul.products::before,
html body ul.products::after {
    display: none !important;
    content: none !important;
}
/* 3.5 End */

/* 3.6 كارت المنتج - نظيف وبسيط */
html body ul.products > li.product,
html body ul.products[class*="columns-"] > li.product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    background: #fff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #eef0f3 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

html body ul.products > li.product:hover,
html body ul.products[class*="columns-"] > li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    border-color: #d4af37 !important;
}

html body ul.products > li.product a img,
html body ul.products[class*="columns-"] > li.product a img {
    width: 100% !important;
    height: 260px !important;
    object-fit: contain !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
    margin: 0 !important;
}

html body ul.products > li.product .woocommerce-loop-product__title,
html body ul.products[class*="columns-"] > li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    padding: 15px 15px 10px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    text-align: right !important;
    height: auto !important;
    min-height: 60px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

html body ul.products > li.product .button,
html body ul.products > li.product .add_to_cart_button,
html body ul.products[class*="columns-"] > li.product .button,
html body ul.products[class*="columns-"] > li.product .add_to_cart_button {
    margin: auto 15px 15px !important;
    background: #1a1a2e !important;
    color: #fff !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: block !important;
    width: calc(100% - 30px) !important;
}

html body ul.products > li.product .button:hover,
html body ul.products[class*="columns-"] > li.product .button:hover {
    background: #d4af37 !important;
    color: #1a1a2e !important;
}
/* 3.6 End */

/* 3.7 ترقيم الصفحات */
.woocommerce nav.woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
}
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 8px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 10px !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1px solid #eef0f3 !important;
    transition: all 0.3s !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #d4af37 !important;
    color: #fff !important;
    border-color: #d4af37 !important;
}
/* 3.7 End */

/* 3.8 استجابة الشاشات */
@media (max-width: 992px) {
    html body ul.products,
    html body ul.products.elementor-grid,
    html body ul.products[class*="columns-"] {
        --grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .term-description {
        padding: 20px !important;
        font-size: 14px !important;
    }
}
@media (max-width: 640px) {
    html body ul.products,
    html body ul.products.elementor-grid,
    html body ul.products[class*="columns-"] {
        --grid-template-columns: 1fr !important;
        grid-template-columns: 1fr !important;
    }
    .woocommerce-products-header .page-title {
        font-size: 22px !important;
    }
}
/* 3.8 End */
/* ========================================================================== */
/* ========================== نهاية صفحات التصنيفات ========================= */


/* ==========================================================================
   🎯 4. Hide WooCommerce Default Elements (إخفاء العناصر الافتراضية)
   ========================================================================== */
.wc-proceed-to-checkout,
.checkout-button,
a.checkout-button,
.cart_totals,
.cart_totals .button,
.cart_totals a.button { display: none !important; }

.woocommerce-Price-amount,
.amount,
.product-subtotal,
.product-price { display: none !important; }

.elgezeera-cart-form button[name="update_cart"] { display: none !important; }
/* 4 End */
/* ========================================================================== */


/* ==========================================================================
   📦 5. SINGLE PRODUCT PAGE (صفحة المنتج الفردي)
   ========================================================================== */

/* 5.1 الحاوية الرئيسية */
.elgezeera-product-page {
    background: var(--elg-bg);
    min-height: 60vh;
    padding: 40px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--elg-text);
    direction: rtl;
}
.elgezeera-product-container {
    width: min(calc(100% - 40px), 1200px);
    margin: 0 auto;
}
/* 5.1 End */

/* 5.2 شبكة المنتج (صورة + تفاصيل) */
.elgezeera-product-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 🔒 الصورة على الشمال، الكلام على اليمين */
    direction: ltr; /* بنجبر الاتجاه يبقى LTR عشان نظبط الترتيب */
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: var(--elg-radius-lg);
    box-shadow: var(--elg-shadow);
    margin-bottom: 40px;
}
.elgezeera-product-details {
    direction: rtl; /* نرجع الكلام عربي تاني */
    text-align: right;
}
/* 5.2 End */

/* 5.3 الصورة الرئيسية */
.elgezeera-product-gallery__main {
    background: #f8f9fa;
    border-radius: var(--elg-radius);
    padding: 20px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--elg-border);
}
.elgezeera-product-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
/* 5.3 End */

/* 5.4 الصور الصغيرة (Gallery Thumbs) */
.elgezeera-product-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}
.elgezeera-product-gallery__thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--elg-transition);
}
.elgezeera-product-gallery__thumbs img:hover,
.elgezeera-product-gallery__thumbs img.is-active {
    border-color: var(--elg-gold);
}
/* 5.4 End */

/* 5.5 المسار (Breadcrumb) */
.elgezeera-product-breadcrumb {
    font-size: 14px;
    color: var(--elg-text-soft);
    margin-bottom: 20px;
}
.elgezeera-product-breadcrumb a {
    color: var(--elg-gold);
    text-decoration: none;
    font-weight: 600;
}
.elgezeera-product-breadcrumb a:hover { color: var(--elg-gold-dark); }
.elgezeera-product-breadcrumb span { margin: 0 8px; color: var(--elg-text-mute); }
/* 5.5 End */

/* 5.6 اسم المنتج (Title) */
.elgezeera-product-title {
    font-size: 24px; /* 🔒 صغرنا الخط شوية */
    font-weight: 800;
    color: var(--elg-text);
    margin: 0 0 10px;
    line-height: 1.4;
}
.elgezeera-product-sku {
    font-size: 14px;
    color: var(--elg-text-mute);
    margin-bottom: 20px;
}
/* 5.6 End */

/* 5.7 الوصف القصير */
.elgezeera-product-short-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--elg-text-soft);
    margin-bottom: 30px;
}
/* 5.7 End */

/* 5.8 أزرار الكمية والإضافة */
.elgezeera-product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-direction: row-reverse; /* 🔒 الزرار على اليمين والكمية على الشمال */
    justify-content: flex-end; /* 🔒 يزقهم على اليمين */
}
.elgezeera-product-qty .quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--elg-border);
    border-radius: var(--elg-radius);
    overflow: hidden;
    background: #fff;
}
.elgezeera-product-qty input[type="number"] {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--elg-text);
    background: #fff;
    outline: none;
}
.elgezeera-product-qty input::-webkit-outer-spin-button,
.elgezeera-product-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.elgezeera-product-add-btn {
    background: var(--elg-dark);
    color: #fff;
    border: none;
    padding: 0 40px;
    height: 50px;
    border-radius: var(--elg-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--elg-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.elgezeera-product-add-btn:hover { background: var(--elg-gold); color: var(--elg-dark); }
/* 5.8 End */

/* 5.9 التصنيفات */
.elgezeera-product-meta {
    font-size: 14px;
    color: var(--elg-text-soft);
    margin-bottom: 20px;
}
.elgezeera-product-meta__label { font-weight: 700; color: var(--elg-text); }
.elgezeera-product-meta a { color: var(--elg-gold); text-decoration: none; }
.elgezeera-product-meta a:hover { color: var(--elg-gold-dark); }
/* 5.9 End */

/* 5.10 الوصف الكامل */
.elgezeera-product-full-desc {
    background: #fff;
    padding: 40px;
    border-radius: var(--elg-radius-lg);
    box-shadow: var(--elg-shadow);
    margin-bottom: 40px;
}
.elgezeera-product-full-desc__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--elg-text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--elg-gold);
}
.elgezeera-product-full-desc__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--elg-text-soft);
}
/* 5.10 End */

/* 5.11 منتجات ذات صلة */
.elgezeera-related-products { margin-top: 40px; }
.elgezeera-related-products__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--elg-text);
    margin-bottom: 25px;
}
.elgezeera-related-products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.elgezeera-related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: var(--elg-radius);
    overflow: hidden;
    border: 1px solid var(--elg-border);
    transition: all var(--elg-transition);
}
.elgezeera-related-card:hover { box-shadow: var(--elg-shadow); transform: translateY(-4px); }
.elgezeera-related-card__image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.elgezeera-related-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.elgezeera-related-card__body { padding: 15px; text-align: center; }
.elgezeera-related-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--elg-text);
    margin: 0 0 15px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.elgezeera-related-card__btn {
    display: inline-block;
    background: var(--elg-dark);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--elg-transition);
}
.elgezeera-related-card:hover .elgezeera-related-card__btn {
    background: var(--elg-gold);
    color: var(--elg-dark);
}
/* 5.11 End */

/* 5.12 استجابة الشاشات (Responsive) */
@media (max-width: 900px) {
    .elgezeera-product-grid {
        grid-template-columns: 1fr;
        direction: rtl; /* نرجع العربي في الموبايل */
        gap: 30px;
        padding: 20px;
    }
    .elgezeera-product-gallery__main { height: 350px; }
    .elgezeera-related-products ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .elgezeera-related-products ul.products { grid-template-columns: 1fr; }
    .elgezeera-product-title { font-size: 22px; }
    .elgezeera-product-actions { flex-direction: column; align-items: stretch; }
    .elgezeera-product-add-btn,
    .elgezeera-product-qty { width: 100%; }
    .elgezeera-product-qty .quantity { justify-content: center; }
}
/* 5.12 End */
/* ========================================================================== */
/* ======================= نهاية صفحة المنتج الفردي ========================= */
/* ========================================================================== */


/* ==========================================================================
   🔍 6. Live Search (البحث المباشر)
   ========================================================================== */
.elg-live-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--elg-border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 5px;
}
.elg-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.elg-search-item:hover { background: var(--elg-gold-soft); }
.elg-search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
}
.elg-search-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--elg-text);
    line-height: 1.4;
}
.elg-search-empty {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
/* 6 End */
/* 🔒 تحديد عرض صفحة التصنيفات وتوسيطها */
.tax-product_cat .site-main,
.tax-product_cat main,
.woocommerce-page .site-main,
.woocommerce-page main {
    max-width: 1280px !important; /* عرض مريح للعين */
    margin: 0 auto !important;     /* توسيط الصفحة */
    padding: 40px 20px !important;
    background: #fafbfc;
}
/* ========================================================================== */

/* ==========================================================================
   نهاية الملف
   ========================================================================== */