/*
 * Furnicom Modern Palette v5
 * Warm clinical commerce palette for pharmacy / beauty storefronts.
 * Loads after professional-refresh.css and before child-theme CSS.
 */

:root,
body[class*="furnicom-scheme-"] {
  --fm-primary: #16786f;
  --fm-primary-hover: #0f625a;
  --fm-primary-deep: #123f3b;
  --fm-primary-soft: #eaf6f3;
  --fm-primary-soft-2: #f2f9f7;
  --fm-coral: #e85d3f;
  --fm-coral-hover: #cf4d32;
  --fm-coral-soft: #fff0eb;
  --fm-amber: #f2b84b;

  --fm-page: #fbfaf6;
  --fm-page-alt: #f6f7f2;
  --fm-surface: #ffffff;
  --fm-surface-warm: #fffdf9;
  --fm-surface-soft: #f5f8f5;
  --fm-line: #e3e7df;
  --fm-line-strong: #d4dcd4;
  --fm-text: #203432;
  --fm-muted: #687a76;
  --fm-heading: #18302e;

  /* Keep all previous refresh layers aligned to the new palette. */
  --fm-accent: var(--fm-primary);
  --fm-accent-hover: var(--fm-primary-hover);
  --fm-accent-soft: rgba(22, 120, 111, .11);
  --fm-border: var(--fm-line);
  --fm-soft: var(--fm-surface-soft);
  --fm-pro-surface: var(--fm-surface);
  --fm-pro-page: var(--fm-page);
  --fm-pro-line: var(--fm-line);
  --fm-pro-text: var(--fm-text);
  --fm-pro-muted: var(--fm-muted);
  --fm-pro-shadow: 0 8px 24px rgba(27, 69, 64, .06);
  --fm-pro-shadow-strong: 0 16px 40px rgba(27, 69, 64, .11);
}

/* ========================================================================== 
   Page canvas — warm ivory instead of flat grey
   ========================================================================== */
html,
body,
body.page,
body.archive,
body.error404,
body.single-product,
body.mobile-layout,
body.mobile-layout.woocommerce-page {
  background: var(--fm-page) !important;
  color: var(--fm-text);
}

.body-wrapper,
.archive .body-wrapper,
.page .body-wrapper,
.single-product .body-wrapper,
.woocommerce-page .body-wrapper,
.search .body-wrapper {
  background-color: transparent;
}

/* Preserve white content while removing large cold-grey fields. */
.main-page,
.category-contents,
.products-wrapper,
.woocommerce-page #contents,
.single-product #contents,
.archive #contents,
.search #contents {
  background-color: transparent;
}

/* ========================================================================== 
   Header / navigation
   ========================================================================== */
.header,
.header-style1 .top,
.header-style1 .top-header,
.top-header {
  background: var(--fm-surface) !important;
}

.header-style1 .header-msg,
.header-msg {
  background: var(--fm-primary-soft-2) !important;
  border-bottom-color: #dfeae6 !important;
}

.header-style1 .header-msg a,
.header-style1 .header-msg .my-account,
.header-style1 .header-msg .support-info ul li,
.header-style1 .header-msg .support-info ul li span {
  color: #5f726e;
}

.header-style1 #main-menu,
.header-style1 .main-menu,
#main-menu,
.main-menu {
  background: rgba(255, 255, 255, .985) !important;
  border-color: var(--fm-line) !important;
  box-shadow: 0 5px 18px rgba(27, 69, 64, .055);
}

.header-style1 .primary-menu .navbar-inner .nav > li > a,
.header-style1 .main-menu .primary-menu .navbar-inner .nav > li > a,
.primary-menu .navbar-inner .nav > li > a {
  color: #29413e !important;
}

