/*
 * تم‌های فروشگاه کمپین (جدا از ترجیح روز/شب کاربر).
 * attribute: html[data-store-theme="<id>"] — فقط وقتی تم غیر از default باشد.
 * روی لایه‌های مشترک صفحات مشتری (_Layout / _LayoutProduct / _LayoutOtherPage) اعمال می‌شود.
 *
 * افزودن تم جدید:
 *  1) تعریف در StoreThemeCatalog
 *  2) بلوک CSS با همان شناسه در این فایل
 */

/* ===== black-friday ===== */
html[data-store-theme="black-friday"],
html[data-store-theme="black-friday"] body {
    background-color: #1c1c1e;
    --cw-store-bg: #1c1c1e;
    --cw-store-surface: #2a2a2e;
    --cw-store-surface-2: #323238;
    --cw-store-title: #f3f0e8;
    --cw-store-accent: #c9a84c;
    --cw-store-accent-soft: #d4b96a;
    --cw-store-muted: #b8b4a8;
    --cw-store-chip-text: #f3f0e8;
    --cw-store-border: #3a3a40;
    --cw-store-on-accent: #1a160c;
}

html[data-store-theme="black-friday"] #preloader {
    background-color: var(--cw-store-bg);
}

html[data-store-theme="black-friday"] .header-area,
html[data-store-theme="black-friday"] .footer-nav-area {
    background-color: #141416;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* لوگوی هدر روی پس‌زمینهٔ تیره خوانا شود */
html[data-store-theme="black-friday"] .logo-wrapper img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

html[data-store-theme="black-friday"] h1,
html[data-store-theme="black-friday"] h2,
html[data-store-theme="black-friday"] h3,
html[data-store-theme="black-friday"] h4,
html[data-store-theme="black-friday"] h5,
html[data-store-theme="black-friday"] h6,
html[data-store-theme="black-friday"] .section-heading h6,
html[data-store-theme="black-friday"] .brand-name,
html[data-store-theme="black-friday"] .cat-name,
html[data-store-theme="black-friday"] .page-heading,
html[data-store-theme="black-friday"] .page-heading h6 {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn) {
    color: var(--cw-store-accent-soft);
}

html[data-store-theme="black-friday"] .section-heading h6 i,
html[data-store-theme="black-friday"] .flash-sale-wrapper .section-heading h6 i {
    color: var(--cw-store-accent);
}

html[data-store-theme="black-friday"] .cat-all-link {
    color: var(--cw-store-accent-soft) !important;
}

/* —— فیلتر قیمت / دکمه‌های تاکیدی —— */
html[data-store-theme="black-friday"] .price-chip--accent,
html[data-store-theme="black-friday"] a.price-chip.price-chip--accent,
html[data-store-theme="black-friday"] .btn-warning,
html[data-store-theme="black-friday"] .flash-sale-heading-badge,
html[data-store-theme="black-friday"] .product-buy-btn.btn-warning,
html[data-store-theme="black-friday"] .product-buy-btn {
    background: var(--cw-store-accent) !important;
    background-color: var(--cw-store-accent) !important;
    border-color: #a8892f !important;
    color: var(--cw-store-on-accent) !important;
}

html[data-store-theme="black-friday"] .price-chip--accent i,
html[data-store-theme="black-friday"] a.price-chip.price-chip--accent i {
    color: var(--cw-store-on-accent) !important;
    opacity: 1;
}

html[data-store-theme="black-friday"] .price-chip,
html[data-store-theme="black-friday"] a.price-chip {
    background: var(--cw-store-surface) !important;
    background-color: var(--cw-store-surface) !important;
    border: 1px solid rgba(201, 168, 76, 0.55) !important;
    color: #f7f3e8 !important;
    box-shadow: none !important;
}

html[data-store-theme="black-friday"] .price-chip i,
html[data-store-theme="black-friday"] a.price-chip i {
    color: var(--cw-store-accent-soft) !important;
    opacity: 1;
}

html[data-store-theme="black-friday"] .price-chip:hover,
html[data-store-theme="black-friday"] a.price-chip:hover {
    border-color: var(--cw-store-accent) !important;
    background: var(--cw-store-surface-2) !important;
    color: #fff !important;
}

html[data-store-theme="black-friday"] a.price-chip.price-chip--accent:hover,
html[data-store-theme="black-friday"] .product-buy-btn:hover,
html[data-store-theme="black-friday"] .product-buy-btn.btn-warning:hover {
    background: #d4b96a !important;
    color: var(--cw-store-on-accent) !important;
}

/* —— کارت‌های محصول / دسته / برند —— */
html[data-store-theme="black-friday"] .card,
html[data-store-theme="black-friday"] .flash-sale-card,
html[data-store-theme="black-friday"] .top-product-card,
html[data-store-theme="black-friday"] .weekly-product-card,
html[data-store-theme="black-friday"] .featured-product-card,
html[data-store-theme="black-friday"] .featured-modern-card,
html[data-store-theme="black-friday"] .catagory-card,
html[data-store-theme="black-friday"] .cat-card,
html[data-store-theme="black-friday"] .brand-logo-card {
    background: var(--cw-store-surface) !important;
    background-color: var(--cw-store-surface) !important;
    border-color: var(--cw-store-border) !important;
    box-shadow: none !important;
}

html[data-store-theme="black-friday"] .cat-card:hover,
html[data-store-theme="black-friday"] .featured-modern-card:hover {
    border-color: rgba(201, 168, 76, 0.45) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-store-theme="black-friday"] .cat-thumb {
    background: linear-gradient(180deg, #3a3a40, #2a2a2e) !important;
    border-color: #4a4a52 !important;
}

html[data-store-theme="black-friday"] .featured-modern-thumb {
    background: linear-gradient(180deg, #3a3a42, #26262c) !important;
    border-color: #4a4a52 !important;
}

html[data-store-theme="black-friday"] .flash-sale-card .product-title,
html[data-store-theme="black-friday"] .top-product-card .product-title,
html[data-store-theme="black-friday"] .weekly-product-card .product-title,
html[data-store-theme="black-friday"] .featured-product-card .product-title,
html[data-store-theme="black-friday"] .featured-modern-title {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .flash-sale-card .sale-price,
html[data-store-theme="black-friday"] .top-product-card .sale-price,
html[data-store-theme="black-friday"] .weekly-product-card .product-description .sale-price,
html[data-store-theme="black-friday"] .featured-product-card .product-description .sale-price,
html[data-store-theme="black-friday"] .featured-modern-price,
html[data-store-theme="black-friday"] .product-price-cluster .sale-price,
html[data-store-theme="black-friday"] .sale-price {
    color: var(--cw-store-accent-soft) !important;
}

html[data-store-theme="black-friday"] .real-price,
html[data-store-theme="black-friday"] .flash-sale-card .real-price,
html[data-store-theme="black-friday"] .featured-modern-price .real-price,
html[data-store-theme="black-friday"] .product-price-was {
    color: var(--cw-store-muted) !important;
}

html[data-store-theme="black-friday"] .flash-sale-wrapper .sales-end-timer > li,
html[data-store-theme="black-friday"] .product-flash-timer.sales-end-timer > li,
html[data-store-theme="black-friday"] .sales-end-timer > li {
    background: rgba(201, 168, 76, 0.16);
    border: 1px solid rgba(201, 168, 76, 0.45);
    color: var(--cw-store-accent-soft);
}

html[data-store-theme="black-friday"] .flash-sale-wrapper .sales-end-timer > li > span:not(.timer-label),
html[data-store-theme="black-friday"] .flash-sale-wrapper .sales-end-timer > li > .timer-label,
html[data-store-theme="black-friday"] .product-flash-timer.sales-end-timer > li > span:not(.timer-label),
html[data-store-theme="black-friday"] .product-flash-timer.sales-end-timer > li > .timer-label,
html[data-store-theme="black-friday"] .sales-end-timer > li > span:not(.timer-label),
html[data-store-theme="black-friday"] .sales-end-timer > li > .timer-label {
    color: var(--cw-store-accent-soft);
}

html[data-store-theme="black-friday"] .usp-chip {
    background-color: var(--cw-store-surface);
    border-color: var(--cw-store-border);
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .usp-chip .usp-txt b {
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .usp-chip .usp-txt span {
    color: var(--cw-store-muted);
}

html[data-store-theme="black-friday"] .usp-ico {
    color: var(--cw-store-accent);
    background: linear-gradient(180deg, #3a3a42, #2a2a2e);
    border-color: #4a4a52;
    box-shadow: none;
}

html[data-store-theme="black-friday"] .top-search-form form .form-control {
    background-color: #2a2a2e;
    border-color: var(--cw-store-border);
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .night-mode-view-card,
html[data-store-theme="black-friday"] .home-trust-badges {
    background-color: var(--cw-store-surface);
    color: var(--cw-store-title);
}

/* —— برندها —— */
html[data-store-theme="black-friday"] .brand-logo-card,
html[data-store-theme="black-friday"] .brand-logo-frame {
    background-color: var(--cw-store-surface-2) !important;
    border-color: var(--cw-store-border) !important;
}

html[data-store-theme="black-friday"] .brand-logo-fallback {
    color: var(--cw-store-title);
    font-size: 9px;
    letter-spacing: 0;
    hyphens: auto;
}

html[data-store-theme="black-friday"] .flash-sale-card .product-thumbnail,
html[data-store-theme="black-friday"] .flash-sale-card img {
    background-color: #f5f5f5;
    border-radius: 10px;
}

html[data-store-theme="black-friday"] .brand-name {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .home-image-cta__frame {
    background: transparent;
    box-shadow: none;
}

/* ========== دسته‌بندی / جست‌وجو / فیلترها ========== */
html[data-store-theme="black-friday"] .filter-nav {
    background: var(--cw-store-bg) !important;
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .catagory-sidebar-area {
    background: transparent !important;
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .filter-header {
    background: #141416 !important;
    color: var(--cw-store-title) !important;
    border-bottom: 1px solid var(--cw-store-border);
}

html[data-store-theme="black-friday"] .widget-title,
html[data-store-theme="black-friday"] .form-check-label,
html[data-store-theme="black-friday"] .filters-form label,
html[data-store-theme="black-friday"] .filters-form .widget-desc {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .form-check-input {
    background-color: var(--cw-store-surface-2);
    border-color: rgba(201, 168, 76, 0.55);
}

html[data-store-theme="black-friday"] .form-check-input:checked {
    background-color: var(--cw-store-accent);
    border-color: #a8892f;
}

html[data-store-theme="black-friday"] .filters-form .form-control,
html[data-store-theme="black-friday"] .catagory-sidebar-area .form-control,
html[data-store-theme="black-friday"] .filter-nav .form-control {
    background-color: var(--cw-store-surface) !important;
    border-color: var(--cw-store-border) !important;
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .filters-form .form-control option,
html[data-store-theme="black-friday"] .catagory-sidebar-area .form-control option {
    background-color: var(--cw-store-surface);
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .filter-option,
html[data-store-theme="black-friday"] .filter-option a,
html[data-store-theme="black-friday"] .back-button a {
    color: var(--cw-store-accent-soft) !important;
}

html[data-store-theme="black-friday"] .mobile-apply-bar {
    background: #141416 !important;
    border-top-color: var(--cw-store-border) !important;
}

html[data-store-theme="black-friday"] .mobile-apply-bar .btn-primary,
html[data-store-theme="black-friday"] .mobile-apply-bar .btn-warning,
html[data-store-theme="black-friday"] .filters-form .btn-warning,
html[data-store-theme="black-friday"] .filters-form button[type="submit"] {
    background: var(--cw-store-accent) !important;
    border-color: #a8892f !important;
    color: var(--cw-store-on-accent) !important;
}

html[data-store-theme="black-friday"] .sidenav-black-overlay {
    background: rgba(0, 0, 0, 0.62);
}

/* ========== جزئیات محصول: قیمت، تایمر، خرید ========== */
html[data-store-theme="black-friday"] .product-title-meta-data,
html[data-store-theme="black-friday"] .product-title-meta-data.bg-white,
html[data-store-theme="black-friday"] .flash-sale-panel,
html[data-store-theme="black-friday"] .flash-sale-panel.bg-white,
html[data-store-theme="black-friday"] .cart-form-wrapper,
html[data-store-theme="black-friday"] .cart-form-wrapper.bg-white,
html[data-store-theme="black-friday"] .p-specification,
html[data-store-theme="black-friday"] .p-specification.bg-white,
html[data-store-theme="black-friday"] .rating-and-review-wrapper,
html[data-store-theme="black-friday"] .rating-and-review-wrapper.bg-white,
html[data-store-theme="black-friday"] .selection-panel,
html[data-store-theme="black-friday"] .selection-panel.bg-white {
    background-color: var(--cw-store-surface) !important;
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .product-title-meta-data::after {
    background: var(--cw-store-border);
}

html[data-store-theme="black-friday"] .flash-sale-panel[data-flash-sale-panel],
html[data-store-theme="black-friday"] .product-buy-cta {
    border-top-color: var(--cw-store-border) !important;
    background-color: var(--cw-store-surface) !important;
}

html[data-store-theme="black-friday"] .flash-sale-panel[data-flash-sale-panel] > .container::before,
html[data-store-theme="black-friday"] .product-buy-cta > .container::before {
    background: var(--cw-store-border) !important;
}

html[data-store-theme="black-friday"] .flash-sale-remaining-label {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .flash-sale-stock-msg {
    color: var(--cw-store-muted) !important;
}

html[data-store-theme="black-friday"] .product-discount-badge {
    background: var(--cw-store-accent) !important;
    color: var(--cw-store-on-accent) !important;
}

html[data-store-theme="black-friday"] .p-specification h6,
html[data-store-theme="black-friday"] .p-specification p,
html[data-store-theme="black-friday"] .p-specification li,
html[data-store-theme="black-friday"] .p-specification span {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .p-wishlist-share a {
    color: var(--cw-store-accent-soft) !important;
}

html[data-store-theme="black-friday"] .product-catagories a {
    color: var(--cw-store-accent-soft) !important;
}

/* ========== سبد خرید و صفحات مشتری مرتبط ========== */
html[data-store-theme="black-friday"] .cart-item {
    border-bottom-color: var(--cw-store-border) !important;
}

html[data-store-theme="black-friday"] .cart-title,
html[data-store-theme="black-friday"] .cart-table a,
html[data-store-theme="black-friday"] .cart-table table a {
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .cart-table table tbody tr {
    border-color: var(--cw-store-border);
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .cart-table .qty-text,
html[data-store-theme="black-friday"] .form-control {
    background-color: var(--cw-store-surface) !important;
    border-color: var(--cw-store-border) !important;
    color: var(--cw-store-title) !important;
}

html[data-store-theme="black-friday"] .cart-form .quantity-button-handler {
    background-color: var(--cw-store-surface-2);
    color: var(--cw-store-title);
    border-color: var(--cw-store-border);
}

html[data-store-theme="black-friday"] .list-group-item {
    background-color: var(--cw-store-surface) !important;
    border-color: var(--cw-store-border) !important;
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .billing-information-title-card,
html[data-store-theme="black-friday"] .shipping-method-choose-title-card,
html[data-store-theme="black-friday"] .user-info-card,
html[data-store-theme="black-friday"] .user-data-card {
    background-color: var(--cw-store-surface) !important;
    color: var(--cw-store-title);
}

html[data-store-theme="black-friday"] .user-data-card .title,
html[data-store-theme="black-friday"] .user-info-card h5 {
    color: var(--cw-store-title) !important;
}

/*
 * فوتر بلک‌فرایدی: آیتم‌های غیرفعال خاموش، active روشن با درخشش طلایی.
 * همان :not(...)های قانون عمومی a تا specificity ببرد (وگرنه همه لینک‌ها یکرنگ طلایی می‌مانند).
 */
html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn) {
    color: rgba(184, 180, 168, 0.55);
    text-shadow: none;
    filter: none;
    transition: color 0.25s ease, text-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li a i {
    transition: filter 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn):hover,
html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn):focus {
    color: var(--cw-store-accent-soft);
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.35);
}

html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li.active a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn),
html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li.active a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn):hover,
html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li.active a:not(.btn):not(.price-chip):not(.cat-card):not(.product-buy-btn):focus {
    color: #f5e6b8;
    text-shadow:
        0 0 6px rgba(245, 230, 184, 0.95),
        0 0 14px rgba(201, 168, 76, 0.75),
        0 0 28px rgba(201, 168, 76, 0.4);
    filter: brightness(1.15);
}

html[data-store-theme="black-friday"] .footer-nav-area .suha-footer-nav ul li.active a i {
    transform: translateY(-1px) scale(1.08);
    text-shadow:
        0 0 8px rgba(245, 230, 184, 1),
        0 0 18px rgba(212, 185, 106, 0.9),
        0 0 32px rgba(201, 168, 76, 0.55);
    filter: drop-shadow(0 0 4px rgba(245, 230, 184, 0.85));
}

/* Favorites heart — Black Friday */
html[data-store-theme="black-friday"] .favorite-heart-btn {
    background: #2a2a2a;
    border-color: #3c3c3c;
    color: #f5e6c8; /* خالی — روشن روی زغالی */
    box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
html[data-store-theme="black-friday"] .favorite-heart-btn:hover,
html[data-store-theme="black-friday"] .favorite-heart-btn:focus {
    color: #fff4d6;
}
html[data-store-theme="black-friday"] .favorite-heart-btn.is-favorite,
html[data-store-theme="black-friday"] .favorite-heart-btn[aria-pressed="true"] {
    color: #f0d060; /* پُر — طلایی روشن */
}
html[data-store-theme="black-friday"] .favorite-heart-btn--product {
    background: #2a2a2a;
    border-color: #3c3c3c;
}
html[data-store-theme="black-friday"] .cw-favorite-toast {
    background: rgba(20, 20, 20, .94);
    border: 1px solid rgba(212, 185, 106, .35);
    color: #f5e6c8;
}
html[data-store-theme="black-friday"] .product-thumb-frame,
html[data-store-theme="black-friday"] .featured-modern-thumb-wrap.product-thumb-frame {
    background: linear-gradient(180deg, #1f1f1f, #151515) !important;
    border: 1px solid var(--cw-store-border, #333);
}
html[data-store-theme="black-friday"] .favorites-page-header .favorites-count-chip {
    color: var(--cw-store-title, #fff);
    background: rgba(255, 255, 255, .08);
}
