/* =====================================================================
   DARK MODE + LANGUAGE/THEME TOGGLE CONTROLS
   Additive & cosmetic. Dark theme activates under html.oc-dark.
   Language switch reuses the site's built-in /locale mechanism.
   ===================================================================== */

/* ---------- Toggle control UI (works in both themes) ---------- */
#oc-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.oc-controls-li {
  list-style: none;
  display: inline-flex !important;
  align-items: center;
  margin-right: 14px;
}
.oc-lang {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--oc-line, rgba(17,24,39,.12));
  border-radius: 999px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(16,24,40,.08);
}
.oc-lang-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  line-height: 1.5;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.oc-lang-btn.active {
  background: linear-gradient(135deg, var(--base_color, #ff2732), #ff8a5c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,39,50,.3);
}
.oc-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--oc-line, rgba(17,24,39,.12));
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,24,40,.08);
  transition: transform .2s, box-shadow .2s;
}
.oc-theme-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16,24,40,.14);
}
.oc-theme-btn .oc-tt-ico { font-size: 13px; line-height: 1; }
.oc-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
}

/* Controls in dark mode */
html.oc-dark .oc-lang,
html.oc-dark .oc-theme-btn {
  background: #1b2027;
  border-color: rgba(255,255,255,.14);
}
html.oc-dark .oc-lang-btn { color: #cfd3da; }
html.oc-dark .oc-theme-btn { color: #e5e7eb; }

/* =====================================================================
   DARK THEME
   ===================================================================== */
html.oc-dark {
  color-scheme: dark;
  --background_color: #0f1216;
  --text_color: #dfe3ea;
  --navbar_color: #161a21;
  --menu_color: #1b2027;
  --border_color: rgba(255,255,255,.12);
  --feature_color: #12161d;
  --footer_background_color: #0b0e12;
  --footer_text_color: #cfd3da;
}

/* Base surfaces */
html.oc-dark body { background: #0f1216 !important; color: #dfe3ea; }
html.oc-dark p,
html.oc-dark li,
html.oc-dark span,
html.oc-dark h1, html.oc-dark h2, html.oc-dark h3,
html.oc-dark h4, html.oc-dark h5, html.oc-dark h6 { color: #dfe3ea; }
html.oc-dark a { color: #e5e7eb; }

/* Header */
html.oc-dark .header_part .sub_menu,
html.oc-dark #top_bar.sub_menu { background: #12161d !important; border-bottom-color: rgba(255,255,255,.08) !important; }
html.oc-dark .sub_menu a, html.oc-dark .sub_menu p { color: #cfd3da !important; }
html.oc-dark .main_menu { background: #161a21 !important; box-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* Search bar */
html.oc-dark .main_menu .category_box_iner { background: #1b2027 !important; border-color: rgba(255,255,255,.12) !important; }
html.oc-dark .main_menu .cat_dropdown_btn { background: #232832 !important; color: #e5e7eb !important; border-right-color: rgba(255,255,255,.12) !important; }
html.oc-dark .main_menu .category_box_input { color: #e5e7eb !important; }
html.oc-dark .main_menu .category_box_input::placeholder { color: #8a909b !important; }

/* Dropdown panels (appearance only) */
html.oc-dark .cart_iner,
html.oc-dark .user_account_iner,
html.oc-dark .select_option_list,
html.oc-dark .cat_dropdown,
html.oc-dark .live-search ul,
html.oc-dark .dropdown-menu,
html.oc-dark .modal-content,
html.oc-dark .card,
html.oc-dark .bg-white,
html.oc-dark .bg-white.p_30,
html.oc-dark .bg-white.p_20,
html.oc-dark .bg-white.p_15 { background: #1b2027 !important; color: #e5e7eb !important; border-color: rgba(255,255,255,.1) !important; }
html.oc-dark .cat_dropdown_item,
html.oc-dark .cat_dropdown_top { color: #cfd3da !important; border-bottom-color: rgba(255,255,255,.06) !important; }
html.oc-dark .cat_dropdown_item:hover,
html.oc-dark .cat_dropdown_top:hover { background: #232832 !important; }

/* Product cards */
html.oc-dark .product_tricker { background: #1b2027 !important; border-color: rgba(255,255,255,.08) !important; }
html.oc-dark .product_tricker .product_text h5 a,
html.oc-dark .product_tricker .product_text_iner h5 a,
html.oc-dark .product_tricker .price,
html.oc-dark .product_tricker .product_price { color: #e5e7eb !important; }
html.oc-dark .product_tricker .product_img .socal_icon a { background: rgba(255,255,255,.1); color: #e5e7eb; }

/* Section titles / headings on home */
html.oc-dark .product_list_tittle > h5,
html.oc-dark .section_tittle h2,
html.oc-dark .section_tittle h3 { color: #f1f3f6 !important; }

/* Project estimate / features + newsletter */
html.oc-dark .project_estimate { background: linear-gradient(180deg,#12161d 0%,#0f1216 100%) !important; }
html.oc-dark .project_estimate .single_estimate_part { background: #1b2027 !important; border-color: rgba(255,255,255,.08) !important; }
html.oc-dark .project_estimate .single_estimate_part p { color: #e5e7eb !important; }
html.oc-dark .project_estimate .estiment_content { background: linear-gradient(180deg,#1b2027 0%,#161a21 100%) !important; border-color: rgba(255,255,255,.1); }
html.oc-dark .project_estimate .estiment_content p { color: #aeb4bf; }
html.oc-dark .project_estimate .estiment_content .input-group { background: #12161d; border-color: rgba(255,255,255,.12); }
html.oc-dark .project_estimate .estiment_content .form-control { color: #e5e7eb !important; }

/* Forms */
html.oc-dark .form-control,
html.oc-dark .default_select,
html.oc-dark select.form-select,
html.oc-dark textarea.form-control {
  background: #12161d !important;
  color: #e5e7eb !important;
  border-color: rgba(255,255,255,.14) !important;
}
html.oc-dark .form-control::placeholder { color: #8a909b !important; }

/* Tables */
html.oc-dark .table { color: #dfe3ea; }
html.oc-dark .table thead th,
html.oc-dark .table td,
html.oc-dark .table th { border-color: rgba(255,255,255,.08) !important; }

/* Footer */
html.oc-dark .home_three_footer,
html.oc-dark .footer_area,
html.oc-dark footer { background: #0b0e12 !important; }
html.oc-dark .footer_links a,
html.oc-dark .footer_widget a,
html.oc-dark .copy_right_text { color: #cfd3da !important; }

/* Breadcrumb / misc panels */
html.oc-dark .breadcrumb { background: #1b2027 !important; }

/* Keep brand reds, gradients, and the logo untouched. */

@media (prefers-reduced-motion: reduce) {
  .oc-theme-btn, .oc-lang-btn { transition: none !important; }
}

