/* =====================================================================
   Rekha Fashion — Dark theme
   Active when <html data-theme="dark">. Light theme is untouched.
   ===================================================================== */
html[data-theme="dark"] {
    --dm-bg: #150d12;
    --dm-surface: #1f141b;
    --dm-surface-2: #281b24;
    --dm-surface-3: #33232e;
    --dm-line: #3b2a35;
    --dm-text: #f3e9ee;
    --dm-muted: #b6a3ae;
    --dm-input: #1a1016;
    color-scheme: dark;
}

/* ---------- Base ---------- */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #content {
    background-color: var(--dm-bg) !important;
    color: var(--dm-text);
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6,
html[data-theme="dark"] p, html[data-theme="dark"] label, html[data-theme="dark"] li,
html[data-theme="dark"] td, html[data-theme="dark"] th, html[data-theme="dark"] dt, html[data-theme="dark"] dd,
html[data-theme="dark"] .text-dark, html[data-theme="dark"] .text-body {
    color: var(--dm-text) !important;
}
html[data-theme="dark"] small, html[data-theme="dark"] .text-muted, html[data-theme="dark"] .text-secondary { color: var(--dm-muted) !important; }
html[data-theme="dark"] hr { border-color: var(--dm-line); opacity: 1; }
html[data-theme="dark"] a { color: inherit; }

/* ---------- Generic surfaces (Bootstrap + utility) ---------- */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .accordion-button,
html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .toast,
html[data-theme="dark"] [style*="background:#fff"], html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"], html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background: white"], html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background:#ffffff"], html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background-color: #ffffff"], html[data-theme="dark"] [style*="background-color:#ffffff"] {
    background-color: var(--dm-surface) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] [style*="color: #222"], html[data-theme="dark"] [style*="color:#222"],
html[data-theme="dark"] [style*="color: #333"], html[data-theme="dark"] [style*="color:#333"],
html[data-theme="dark"] [style*="color: #000"], html[data-theme="dark"] [style*="color:#000"] { color: var(--dm-text) !important; }

html[data-theme="dark"] .border, html[data-theme="dark"] .border-top, html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start, html[data-theme="dark"] .border-end,
html[data-theme="dark"] .card, html[data-theme="dark"] .modal-header, html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .nav-tabs, html[data-theme="dark"] .nav-tabs .nav-link { border-color: var(--dm-line) !important; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ---------- Forms ---------- */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="dark"] select, html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-select,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .main-search form input,
html[data-theme="dark"] .mobile-search input,
html[data-theme="dark"] .login-box .form-control {
    background-color: var(--dm-input) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #6f7b88 !important; }
html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--dm-text) !important; }
html[data-theme="dark"] .select2-results__option { color: var(--dm-text); }
html[data-theme="dark"] .input-group-text { background: var(--dm-surface-2) !important; color: var(--dm-text) !important; border-color: var(--dm-line) !important; }

/* ---------- Tables ---------- */
html[data-theme="dark"] .table, html[data-theme="dark"] table {
    --bs-table-bg: var(--dm-surface);
    --bs-table-color: var(--dm-text);
    --bs-table-striped-bg: var(--dm-surface-2);
    --bs-table-striped-color: var(--dm-text);
    --bs-table-hover-bg: var(--dm-surface-3);
    --bs-table-hover-color: var(--dm-text);
    --bs-border-color: var(--dm-line);
    color: var(--dm-text);
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-theme="dark"] table td, html[data-theme="dark"] table th { border-color: var(--dm-line) !important; }
html[data-theme="dark"] .tracktable thead, html[data-theme="dark"] td.tfoot_bg { background: var(--dm-surface-2) !important; }

/* ---------- Header ---------- */
html[data-theme="dark"] header#navbar_top,
html[data-theme="dark"] .main-header,
html[data-theme="dark"] .logo-area,
html[data-theme="dark"] .mobile-header,
html[data-theme="dark"] .mobile-search,
html[data-theme="dark"] .fixed-top,
html[data-theme="dark"] .menu-area .Cat_menu,
html[data-theme="dark"] .child_menu,
html[data-theme="dark"] ul.child-category,
html[data-theme="dark"] .sidebar-menu,
html[data-theme="dark"] .sidebar-submenu,
html[data-theme="dark"] .sidebar-childmenu,
html[data-theme="dark"] .cshort-summary,
html[data-theme="dark"] .search_product,
html[data-theme="dark"] .search_result,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .mobile-categories,
html[data-theme="dark"] .footer_nav {
    background-color: var(--dm-surface) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] .main-header,
