/* FlexExt Modern Theme - Site-Wide Dark Mode (Strict Explicit Toggle Only, Default Light) */
/* WCAG 2.2 AA Verified Contrast Pairs: #0b1220 / #0f172a / #1e293b surfaces with #f8fafc / #cbd5e1 / #60a5fa foregrounds */

html[data-bs-theme="dark"],
html.dark {
  color-scheme: dark;
  --bs-body-bg: #0b1220;
  --bs-body-bg-rgb: 11, 18, 32;
  --bs-body-color: #f8fafc;
  --bs-body-color-rgb: 248, 250, 252;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #cbd5e1;
  --bs-tertiary-color: #94a3b8;
  --bs-secondary-bg: #0f172a;
  --bs-tertiary-bg: #1e293b;
  --bs-border-color: #334155;
  --bs-border-color-translucent: rgba(148, 163, 184, 0.25);
  --bs-card-bg: #1e293b;
  --bs-card-cap-bg: #0f172a;
  --bs-card-color: #f8fafc;
  --bs-dropdown-bg: #1e293b;
  --bs-dropdown-color: #f8fafc;
  --bs-dropdown-border-color: #334155;
  --bs-dropdown-link-color: #f8fafc;
  --bs-dropdown-link-hover-bg: #334155;
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-modal-bg: #1e293b;
  --bs-modal-color: #f8fafc;
  --bs-list-group-bg: #1e293b;
  --bs-list-group-color: #f8fafc;
  --bs-list-group-border-color: #334155;
  --bs-link-color: #60a5fa;
  --bs-link-hover-color: #93c5fd;
  --flx-top-bg: #071936;
}

html[data-bs-theme="dark"] body,
html.dark body {
  background-color: #0b1220 !important;
  color: #f8fafc !important;
}

html[data-bs-theme="dark"] #container,
html[data-bs-theme="dark"] main,
html.dark #container,
html.dark main {
  background-color: #0b1220 !important;
  color: #f8fafc !important;
}

/* Top bar toggle button high-contrast styling */
.flx-theme-toggle-btn {
  cursor: pointer;
  gap: 5px;
}
html[data-bs-theme="dark"] .flx-theme-toggle-btn,
html.dark .flx-theme-toggle-btn {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #93c5fd !important;
}
html[data-bs-theme="dark"] .flx-theme-toggle-btn .flx-eco-ico,
html.dark .flx-theme-toggle-btn .flx-eco-ico {
  color: #fde047 !important;
}

/* Header & Navigation Chrome */
html[data-bs-theme="dark"] header,
html[data-bs-theme="dark"] .hsticky,
html[data-bs-theme="dark"] .allmenu,
html[data-bs-theme="dark"] #d-menu,
html.dark header,
html.dark .hsticky,
html.dark .allmenu,
html.dark #d-menu {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

