:root {
  --starcom-page-bg: #ffffff;
  --starcom-surface: #ffffff;
  --starcom-surface-2: #f5f6f7;
  --starcom-text: #101318;
  --starcom-muted: #626a76;
  --starcom-border: rgba(16, 19, 24, 0.13);
  --starcom-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  --starcom-accent: #facc15;
}

html[data-theme="dark"] {
  --starcom-page-bg: #000000;
  --starcom-surface: #0d0d0d;
  --starcom-surface-2: #171717;
  --starcom-text: #f7f7f7;
  --starcom-muted: #a3a3a3;
  --starcom-border: rgba(255, 255, 255, 0.15);
  --starcom-shadow: 0 16px 38px rgba(0, 0, 0, 0.58);
  --body-color: #a3a3a3;
  --heading-color: #f7f7f7;
  --title-color: #f7f7f7;
  --text-color: #c7c7c7;
  color-scheme: dark;
}

html,
body,
#exp-wapper,
#exp-main {
  transition: background-color 0.22s ease, color 0.22s ease;
}

.starcom-preferences {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.starcom-preference-button {
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: 800 11px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.starcom-preference-button:hover,
.starcom-preference-button:focus-visible {
  background: #f0f2f5;
  color: #030712;
  outline: none;
}

.starcom-preference-button:focus-visible {
  box-shadow: 0 0 0 2px #facc15;
}

.starcom-theme-toggle {
  width: 30px;
  flex: 0 0 30px;
}

.starcom-theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.starcom-theme-icon--sun,
html[data-theme="dark"] .starcom-theme-icon--moon {
  display: block;
}

.starcom-theme-icon--moon,
html[data-theme="dark"] .starcom-theme-icon--sun {
  display: none;
}

.starcom-language-toggle {
  min-width: 48px;
  padding: 0 7px;
  gap: 3px;
}

.starcom-language-toggle__next,
.starcom-language-toggle__divider {
  color: #374151;
  font-weight: 600;
}

html[data-language="en"] .starcom-language-toggle__current {
  order: 3;
  color: #374151;
  font-weight: 600;
}

html[data-language="en"] .starcom-language-toggle__divider {
  order: 2;
}

html[data-language="en"] .starcom-language-toggle__next {
  order: 1;
  color: #111827;
  font-weight: 800;
}

html[data-theme="dark"] body,
html[data-theme="dark"] #exp-wapper,
html[data-theme="dark"] #exp-main,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] .elementor,
html[data-theme="dark"] .elementor-page,
html[data-theme="dark"] .woocommerce,
html[data-theme="dark"] .starcom-favorites-page {
  background-color: var(--starcom-page-bg);
  color: var(--starcom-text);
}

html[data-theme="dark"] :where(h1, h2, h3, h4, h5, h6, p, li, label, legend, .te-title, .te-text, .sec-title_heading, .woocommerce-loop-product__title, .product_title, .entry-title, .entry-content) {
  color: var(--starcom-text);
}

html[data-theme="dark"] :where(.te-subtitle, .breadcrumb, .breadcrumb a, .starcom-favorites-kicker, .starcom-favorites-state, .starcom-recently-viewed__state, .woocommerce-result-count) {
  color: var(--starcom-muted);
}

html[data-theme="dark"] :where(
  .e-con,
  .elementor-section,
  .elementor-widget-container,
  .service-block_one-content,
  .project-block_three-content,
  .news-block_one-content,
  .news-block_one-inner,
  .news-block_two-inner,
  .service-block_three-inner,
  .woocommerce ul.products li.product,
  .product_meta,
  .woocommerce-tabs,
  .cart_totals,
  .shop_table,
  .rq__card,
  .rqinfo,
  .starcom-favorites-empty,
  .starcom-favorite-card
) {
  border-color: var(--starcom-border);
}

html[data-theme="dark"] :where(
  .service-block_one-content,
  .project-block_three-content,
  .news-block_one-content,
  .woocommerce ul.products li.product,
  .woocommerce div.product div.summary,
  .woocommerce-tabs,
  .cart_totals,
  .shop_table,
  .rq__card,
  .rqinfo,
  .starcom-favorites-empty,
  .starcom-favorite-card,
  .starcom-favorite-card__media,
  .about-card,
  .starcom-card,
  .starcom-related-card,
  .pp-card,
  .sd-card,
  .sc-card,
  .sk-card,
  .sk-side,
  .sk-search-summary,
  .sk-card__img,
  .sk-modal__dialog,
  .sk-modal__content,
  .skm__panel,
  .starcom-review-card,
  .starcom-review-rating,
  .starcom-loaded-review,
  .starcom-review-steps
) {
  background-color: var(--starcom-surface) !important;
  color: var(--starcom-text) !important;
  box-shadow: var(--starcom-shadow);
}

html[data-theme="dark"] :where(
  .about-card,
  .starcom-card,
  .starcom-related-card,
  .pp-card,
  .sd-card,
  .sc-card,
  .sk-card,
  .sk-side,
  .sk-search-summary,
  .sk-modal__dialog,
  .sk-modal__content,
  .skm__panel,
  .starcom-review-card,
  .starcom-review-rating,
  .starcom-loaded-review,
  .starcom-review-steps
) :where(h1, h2, h3, h4, p, span, b, label, a:not(.theme-btn):not(.button), .te-title, .te-text) {
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] :where(
  .sk-side__title,
  .sk-selectrow,
  .sk-side__toggle,
  .sk-cat-toggle,
  .sk-select,
  .sc-btn--ghost,
  .sc-remove,
  .sk-btn-outline,
  .sk-modal__x,
  .qbtn,
  .starcom-fav-btn
) {
  background: var(--starcom-surface-2) !important;
  border-color: var(--starcom-border) !important;
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] :where(.about-gallery img, .sk-card__img img, .starcom-favorite-card__media img) {
  background: #fff;
  border-radius: 10px;
}

html[data-theme="dark"] :where(
  .woocommerce-page,
  .woocommerce-page .site-content,
  .archive-products,
  .shop-page,
  .product-details,
  .entry-content,
  .page-content,
  .about-section,
  .services-section,
  .projects-section,
  .news-section
) {
  background-color: var(--starcom-page-bg) !important;
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] :where(input, textarea, select, .select2-selection, .quantity input) {
  background-color: var(--starcom-surface-2) !important;
  border-color: var(--starcom-border) !important;
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] :where(input, textarea)::placeholder {
  color: #8f99a8;
  opacity: 1;
}

html[data-theme="dark"] :where(a:not(.theme-btn):not(.button):not(.exp-btn-title), .starcom-favorite-card__title, .starcom-favorite-card__price) {
  color: var(--starcom-text);
}

html[data-theme="dark"] #exp-header-elementor .exp-header-elementor-main,
html[data-theme="dark"] #exp-header-elementor .exp-header-elementor-sticky,
html[data-theme="dark"] #exp-header-elementor .px-header--transparent,
html[data-theme="dark"] #exp-header-mobile,
html[data-theme="dark"] #mmenu-wrapper,
html[data-theme="dark"] #mmenu-wrapper .mmenu-inner {
  background: #0b0f14 !important;
}

html[data-theme="dark"] #exp-header-elementor .main-navigation a,
html[data-theme="dark"] #mmenu-wrapper a,
html[data-theme="dark"] #mmenu-wrapper h3 {
  color: #fff !important;
}