.header-style1 .primary-menu .navbar-inner .nav > li:hover > a,
.header-style1 .primary-menu .navbar-inner .nav > li.active > a,
.header-style1 .primary-menu .navbar-inner .nav > li.current-menu-item > a,
.header-style1 .primary-menu .navbar-inner .nav > li.current-menu-ancestor > a,
.header-style1 .primary-menu .navbar-inner .nav > li.fm-menu-open > a,
.primary-menu .navbar-inner .nav > li:hover > a,
.primary-menu .navbar-inner .nav > li.active > a,
.primary-menu .navbar-inner .nav > li.current-menu-item > a,
.primary-menu .navbar-inner .nav > li.current-menu-ancestor > a {
  background: var(--fm-primary) !important;
  color: #fff !important;
}

.header-style1 .main-menu .menu-right .hot-deal h3 a,
.main-menu .menu-right .hot-deal h3 a {
  color: var(--fm-coral) !important;
}

.header-style1 .main-menu .menu-right .hot-deal h3 a:hover,
.main-menu .menu-right .hot-deal h3 a:hover {
  color: var(--fm-coral-hover) !important;
}

/* Search / cart use one consistent commerce primary. */
.header-style1 .top-search .topsearch-entry,
.top-form.top-search .topsearch-entry {
  border-color: var(--fm-line-strong) !important;
  background: var(--fm-surface) !important;
}

.header-style1 .top-search .topsearch-entry .button-search-pro,
.top-form.top-search .topsearch-entry .button-search-pro,
.sw_ajax_woocommerce_search .button-search-pro,
.sw_ajax_woocommerce_search .button-ajax-search {
  background-color: var(--fm-primary) !important;
  border-color: var(--fm-primary) !important;
  color: #fff !important;
}

.header-style1 .top-search .topsearch-entry .button-search-pro:hover,
.top-form.top-search .topsearch-entry .button-search-pro:hover,
.sw_ajax_woocommerce_search .button-search-pro:hover,
.sw_ajax_woocommerce_search .button-ajax-search:hover {
  background-color: var(--fm-primary-hover) !important;
  border-color: var(--fm-primary-hover) !important;
}

