/*
 * dark-mode.css — Frontend Dark Mode
 * Only targets white/light surfaces; brand colours (orange, blue, green) stay intact.
 * Applied via [data-theme="dark"] on <body>.
 */

/* ── Core variables override ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --light-bg:     #121212;
  --border-color: #2e2e2e;
  --text-dark:    #e8e8e8;
  --text-light:   #aaaaaa;
  color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
[data-theme="dark"] body {
  background-color: #121212;
  color: #e8e8e8;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] .navbar,
[data-theme="dark"] .main-nav,
[data-theme="dark"] .nav-container,
[data-theme="dark"] .top-nav {
  background-color: #1a1a1a !important;
  border-bottom-color: #2e2e2e !important;
}

[data-theme="dark"] .nav-links a,
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .icon-btn svg {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .search-bar,
[data-theme="dark"] .search-container,
[data-theme="dark"] .search-input,
[data-theme="dark"] .nav-search input {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .search-bar::placeholder,
[data-theme="dark"] .search-input::placeholder,
[data-theme="dark"] .nav-search input::placeholder {
  color: #777 !important;
}

/* Mega dropdown */
[data-theme="dark"] .mega-menu,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .brands-dropdown,
[data-theme="dark"] .categories-dropdown {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .mega-menu a,
[data-theme="dark"] .dropdown-menu a {
  color: #cccccc !important;
}

[data-theme="dark"] .mega-menu a:hover,
[data-theme="dark"] .dropdown-menu a:hover {
  color: #ff6b35 !important;
  background-color: #2a2a2a !important;
}

/* Mobile menu */
[data-theme="dark"] .mobile-menu,
[data-theme="dark"] .mobile-nav {
  background-color: #1a1a1a !important;
}

/* ── Product cards ───────────────────────────────────────────────────────── */
[data-theme="dark"] .product-card,
[data-theme="dark"] .product-item {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .product-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
}

[data-theme="dark"] .product-card .product-name,
[data-theme="dark"] .product-card .product-title,
[data-theme="dark"] .product-item .product-name {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .product-card .product-price,
[data-theme="dark"] .product-item .product-price {
  color: #ff6b35 !important;
}

[data-theme="dark"] .product-card .product-brand,
[data-theme="dark"] .product-card .product-category {
  color: #aaaaaa !important;
}

/* ── Sections / page backgrounds ─────────────────────────────────────────── */
[data-theme="dark"] section,
[data-theme="dark"] .section,
[data-theme="dark"] .page-wrapper,
[data-theme="dark"] main {
  background-color: #121212 !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .light-section {
  background-color: #1a1a1a !important;
}

/* Alternating section backgrounds */
[data-theme="dark"] .featured-section,
[data-theme="dark"] .bestsellers-section,
[data-theme="dark"] .new-arrivals-section,
[data-theme="dark"] .categories-section,
[data-theme="dark"] .brands-section,
[data-theme="dark"] .top-brands-section,
[data-theme="dark"] .shop-section,
[data-theme="dark"] .all-brands-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .wholesale-section {
  background-color: #121212 !important;
}

/* Cards within sections */
[data-theme="dark"] .category-card,
[data-theme="dark"] .brand-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .info-card {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .category-card h3,
[data-theme="dark"] .brand-card h3,
[data-theme="dark"] .brand-card span {
  color: #e8e8e8 !important;
}

/* ── Shop page ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .shop-container,
[data-theme="dark"] .shop-layout,
[data-theme="dark"] .products-grid-wrapper {
  background-color: #121212 !important;
}

[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .sidebar-filters {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .filter-section h3,
[data-theme="dark"] .filter-sidebar h3,
[data-theme="dark"] .filter-sidebar label {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .filter-sidebar input[type="checkbox"] + label {
  color: #cccccc !important;
}

[data-theme="dark"] .price-range-container input,
[data-theme="dark"] .filter-input,
[data-theme="dark"] .sort-select,
[data-theme="dark"] select {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

/* ── Brand page ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .brand-card {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .brand-name,
[data-theme="dark"] .brand-card-name {
  background-color: #1a1a1a !important;
  color: #e8e8e8 !important;
}

/* ── Product detail page ─────────────────────────────────────────────────── */
[data-theme="dark"] .product-detail-container,
[data-theme="dark"] .product-detail-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .product-info,
[data-theme="dark"] .product-details-box {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .product-description,
[data-theme="dark"] .product-meta {
  color: #cccccc !important;
}

[data-theme="dark"] .variant-btn,
[data-theme="dark"] .flavour-btn,
[data-theme="dark"] .nicotine-btn {
  background-color: #2a2a2a !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .variant-btn:hover,
[data-theme="dark"] .flavour-btn:hover {
  border-color: #ff6b35 !important;
}

/* Quantity control */
[data-theme="dark"] .quantity-control {
  background-color: #2a2a2a !important;
  border-color: #4a4a4a !important;
}

[data-theme="dark"] .quantity-control button {
  background-color: transparent !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .quantity-control button:hover {
  background-color: #3a3a3a !important;
}

[data-theme="dark"] .quantity-control input {
  background-color: transparent !important;
  color: #e8e8e8 !important;
  border-color: transparent !important;
}

[data-theme="dark"] .quantity-selector label {
  color: #e8e8e8 !important;
}

/* Buy it now button */
[data-theme="dark"] .buy-now-btn {
  background: #2a2a2a !important;
  color: #e8e8e8 !important;
  border: 2px solid #4a4a4a !important;
}

[data-theme="dark"] .buy-now-btn:hover {
  background: #3a3a3a !important;
  border-color: #666 !important;
}

/* Secondary action buttons (Share, Ask a Question, FAQ) */
[data-theme="dark"] .product-actions-secondary {
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .action-btn {
  color: #cccccc !important;
}

[data-theme="dark"] .action-btn:hover {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .action-btn svg {
  stroke: #cccccc !important;
}

[data-theme="dark"] .action-btn:hover svg {
  stroke: var(--primary-color) !important;
}

/* Shipping deadline notice */
[data-theme="dark"] .shipping-deadline-notice {
  background: #0d2d1a !important;
}

[data-theme="dark"] .shipping-deadline-notice span {
  color: #cccccc !important;
}

/* ── Modals ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] .modal-container,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .popup-box {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: #2e2e2e !important;
}

[data-theme="dark"] .modal-footer {
  border-top-color: #2e2e2e !important;
}

/* ── Cart page ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .cart-container,
[data-theme="dark"] .cart-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .cart-item,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .order-summary {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .cart-item-name,
[data-theme="dark"] .cart-item-price {
  color: #e8e8e8 !important;
}

/* ── Checkout ────────────────────────────────────────────────────────────── */
[data-theme="dark"] .checkout-container,
[data-theme="dark"] .checkout-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .checkout-form-card,
[data-theme="dark"] .payment-section,
[data-theme="dark"] .shipping-section {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
  color-scheme: dark;
}

[data-theme="dark"] option {
  background-color: #242424;
  color: #e8e8e8;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
  color-scheme: dark;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #666 !important;
}

[data-theme="dark"] label {
  color: #cccccc !important;
}

/* ── Contact page ────────────────────────────────────────────────────────── */
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .map-wrapper {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .map-info {
  background-color: #2a2a2a !important;
  border: 1px solid #3a3a3a !important;
}

[data-theme="dark"] .map-info p {
  color: #cccccc !important;
}

[data-theme="dark"] .map-wrapper h2 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .contact-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .faq-section {
  background-color: #1a1a1a !important;
}

[data-theme="dark"] .faq-item {
  background-color: #242424 !important;
}

[data-theme="dark"] .faq-item:hover {
  background-color: #2e2e2e !important;
}

[data-theme="dark"] .faq-item h3 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .faq-item p {
  color: #aaaaaa !important;
}

/* ── Wholesale page ──────────────────────────────────────────────────────── */
[data-theme="dark"] .wholesale-hero,
[data-theme="dark"] .wholesale-container {
  background-color: #121212 !important;
}

[data-theme="dark"] .access-denied-content {
  background-color: #1e1e1e !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .access-denied-content h1 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .access-denied-content p {
  color: #aaaaaa !important;
}

[data-theme="dark"] .btn-secondary {
  background-color: #2a2a2a !important;
  color: #e8e8e8 !important;
  border: 1px solid #4a4a4a !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: #3a3a3a !important;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] footer,
[data-theme="dark"] .footer,
[data-theme="dark"] .site-footer {
  background-color: #0d0d0d !important;
  border-top-color: #2e2e2e !important;
}

[data-theme="dark"] .footer-section ul li a {
  color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .footer-section ul li a:hover {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-credit a {
  color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .footer-credit a:hover {
  color: var(--primary-color) !important;
}

/* ── Auth pages (login/register) ─────────────────────────────────────────── */
[data-theme="dark"] .login-container,
[data-theme="dark"] .register-container,
[data-theme="dark"] .auth-card {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

/* ── Account dashboard ───────────────────────────────────────────────────── */
[data-theme="dark"] .account-sidebar,
[data-theme="dark"] .account-content,
[data-theme="dark"] .account-card {
  background-color: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #e8e8e8 !important;
}

/* ── Chatbot ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] .chatbot-window {
  background-color: #1a1a1a !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .chatbot-messages {
  background-color: #141414 !important;
}

[data-theme="dark"] .bot-message .message-bubble {
  background-color: #2a2a2a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .chatbot-input-area,
[data-theme="dark"] .chatbot-footer {
  background-color: #1a1a1a !important;
  border-top-color: #2e2e2e !important;
}

[data-theme="dark"] .chatbot-input-area input {
  background-color: #242424 !important;
  color: #e8e8e8 !important;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] table {
  background-color: #1e1e1e !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] th {
  background-color: #242424 !important;
  color: #cccccc !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] td {
  border-color: #2e2e2e !important;
}

[data-theme="dark"] tr:hover {
  background-color: #252525 !important;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .pagination button {
  background-color: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .pagination button.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .pagination button:hover:not(:disabled):not(.active) {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .pagination .page-info {
  color: #aaaaaa !important;
}

/* ── Carousel arrows ─────────────────────────────────────────────────────── */
[data-theme="dark"] .carousel-control {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .carousel-control img {
  filter: brightness(0) invert(1) !important;
}

[data-theme="dark"] .carousel-control:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

[data-theme="dark"] .carousel-control:disabled {
  opacity: 0.25 !important;
}

[data-theme="dark"] .carousel-control:disabled:hover {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Checkout page ───────────────────────────────────────────────────────── */
[data-theme="dark"] .checkout-left {
  background: #1a1a1a !important;
}

[data-theme="dark"] .checkout-right {
  background: #141414 !important;
  border-left-color: #2e2e2e !important;
}

[data-theme="dark"] .checkout-title {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .cart-icon-link {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .checkout-section h2 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .signin-link {
  color: #66aaff !important;
}

[data-theme="dark"] .secure-text {
  color: #aaaaaa !important;
}

[data-theme="dark"] .select-static-label {
  color: #aaaaaa !important;
}

[data-theme="dark"] .checkbox-label,
[data-theme="dark"] .radio-label {
  color: #cccccc !important;
}

[data-theme="dark"] .form-group label {
  color: #888888 !important;
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group input:not(:placeholder-shown) + label {
  background: #1a1a1a !important;
  color: #66aaff !important;
}

[data-theme="dark"] .shipping-method-box {
  background: #242424 !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .shipping-method-name {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .shipping-method-eta {
  color: #aaaaaa !important;
}

[data-theme="dark"] .shipping-method-price {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .payment-methods {
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .payment-option {
  border-bottom-color: #3a3a3a !important;
}

[data-theme="dark"] .payment-radio {
  background: #1e1e1e !important;
}

[data-theme="dark"] .payment-radio:hover {
  background: #282828 !important;
}

[data-theme="dark"] .payment-label {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .payment-details {
  background: #242424 !important;
  border-top-color: #3a3a3a !important;
}

[data-theme="dark"] .payment-details p {
  color: #aaaaaa !important;
}

[data-theme="dark"] .redirect-info svg {
  color: #888888 !important;
}

[data-theme="dark"] .discount-section {
  border-bottom-color: #3a3a3a !important;
}

[data-theme="dark"] .total-row {
  color: #aaaaaa !important;
}

[data-theme="dark"] .total-row.total-final {
  color: #e8e8e8 !important;
  border-top-color: #3a3a3a !important;
}

[data-theme="dark"] .currency {
  color: #888888 !important;
}

[data-theme="dark"] .item-name {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .item-variant {
  color: #aaaaaa !important;
}

[data-theme="dark"] .item-price {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .item-image {
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .return-to-cart-btn {
  color: #aaaaaa !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .checkout-footer a {
  color: #888888 !important;
}

[data-theme="dark"] .checkout-footer a:hover {
  color: #e8e8e8 !important;
}

/* ── Order success page ──────────────────────────────────────────────────── */
[data-theme="dark"] .success-card {
  background: #1e1e1e !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .success-card h1 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .success-card > p {
  color: #aaaaaa !important;
}

[data-theme="dark"] .order-details {
  background: #2a2a2a !important;
}

[data-theme="dark"] .order-details h2 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .detail-row {
  border-bottom-color: #3a3a3a !important;
}

[data-theme="dark"] .detail-label {
  color: #aaaaaa !important;
}

[data-theme="dark"] .detail-value {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .email-info {
  background: #2a2010 !important;
  border-left-color: #f59e0b !important;
}

[data-theme="dark"] .email-info p {
  color: #d4a555 !important;
}

[data-theme="dark"] .success-card .btn-secondary {
  background: #2a2a2a !important;
  color: #a78bfa !important;
  border-color: #a78bfa !important;
}

[data-theme="dark"] .success-card .btn-secondary:hover {
  background: #a78bfa !important;
  color: #ffffff !important;
}

/* ── Add to cart button ──────────────────────────────────────────────────── */
[data-theme="dark"] .add-to-cart-btn {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .add-to-cart-btn:hover {
  background-color: #e05a20 !important;
}

/* ── Generic text ────────────────────────────────────────────────────────── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.badge):not(.tag):not([class*="status"]) {
  color: #cccccc;
}

[data-theme="dark"] a:not(.btn):not(.button):not([class*="btn"]) {
  color: #cccccc;
}

[data-theme="dark"] hr,
[data-theme="dark"] .divider {
  border-color: #2e2e2e !important;
}

/* ── Nav dropdown scrollbar ──────────────────────────────────────────────── */
[data-theme="dark"] .brands-list,
[data-theme="dark"] .nav-dropdown,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] ul[style*="overflow"] {
  scrollbar-color: var(--primary-color) #121212 !important;
  background-color: #1e1e1e !important;
}

[data-theme="dark"] .brands-list::-webkit-scrollbar-track,
[data-theme="dark"] .nav-dropdown::-webkit-scrollbar-track,
[data-theme="dark"] .dropdown-menu::-webkit-scrollbar-track {
  background: #121212 !important;
}

/* ── Scrollbars — all black track in dark mode ───────────────────────────── */
[data-theme="dark"] * {
  scrollbar-color: #3a3a3a #121212;
}

[data-theme="dark"] ::-webkit-scrollbar {
  background: #121212;
}

[data-theme="dark"] ::-webkit-scrollbar-track,
[data-theme="dark"] ::-webkit-scrollbar-corner {
  background: #121212 !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3a3a3a !important;
  border-radius: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #555555 !important;
}

/* Shop sidebar — orange thumb */
[data-theme="dark"] .shop-sidebar {
  scrollbar-color: var(--primary-color) #121212 !important;
}

[data-theme="dark"] .shop-sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-color) !important;
}

/* ── Dark mode toggle button ─────────────────────────────────────────────── */
.dark-mode-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50% !important;
  border: 2px solid rgba(150, 150, 150, 0.6);
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  outline: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

[data-theme="dark"] .dark-mode-toggle {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}

.dark-mode-toggle:hover {
  background: rgba(255, 107, 53, 0.12);
  color: #ff6b35;
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

.dark-mode-toggle:hover svg {
  transform: rotate(20deg);
}

[data-theme="dark"] .dark-mode-toggle {
  color: #e8e8e8;
}

/* ── Preserve white text/icons on dark or coloured backgrounds ───────────── */
/*
 * The broad p / span / a rules above turn everything grey for readability on
 * the dark page background.  The rules below carve out exceptions for elements
 * that sit on their own dark-gradient or brightly-coloured background and
 * therefore need pure white to keep proper contrast.
 */

/* Auth page headers — dark gradient (#1a1a1a → #2d2d2d) */
[data-theme="dark"] .login-header a,
[data-theme="dark"] .login-header p,
[data-theme="dark"] .register-header a,
[data-theme="dark"] .register-header p,
[data-theme="dark"] .forgot-header a,
[data-theme="dark"] .forgot-header p,
[data-theme="dark"] .reset-header a,
[data-theme="dark"] .reset-header p {
  color: #ffffff !important;
}

/* Auth header h1 — override the generic h-rule so it's pure white on the dark card */
[data-theme="dark"] .login-header h1,
[data-theme="dark"] .register-header h1,
[data-theme="dark"] .forgot-header h1,
[data-theme="dark"] .reset-header h1 {
  color: #ffffff !important;
}

/* Chatbot header — dark gradient bg; h3 and span go grey without this */
[data-theme="dark"] .chatbot-header h3,
[data-theme="dark"] .chatbot-header span {
  color: #ffffff !important;
}

/* WhatsApp floating button — green bg; it's an <a> so gets greyed, and its
   SVG uses fill="currentColor" so it would inherit the grey */
/* Top announcement banner — blue gradient bg, text must stay white */
[data-theme="dark"] .top-banner {
  background: linear-gradient(90deg, #0055aa, #003388, #0077cc, #003388, #0055aa) !important;
}

[data-theme="dark"] .top-banner p,
[data-theme="dark"] .banner-content p,
[data-theme="dark"] .delivery-banner-text {
  color: #ffffff !important;
}

[data-theme="dark"] .whatsapp-button,
[data-theme="dark"] .chatbot-toggle,
[data-theme="dark"] .chatbot-toggle span,
[data-theme="dark"] .chatbot-toggle svg {
  color: #ffffff !important;
}

/* Coloured section headings — these sit on green / gradient banners */
[data-theme="dark"] .brands-grid-title,
[data-theme="dark"] .limited-deals-header h2,
[data-theme="dark"] .limited-deals-header p,
[data-theme="dark"] .subscription-text h2,
[data-theme="dark"] .subscription-text p {
  color: #ffffff !important;
}

/* Deal cards on homepage */
[data-theme="dark"] .deal-card {
  background-color: #1e1e1e !important;
}

[data-theme="dark"] .deal-card-title {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .deal-card-brand {
  color: #aaaaaa !important;
}

[data-theme="dark"] .deal-card-original-price {
  color: #888888 !important;
}

[data-theme="dark"] .deal-card-price {
  color: #ff6b35 !important;
}

/* Price-type badge — rendered as <span> on a green gradient background */
[data-theme="dark"] .price-type {
  color: #ffffff !important;
}

/* ── Brand tabs (Top Brands section) ─────────────────────────────────────── */
[data-theme="dark"] .top-brands-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .brand-tab {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .brand-tab.active {
  background: #252525 !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25) !important;
}

[data-theme="dark"] .brand-tab .tab-logo-text {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .brand-tab.active .tab-logo-text {
  color: var(--primary-color) !important;
}

/* ── Runfree spotlight — dark bg by design; preserve intended white text ──── */
[data-theme="dark"] .runfree-spotlight-eyebrow {
  color: #ff6b35 !important;
}

[data-theme="dark"] .runfree-spotlight-title {
  color: #ffffff !important;
}

[data-theme="dark"] .runfree-spotlight-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .runfree-spotlight-desc strong {
  color: #ffffff !important;
}

[data-theme="dark"] .runfree-features li {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .runfree-check {
  color: #ff6b35 !important;
}

[data-theme="dark"] .runfree-btn-secondary {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .runfree-btn-secondary:hover {
  color: #ff6b35 !important;
  border-color: #ff6b35 !important;
}

[data-theme="dark"] .runfree-card-brand {
  color: #ffffff !important;
}

[data-theme="dark"] .runfree-card-by {
  color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .runfree-spec-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .runfree-spec-value {
  color: #ff6b35 !important;
}

[data-theme="dark"] .runfree-card-cta {
  color: #ff6b35 !important;
}

[data-theme="dark"] .runfree-card-cta:hover {
  color: #ffffff !important;
}

/* ── Deal card offer box — dark background + readable text ───────────────── */
[data-theme="dark"] .deal-card-offer {
  background: linear-gradient(135deg, #1a0f00 0%, #241500 100%) !important;
  border-color: #f7931e !important;
}

[data-theme="dark"] .deal-card-offer p {
  color: #f7931e !important;
}

/* ── Deal card stock alert ────────────────────────────────────────────────── */
[data-theme="dark"] .deal-card-stock-alert {
  background: #1a1200 !important;
  border-color: #f7931e !important;
  color: #f7931e !important;
}

/* ── Moving banner (always dark bg) — ensure span text is white ──────────── */
[data-theme="dark"] .moving-banner span,
[data-theme="dark"] .banner-text span {
  color: #ffffff !important;
}

/* ── Wholesale quick buy page ────────────────────────────────────────────── */
[data-theme="dark"] .wholesale-container {
  background: #121212 !important;
}

[data-theme="dark"] .wholesale-controls {
  background: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .filter-group label {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-controls .filter-select {
  background: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-controls .filter-select:hover,
[data-theme="dark"] .wholesale-controls .filter-select:focus {
  border-color: #ff6b35 !important;
}

[data-theme="dark"] .wholesale-products .product-card {
  background: #1e1e1e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .wholesale-products .product-image {
  background: #2a2a2a !important;
}

[data-theme="dark"] .wholesale-products .product-name {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-products .quantity-label {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-products .quantity-controls {
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .wholesale-products .quantity-btn {
  background: #2a2a2a !important;
  color: #aaaaaa !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .wholesale-products .quantity-input {
  background: #1e1e1e !important;
  color: #e8e8e8 !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .wholesale-products .variant-select {
  background-color: #242424 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-products .select-selected {
  background-color: #242424 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  border-color: #3a3a3a !important;
  color: #aaaaaa !important;
}

[data-theme="dark"] .wholesale-products .select-selected.selected {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-products .select-items {
  background: #242424 !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .wholesale-products .select-item {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .wholesale-products .select-item:hover {
  background: #2e1a0e !important;
  color: #ff6b35 !important;
}

[data-theme="dark"] .wholesale-products .add-to-cart-btn:disabled {
  background-color: #2a2a2a !important;
  color: #555 !important;
}

[data-theme="dark"] .access-denied-content {
  background: #1e1e1e !important;
}

[data-theme="dark"] .notification {
  background: #1e1e1e !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .notification-content span {
  color: #e8e8e8 !important;
}

/* ── Brands page ─────────────────────────────────────────────────────────── */
[data-theme="dark"] .brands-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .brand-products-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .back-btn {
  background-color: #2a2a2a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .back-btn:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .products-toolbar {
  background-color: #1e1e1e !important;
}

[data-theme="dark"] .sort-control select {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .brand-logo {
  background-color: #2a2a2a !important;
}

[data-theme="dark"] .brand-logo-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%) !important;
}

/* ── Product detail page ─────────────────────────────────────────────────── */
[data-theme="dark"] .main-image-wrapper {
  background: #111111 !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .product-info-details {
  background: #1e1e1e !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .product-description {
  background: #1e1e1e !important;
}

[data-theme="dark"] .product-description h3,
[data-theme="dark"] .product-description h4,
[data-theme="dark"] .product-description h5 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .product-description p,
[data-theme="dark"] .product-description ul,
[data-theme="dark"] .product-description ol,
[data-theme="dark"] .product-description ul li,
[data-theme="dark"] .product-description ol li {
  color: #cccccc !important;
}

[data-theme="dark"] .product-description strong,
[data-theme="dark"] .product-description b {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .view-all-reviews {
  color: #cccccc !important;
}

[data-theme="dark"] .view-all-reviews:hover {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .review-item {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
}

[data-theme="dark"] .reviewer-info strong,
[data-theme="dark"] .review-title {
  color: #e8e8e8 !important;
}

/* ── Login page ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .login-card {
  background: #1e1e1e !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .login-form {
  background: #1e1e1e !important;
}

[data-theme="dark"] .login-form .form-group label {
  color: #cccccc !important;
}

[data-theme="dark"] .login-form .form-group input {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .login-form .form-group input:focus {
  border-color: #ff6b35 !important;
}

[data-theme="dark"] .remember-me {
  color: #aaaaaa !important;
}

[data-theme="dark"] .form-footer {
  border-top-color: #2e2e2e !important;
}

[data-theme="dark"] .form-footer p {
  color: #aaaaaa !important;
}

[data-theme="dark"] .message-box.success {
  background: #0d2b12 !important;
  color: #6ee38a !important;
  border-left-color: #28a745 !important;
}

[data-theme="dark"] .message-box.error {
  background: #2b0d10 !important;
  color: #f87171 !important;
  border-left-color: #dc3545 !important;
}

/* ── Account dashboard ───────────────────────────────────────────────────── */
[data-theme="dark"] body.account-page,
[data-theme="dark"] .dashboard-body {
  background: #121212 !important;
}

[data-theme="dark"] .dashboard-header {
  background: #1a1a1a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  border-bottom: 1px solid #2e2e2e !important;
}

[data-theme="dark"] .logo-section h1 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .user-name {
  color: #aaaaaa !important;
}

[data-theme="dark"] .sidebar {
  background: #1e1e1e !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .nav-item {
  color: #aaaaaa !important;
}

[data-theme="dark"] .nav-item:hover {
  background: #2a2a2a !important;
  color: #ff6b35 !important;
}

[data-theme="dark"] .nav-item.active {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .nav-item-shop {
  border-color: #56ab2f !important;
  color: #56ab2f !important;
}

[data-theme="dark"] .main-content {
  background: #1e1e1e !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .content-tab h2,
[data-theme="dark"] .content-tab h3 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .branch-card {
  background: #252525 !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .branch-name {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .branch-info {
  color: #aaaaaa !important;
}

[data-theme="dark"] .order-card {
  background: #252525 !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .order-number {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .detail-label {
  color: #888888 !important;
}

[data-theme="dark"] .detail-value {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .order-actions {
  border-top-color: #2e2e2e !important;
}

[data-theme="dark"] .filter-select {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .custom-select-trigger {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .custom-select-options {
  background: #242424 !important;
  border-color: #ff6b35 !important;
}

[data-theme="dark"] .custom-select-option {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .custom-select-option:hover {
  background: #2e1a0e !important;
  color: #ff6b35 !important;
}

[data-theme="dark"] .sidebar-header,
[data-theme="dark"] .filter-group h4 {
  border-bottom-color: #2e2e2e !important;
}

[data-theme="dark"] .tab-header {
  border-bottom-color: #2e2e2e !important;
}

/* ── Shop page ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .shop-section {
  background-color: #121212 !important;
}

[data-theme="dark"] .shop-sidebar {
  background-color: #1e1e1e !important;
}

[data-theme="dark"] .sidebar-header {
  border-bottom-color: #2e2e2e !important;
}

[data-theme="dark"] .filter-checkbox:hover {
  background-color: #2a2a2a !important;
}

[data-theme="dark"] .price-range-inputs input {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .shop-toolbar {
  background-color: #1e1e1e !important;
}

[data-theme="dark"] .shop-controls select {
  background-color: #242424 !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .view-btn {
  background-color: #2a2a2a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .view-btn:hover {
  background-color: #3a3a3a !important;
}

[data-theme="dark"] .view-btn.active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* ── Variant selection modal ─────────────────────────────────────────────── */
[data-theme="dark"] .variant-modal-content {
  background: #1e1e1e !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .variant-modal-header {
  border-bottom-color: #2e2e2e !important;
}

[data-theme="dark"] .variant-modal-product-image {
  background: #2a2a2a !important;
}

[data-theme="dark"] .variant-modal-product-info h3 {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .modal_product_brand {
  color: #aaaaaa !important;
}

[data-theme="dark"] .variant-selection-group label {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .variant-select {
  background-color: #242424 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  border-color: #3a3a3a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .variant-select:hover,
[data-theme="dark"] .variant-select:focus {
  background-color: #2a2a2a !important;
  border-color: #ff6b35 !important;
}

[data-theme="dark"] .variant-select option {
  background-color: #242424 !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .variant-help-text {
  color: #888888 !important;
}

[data-theme="dark"] .variant-modal-close {
  background: #2a2a2a !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .variant-modal-footer {
  background: #181818 !important;
  border-top-color: #2e2e2e !important;
  border-radius: 0 0 16px 16px;
}

[data-theme="dark"] .quantity-selector .qty-btn {
  color: #e8e8e8 !important;
  border-color: #3a3a3a !important;
  background-color: #2a2a2a !important;
}

[data-theme="dark"] .quantity-selector .qty-input {
  background: #242424 !important;
  color: #e8e8e8 !important;
  border-color: #3a3a3a !important;
}

[data-theme="dark"] .stock-info {
  background: linear-gradient(135deg, #0d2b12 0%, #112b16 100%) !important;
  border-color: #22c55e !important;
}

[data-theme="dark"] .stock-available span,
[data-theme="dark"] .stock-sku {
  color: #6ee38a !important;
}

[data-theme="dark"] .stock-sku-display {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .stock-availability-info {
  background-color: #111111 !important;
  border-left-color: #22c55e !important;
}

[data-theme="dark"] .stock-availability-info.out-of-stock {
  background-color: #111111 !important;
  border-left-color: #ef4444 !important;
}

[data-theme="dark"] .stock-indicator span {
  color: #4ade80 !important;
}

[data-theme="dark"] .stock-availability-info.out-of-stock .stock-indicator span {
  color: #f87171 !important;
}

[data-theme="dark"] .stock-availability-info.out-of-stock .stock-indicator svg {
  color: #f87171 !important;
}

[data-theme="dark"] .stock-info.out-of-stock {
  background: linear-gradient(135deg, #2b0d0d 0%, #2b1111 100%) !important;
  border-color: #ef4444 !important;
}

[data-theme="dark"] .stock-info.out-of-stock .stock-available span {
  color: #f87171 !important;
}