html[data-theme="dark"] #exp-header-elementor .the-logo img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] footer,
html[data-theme="dark"] footer .elementor,
html[data-theme="dark"] footer .e-con,
html[data-theme="dark"] footer .elementor-widget-container {
  background-color: #090d12;
  color: #eef2f6;
}

html[data-theme="dark"] footer :where(h1, h2, h3, h4, p, li, a, span, .te-title, .te-text) {
  color: #eef2f6;
}

html[data-theme="dark"] .starcom-preferences {
  border-color: rgba(255, 255, 255, 0.14);
  background: #202832;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .starcom-preference-button,
html[data-theme="dark"] .starcom-language-toggle__next,
html[data-theme="dark"] .starcom-language-toggle__divider {
  color: #c8d0da;
}

html[data-theme="dark"] .starcom-preference-button:hover,
html[data-theme="dark"] .starcom-preference-button:focus-visible {
  background: #303a47;
  color: #fff;
}

html[data-theme="dark"][data-language="en"] .starcom-language-toggle__next {
  color: #fff;
}

html[data-theme="dark"] .starcom-header-search {
  background: #202832;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .starcom-header-search input {
  color: #fff;
}

@media (max-width: 1300px) {
  .starcom-preferences {
    gap: 0;
  }

  .starcom-language-toggle {
    min-width: 43px;
    padding: 0 4px;
  }
}

@media (max-width: 900px) {
  .starcom-header-tools--mobile .starcom-preferences {
    width: 100%;
    height: 42px;
    justify-content: center;
    border-radius: 12px;
    box-shadow: none;
  }

  .starcom-header-tools--mobile .starcom-preference-button {
    flex: 1 1 50%;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  #exp-wapper,
  #exp-main,
  .starcom-preference-button {
    transition: none !important;
  }
}

/*
 * Strict black theme layer.
 * This block intentionally sits last and wins over legacy page-level styles.
 */
html[data-theme="dark"] body,
html[data-theme="dark"] body #exp-wapper,
html[data-theme="dark"] body #exp-main,
html[data-theme="dark"] body main,
html[data-theme="dark"] body .site-main,
html[data-theme="dark"] body .elementor-page,
html[data-theme="dark"] body #exp-wapper section,
html[data-theme="dark"] body .elementor .e-con,
html[data-theme="dark"] body .elementor > .e-con.e-parent,
html[data-theme="dark"] body .elementor-section-wrap > .elementor-section,
html[data-theme="dark"] body :where(
  .pp-section,
  .rq,
  .catgrid,
  .starkom-delivery,
  .starcom-section,
  .starcom-favorites-page,
  .starcom-reviews-page,
  .sk-page,
  .sk-wrap,
  .sc-cart,
  .sc-checkout,
  .pp-content,
  .woocommerce-page,
  .woocommerce
) {
  background-color: #000 !important;
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  label,
  legend,
  caption,
  th,
  td,
  strong,
  b,
  small,
  .te-title,
  .te-text,
  .sec-title_heading,
  .sec-title_text,
  .elementor-heading-title,
  .elementor-icon-list-text,
  .exp-item--title,
  .entry-title,
  .entry-content,
  .product_title,
  .woocommerce-loop-product__title,
  .woocommerce-product--title,
  .pp-title,
  .pp-name,
  .sk-h1,
  .sk-section-title,
  .sk-card__title,
  .sk-card__price,
  .sk-prod-title,
  .sk-prod-price,
  .sc-title,
  .sc-price,
  .sc-subtotal,
  .sc-line,
  .sc-card__title,
  .starcom-post-title,
  .starcom-related-title,
  .starcom-side-title,
  .sd-title,
  .rq__title,
  .rqinfo__title,
  .catcard__title,
  .catcard__text
) {
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  .te-subtitle,
  .sk-muted,
  .sk-text,
  .sk-cat-desc,
  .sc-meta,
  .sc-note,
  .sc-success__text,
  .pp-price,
  .starcom-meta,
  .starcom-related-meta,
  .starcom-related-ex,
  .starcom-review-card__text,
  .starcom-loaded-review__text,
  .starcom-review-feed__head p,
  .rqinfo__text,
  .breadcrumb,
  .breadcrumb a,
  .woocommerce-result-count
) {
  color: var(--starcom-muted) !important;
}

html[data-theme="dark"] body #exp-wapper a:not(.theme-btn):not(.exp-btn-title):not(.button):not(.wp-block-button__link):not([class*="btn"]):not([class*="button"]):not([class*="cta"]):not(.starcom-favorites-back):not(.starcom-recently-viewed__link) {
  color: #f7f7f7 !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  .service-block_one-content,
  .service-block_three-inner,
  .news-block_one-inner,
  .news-block_two-inner,
  .news-block_one-content,
  .project-block_three-content,
  .about-card,
  .kpi,
  .starcom-card,
  .starcom-related-card,
  .starcom-side-item,
  .pp-card,
  .pp-card__inner,
  .sd-card,
  .sc-card,
  .sc-row,
  .sc-empty__box,
  .sk-card,
  .sk-side,
  .sk-search-summary,
  .sk-buy,
  .sk-card,
  .sk-modal__panel,
  .sk-modal__summary,
  .skm__panel,
  .rqinfo,
  .catcard,
  .woocommerce ul.products li.product,
  .woocommerce-product-inner,
  .woocommerce div.product div.summary,
  .woocommerce-tabs,
  .woocommerce table.shop_table,
  .cart_totals,
  .site-header-cart,
  .wc-block-grid__product,
  .wc-block-cart__main,
  .wc-block-cart__sidebar,
  .wc-block-checkout__main,
  .wc-block-checkout__sidebar,
  .starcom-favorites-empty,
  .starcom-favorite-card,
  .starcom-review-card,
  .starcom-review-rating,
  .starcom-loaded-review,
  .starcom-review-steps,
  .starcom-review-step
) {
  background: #0d0d0d !important;
  border-color: var(--starcom-border) !important;
  color: var(--starcom-text) !important;
  box-shadow: var(--starcom-shadow);
}

html[data-theme="dark"] body #exp-wapper :where(
  .sk-side__title,
  .sk-selectrow,
  .sk-side__toggle,
  .sk-cat-toggle,
  .sk-pagination .page-numbers a,
  .sk-pagination .page-numbers span,
  .sc-btn--ghost,
  .sc-remove,
  .sc-badge,
  .sk-btn-outline,
  .sk-modal__x,
  .qbtn,
  .pp-tab,
  .starcom-fav-btn,
  .starcom-review-card__icon,
  .starcom-loaded-review__source,
  .about-badge,
  .wc-block-cart__empty-cart__title
) {
  background: #171717 !important;
  border-color: var(--starcom-border) !important;
  color: var(--starcom-text) !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  input:not([type="submit"]):not([type="button"]),
  textarea,
  select,
  .nice-select,
  .select2-selection,
  .select2-dropdown,
  .wc-block-components-text-input input,
  .wc-blocks-components-select__select
) {
  background: #111 !important;
  border-color: #353535 !important;
  color: #f7f7f7 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body #exp-wapper :where(input, textarea)::placeholder {
  color: #8d8d8d !important;
  opacity: 1;
}