/* Generic Surfaces, Cards, Content Containers */
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .pro-bg,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .cate-top,
html[data-bs-theme="dark"] .cate-border,
html[data-bs-theme="dark"] .catesort label,
html[data-bs-theme="dark"] .listgridbtn,
html[data-bs-theme="dark"] .pagi,
html[data-bs-theme="dark"] .brand-list,
html[data-bs-theme="dark"] .single-blog-desc,
html[data-bs-theme="dark"] .blog-content,
html.dark .bg-white,
html.dark .pro-bg,
html.dark .card,
html.dark .modal-content,
html.dark .cate-top,
html.dark .cate-border,
html.dark .catesort label,
html.dark .listgridbtn,
html.dark .pagi,
html.dark .brand-list,
html.dark .single-blog-desc,
html.dark .blog-content {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
html[data-bs-theme="dark"] #product-info #content.bg-white,
html.dark .bg-light,
html.dark .card-header,
html.dark .card-footer,
html.dark #product-info #content.bg-white {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-body,
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html.dark .text-dark,
html.dark .text-body,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #f8fafc !important;
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .text-secondary,
html[data-bs-theme="dark"] .text-body-secondary,
html.dark .text-muted,
html.dark .text-secondary,
html.dark .text-body-secondary {
  color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] a:not(.btn):not(.badge):not(.flx-top-eco-pill):not(.flx-nav-link):not(.dropdown-item):not(.nav-link),
html.dark a:not(.btn):not(.badge):not(.flx-top-eco-pill):not(.flx-nav-link):not(.dropdown-item):not(.nav-link) {
  color: #60a5fa;
}
html[data-bs-theme="dark"] a:not(.btn):not(.badge):not(.flx-top-eco-pill):not(.flx-nav-link):not(.dropdown-item):not(.nav-link):hover,
html.dark a:not(.btn):not(.badge):not(.flx-top-eco-pill):not(.flx-nav-link):not(.dropdown-item):not(.nav-link):hover {
  color: #93c5fd;
}

/* Product Cards */
html[data-bs-theme="dark"] .product-thumb,
html.dark .product-thumb {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .product-thumb .description h3 a,
html[data-bs-theme="dark"] .product-thumb .description h4 a,
html[data-bs-theme="dark"] .product-thumb .product-title a,
html[data-bs-theme="dark"] .product-thumb .product-title-link,
html.dark .product-thumb .description h3 a,
html.dark .product-thumb .description h4 a,
html.dark .product-thumb .product-title a,
html.dark .product-thumb .product-title-link {
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .product-thumb .description h3 a:hover,
html[data-bs-theme="dark"] .product-thumb .product-title-link:hover,
html.dark .product-thumb .description h3 a:hover,
html.dark .product-thumb .product-title-link:hover {
  color: #38bdf8 !important;
}
html[data-bs-theme="dark"] .product-thumb .price-new,
html[data-bs-theme="dark"] .product-thumb .text-primary,
html.dark .product-thumb .price-new,
html.dark .product-thumb .text-primary {
  color: #60a5fa !important;
}
html[data-bs-theme="dark"] .product-thumb .price-old,
html.dark .product-thumb .price-old {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .product-thumb .button button,
html[data-bs-theme="dark"] .cart-with-variant button.qty-btn-minus,
html[data-bs-theme="dark"] .cart-with-variant button.qty-btn-plus,
html[data-bs-theme="dark"] .qty-container .input-qty,
html[data-bs-theme="dark"] .qty-container .qty-btn-minus,
html[data-bs-theme="dark"] .qty-container .qty-btn-plus,
html.dark .product-thumb .button button,
html.dark .cart-with-variant button.qty-btn-minus,
html.dark .cart-with-variant button.qty-btn-plus,
html.dark .qty-container .input-qty,
html.dark .qty-container .qty-btn-minus,
html.dark .qty-container .qty-btn-plus {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-bs-theme="dark"] .product-thumb .button button svg,
html.dark .product-thumb .button button svg {
  fill: #f8fafc !important;
}

/* Sidebar Demo Box */
html[data-bs-theme="dark"] .flx-sb-card,
html.dark .flx-sb-card {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .flx-sb-box,
html.dark .flx-sb-box {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .flx-sb-heading,
html[data-bs-theme="dark"] .flx-sb-platform,
html.dark .flx-sb-heading,
html.dark .flx-sb-platform {
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .flx-sb-subheading,
html[data-bs-theme="dark"] .flx-sb-cred,
html.dark .flx-sb-subheading,
html.dark .flx-sb-cred {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .flx-sb-code,
html[data-bs-theme="dark"] code,
html[data-bs-theme="dark"] pre,
html.dark .flx-sb-code,
html.dark code,
html.dark pre {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

/* Breadcrumbs, List Groups, Tabs, Accordions, Tables, Pagination */
html[data-bs-theme="dark"] .breadcrumb,
html[data-bs-theme="dark"] .breadcrumb-item,
html[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before,
html.dark .breadcrumb,
html.dark .breadcrumb-item,
html.dark .breadcrumb-item + .breadcrumb-item::before {
  background-color: transparent !important;
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] .breadcrumb-item a,
html.dark .breadcrumb-item a {
  color: #60a5fa !important;
}
html[data-bs-theme="dark"] .list-group-item,
html[data-bs-theme="dark"] .accordion-item,
html[data-bs-theme="dark"] .accordion-button,
html.dark .list-group-item,
html.dark .accordion-item,
html.dark .accordion-button {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .accordion-button:not(.collapsed),
html.dark .accordion-button:not(.collapsed) {
  background-color: #0f172a !important;
  color: #93c5fd !important;
}
html[data-bs-theme="dark"] .accordion-button::after,
html.dark .accordion-button::after {
  filter: invert(1) brightness(1.8);
}
html[data-bs-theme="dark"] .nav-tabs,
html.dark .nav-tabs {
  border-bottom-color: #334155 !important;
}
html[data-bs-theme="dark"] .nav-tabs .nav-link,
html.dark .nav-tabs .nav-link {
  color: #cbd5e1 !important;
  background-color: transparent;
}
html[data-bs-theme="dark"] .nav-tabs .nav-link.active,
html.dark .nav-tabs .nav-link.active {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: #475569 #475569 #1e293b !important;
}
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .table td,
html[data-bs-theme="dark"] .table th,
html.dark .table,
html.dark .table td,
html.dark .table th {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .table thead th,
html.dark .table thead th {
  background-color: #0f172a !important;
}
html[data-bs-theme="dark"] .pagination .page-link,
html.dark .pagination .page-link {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .pagination .page-item.active .page-link,
html.dark .pagination .page-item.active .page-link {
  background-color: #1d4ed8 !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Forms, Inputs, Dropdowns & Buttons */
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text,
html.dark .form-control,
html.dark .form-select,
html.dark .input-group-text {
  background-color: #0b1220 !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-bs-theme="dark"] .form-control::placeholder,
html.dark .form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
html[data-bs-theme="dark"] .dropdown-menu,
html.dark .dropdown-menu {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .dropdown-menu .dropdown-item,
html.dark .dropdown-menu .dropdown-item {
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-menu .dropdown-item:focus,
html.dark .dropdown-menu .dropdown-item:hover,
html.dark .dropdown-menu .dropdown-item:focus {
  background-color: #334155 !important;
  color: #ffffff !important;
}
html[data-bs-theme="dark"] .btn-light,
html.dark .btn-light {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-bs-theme="dark"] .btn-outline-secondary,
html[data-bs-theme="dark"] .btn-outline-dark,
html.dark .btn-outline-secondary,
html.dark .btn-outline-dark {
  color: #e2e8f0 !important;
  border-color: #64748b !important;
}
html[data-bs-theme="dark"] .btn-outline-secondary:hover,
html[data-bs-theme="dark"] .btn-outline-dark:hover,
html.dark .btn-outline-secondary:hover,
html.dark .btn-outline-dark:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}
html[data-bs-theme="dark"] .btn-outline-primary,
html.dark .btn-outline-primary {
  color: #93c5fd !important;
  border-color: #3b82f6 !important;
}
html[data-bs-theme="dark"] .btn-outline-primary:hover,
html.dark .btn-outline-primary:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* Mega Menu Dropdowns & Cart */
html[data-bs-theme="dark"] .flx-dropdown-wrapper,
html[data-bs-theme="dark"] .flx-standard-dropdown-container,
html[data-bs-theme="dark"] .flx-mega-dropdown,
html[data-bs-theme="dark"] .flx-cart-dropdown,
html[data-bs-theme="dark"] .flx-drawer,
html.dark .flx-dropdown-wrapper,
html.dark .flx-standard-dropdown-container,
html.dark .flx-mega-dropdown,
html.dark .flx-cart-dropdown,
html.dark .flx-drawer {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .flx-cat-tabs-sidebar,
html.dark .flx-cat-tabs-sidebar {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}
html[data-bs-theme="dark"] .flx-cat-tab-btn,
html[data-bs-theme="dark"] .flx-sub-link,
html.dark .flx-cat-tab-btn,
html.dark .flx-sub-link {
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .flx-cat-tab-btn.flx-active,
html[data-bs-theme="dark"] .flx-cat-tab-btn:hover,
html[data-bs-theme="dark"] .flx-sub-link:hover,
html.dark .flx-cat-tab-btn.flx-active,
html.dark .flx-cat-tab-btn:hover,
html.dark .flx-sub-link:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}
html[data-bs-theme="dark"] .flx-product-mini-card,
html.dark .flx-product-mini-card {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] .flx-product-mini-card a,
html.dark .flx-product-mini-card a {
  color: #f8fafc !important;
}

/* Product Tabs Section & Footer */
html[data-bs-theme="dark"] .tab-products .nav-item .btn-primary:not(.active),
html.dark .tab-products .nav-item .btn-primary:not(.active) {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
html[data-bs-theme="dark"] footer,
html[data-bs-theme="dark"] .top-footer,
html[data-bs-theme="dark"] .service-bg,
html[data-bs-theme="dark"] .powerby,
html.dark footer,
html.dark .top-footer,
html.dark .service-bg,
html.dark .powerby {
  background-color: #070d18 !important;
  color: #cbd5e1 !important;
  border-color: #1e293b !important;
}
html[data-bs-theme="dark"] footer h3,
html[data-bs-theme="dark"] footer h4,
html[data-bs-theme="dark"] footer h5,
html[data-bs-theme="dark"] footer .h5,
html.dark footer h3,
html.dark footer h4,
html.dark footer h5,
html.dark footer .h5 {
  color: #f8fafc !important;
}
html[data-bs-theme="dark"] footer a,
html[data-bs-theme="dark"] footer .footer-link a,
html.dark footer a,
html.dark footer .footer-link a {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] footer a:hover,
html[data-bs-theme="dark"] footer .footer-link a:hover,
html.dark footer a:hover,
html.dark footer .footer-link a:hover {
  color: #60a5fa !important;
}
