/**
 * Quick View modal — light + dark mode (mfp loads outside main content flow).
 */

/* Light mode */
.mfp-ajax-holder .mfp-content .ajax_quick_view .product_title a {
    color: #292b2c;
}

.mfp-ajax-holder .mfp-content .ajax_quick_view .product_description,
.mfp-ajax-holder .mfp-content .ajax_quick_view .pr_desc,
.mfp-ajax-holder .mfp-content .ajax_quick_view .pr_desc p {
    color: #687188;
}

.mfp-ajax-holder .mfp-content .ajax_quick_view .attribute-name,
.mfp-ajax-holder .mfp-content .ajax_quick_view .product-attributes label,
.mfp-ajax-holder .mfp-content .ajax_quick_view .number-items-available {
    color: #292b2c;
}

.mfp-ajax-holder .mfp-content .ajax_quick_view .product-meta {
    color: #687188;
}

.mfp-ajax-holder .mfp-content .ajax_quick_view .product-meta a {
    color: #292b2c;
}

.mfp-ajax-holder .mfp-content .ajax_quick_view .product-meta a:hover {
    color: var(--color-1st, #fd6a00);
}

/* Dark mode — يتغلب على style.css (#fff) */
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view {
    background-color: var(--ahlmall-dm-surface, rgb(47, 48, 49)) !important;
    color: var(--ahlmall-dm-text, #e4e6eb) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content {
    background: transparent !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_title a {
    color: var(--ahlmall-dm-heading, #f5f6f7) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_description,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .pr_desc,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .pr_desc p,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .pr_detail {
    color: var(--ahlmall-dm-text-muted, #b0b3b8) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .attribute-name,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product-attributes label,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .number-items-available {
    color: var(--ahlmall-dm-heading, #f5f6f7) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_price .price {
    color: var(--color-1st, #fd6a00) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_price del {
    color: #9ca3af !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view hr {
    border-color: var(--ahlmall-dm-border, rgba(255, 255, 255, 0.1)) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product-meta,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product-meta a {
    color: var(--ahlmall-dm-text-muted, #b0b3b8) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product-meta a:hover {
    color: var(--color-1st, #fd6a00) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .rating_num {
    color: var(--ahlmall-dm-text-muted, #b0b3b8) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .attribute-swatch-item,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .text-swatch li span,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .ahlmall-text-swatch__label {
    background: var(--ahlmall-dm-surface-2, rgb(55, 56, 58)) !important;
    border-color: var(--ahlmall-dm-border, rgba(255, 255, 255, 0.1)) !important;
    color: var(--ahlmall-dm-heading, #f5f6f7) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-close {
    color: var(--ahlmall-dm-heading, #f5f6f7) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-close:hover {
    color: var(--color-1st, #fd6a00) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_gallery_item,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_gallery_item button {
    border-color: var(--ahlmall-dm-border, rgba(255, 255, 255, 0.1)) !important;
}

html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_gallery_item.active,
html.ahlmall-dark-mode .mfp-ajax-holder .mfp-content .ajax_quick_view .product_gallery_item button.active {
    border-color: var(--color-1st, #fd6a00) !important;
}