html[data-theme="dark"] .mobile-header { box-shadow: 0 1px 0 var(--dm-line) !important; }
html[data-theme="dark"] .search_product ul li:hover,
html[data-theme="dark"] .sidebar-menu ul li:hover > a,
html[data-theme="dark"] .menu a.active, html[data-theme="dark"] .menu a:hover { background-color: var(--dm-surface-3) !important; }
html[data-theme="dark"] .menu a,
html[data-theme="dark"] ul.Cat_menu li a i, html[data-theme="dark"] ul.Cat_menu li a span,
html[data-theme="dark"] .child_main > a, html[data-theme="dark"] li.child_main > a,
html[data-theme="dark"] .sidebar-menu a, html[data-theme="dark"] .sidebar-submenu a, html[data-theme="dark"] .sidebar-childmenu a,
html[data-theme="dark"] .mobile-menu a, html[data-theme="dark"] .mobile-menu i,
html[data-theme="dark"] .mobile-menu .nav li button,
html[data-theme="dark"] .menu-bar a, html[data-theme="dark"] .menu-bag a,
html[data-theme="dark"] .header-list-items a, html[data-theme="dark"] .header-list-items i,
html[data-theme="dark"] .login-menu li a,
html[data-theme="dark"] .footer_nav a, html[data-theme="dark"] .footer_nav span, html[data-theme="dark"] .footer_nav i {
    color: var(--dm-text) !important;
}
/* Logos: brand.css swaps to the white/amber logo in dark mode */

/* ---------- Home / listing sections ---------- */
html[data-theme="dark"] .homeproduct,
html[data-theme="dark"] .hot-deals-inner,
html[data-theme="dark"] .sub-category,
html[data-theme="dark"] .categories,
html[data-theme="dark"] .category-thumb,
html[data-theme="dark"] .category-banner-products,
html[data-theme="dark"] .product-item-box,
html[data-theme="dark"] .section-meta-description,
html[data-theme="dark"] .bottoads_area,
html[data-theme="dark"] .footer_top_ads_area,
html[data-theme="dark"] section.related-product-section,
html[data-theme="dark"] section.createpage-section,
html[data-theme="dark"] .product-section,
html[data-theme="dark"] section.pro_details_area,
html[data-theme="dark"] .tab-content,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] ul.cat_wrapper,
html[data-theme="dark"] li.cat_bar > a,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .menu_view_all {
    background-color: var(--dm-surface) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .page_title p,
html[data-theme="dark"] .categories p, html[data-theme="dark"] .categories ul li a,
html[data-theme="dark"] .front-category ul li a,
html[data-theme="dark"] .category-item p,
html[data-theme="dark"] .description h2 { color: var(--dm-text) !important; }
html[data-theme="dark"] .front-category ul li a:hover { background-color: var(--dm-surface-3) !important; }

/* Product cards */
html[data-theme="dark"] .product_item,
html[data-theme="dark"] .product_item_inner,
html[data-theme="dark"] .pro_des,
html[data-theme="dark"] .quick-product {
    background-color: var(--dm-surface) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] .product_item:hover { box-shadow: 0 10px 24px rgba(0,0,0,.45) !important; }
html[data-theme="dark"] .pro_name a, html[data-theme="dark"] .quick-product .name { color: var(--dm-text) !important; }
html[data-theme="dark"] .pro_price p { color: var(--dm-text) !important; }
html[data-theme="dark"] .pro_price p del, html[data-theme="dark"] del { color: var(--dm-muted) !important; }
html[data-theme="dark"] .product_item .cart-icon-btn,
html[data-theme="dark"] .product_item .cart-icon-link { background-color: var(--dm-surface-3) !important; color: var(--dm-text) !important; }
/* Keep product photos on a light tile so white-background images look natural */
html[data-theme="dark"] .pro_img, html[data-theme="dark"] .product-img-outer-box a img { background-color: #fff; }

/* Carousels */
html[data-theme="dark"] .main-slider .owl-nav button,
html[data-theme="dark"] .brand-slider .owl-nav button { background: var(--dm-surface-2) !important; color: var(--dm-text) !important; }

/* ---------- Product details ---------- */
html[data-theme="dark"] .desc-nav-ul li a { background-color: var(--dm-surface-2) !important; color: var(--dm-text) !important; border-color: var(--dm-line) !important; }
html[data-theme="dark"] .selector-item_label { color: var(--dm-text) !important; border-color: var(--dm-line) !important; }
html[data-theme="dark"] .delivery_details tr td { color: var(--dm-text) !important; }
html[data-theme="dark"] .modal-view, html[data-theme="dark"] #custom-modal .title { background-color: var(--dm-surface) !important; color: var(--dm-text) !important; }

/* ---------- Cart / checkout ---------- */
html[data-theme="dark"] .vcart-inner,
html[data-theme="dark"] .cart-summary,
html[data-theme="dark"] .form-content,
html[data-theme="dark"] .checkout-shipping .card-header,
html[data-theme="dark"] .cart_details .card-header,
html[data-theme="dark"] .bkashform, html[data-theme="dark"] .nagadform, html[data-theme="dark"] .rocketform,
html[data-theme="dark"] .sidebar-cart-drawer,
html[data-theme="dark"] #sidebarCartContent {
    background-color: var(--dm-surface) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] .checkout-shipping h5, html[data-theme="dark"] .cart_details h5,
html[data-theme="dark"] .payment-methods label { color: var(--dm-text) !important; }

/* ---------- Customer account / auth ---------- */
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .customer-sidebar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .stats,
html[data-theme="dark"] .wishlist,
html[data-theme="dark"] .login-box,
html[data-theme="dark"] .register-now.no-account {
    background-color: var(--dm-surface) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
}
html[data-theme="dark"] .account-title, html[data-theme="dark"] .account-card label,
html[data-theme="dark"] .forget-link, html[data-theme="dark"] .cust_according_body ul li a,
html[data-theme="dark"] .subcategory-filter-list p { color: var(--dm-text) !important; }

/* ---------- About / Contact pages ---------- */
html[data-theme="dark"] .about-pg, html[data-theme="dark"] .ct-pg {
    --ab-ink: var(--dm-text); --ab-muted: var(--dm-muted); --ab-soft: var(--dm-surface); --ab-line: var(--dm-line);
    --ct-ink: var(--dm-text); --ct-muted: var(--dm-muted); --ct-soft: var(--dm-surface); --ct-line: var(--dm-line);
}
html[data-theme="dark"] .about-pg__panel, html[data-theme="dark"] .about-pg__mv, html[data-theme="dark"] .about-pg__card,
html[data-theme="dark"] .ct-pg__card, html[data-theme="dark"] .ct-pg__panel { background: var(--dm-surface-2) !important; }
html[data-theme="dark"] .about-pg__icon, html[data-theme="dark"] .ct-pg__icon { background: var(--dm-surface-3) !important; }
html[data-theme="dark"] .about-pg__cta h2, html[data-theme="dark"] .about-pg__cta p { color: #fff !important; }

/* ---------- Toastr / misc ---------- */
html[data-theme="dark"] .page-content, html[data-theme="dark"] .page-description { color: var(--dm-text) !important; }
html[data-theme="dark"] .cmn_menu ul li a { color: var(--dm-text) !important; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--dm-bg); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--dm-surface-3); }