html[data-theme="dark"] body #exp-wapper :where(
  .sk-btn,
  .sk-card__pill,
  .sk-pill,
  .sc-btn--primary,
  .sk-btn-main,
  .rq__btn,
  .skm__send,
  .catcard__cta,
  .catcard__btn,
  .starcom-favorites-back,
  .starcom-favorite-card__cta,
  .starcom-recently-viewed__link,
  .starcom-review-card__badge,
  .starcom-loaded-review__tags span,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .wp-block-button__link
) {
  background: var(--starcom-accent) !important;
  border-color: var(--starcom-accent) !important;
  color: #080808 !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  .sk-btn *,
  .sk-card__pill *,
  .sk-pill *,
  .sc-btn--primary *,
  .sk-btn-main *,
  .rq__btn *,
  .skm__send *,
  .catcard__cta *,
  .catcard__btn *,
  .starcom-favorites-back *,
  .starcom-favorite-card__cta *,
  .starcom-recently-viewed__link *,
  .woocommerce a.button *,
  .woocommerce button.button *,
  .wp-block-button__link *
) {
  color: #080808 !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  .sk-card__img,
  .sk-imgbox,
  .sk-prod-media,
  .sc-thumb,
  .pp-imgwrap,
  .starcom-favorite-card__media,
  .woocommerce-product-gallery__image,
  .woocommerce ul.products li.product a img,
  .wc-block-grid__product-image
) {
  background-color: #e9e9e9 !important;
  border-color: #2b2b2b !important;
}

