/* =========================================================
   KEMZY GLOBAL STORE — COMPLETE DARK THEME
   Applies consistently across Home, Shop, About, Contact
   and Account without changing brand/hero imagery.
========================================================= */
:root { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
  background: #0b1220 !important;
  color: #e5edf8 !important;
}
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .content-page,
html[data-theme="dark"] .page-section,
html[data-theme="dark"] .shop-container,
html[data-theme="dark"] .account-page {
  color: #e5edf8;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .cart-drawer,
html[data-theme="dark"] .cart-drawer-header,
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .contact-aside,
html[data-theme="dark"] .about-intro-copy,
html[data-theme="dark"] .value-item,
html[data-theme="dark"] .shop-filter-panel,
html[data-theme="dark"] .shop-toolbar,
html[data-theme="dark"] .shop-product-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .cart-empty,
html[data-theme="dark"] .shopping-mode-panel,
html[data-theme="dark"] .repair-service-strip,
html[data-theme="dark"] .repair-appointment,
html[data-theme="dark"] .wholesale-enquiry-panel,
html[data-theme="dark"] .phone-brand-chooser,
html[data-theme="dark"] .repair-modal {
  background-color: #111d30 !important;
  border-color: #2b3b52 !important;
  color: #e5edf8 !important;
}
html[data-theme="dark"] .site-header {
  background: rgba(11,18,32,.97) !important;
  box-shadow: 0 5px 22px rgba(0,0,0,.25);
}
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .account-panel h1,
html[data-theme="dark"] .account-panel h2,
html[data-theme="dark"] .account-panel p,
html[data-theme="dark"] .account-panel label,
html[data-theme="dark"] .contact-aside h2,
html[data-theme="dark"] .contact-aside p,
html[data-theme="dark"] .about-intro-copy h2,
html[data-theme="dark"] .about-intro-copy p,
html[data-theme="dark"] .value-item h3,
html[data-theme="dark"] .value-item p,
html[data-theme="dark"] .cart-drawer h2,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .shop-product-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .mode-description,
html[data-theme="dark"] .repair-service-strip p,
html[data-theme="dark"] .repair-appointment p,
html[data-theme="dark"] .phone-brand-heading p,
html[data-theme="dark"] .phone-brand-card small,
html[data-theme="dark"] .wholesale-enquiry-row,
html[data-theme="dark"] .repair-modal p,
html[data-theme="dark"] .repair-modal label {
  color: #e5edf8 !important;
}
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: #80adff !important; }
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .page-kicker,
html[data-theme="dark"] .section-heading-row,
html[data-theme="dark"] .page-breadcrumb,
html[data-theme="dark"] .shop-breadcrumb,
html[data-theme="dark"] .shop-toolbar label,
html[data-theme="dark"] .shop-filter-panel label {
  color: #a9bad0;
}
html[data-theme="dark"] .account-intro,
html[data-theme="dark"] .account-note,
html[data-theme="dark"] .account-switch-prompt,
html[data-theme="dark"] .account-status,
html[data-theme="dark"] .page-breadcrumb a,
html[data-theme="dark"] .shop-breadcrumb a {
  color: #a9bad0 !important;
}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .kemzy-whatsapp-form input,
html[data-theme="dark"] .kemzy-whatsapp-form textarea,
html[data-theme="dark"] .wholesale-enquiry-panel textarea,
html[data-theme="dark"] .wholesale-enquiry-row input,
html[data-theme="dark"] .repair-form-field input,
html[data-theme="dark"] .repair-form-field textarea {
  background: #0b1424 !important;
  color: #f1f5fb !important;
  border-color: #40516b !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #8fa1b8 !important; }
html[data-theme="dark"] .shopping-mode-button,
html[data-theme="dark"] .repair-action-secondary,
html[data-theme="dark"] .phone-brand-card,
html[data-theme="dark"] .product-whatsapp-button,
html[data-theme="dark"] .cart-close,
html[data-theme="dark"] .repair-modal-close,
html[data-theme="dark"] .wholesale-enquiry-row {
  background: #17243a !important;
  color: #e5edf8 !important;
  border-color: #354760 !important;
}
html[data-theme="dark"] .shopping-mode-button.is-active {
  background: #172f52 !important;
  border-color: #4b8cff !important;
}
html[data-theme="dark"] .shopping-mode-button small,
html[data-theme="dark"] .repair-service-strip p,
html[data-theme="dark"] .phone-brand-card small,
html[data-theme="dark"] .wholesale-enquiry-row small { color: #a8b7ca !important; }
html[data-theme="dark"] .repair-service-strip h2,
html[data-theme="dark"] .wholesale-enquiry-heading h3,
html[data-theme="dark"] .phone-brand-heading h3,
html[data-theme="dark"] .repair-modal-header h2 { color: #f1f5fb !important; }
html[data-theme="dark"] .theme-toggle {
  background: #17243a !important;
  color: #f8fafc !important;
  border-color: #40516b !important;
}
html[data-theme="dark"] .cart-overlay { background: rgba(0,0,0,.72); }
html[data-theme="dark"] .footer a,
html[data-theme="dark"] .footer p,
html[data-theme="dark"] .footer h3,
html[data-theme="dark"] .footer h4 { color: #c8d5e6; }
html[data-theme="dark"] .page-section,
html[data-theme="dark"] .section-container { background-color: transparent; }
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .shop-hero,
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .hero {
  color: #fff;
}
/* Preserve high-contrast branded action buttons in both themes. */
html[data-theme="dark"] .page-button-blue,
html[data-theme="dark"] .repair-action-primary,
html[data-theme="dark"] .wholesale-add-button,
html[data-theme="dark"] .shop-add-button,
html[data-theme="dark"] .form-submit {
  color: #fff !important;
}

/* =========================================================
   SHOP PAGE — DARK THEME GAP FIXES
   Search, sort, filters, product cards, quick view, reviews,
   wishlist, trust strip and cart extras.
========================================================= */
html[data-theme="dark"] .shop-search,
html[data-theme="dark"] .shop-sort select,
html[data-theme="dark"] .category-filter,
html[data-theme="dark"] .shop-filter-field select,
html[data-theme="dark"] .shop-filter-field input,
html[data-theme="dark"] .shop-wishlist-filter,
html[data-theme="dark"] .shop-wishlist-button,
html[data-theme="dark"] .shop-modal-wishlist,
html[data-theme="dark"] .shop-modal-close,
html[data-theme="dark"] .shop-review-form input,
html[data-theme="dark"] .shop-review-form select,
html[data-theme="dark"] .shop-review-form textarea,
html[data-theme="dark"] .cart-continue-button {
  background: #0f1b2e !important;
  border-color: #2f4059 !important;
  color: #e5edf8 !important;
}
/* The search box wraps a bare input: keep the input itself see-through. */
html[data-theme="dark"] .shop-search input {
  background: transparent !important;
  border: 0 !important;
  color: #f1f5fb !important;
}
html[data-theme="dark"] .shop-search svg { color: #8fa1b8; }

html[data-theme="dark"] .category-filter:hover,
html[data-theme="dark"] .shop-wishlist-filter:hover,
html[data-theme="dark"] .shop-wishlist-filter.is-active { color: #80adff !important; border-color: #4b8cff !important; }

/* Panels and surfaces */
html[data-theme="dark"] .shop-subfilters,
html[data-theme="dark"] .shop-availability-panel {
  background: #111d30 !important;
  border-color: #2b3b52 !important;
}
html[data-theme="dark"] .shop-trust-section {
  background: #0d1628 !important;
  border-top-color: #22324a !important;
}
html[data-theme="dark"] .shop-quick-view-dialog {
  background: #111d30 !important;
  color: #e5edf8 !important;
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
}
html[data-theme="dark"] .shop-quick-view-dialog::backdrop { background: rgba(0,0,0,.72); }

/* Image areas: a soft panel so product photos still read well. */
html[data-theme="dark"] .shop-product-image,
html[data-theme="dark"] .shop-quick-view-image,
html[data-theme="dark"] .cart-item-image {
  background: #16243a !important;
}

/* Tags, counters and icon chips */
html[data-theme="dark"] .shop-product-tag,
html[data-theme="dark"] .shop-wishlist-count,
html[data-theme="dark"] .shop-trust-icon,
html[data-theme="dark"] .empty-state-icon {
  background: #172f52 !important;
  color: #8db8ff !important;
}
html[data-theme="dark"] .shop-quick-view-button {
  background: rgba(17,29,48,.96) !important;
  border-color: #354760 !important;
  color: #e5edf8 !important;
}
html[data-theme="dark"] .shop-wishlist-button.is-saved,
html[data-theme="dark"] .shop-modal-wishlist.is-saved {
  background: #3a1a24 !important;
  border-color: #7f2f45 !important;
  color: #ff8fa8 !important;
}

/* Headings and main text that were hard-coded navy */
html[data-theme="dark"] .catalogue-heading h2,
html[data-theme="dark"] .shop-product-info h3,
html[data-theme="dark"] .shop-product-price,
html[data-theme="dark"] .shop-empty-state h3,
html[data-theme="dark"] .cart-drawer-header h2,
html[data-theme="dark"] .cart-item-details h3,
html[data-theme="dark"] .cart-empty h3,
html[data-theme="dark"] .cart-subtotal-row,
html[data-theme="dark"] .cart-total-row,
html[data-theme="dark"] .cart-quantity button,
html[data-theme="dark"] .shop-filter-field label,
html[data-theme="dark"] .shop-trust-item h3,
html[data-theme="dark"] .shop-quick-view-details h2,
html[data-theme="dark"] .shop-quick-view-price,
html[data-theme="dark"] .shop-availability-panel strong,
html[data-theme="dark"] .shop-review-heading h3,
html[data-theme="dark"] .shop-review-entry-top strong,
html[data-theme="dark"] .shop-review-form h4 {
  color: #f1f5fb !important;
}

/* Secondary / muted text that was hard-coded slate */
html[data-theme="dark"] .product-results,
html[data-theme="dark"] .shop-sort label,
html[data-theme="dark"] .shop-product-category,
html[data-theme="dark"] .shop-empty-state p,
html[data-theme="dark"] .cart-drawer-header h2 span,
html[data-theme="dark"] .cart-empty p,
html[data-theme="dark"] .cart-total-note,
html[data-theme="dark"] .shop-card-review-summary,
html[data-theme="dark"] .shop-quick-view-rating,
html[data-theme="dark"] .shop-stock-note,
html[data-theme="dark"] .shop-trust-item p,
html[data-theme="dark"] .shop-availability-panel p,
html[data-theme="dark"] .shop-quick-view-description,
html[data-theme="dark"] .shop-no-reviews,
html[data-theme="dark"] .shop-review-entry p,
html[data-theme="dark"] .shop-review-form label {
  color: #a9bad0 !important;
}

/* Brand blue accents lifted for contrast on dark */
html[data-theme="dark"] .cart-item-price,
html[data-theme="dark"] .cart-total-row strong,
html[data-theme="dark"] .cart-empty > i,
html[data-theme="dark"] .shop-availability-panel > svg {
  color: #8db8ff !important;
}

/* ---- Shop dark theme: refinements ---- */
/* Header logo: navy mark/wordmark disappears on a dark header. */
html[data-theme="dark"] .site-header .brand-mark,
html[data-theme="dark"] .mobile-menu .brand-mark { color: #8db8ff; }
html[data-theme="dark"] .site-header .brand-name strong,
html[data-theme="dark"] .mobile-menu .brand-name strong { color: #f1f5fb; }
html[data-theme="dark"] .site-header .brand-name small,
html[data-theme="dark"] .mobile-menu .brand-name small { color: #8fa1b8; }

/* Search: the global dark input rule is more specific than a plain
   `.shop-search input`, so match its specificity to keep it see-through. */
html[data-theme="dark"] .shop-search input:not([type="checkbox"]):not([type="radio"]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}

/* Hard-coded light divider lines */
html[data-theme="dark"] .shop-categories,
html[data-theme="dark"] .shop-review-section,
html[data-theme="dark"] .cart-drawer-header,
html[data-theme="dark"] .cart-drawer-footer,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .shop-review-entry {
  border-color: #26364d !important;
}

/* Add to Cart: navy on a dark card is hard to see, so lift it to brand blue. */
html[data-theme="dark"] .shop-add-button {
  background: #1d5fd1 !important;
  border-color: #1d5fd1 !important;
  color: #fff !important;
}
html[data-theme="dark"] .shop-add-button:hover:not(:disabled) {
  background: #2b72ec !important;
  border-color: #2b72ec !important;
}
html[data-theme="dark"] .shop-add-button:disabled {
  background: #1a2a42 !important;
  border-color: #2b3b52 !important;
  color: #7d8ea6 !important;
}

/* =========================================================
   HOME, ABOUT, CONTACT, ACCOUNT, CART & ENQUIRY PANELS
   — remaining dark theme gap fixes
========================================================= */

/* ---- Home: featured products, categories, newsletter ---- */
html[data-theme="dark"] .featured-products-section { background: #0d1628 !important; }
html[data-theme="dark"] .product-image-wrapper { background: #16243a !important; }
html[data-theme="dark"] .product-quick-action,
html[data-theme="dark"] .category-arrow {
  background: rgba(17,29,48,.96) !important;
  color: #e5edf8 !important;
  border-color: #354760 !important;
}
html[data-theme="dark"] .newsletter-form-wrapper {
  background: rgba(17,29,48,.7) !important;
  border-color: #2b3b52 !important;
}
html[data-theme="dark"] .newsletter-input-group input:not([type="checkbox"]):not([type="radio"]) {
  background: #0b1424 !important;
  color: #f1f5fb !important;
}
html[data-theme="dark"] .featured-heading-copy h2,
html[data-theme="dark"] .product-details h3,
html[data-theme="dark"] .product-price { color: #f1f5fb !important; }
html[data-theme="dark"] .featured-heading-copy p,
html[data-theme="dark"] .product-category { color: #a9bad0 !important; }
html[data-theme="dark"] .featured-heading-copy .section-eyebrow,
html[data-theme="dark"] .featured-view-all,
html[data-theme="dark"] .featured-bottom-link { color: #8db8ff !important; }

/* ---- About ---- */
html[data-theme="dark"] .about-categories { background: #0d1628 !important; }
html[data-theme="dark"] .about-values { background: #0b1220 !important; }
html[data-theme="dark"] .about-intro-copy .lead-copy,
html[data-theme="dark"] .values-heading > p { color: #b7c6da !important; }
html[data-theme="dark"] .page-button-light {
  background: #17243a !important;
  color: #e5edf8 !important;
  border-color: #354760 !important;
}
html[data-theme="dark"] .page-button-light:hover { background: #1d2f4b !important; }

/* ---- Contact ---- */
html[data-theme="dark"] .contact-main { background: #0b1220 !important; }
html[data-theme="dark"] .contact-form-panel,
html[data-theme="dark"] .contact-help-strip {
  background: #111d30 !important;
  border-color: #2b3b52 !important;
  color: #e5edf8 !important;
}
html[data-theme="dark"] .contact-note {
  background: #14233a !important;
  border-color: #2b3b52 !important;
  color: #a9bad0 !important;
}
html[data-theme="dark"] .contact-aside > p { color: #a9bad0 !important; }
html[data-theme="dark"] .contact-info-icon,
html[data-theme="dark"] .help-strip-icon,
html[data-theme="dark"] .phone-brand-mark,
html[data-theme="dark"] .wholesale-enquiry-heading h3 span {
  background: #172f52 !important;
  color: #8db8ff !important;
}
html[data-theme="dark"] .form-field > span,
html[data-theme="dark"] .kemzy-whatsapp-form label,
html[data-theme="dark"] .wholesale-enquiry-panel > label { color: #c8d5e6 !important; }
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
  background: #0b1424 !important;
  border-color: #40516b !important;
  color: #f1f5fb !important;
}
html[data-theme="dark"] .form-status {
  background: #14233a !important;
  color: #c8d5e6 !important;
}
html[data-theme="dark"] .form-status.is-notice {
  background: #3a2f12 !important;
  color: #f3d98b !important;
}

/* ---- Account ---- */
html[data-theme="dark"] .account-form label span,
html[data-theme="dark"] .wholesale-enquiry-row label,
html[data-theme="dark"] .repair-modal-header p { color: #a9bad0 !important; }
html[data-theme="dark"] .account-form input { border-color: #40516b !important; }
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .mode-eyebrow,
html[data-theme="dark"] .shopping-mode-button > i { color: #8db8ff !important; }
html[data-theme="dark"] .repair-appointment h2 { color: #f1f5fb !important; }

/* ---- Cart: WhatsApp message button on each item ---- */
html[data-theme="dark"] .cart-item-whatsapp {
  background: #10301f !important;
  border-color: #1e5a38 !important;
  color: #6be39a !important;
}

/* ---- Remaining section backgrounds and headings ---- */
html[data-theme="dark"] .categories-section { background: #0d1628 !important; }
html[data-theme="dark"] .store-intro { background: #0b1220 !important; }
html[data-theme="dark"] .account-page { background: #0b1220 !important; }

html[data-theme="dark"] .categories-section h2,
html[data-theme="dark"] .categories-section h3,
html[data-theme="dark"] .store-intro h2,
html[data-theme="dark"] .store-intro h3,
html[data-theme="dark"] .about-categories h2,
html[data-theme="dark"] .about-values h2,
html[data-theme="dark"] .contact-main h2,
html[data-theme="dark"] .contact-main h3,
html[data-theme="dark"] .contact-main a:not([class]),
html[data-theme="dark"] .contact-help-strip h2,
html[data-theme="dark"] .contact-help-strip h3 { color: #f1f5fb !important; }

html[data-theme="dark"] .categories-section p,
html[data-theme="dark"] .store-intro p,
html[data-theme="dark"] .about-categories p,
html[data-theme="dark"] .contact-help-strip p { color: #a9bad0 !important; }
html[data-theme="dark"] .categories-view-all { color: #8db8ff !important; }

/* ---- Mobile navigation (opens as a white panel on small screens) ---- */
@media (max-width: 768px) {
  html[data-theme="dark"] .main-navigation {
    background: #0f1b2e;
    border-color: #26364d;
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  html[data-theme="dark"] .main-navigation .nav-link { border-color: #26364d; }
}
html[data-theme="dark"] .menu-toggle {
  background: #17243a;
  border-color: #40516b;
}
html[data-theme="dark"] .menu-toggle span { background: #e5edf8; }

/* Contact intro column is unboxed in light mode; keep it unboxed in dark. */
html[data-theme="dark"] .contact-aside {
  background: transparent !important;
  border-color: transparent !important;
}