/* =====================================================================
   Header tools: theme toggle + language switch (both themes)
   ===================================================================== */
.pm-tools { display: inline-flex; align-items: center; gap: 8px; }
.pm-tool-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; min-width: 36px; padding: 0 10px; gap: 6px;
    border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
    background: transparent; color: inherit; font-size: 13px; font-weight: 600; line-height: 1;
    cursor: pointer; transition: background .2s, border-color .2s;
}
.pm-tool-btn:hover { background: rgba(0,0,0,.05); }
.pm-tool-btn i { font-size: 15px; }
.pm-theme-btn .fa-sun { display: none; }
html[data-theme="dark"] .pm-theme-btn .fa-sun { display: inline-block; }
html[data-theme="dark"] .pm-theme-btn .fa-moon { display: none; }
.pm-lang { display: inline-flex; border: 1px solid rgba(0,0,0,.12); border-radius: 999px; overflow: hidden; height: 36px; }
.pm-lang button {
    border: 0; background: transparent; color: inherit; padding: 0 11px;
    font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.pm-lang button.is-active { background: var(--pm-primary, #660741); color: #fff; }
html[data-theme="dark"] .pm-tool-btn, html[data-theme="dark"] .pm-lang { border-color: var(--dm-line); color: var(--dm-text); }
html[data-theme="dark"] .pm-tool-btn:hover { background: var(--dm-surface-3); }
html[data-theme="dark"] .pm-lang button { color: var(--dm-text); }
html[data-theme="dark"] .pm-lang button.is-active { color: #fff; }

/* Mobile header: hamburger | logo (centered) | tools + bag */
@media (max-width: 991px) {
    .mobile-logo { grid-template-columns: 1fr auto 1fr !important; }
    .mobile-logo .menu-bar { justify-self: start; padding-left: 10px; }
    .mobile-logo .menu-bag { justify-self: end; align-items: center; gap: 4px; }
}
.pm-tools--mobile { gap: 4px; }
.pm-tools--mobile .pm-tool-btn { height: 30px; min-width: 30px; padding: 0 7px; font-size: 11.5px; }
.pm-tools--mobile .pm-tool-btn i { font-size: 14px; }
/* Desktop list item */
.header-list-items ul li.pm-tools-li { vertical-align: middle; }
.header-list-items .pm-tool-btn i { font-size: 15px; }
.header-list-items .pm-tools { color: #333; }

/* Hide Google Translate's own UI */
#google_translate_element, .goog-te-banner-frame, iframe.skiptranslate, body > .skiptranslate,
.goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style*="vertical-align: inherit"] { background: transparent !important; }