.header-style1 .top-form.top-form-minicart .top-minicart-icon,
.top-form.top-form-minicart .top-minicart-icon {
  background: linear-gradient(135deg, #19877d 0%, var(--fm-primary) 100%) !important;
  box-shadow: 0 9px 22px rgba(22, 120, 111, .18) !important;
}

/* Mega menu: clean white surface with subtle mint state. */
@media (min-width: 992px) {
  .primary-menu .navbar-inner .nav.nav-mega > li.furnicom-mega-menu > .dropdown-menu,
  .primary-menu .navbar-inner .nav > li.furnicom-menu-custom > .dropdown-menu {
    border-color: var(--fm-line) !important;
    background: rgba(255, 255, 253, .99) !important;
    box-shadow: 0 20px 52px rgba(22, 61, 57, .14) !important;
  }

  .primary-menu .navbar-inner .nav.nav-mega > li.furnicom-mega-menu > .dropdown-menu > li {
    border-color: #edf0e9 !important;
  }

  .primary-menu .navbar-inner .nav.nav-mega .dropdown-menu .dropdown-submenu > a,
  .primary-menu .navbar-inner .nav.nav-mega .dropdown-menu > li > a {
    color: var(--fm-heading) !important;
  }

  .primary-menu .navbar-inner .nav.nav-mega .dropdown-menu a:hover {
    color: var(--fm-primary) !important;
  }
}

/* ========================================================================== 
   Catalog / product cards
   ========================================================================== */
.woocommerce ul.products-loop.grid li.product .products-entry,
.search ul.products-loop.grid li.product .products-entry,
.sw-woo-container-slider .item-wrap,
.sw-woo-tab .item-wrap,
.sw-woo-tab-cat .item-wrap,
ul.list li .products-entry {
  border-color: var(--fm-line) !important;
  background: var(--fm-surface) !important;
  box-shadow: var(--fm-pro-shadow) !important;
}

.woocommerce ul.products-loop.grid li.product .products-entry:hover,
.search ul.products-loop.grid li.product .products-entry:hover,
.sw-woo-container-slider .item-wrap:hover,
.sw-woo-tab .item-wrap:hover,
.sw-woo-tab-cat .item-wrap:hover,
ul.list li .products-entry:hover {
  border-color: #cadbd6 !important;
  box-shadow: var(--fm-pro-shadow-strong) !important;
}

ul.grid li .products-entry .products-thumb,
.sw-woo-container-slider .item-wrap .item-img,
.sw-woo-tab .item-wrap .item-img,
.sw-woo-tab-cat .item-wrap .item-img,
.mobile-layout .products-wrapper .products-loop.grid > li .products-thumb,
.mobile-layout .products-wrapper .products-loop.list > li .products-thumb {
  background: linear-gradient(180deg, #fbfcf8 0%, #f6f9f5 100%) !important;
}

ul.grid li .products-entry .products-content,
.sw-woo-container-slider .item-wrap .item-content,
.sw-woo-tab .item-wrap .item-content,
.sw-woo-tab-cat .item-wrap .item-content,
.item-bottom {
  background: var(--fm-surface) !important;
}

ul.grid li .products-entry .products-content h3,
ul.grid li .products-entry .products-content h4,
.sw-woo-container-slider .item-wrap .item-content h4,
.sw-woo-tab .item-wrap .item-content h4,
.sw-woo-tab-cat .item-wrap .item-content h4 {
  color: var(--fm-heading) !important;
}

/* Coral is reserved for price / promotion signals. */
.woocommerce ul.products li.product .price,
ul.grid li .products-entry .products-content .price,
ul.grid li .products-entry .products-content .item-price,
.sw-woo-container-slider .item-wrap .item-content .item-price,
.sw-woo-tab .item-wrap .item-content .item-price,
.sw-woo-tab-cat .item-wrap .item-content .item-price,
.sidebar .furnicom_best_seller_product .sw-best-seller-product ul.list-unstyled li .item-content p span.amount,
.single-product .product_detail .content_product_detail .price span.amount,
.top-form.top-form-minicart .wrapp-minicart .cart-checkout .price-total .price-total-w span.price span.amount,
.top-form.top-form-minicart .wrapp-minicart ul.minicart-content li .detail-item .product-price .price span.amount {
  color: var(--fm-coral) !important;
}

.onsale,
.woocommerce span.onsale,
.sale-off,
.product-label,
.label-new {
  background: var(--fm-coral) !important;
  border-color: var(--fm-coral) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(232, 93, 63, .18) !important;
}

/* Ratings get a restrained warm highlight rather than another brand color. */
.star-rating:before,
.star-rating span:before,
.woocommerce .star-rating:before,
.woocommerce .star-rating span:before {
  color: var(--fm-amber) !important;
}

/* Product actions */
.item-bottom .button.add_to_cart_button,
.item-bottom .button.product_type_simple,
.item-bottom .button.product_type_variable,
.single-product .product_detail .content_product_detail .product-summary-bottom .single_add_to_cart_button,
.single-product .product_detail .content_product_detail .product-summary-bottom .product_type_external,
.single-product .product_detail .content_product_detail .product-summary-bottom .product_type_grouped,
.woocommerce a.button.checkout-button,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--fm-primary) !important;
  border-color: var(--fm-primary) !important;
  color: #fff !important;
}

.item-bottom .button.add_to_cart_button:hover,
.item-bottom .button.product_type_simple:hover,
.item-bottom .button.product_type_variable:hover,
.single-product .product_detail .content_product_detail .product-summary-bottom .single_add_to_cart_button:hover,
.single-product .product_detail .content_product_detail .product-summary-bottom .product_type_external:hover,
.single-product .product_detail .content_product_detail .product-summary-bottom .product_type_grouped:hover,
.woocommerce a.button.checkout-button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--fm-primary-hover) !important;
  border-color: var(--fm-primary-hover) !important;
}

/* Toolbar */
.products-nav,
.products-nav .catalog-ordering .orderby-order-container ul li span.current-li,
.woocommerce .products-nav .woocommerce-ordering select,
.woocommerce-page .products-nav .woocommerce-ordering select {
  border-color: var(--fm-line) !important;
  background: var(--fm-surface-warm) !important;
}

.products-nav .view-mode-wrap .view-mode a.active,
.products-nav .view-mode-wrap .view-mode a:hover {
  border-color: var(--fm-primary) !important;
  background-color: var(--fm-primary) !important;
  color: #fff !important;
}

