/* Final storefront dark-mode compatibility layer for legacy components. */
[data-theme="dark"] .product-img,
[data-theme="dark"] .product-image,
[data-theme="dark"] .product-offer,
[data-theme="dark"] .vendors-card-top,
[data-theme="dark"] .home-vendor-top,
[data-theme="dark"] .shop-sidebar-header,
[data-theme="dark"] .mobile-filter-header,
[data-theme="dark"] .vendors-empty-box,
[data-theme="dark"] .cart-empty-state,
[data-theme="dark"] .co-empty-state {
    background: var(--theme-surface-muted) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .product-name,
[data-theme="dark"] .product-title,
[data-theme="dark"] .prod-title,
[data-theme="dark"] .prod-title a,
[data-theme="dark"] .section-title,
[data-theme="dark"] .home-section-title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .cart-product-name,
[data-theme="dark"] .co-section-title,
[data-theme="dark"] .co-vendor-name,
[data-theme="dark"] .co-address-title,
[data-theme="dark"] .co-order-vendor-name {
    color: var(--theme-text-strong) !important;
}

[data-theme="dark"] .product-vendor-info,
[data-theme="dark"] .product-rating-count,
[data-theme="dark"] .product-discount-price,
[data-theme="dark"] .vendors-owner-name,
[data-theme="dark"] .vendors-description,
[data-theme="dark"] .cart-product-meta,
[data-theme="dark"] .co-address-detail,
[data-theme="dark"] .text-muted {
    color: var(--theme-text-muted) !important;
}

[data-theme="dark"] .product-item,
[data-theme="dark"] .modern-prod-card,
[data-theme="dark"] .vendors-card,
[data-theme="dark"] .home-vendor-card,
[data-theme="dark"] .cart-table-wrap,
[data-theme="dark"] .cart-summary-card,
[data-theme="dark"] .cart-coupon-card,
[data-theme="dark"] .co-section-card,
[data-theme="dark"] .co-address-card,
[data-theme="dark"] .fs-card {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow-sm);
}

[data-theme="dark"] .product-item:hover,
[data-theme="dark"] .vendors-card:hover,
[data-theme="dark"] .home-vendor-card:hover,
[data-theme="dark"] .fs-card:hover {
    box-shadow: var(--theme-shadow-md);
}

[data-theme="dark"] .product-action .btn,
[data-theme="dark"] .prod-action-btn,
[data-theme="dark"] .cart-qty-btn,
[data-theme="dark"] .co-qty-btn,
[data-theme="dark"] .shop-reset-btn,
[data-theme="dark"] .shop-mobile-filter-btn {
    background-color: var(--theme-surface-muted) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
}

[data-theme="dark"] .product-action .btn:hover,
[data-theme="dark"] .prod-action-btn:hover,
[data-theme="dark"] .cart-qty-btn:hover,
[data-theme="dark"] .co-qty-btn:hover,
[data-theme="dark"] .shop-reset-btn:hover,
[data-theme="dark"] .shop-mobile-filter-btn:hover {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-on-primary) !important;
}

[data-theme="dark"] .pagination .page-link,
[data-theme="dark"] .page-link {
    background-color: var(--theme-surface-muted) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .live-search-clear-btn {
    background-color: var(--theme-surface-raised) !important;
    border-color: var(--theme-border-strong) !important;
    color: var(--theme-text-muted) !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-item:not(.text-danger):not(.text-primary),
[data-theme="dark"] .amz-dropdown-menu a:not(.dropdown-item):not(.text-primary):not(.btn),
[data-theme="dark"] .amz-dropdown-menu div,
[data-theme="dark"] .amz-panel-link,
[data-theme="dark"] .amz-signin-help {
    color: var(--theme-text) !important;
}

[data-theme="dark"] .amz-dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .amz-dropdown-menu a:hover {
    background-color: var(--theme-surface-muted) !important;
    color: var(--theme-text-strong) !important;
}

[data-theme="dark"] .amz-newsletter-label {
    color: var(--theme-text-muted) !important;
}

.amz-newsletter-label {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 10px;
}

.amz-newsletter-message {
    font-size: 12px;
    margin-bottom: 10px;
    border: 0;
}

[data-theme="dark"] .amz-newsletter-message {
    background-color: var(--theme-surface-muted) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
}

[data-theme="dark"] .amz-footer a,
[data-theme="dark"] .amz-footer-col a,
[data-theme="dark"] .amz-footer-bottom a {
    color: rgba(248, 250, 252, .76);
}

[data-theme="dark"] .amz-footer a:hover,
[data-theme="dark"] .amz-footer-col a:hover,
[data-theme="dark"] .amz-footer-bottom a:hover {
    color: #fff;
}

[data-theme="dark"] .custom-control-input:checked ~ .custom-control-label::before,
[data-theme="dark"] input[type="checkbox"]:checked,
[data-theme="dark"] input[type="radio"]:checked {
    accent-color: var(--theme-primary);
}

[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-secondary {
    background-color: var(--theme-surface-muted) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--theme-surface-raised) !important;
    color: var(--theme-text-strong) !important;
}