html[data-theme="dark"] body #exp-wapper :where(
  .sc-msg--info,
  .sk-modal__msg
) {
  background: #10232d !important;
  color: #9bdcf7 !important;
}

html[data-theme="dark"] body #exp-wapper :where(.sc-msg--ok, .sk-success__icon, .sc-success__icon) {
  background: #102517 !important;
  color: #8ee5a7 !important;
}

html[data-theme="dark"] body #exp-wapper :where(.sc-msg--err) {
  background: #2b1111 !important;
  color: #ffaaaa !important;
}

html[data-theme="dark"] #exp-header-elementor :where(
  .exp-header-elementor-main,
  .exp-header-elementor-sticky,
  .px-header--transparent,
  #exp-header-mobile,
  .e-con,
  .elementor-widget-container
),
html[data-theme="dark"] #mmenu-wrapper,
html[data-theme="dark"] #mmenu-wrapper .mmenu-inner,
html[data-theme="dark"] footer,
html[data-theme="dark"] footer :where(.elementor, .e-con, .elementor-widget-container) {
  background-color: #000 !important;
  color: #f7f7f7 !important;
}

/* Header and navigation: never allow a light layer below white menu text. */
html[data-theme="dark"] #exp-header-elementor,
html[data-theme="dark"] #exp-header-elementor :where(
  .exp-header-desktop,
  .exp-header-elementor-main,
  .exp-header-elementor-sticky,
  .px-header--transparent,
  .full-width-menu,
  .elementor,
  .elementor-element,
  .e-con,
  .e-con-inner,
  .elementor-widget,
  .elementor-widget-container,
  .main-navigation,
  #exp-header-mobile,
  .header-mobile,
  .octf-menu-mobile
) {
  background-color: #000 !important;
  background-image: none !important;
}