/* ========================================================================== 
   Sidebar / filters
   ========================================================================== */
.woocommerce-page .sidebar .widget,
.archive .sidebar .widget,
.search .sidebar .widget,
.single-product .sidebar .widget {
  border-color: var(--fm-line) !important;
  background: var(--fm-surface-warm) !important;
  box-shadow: 0 6px 20px rgba(27, 69, 64, .045) !important;
}

.sidebar .widget .widget-inner .block-title-widget h2,
.woocommerce-page .sidebar .widget .widget-title,
.archive .sidebar .widget .widget-title,
.search .sidebar .widget .widget-title,
.single-product .sidebar .widget .widget-title {
  border-bottom-color: rgba(255,255,255,.10) !important;
  background: var(--fm-primary-deep) !important;
  color: #fff !important;
}

.sidebar .widget .widget-inner .block-title-widget h2:after,
.woocommerce-page .sidebar .widget .widget-title:after,
.archive .sidebar .widget .widget-title:after,
.search .sidebar .widget .widget-title:after,
.single-product .sidebar .widget .widget-title:after {
  background: #6cc5b9 !important;
}

.sidebar .widget_product_categories .product-categories li a {
  color: #4e625e !important;
}

.sidebar .widget_product_categories .product-categories li a:hover {
  background: var(--fm-primary-soft) !important;
  color: var(--fm-primary) !important;
}

.widget_product_tag_cloud .tagcloud a,
.widget_tag_cloud .tagcloud a {
  border-color: #dfe7df !important;
  background: #f7faf6 !important;
  color: #596d68 !important;
}

.widget_product_tag_cloud .tagcloud a:hover,
.widget_tag_cloud .tagcloud a:hover {
  border-color: #9bc8c0 !important;
  background: var(--fm-primary-soft) !important;
  color: var(--fm-primary) !important;
}

.sidebar .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: #e4ebe7 !important;
}

.sidebar .widget_price_filter .ui-slider .ui-slider-range,
.sidebar .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--fm-primary) !important;
}

.sidebar .widget_price_filter .price_slider_amount .button {
  background: var(--fm-primary-deep) !important;
}

.sidebar .widget_price_filter .price_slider_amount .button:hover {
  background: var(--fm-primary) !important;
}

/* ========================================================================== 
   Single product
   ========================================================================== */
.single-product > .product,
.single-product .tabs .tabbable,
.single-product .product_detail .slider_img_productd .product-images .product-images-container .product-responsive .slick-list .slick-track .images {
  border-color: var(--fm-line) !important;
  background: var(--fm-surface) !important;
}

.single-product .product_detail .slider_img_productd .product-images .product-images-container .product-responsive .slick-list .slick-track .images,
.single-product .product_detail .content_product_detail .product-description,
.single-product .product_detail .content_product_detail .reviews-content .product-stock span {
  background-color: var(--fm-surface-soft) !important;
}

.single-product .product_detail .content_product_detail h1 {
  color: var(--fm-heading) !important;
}

.single-product .tabs .tabbable .nav-tabs {
  border-bottom-color: var(--fm-line) !important;
  background: #f7faf7 !important;
}

.single-product .tabs .tabbable .nav-tabs li.active a,
.single-product .tabs .tabbable .nav-tabs li a:hover {
  border-bottom-color: var(--fm-primary) !important;
  background: var(--fm-primary-soft) !important;
  color: var(--fm-primary) !important;
}

/* ========================================================================== 
   Mini cart
   ========================================================================== */
.top-form.top-form-minicart .wrapp-minicart {
  border-color: var(--fm-line) !important;
  background: var(--fm-surface) !important;
  box-shadow: 0 18px 46px rgba(22, 61, 57, .16) !important;
}

.top-form.top-form-minicart .wrapp-minicart .minicart-title {
  background: var(--fm-primary-deep) !important;
  color: #fff !important;
}

.top-form.top-form-minicart .wrapp-minicart ul.minicart-content {
  background: var(--fm-surface-warm) !important;
}

