/*
 * MCTK Emerald — High-Contrast Clarity Layer (v4.1.0)
 * Loaded LAST on Home / Category / Single / Cart / Account pages.
 * Purpose: crisper borders, darker secondary text, no washed-out white overlays (WCAG AA ≥ 4.5:1).
 */
:root{
  --mcx-line:#d5dde7;
  --mcx-line-strong:#b6c2d1;
  --mcx-muted:#334155;
  --mcx-subtle:#526077;
  --mcx-shadow-sm:0 2px 10px rgba(15,23,42,.06);
}

/* ===== Header: solid white (no translucent blur washing content underneath) ===== */
.mcx-header{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-bottom:1px solid #d5dde7!important;box-shadow:0 2px 12px rgba(15,23,42,.06)!important}
.mcx-nav{border-top:1px solid #e3e9f0!important}
.mcx-nav-links a,.mcx-menu-disclosure>summary{color:#0f172a!important}
.mcx-header-actions a{color:#0f172a!important}
.mcx-header-actions svg{color:#1e293b!important}
.mcx-search-field{border-color:#b6c2d1!important}
.mcx-search-field input[type="search"]::placeholder{color:#64748b!important}

/* ===== Shared panels & cards: crisp visible borders ===== */
.mcx-pcard,
.mcx-hero-cats,
.mcx-home-seo-card,
.mcx-trust-tile,
.mcx-step,
.mcx-seo-copy,
.mcx-faq-list details,
.mcx-archive-hero,
.mcx-archive-sidebar,
.mcx-archive-toolbar,
.mcx-cat-desc-card,
.mcx-cat-faq-card .mcx-pfaq,
.mcx-pfaq,
.mcx-pfaq-item,
.mcx-sp-anchors,
body.single-product.mctk-single-emerald .product-main > .row,
body.single-product.mctk-single-emerald .woocommerce-tabs,
body.single-product.mctk-single-emerald .related.related-products-wrapper,
body.single-product.mctk-single-emerald .related .product-small .col-inner{border-color:#d5dde7!important}
.mcx-pcard{box-shadow:0 1px 3px rgba(15,23,42,.05)}
.mcx-pcard:hover{border-color:#10b981!important}
.mcx-pcard-thumb{border-color:#e3e9f0!important}
body.mctk-archive-emerald .mcx-archive-main .product-small .col-inner{border:1px solid #d5dde7!important;box-shadow:0 2px 10px rgba(15,23,42,.06)!important}
body.mctk-archive-emerald .mcx-archive-main .product-small:hover .col-inner{border-color:#10b981!important}

/* ===== Secondary text: darker, readable ===== */
.mcx-pcard .mcx-product-meta,.mcx-pcard .mcx-rating,.mcx-pcard .mcx-meta-sold,
.mcx-product-meta,.mcx-meta-sold{color:#475569!important}
.mcx-pcard .mcx-rating strong{color:#0f172a!important}
.mcx-pcard-price del,.mcx-price del,
body.mctk-archive-emerald .product-small .price del,
body.mctk-archive-emerald .product-small .price del .amount{color:#7b8794!important}
.mcx-sec-pill{color:#065f46!important;border-color:#a7f3d0!important}
.mcx-section-head p,.mcx-home-seo-copy p{color:#334155!important}
.mcx-kw-pill{color:#1e293b!important;border-color:#cfe9dc!important}
.mcx-hero-cat{color:#0f172a!important}

/* Category */
.mcx-archive-intro{color:#334155!important}
.mcx-archive-stat-txt span{color:#475569!important}
.mcx-filter-check-name{color:#1e293b!important}
.mcx-filter-check-cnt{color:#526077!important}
.mcx-filter-check input[type="checkbox"]{border-color:#7b8794!important}
.mcx-filter-check input[type="checkbox"]:checked{border-color:var(--mcx-green)!important}
.mcx-filter-body input[type="search"],.mcx-filter-body input[type="number"]{border-color:#b6c2d1!important;color:#0f172a!important}
.mcx-filter-body input::placeholder{color:#64748b!important}
.mcx-filter-group{border-bottom-color:#e3e9f0!important}
.mcx-sort-pill{border-color:#c7d2de!important;color:#1e293b!important}
.mcx-sort-label{color:#475569!important}
.mcx-view-switch{border-color:#c7d2de!important}
.mcx-price-preset{border-color:#c7d2de!important;color:#1e293b!important;background:#fff!important}
.mcx-price-preset.is-active,.mcx-price-preset:hover{border-color:var(--mcx-green)!important;color:var(--mcx-green-dark)!important;background:var(--mcx-emerald-50)!important}
.mcx-loop-chip{color:#1e293b!important;border-color:#cfd8e3!important;background:#f8fafc!important}
body.mctk-archive-emerald .product-small .ktk-grid-social-proof,
body.mctk-archive-emerald .product-small .ktk-grid-sold{color:#475569!important}
body.mctk-archive-emerald nav.woocommerce-pagination ul.page-numbers li a,
body.mctk-archive-emerald nav.woocommerce-pagination ul.page-numbers li span{border-color:#c7d2de!important;color:#0f172a!important}
.mcx-cat-desc-card,.mcx-cat-desc-card p{color:#1e293b!important}

/* Flatsome forces UPPERCASE + letter-spacing on buttons — keep natural Vietnamese casing */
.mcx-filter-submit,.mcx-loop-buy,.mcx-price-preset,.mcx-sort-pill,.mcx-pcard-buy,.mcx-search-submit,
body.mctk-archive-emerald .mcx-archive-sidebar button{text-transform:none!important;letter-spacing:0!important}

/* Single product */
body.single-product.mctk-single-emerald .product-short-description,
body.single-product.mctk-single-emerald .woocommerce-tabs .panel{color:#1e293b!important}
body.single-product.mctk-single-emerald .woocommerce-breadcrumb,
body.single-product.mctk-single-emerald .rank-math-breadcrumb{color:#475569!important}
body.single-product.mctk-single-emerald .hita-variation-buttons .hita-variation-btn{border-color:#b6c2d1!important}

/* Hero & Footer: brighter text on dark backgrounds */
.mcx-lux-hero p,.mcx-hero-ticks{color:#ecfdf5!important}
.mcx-footer p{color:#d1fae5!important}
.mcx-footer-grid>div>a:not(.mcx-brand),.mcx-footer-menu a,.mcx-footer-col>a{color:#ecfdf5!important}
.mcx-footer-bottom p{color:#a7f3d0!important}

/* WooCommerce core pages */
body.mctk-wc-emerald .woocommerce form .form-row input.input-text,
body.mctk-wc-emerald .woocommerce form .form-row textarea,
body.mctk-wc-emerald .woocommerce form .form-row select{border-color:#b6c2d1!important}
body.mctk-wc-emerald .woocommerce form .form-row label{color:#1e293b!important}

/* =====================================================================
 * v4.2.0 — BUTTON COLOR SYSTEM (all pages)
 * "Mua ngay" = brand emerald (balanced: not too dark, not washed out)
 * "Thêm vào giỏ hàng" = Zalo blue (same as the "Nhắn Zalo" contact button)
 * ===================================================================== */
.mcx-pcard-buy,
.mcx-hero-actions .mcx-button--orange,
.mcx-button--flash,
body.mctk-archive-emerald .product-small .mcx-loop-buy,
body.single-product.mctk-single-emerald .product-info form.cart .ux-buy-now-button,
body.single-product.mctk-single-emerald .product-info form.cart .buy_now_button,
body.single-product .product-info .ux-buy-now-button,
.ktk-sticky-btn-buy,
.mctk-premium-site.single-product .ktk-sticky-btn-buy{
  background:linear-gradient(135deg,#10b981 0%,#059669 100%)!important;
  border-color:#059669!important;
  color:#fff!important;
  box-shadow:0 6px 16px -6px rgba(5,150,105,.45)!important;
}
.mcx-pcard-buy:hover,
.mcx-hero-actions .mcx-button--orange:hover,
body.mctk-archive-emerald .product-small .mcx-loop-buy:hover,
body.single-product .product-info .ux-buy-now-button:hover,
.ktk-sticky-btn-buy:hover{background:linear-gradient(135deg,#059669 0%,#047857 100%)!important;filter:none!important}
.mcx-hero-actions .mcx-button--orange{box-shadow:0 0 0 2px rgba(255,255,255,.18),0 8px 18px -6px rgba(0,0,0,.35)!important}

body.single-product.mctk-single-emerald .product-info form.cart .single_add_to_cart_button,
body.single-product .product-info .single_add_to_cart_button,
.ktk-sticky-btn-select,
.mctk-premium-site.single-product .ktk-sticky-btn-select{
  background:linear-gradient(135deg,#0878f9 0%,#0068ff 55%,#0758d5 100%)!important;
  border-color:#0068ff!important;
  color:#fff!important;
  box-shadow:0 6px 16px -6px rgba(0,104,255,.45)!important;
}
body.single-product .product-info .single_add_to_cart_button:hover,
.ktk-sticky-btn-select:hover{background:linear-gradient(135deg,#0068ff 0%,#0758d5 100%)!important;filter:none!important}

/* Cart icon buttons = add-to-cart → Zalo blue tint */
.mcx-pcard-cart,
body.mctk-archive-emerald .product-small .mcx-loop-cart{
  border-color:#bfd6ff!important;
  background:#eef5ff!important;
  color:#0068ff!important;
}
.mcx-pcard-cart:hover,
body.mctk-archive-emerald .product-small .mcx-loop-cart:hover{background:#dbeafe!important;border-color:#0068ff!important;color:#0758d5!important}