html[data-theme="dark"] #exp-header-elementor :where(
  .exp-menu-primary,
  .exp-menu-primary > li,
  .mobile_mainmenu,
  .mobile_mainmenu > li
) {
  background: transparent !important;
}

html[data-theme="dark"] #exp-header-elementor .exp-menu-primary :where(.sub-menu, .children),
html[data-theme="dark"] #exp-header-elementor .main-navigation :where(.sub-menu, .children),
html[data-theme="dark"] #exp-header-elementor .exp-mega-menu-elementor,
html[data-theme="dark"] #exp-header-elementor .mega-menu-content {
  background: #0d0d0d !important;
  border: 1px solid #2b2b2b !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] #exp-header-elementor .exp-menu-primary :where(.sub-menu, .children) li {
  background: #0d0d0d !important;
  border-color: #292929 !important;
}

html[data-theme="dark"] #exp-header-elementor .exp-menu-primary :where(.sub-menu, .children) li:hover {
  background: #1a1a1a !important;
}

html[data-theme="dark"] #exp-header-elementor .exp-menu-primary a,
html[data-theme="dark"] #exp-header-elementor .mobile_mainmenu a,
html[data-theme="dark"] #exp-header-elementor .mmenu-contact {
  color: #f7f7f7 !important;
  border-color: #292929 !important;
}

html[data-theme="dark"] #exp-header-elementor .exp-menu-primary :where(
  a:hover,
  .current-menu-item > a,
  .current_page_item > a,
  .current-menu-ancestor > a
) {
  color: var(--starcom-accent) !important;
}

html[data-theme="dark"] #exp-header-mobile .mmenu-toggle button,
html[data-theme="dark"] #exp-header-mobile .mmenu-toggle button svg,
html[data-theme="dark"] #exp-header-mobile .mmenu-toggle button path,
html[data-theme="dark"] #mmenu-wrapper .mmenu-close,
html[data-theme="dark"] #mmenu-wrapper .mmenu-close svg,
html[data-theme="dark"] #mmenu-wrapper .mmenu-close path {
  color: #fff !important;
  fill: currentColor !important;
}

html[data-theme="dark"] #mmenu-wrapper :where(.mmenu-header, .mobile-nav, .mmenu-footer, nav, ul, li) {
  background-color: #000 !important;
}

html[data-theme="dark"] #mmenu-wrapper .mobile_mainmenu li a {
  color: #f7f7f7 !important;
  border-bottom-color: #292929 !important;
}

html[data-theme="dark"] #mmenu-wrapper .mobile_mainmenu li a:hover {
  color: var(--starcom-accent) !important;
  background: #171717 !important;
}

html[data-theme="dark"] #exp-header-elementor :where(a, button, svg),
html[data-theme="dark"] #mmenu-wrapper :where(a, button, h3),
html[data-theme="dark"] footer :where(h1, h2, h3, h4, p, li, a, span) {
  color: #f7f7f7 !important;
}

html[data-theme="dark"] .starcom-preferences,
html[data-theme="dark"] .starcom-header-search {
  background: #111 !important;
  border-color: #333 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .starcom-header-search button {
  background: var(--starcom-accent) !important;
  color: #080808 !important;
}

html[data-theme="dark"] .starcom-favorites-link {
  background: #171717 !important;
  color: #f7f7f7 !important;
  box-shadow: inset 0 0 0 1px #333;
}

html[data-theme="dark"] .starcom-favorites-link__count {
  color: #080808 !important;
  box-shadow: 0 0 0 2px #000 !important;
}

html[data-theme="dark"] body #exp-wapper :where(hr, .sc-hr) {
  background: #292929 !important;
  border-color: #292929 !important;
}

html[data-theme="dark"] body #exp-wapper :where(table, tr, td, th) {
  border-color: #292929 !important;
}
