/* ============================================================
   Computer Melli Promo 6.0 — dark appearance
   Token-driven dark theme. Loaded last; scoped to
   html[data-cm-theme="dark"] so it never affects light mode.
   ============================================================ */

/* Foundation tokens ------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme {
  --cm-primary: #b89fc9;
  --cm-primary-strong: #8e6ca6;
  --cm-primary-bright: #d8c5e3;
  --cm-primary-soft: #33283b;
  --cm-promo: #d18a9e;
  --cm-promo-strong: #b96c84;
  --cm-dark: #121016;
  --cm-page: #151219;
  --cm-surface: #211b27;
  --cm-surface-soft: #282130;
  --cm-text: #f0e9f3;
  --cm-muted: #b1a7b6;
  --cm-line: #3b3243;
  --cm-success: #4ade80;
  --cm-warning: #fbbf24;
  --cm-focus: #c4b5fd;
  --cm-shadow-sm: 0 10px 28px rgba(0, 0, 0, .45);
  --cm-shadow: 0 24px 65px rgba(0, 0, 0, .52);
  color-scheme: dark;
}

/* Shared surfaces --------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-card,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-site-header,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-desktop-nav,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-menu,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-drawer,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-quick-categories,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-category-card,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-brand-row a,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-service-grid,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-catalog-sidebar,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-subcategory-row a,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-media,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-summary,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-thumb,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-reassurance,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-purchase-panel,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-commerce-surface,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce table.shop_table,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-cart-form,
html[data-cm-theme="dark"] body.computer-melli-theme .cart-collaterals .cart_totals,
html[data-cm-theme="dark"] body.computer-melli-theme .wc-block-components-sidebar,
html[data-cm-theme="dark"] body.computer-melli-theme .wc-block-components-totals-wrapper {
  background-color: var(--cm-surface);
  border-color: var(--cm-line);
}

/* Header & navigation ---------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-site-header {
  background: rgba(26, 23, 33, .96);
  border-bottom-color: rgba(51, 44, 61, .92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-logo-name,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-round-action,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-menu-button,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-drawer-close {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-round-action,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-menu-button,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-drawer-close {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-round-action:hover {
  background: var(--cm-primary-soft);
  border-color: var(--cm-primary);
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-search {
  background: var(--cm-surface-soft);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-search:focus-within {
  background: var(--cm-surface);
  border-color: var(--cm-primary);
  box-shadow: 0 0 0 4px rgba(184, 159, 201, .18);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-search input[type="search"] {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-search input[type="search"]::placeholder {
  color: #8a8290;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-symbol {
  color: #a79fae;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-submit {
  background: var(--cm-primary);
  color: #fff;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-results {
  background: var(--cm-surface);
  border-color: var(--cm-line);
  box-shadow: var(--cm-shadow);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-result:hover,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-result.is-active {
  background: var(--cm-primary-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-result img {
  background: var(--cm-surface-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-result small,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-search-message {
  color: var(--cm-muted);
}

html[data-cm-theme="dark"] body.computer-melli-theme .cm-desktop-nav {
  background: var(--cm-surface);
  border-bottom-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-primary-menu a {
  color: #cfc9d4;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-primary-menu a:hover {
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-primary-menu .sub-menu,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-menu {
  background: var(--cm-surface);
  border-color: var(--cm-line);
  box-shadow: var(--cm-shadow);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-parents {
  background: var(--cm-surface-raised);
  border-inline-end-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-tab,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-panel__head h3,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-subgrid a {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-tab:hover,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-tab:focus-visible,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-tab.is-active,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-subgrid a:hover {
  color: var(--cm-primary-bright);
  background: var(--cm-primary-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-subgrid a {
  background: var(--cm-surface-raised);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-primary-menu .sub-menu a:hover {
  background: var(--cm-primary-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-column h3 a {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-column > a {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mega-column > a:hover {
  color: var(--cm-primary-bright);
}

/* Drawer ----------------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-drawer {
  background: var(--cm-surface);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .55);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-drawer-head {
  border-bottom-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-nav a {
  border-bottom-color: #2a2431;
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-nav a:hover {
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-category,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-category__children a {
  border-bottom-color: #2a2431;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-category summary,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-mobile-category__children a {
  color: var(--cm-text);
}

/* Homepage ---------------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-category-thumb,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-category-card__image,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-service-grid > div > span {
  background: var(--cm-primary-soft);
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-category-card__image {
  background: linear-gradient(145deg, var(--cm-primary-soft), #3a2a52);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card {
  box-shadow: var(--cm-shadow-sm);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card__image {
  background: linear-gradient(180deg, #221d2b, #1c1823);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card__title a {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card__specs {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card__price del {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-card__price .woocommerce-Price-currencySymbol {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-category-card small,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-category-card strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-brand-row a {
  color: #b4adbb;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-brand-row a:hover {
  border-color: var(--cm-line);
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-service-grid > div {
  border-left-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-service-grid strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-service-grid small {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-section-heading > a {
  color: var(--cm-primary-bright);
}

/* Catalog / shop ---------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-breadcrumbs,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-breadcrumb {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-catalog-sidebar {
  box-shadow: var(--cm-shadow-sm);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-section {
  border-bottom-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-section h2,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-checks label {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-section > small,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-price-inputs label span,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-result-count,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-actions a {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-catalog-toolbar {
  background: var(--cm-surface);
  border-color: var(--cm-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-ordering select {
  background: var(--cm-surface) !important;
  background-color: var(--cm-surface) !important;
  border-color: var(--cm-line) !important;
  color: var(--cm-text) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-button,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-drawer,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-section input,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-price-inputs input,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-ordering-form select,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-ordering select {
  background: var(--cm-surface) !important;
  background-color: var(--cm-surface) !important;
  border-color: var(--cm-line) !important;
  color: var(--cm-text) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-button:hover,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-filter-section input:focus,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-price-inputs input:focus,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-ordering-form select:focus {
  border-color: var(--cm-primary) !important;
  background: var(--cm-surface-soft) !important;
  color: var(--cm-text) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme select option {
  background: var(--cm-surface);
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pagination a,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pagination span {
  background: var(--cm-surface);
  border-color: var(--cm-line) !important;
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pagination .current {
  background: var(--cm-primary);
  border-color: var(--cm-primary) !important;
  color: #fff;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-subcategory-row a {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-subcategory-row a > span {
  background: var(--cm-primary-soft);
  color: var(--cm-primary-bright);
}

/* Single product ---------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-media,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-summary {
  border-color: var(--cm-line);
  box-shadow: var(--cm-shadow-sm);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-main-image {
  border-color: #2a2431;
  background: linear-gradient(180deg, #201c28 0%, #1a1721 100%);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-no-image {
  border-color: #423a4d;
  background: linear-gradient(145deg, rgba(160, 118, 240, .06), transparent 48%), var(--cm-surface-soft);
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-no-image strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-heading {
  border-bottom-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-pdp-summary h1.product_title {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-model {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-short-description {
  color: #c8c2ce;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-key-specs > div {
  border-color: var(--cm-line);
  background: var(--cm-surface-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-key-specs strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-purchase-panel {
  border-color: #4a3f58;
  background: linear-gradient(180deg, var(--cm-surface) 0%, var(--cm-surface-soft) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 12px 30px rgba(0, 0, 0, .35);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-seller-row {
  border-bottom-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-seller-row small {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-seller-row strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-single-price p.price,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-single-price .price {
  color: var(--cm-text) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-single-price del {
  color: var(--cm-muted) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-single-price .woocommerce-Price-currencySymbol {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-meta {
  border-top-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-meta-list dt {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-meta-list dd {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-meta-list a {
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-reassurance > div {
  border-left-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-reassurance strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-reassurance small {
  color: var(--cm-muted);
}

/* Product tabs ------------------------------------------------------ */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs {
  border-bottom-color: var(--cm-line) !important;
  background: var(--cm-surface) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li a {
  color: var(--cm-muted) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .woocommerce-tabs ul.tabs li.active a {
  color: var(--cm-primary-bright) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel {
  color: #c8c2ce;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .woocommerce-Tabs-panel > h2:first-child {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs table.shop_attributes {
  border-color: var(--cm-line) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs table.shop_attributes th,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs table.shop_attributes td {
  border-bottom-color: var(--cm-line) !important;
  background: var(--cm-surface) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs table.shop_attributes th {
  background: var(--cm-surface-soft) !important;
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs #review_form_wrapper {
  border-color: var(--cm-line);
  background: var(--cm-surface-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .commentlist li {
  border-bottom-color: var(--cm-line);
}

/* Cart / checkout / account ----------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce table.shop_table th,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce table.shop_table td {
  border-bottom-color: var(--cm-line);
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce table.shop_table thead th {
  background: var(--cm-surface-soft);
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce a.remove {
  color: var(--cm-promo) !important;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item {
  border-color: var(--cm-line);
  background: var(--cm-surface);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-items-eyebrow {
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-items-count,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item__name,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item__unit-price strong,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item__subtotal strong {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item__unit-price span,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item__quantity span,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-item__subtotal span {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cart-collaterals .cart_totals h2,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce .cart_totals h2 {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-empty p,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-empty h2 {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-empty__eyebrow {
  color: var(--cm-primary-bright);
}

html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce form .form-row label,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-checkout h3,
html[data-cm-theme="dark"] body.computer-melli-theme #order_review_heading {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-account .woocommerce-MyAccount-navigation ul {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-account .woocommerce-MyAccount-navigation li a {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--cm-primary);
  color: #fff;
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-account .woocommerce-MyAccount-content {
  color: var(--cm-text);
}

/* Notices ----------------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-message,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-info,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-error {
  border-color: var(--cm-line);
  background: var(--cm-surface-soft);
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-message::before,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-info::before {
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce-error::before {
  color: var(--cm-promo);
}
html[data-cm-theme="dark"] body.computer-melli-theme #payment {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme #payment div.payment_box {
  background: var(--cm-primary-soft);
  color: var(--cm-text);
}

/* Forms and inputs -------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme input.input-text,
html[data-cm-theme="dark"] body.computer-melli-theme input[type="text"],
html[data-cm-theme="dark"] body.computer-melli-theme input[type="email"],
html[data-cm-theme="dark"] body.computer-melli-theme input[type="tel"],
html[data-cm-theme="dark"] body.computer-melli-theme input[type="password"],
html[data-cm-theme="dark"] body.computer-melli-theme input[type="search"],
html[data-cm-theme="dark"] body.computer-melli-theme input[type="number"],
html[data-cm-theme="dark"] body.computer-melli-theme textarea,
html[data-cm-theme="dark"] body.computer-melli-theme select,
html[data-cm-theme="dark"] body.computer-melli-theme .woocommerce select,
html[data-cm-theme="dark"] body.computer-melli-theme .select2-container .select2-selection--single,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-price-inputs input,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-single-add-to-cart .quantity .qty,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-single-add-to-cart .variations select {
  background-color: var(--cm-surface);
  border-color: var(--cm-line) !important;
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme input::placeholder,
html[data-cm-theme="dark"] body.computer-melli-theme textarea::placeholder {
  color: #8a8290;
}
html[data-cm-theme="dark"] body.computer-melli-theme input:focus,
html[data-cm-theme="dark"] body.computer-melli-theme textarea:focus,
html[data-cm-theme="dark"] body.computer-melli-theme select:focus,
html[data-cm-theme="dark"] body.computer-melli-theme .select2-container--focus .select2-selection--single,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-price-inputs input:focus {
  border-color: var(--cm-primary) !important;
  box-shadow: 0 0 0 3px rgba(160, 118, 240, .22) !important;
}

/* Select2 dropdown --------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .select2-dropdown {
  background-color: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .select2-results__option {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .select2-results__option[aria-selected="true"] {
  background-color: var(--cm-primary-soft);
  color: var(--cm-primary-bright);
}

/* WooCommerce blocks fallback ----------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .wc-block-components-notice-banner,
html[data-cm-theme="dark"] body.computer-melli-theme .wc-block-components-totals-item {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .wc-block-components-order-summary-item__image img {
  background: var(--cm-surface-soft);
}

/* Focus visibility ---------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme :focus-visible {
  outline-color: var(--cm-focus);
}

/* Footer -------------------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-site-footer {
  background: #0d0b11;
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-footer-bottom {
  border-top-color: rgba(255, 255, 255, .08);
}

/* Scrollbar (WebKit) --------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html[data-cm-theme="dark"] body.computer-melli-theme ::-webkit-scrollbar-thumb {
  background: #3b3442;
  border-radius: 8px;
  border: 3px solid var(--cm-page);
}
html[data-cm-theme="dark"] body.computer-melli-theme ::-webkit-scrollbar-track {
  background: var(--cm-page);
}

/* Quantity stepper -------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-quantity {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-quantity__button {
  background: var(--cm-surface-soft);
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-quantity__button:hover {
  background: var(--cm-primary-soft);
  color: var(--cm-primary-bright);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-quantity .qty {
  border-inline-color: var(--cm-line) !important;
  background: var(--cm-surface) !important;
  color: var(--cm-text) !important;
}

/* Spec table -------------------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-spec-table__row {
  border-color: var(--cm-line);
  background: var(--cm-surface-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-spec-table__row dt {
  color: var(--cm-muted);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-spec-table__row dd {
  color: var(--cm-text);
}

/* Review / comment form ---------------------------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs #review_form_wrapper {
  background: var(--cm-surface-soft);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-form input[type="text"],
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-form input[type="email"],
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-form textarea {
  background: var(--cm-surface);
  border-color: var(--cm-line);
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-form input:focus,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-form textarea:focus {
  border-color: var(--cm-primary);
  box-shadow: 0 0 0 3px rgba(160, 118, 240, .2);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs #respond .comment-reply-title,
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-form label {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-product-tabs .comment-notes {
  color: var(--cm-muted);
}

/* پس‌کرایه shipping cards + registration page -------------------------- */
html[data-cm-theme="dark"] body.computer-melli-theme .cm-shipping-method label {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-shipping-method label::before {
  border-color: #6a5f72;
  background: var(--cm-surface);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-shipping-method > input:checked + label {
  border-color: var(--cm-primary);
  background: var(--cm-primary-soft);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-shipping-method__tag {
  background: rgba(209, 138, 158, .16);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-summary .woocommerce-shipping-methods li {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-cart-summary .woocommerce-shipping-methods li label {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-auth-side__card {
  background: var(--cm-surface);
  border-color: var(--cm-line);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-auth-side__card h3 {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-auth-side__card li {
  color: var(--cm-text);
}
html[data-cm-theme="dark"] body.computer-melli-theme .cm-auth-side__link {
  background: var(--cm-primary-strong);
}