.top-form.top-form-minicart .wrapp-minicart ul.minicart-content li {
  border-bottom-color: var(--fm-line) !important;
}

.top-form.top-form-minicart .wrapp-minicart .cart-checkout {
  border-top-color: var(--fm-line) !important;
  background: #f8faf7 !important;
}

.top-form.top-form-minicart .wrapp-minicart .cart-checkout .cart-links .cart-link a {
  border-color: #cfded9 !important;
  background: #fff !important;
  color: var(--fm-primary-deep) !important;
}

.top-form.top-form-minicart .wrapp-minicart .cart-checkout .cart-links .checkout-link a {
  border-color: var(--fm-primary) !important;
  background: var(--fm-primary) !important;
  color: #fff !important;
}

.top-form.top-form-minicart .wrapp-minicart .cart-checkout .cart-links .checkout-link:hover a {
  border-color: var(--fm-primary-hover) !important;
  background: var(--fm-primary-hover) !important;
}

/* ========================================================================== 
   Home sections / support strip / footer
   ========================================================================== */
.sidebar-above-footer,
.page-template-page-home6 .sidebar-above-footer {
  border-top-color: #dce9e4 !important;
  background: #edf7f3 !important;
}

.sidebar-above-footer .need-help h3 {
  color: var(--fm-heading) !important;
}

.sidebar-above-footer .need-help p {
  color: #5e716c !important;
}

.footer {
  background: linear-gradient(135deg, #102f2d 0%, #163f3b 58%, #112a29 100%) !important;
  color: rgba(255,255,255,.78);
}

.footer:after {
  background: radial-gradient(circle at 18% 0%, rgba(93, 194, 178, .13), transparent 38%) !important;
}

.footer .footer-top .widget_text {
  border-color: rgba(203, 235, 228, .12) !important;
  background: rgba(255,255,255,.055) !important;
}

.footer .footer-top .widget .button-ver-menu:after,
.footer .footer-top .widget_nav_menu .menu li a:before {
  background-color: #64c3b6 !important;
  color: #64c3b6 !important;
}

.footer .footer-top .widget_nav_menu .menu li a,
.footer .footer-top .contact-footer ul li,
.footer .footer-top .contact-footer ul li span,
.footer .footer-top .contact-footer ul li a {
  color: rgba(240, 251, 248, .76) !important;
}

.footer .copyright,
.footer .footer-bottom {
  border-color: rgba(203, 235, 228, .10) !important;
}

.footer .copyright {
  background: rgba(7, 26, 25, .20) !important;
}

.footer .copyright-text p a,
.footer a:hover {
  color: #74d0c3 !important;
}

.btt #furnicom-totop a {
  background-color: var(--fm-primary) !important;
  box-shadow: 0 8px 20px rgba(22, 120, 111, .24) !important;
}

/* Generic interactive accents that remain hard-coded in the legacy theme. */
a:hover,
.entry-title a:hover,
.product-name a:hover,
.woocommerce a.remove:hover {
  color: var(--fm-primary);
}

.woocommerce-message,
.woocommerce-info {
  border-color: #b9d9d2 !important;
  background: #f2faf7 !important;
}

.woocommerce-error {
  border-color: #f0b7aa !important;
  background: #fff6f3 !important;
}

/* Mobile: same warm canvas and teal interaction language. */
@media (max-width: 991px) {
  .mobile-layout .header-mobile-style1 .header-wrrapper,
  .mobile-layout .header-mobile-style1 .mobile-search .topsearch-entry {
    border-color: var(--fm-line) !important;
    background: var(--fm-surface) !important;
  }

  .mobile-layout .header-mobile-style1 .header-cart,
  .mobile-layout .header-mobile-style1 .header-wishlist,
  .mobile-layout .header-mobile-style1 .header-menu-categories {
    color: var(--fm-primary) !important;
  }

  .mobile-layout .products-wrapper .products-loop.grid > li .products-entry,
  .mobile-layout .products-wrapper .products-loop.list > li .products-entry {
    border-color: var(--fm-line) !important;
    background: var(--fm-surface) !important;
  }
}
