/* Remove leftover spacing under product title */
.single-product .entry-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* Move WooCommerce category titles below images */
.woocommerce ul.products li.product-category h2 {
    position: static !important;
    background: none !important;
    color: #000 !important; /* adjust text color */
    text-align: center;
    padding-top: 10px;
    padding-bottom: 0;
}
.woocommerce ul.products li.product-category a {
    display: block;
}
.datasheet-button {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 15px;
    background-color: #1e73be;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease-in-out;
}
.datasheet-button:hover {
    background-color: #155a96;
    transform: translateY(-1px);
    color: #ffffff !important;
}
.single-product .cart {
    margin-top: 20px;
}
.summary.entry-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}
.single-product div.product {
    gap: 40px;
    margin-top: 30px;
}
.product_title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}
.single_add_to_cart_button:hover {
    transform: translateY(-2px);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 10px 15px;
    border-radius: 6px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: #f1f1f1;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: none;
}
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.related.products ul.products li.product {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}
.related.products ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.related.products ul.products li.product img {
    border-radius: 8px;
}
.related.products {
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.single-product .woocommerce-tabs,
.related.products {
    margin-top: 50px;
}
.single-product .entry-meta,
.single-product .posted-by,
.single-product .posted-on,
.single-product .byline {
    display: none !important;
}
.custom-benefits {
    margin-top: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.custom-benefits {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.custom-benefits p {
    margin: 5px 0;
}
.single-product form.cart {
    display: flex;
    flex-direction: column;
}
.custom-benefits {
    margin-top: 15px;
}
.custom-benefits {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.custom-benefits {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.custom-benefits {
    margin-top: 20px;
    margin-bottom: 30px;
}
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.woocommerce ul.products li.product img {
    border-radius: 8px;
}
.woocommerce ul.products li.product h2 {
    font-size: 15px;
    line-height: 1.4;
    margin: 10px 0 5px;
    font-weight: 600;
}
.single-product .posted_in {
    display: none !important;
}
.datasheet-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 18px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}
.single-product .datasheet-button {
    margin-top: 30px;
    display: inline-block;
}
.single-product .datasheet-button {
    background: transparent;
    border: 1px solid #1e73be;
    color: #1e73be !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}
.single-product form.cart {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.single-product .datasheet-button {
    font-size: 14px;
    opacity: 0.9;
}
.single-product form.cart {
    border-bottom: 1px solid #eee;
}
.woocommerce div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    width: auto;
    padding: 12px 24px;
}

.custom-benefits {
    display: none !important;
}
/* Container */
.woocommerce-product-search {
    display: flex;
    max-width: 420px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #fff;
}

/* Input field */
.woocommerce-product-search .search-field {
    flex: 1;
    padding: 12px 18px;
    border: none;
    font-size: 14px;
    outline: none;
}

/* Button */
.woocommerce-product-search button {
    background: #2b2b2b;
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Hover effect */
.woocommerce-product-search button:hover {
    background: #000;
}

/* Remove ugly default borders */
.woocommerce-product-search input,
.woocommerce-product-search button {
    border: none;
}


/* === FiboSearch clean minimalist style === */

/* Search bar container */
.dgwt-wcas-search-wrapp {
    max-width: 420px;
}

/* Input field */
.dgwt-wcas-search-input {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

/* Remove heavy focus glow */
.dgwt-wcas-search-input:focus {
    border-color: #999 !important;
    box-shadow: none !important;
}

/* Search dropdown */
.dgwt-wcas-suggestions-wrapp {
    border-radius: 6px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
    border: 1px solid #eee !important;
}

/* Each result item */
.dgwt-wcas-suggestion {
    padding: 8px 12px !important;
    font-size: 14px !important;
}

/* Product image (optional: hide for cleaner look) */
.dgwt-wcas-si {
    display: none !important;
}

/* Product title */
.dgwt-wcas-st {
    font-weight: 500 !important;
}

/* Price styling */
.dgwt-wcas-sp {
    color: #666 !important;
    font-size: 13px !important;
}
/* Make wrapper relative so icon behaves */
.dgwt-wcas-search-input {
    background: #fafafa !important;
    border: 1px solid #e5e5e5 !important;
}




/* Main menu spacing reduction */
.main-navigation ul li a,
.site-navigation ul li a,
nav ul li a {
    padding-left: 15px !important;
    padding-right: 15px !important;
}



/* Target ALL WordPress dropdowns */
ul.sub-menu {
    padding: 4px 0 !important;
    min-width: 160px !important;
}

ul.sub-menu li a {
    padding: 5px 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

ul.sub-menu li {
    margin: 0 !important;
}


/* Dropdown container */
ul.sub-menu {
    padding: 6px 0 !important;
    min-width: 180px !important;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Menu items */
ul.sub-menu li a {
    padding: 7px 14px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #2b2b2b;
    display: block;
    border-left: 2px solid transparent;
    transition: all 0.18s ease;
}

/* Subtle divider between items */
ul.sub-menu li:not(:last-child) a {
    border-bottom: 1px solid #f1f1f1;
}

/* Hover effect (this is the “premium” feel) */
ul.sub-menu li a:hover {
    background: #f7f9fc;
    color: #000;
    border-left: 2px solid #0073aa; /* your brand accent */
    padding-left: 18px !important;
}

/* Smooth appearance */
ul.sub-menu {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.18s ease;
    display: block;
    visibility: hidden;
}

li:hover > ul.sub-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}







.main-navigation .sub-menu {
  transform: none !important;
  animation: none !important;
  transition: none !important;
  left: 0 !important;
}















/* ===== RESET MENU STRUCTURE ===== */

.main-navigation,
.main-navigation ul,
.main-navigation li {
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li {
  position: relative !important;
}

/* top-level links */
.main-navigation > ul > li > a {
  display: flex;
  align-items: center;
  padding: 18px 16px !important;
  line-height: 9 !important;
}

/* dropdown container */
.main-navigation .sub-menu {
  position: absolute !important;
  top: 70% !important;
  left: 0 !important;

  margin: 0 !important;
  padding: 8px 0 !important;

  min-width: 220px;
  background: #fff;

  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;

  z-index: 9999;
}

/* show dropdown */
.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* dropdown links */
.main-navigation .sub-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
}






















/* =========================
   FILTER TOGGLE BUTTON
========================= */

.filter-toggle {
    background: none;
    border: none;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    padding: 12px 18px;
		border: 1px solid #e5e5e5;
		border-radius: 999px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
    color: #111;
}

.filter-toggle {
    transition: color 0.25s ease, opacity 0.25s ease;
}

.filter-toggle:hover {
    color: #111;
    opacity: 0.6;
}


.filter-toggle {
		margin-bottom: 30px;
}





/* =========================
   BACKDROP OVERLAY
========================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 9998;
    pointer-events: none;
}

body.filter-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================
   FILTER PANEL
========================= */

.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 9999;

    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

    padding: 32px 28px;
    overflow-y: auto;

    font-family: Roboto, sans-serif;
    color: #111;

    border-right: 1px solid #eee;
}

.filter-panel.open {
    transform: translateX(0);
}

/* subtle scrollbar */
.filter-panel::-webkit-scrollbar {
    width: 6px;
}

.filter-panel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}


/* =========================
   HEADER
========================= */

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    margin-top: 10px;
}

.filter-header span {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

/* close button */
.filter-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
		color: #000;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-close:hover {
    opacity: 0.7;
	  transform: scale(1.05);
}


/* =========================
   FILTER GROUPS
========================= */

.wpc-filters-widget {
    margin-top: 10px;
}

.wpc-filter {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f2f2f2;
}


.wpc-filter-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #888;
    margin-bottom: 10px;
    padding-left: 2px;
}

.wpc-filter-content {
    margin: 0;
}


/* =========================
   SELECT DROPDOWN (PREMIUM RESET)
========================= */

.filter-panel select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;

    padding: 10px 0;
    font-size: 14px;
    color: #111;

    appearance: none;
    outline: none;
	  transition: border-color 0.25s ease, padding-left 0.25s ease;
}

.filter-panel select:focus {
    border-bottom: 1px solid #000;
    padding-left: 2px;
}

.wpc-filter-content select:focus {
    outline: none;
}


/* =========================
   MISC (PLUGIN CLEANUP)
========================= */

.wpc-count {
    display: none !important;
}








 /* HIDE NATIVE SELECTS */
.filter-panel select {
    display: none !important;
}

/* CUSTOM FILTER UI */
.fe-custom-group {
    margin-bottom: 24px;
}

.fe-custom-title {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.fe-custom-options {
    display: flex;
    flex-direction: column;
}

.fe-custom-option {
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fe-custom-option:hover {
    background: #f7f7f7;
    padding-left: 6px;
}

.fe-custom-option.active {
    font-weight: 600;
    color: #000;
}

/* safety */
.filter-panel * {
    box-sizing: border-box;
}








/* hidden checkbox controller */
#filter-toggle {
    display: none;
}

/* panel default hidden */
.filter-panel {
    position: fixed;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.35s ease;
    padding: 30px;
    overflow-y: auto;
}

/* show panel when checked */
#filter-toggle:checked ~ .filter-panel {
    left: 0;
}

/* button styling */
.filter-toggle {
    cursor: pointer;
}







/* 1. Hide the theme's filter toggle button on all pages */
.filter-toggle {
    display: none !important;
}

/* 2. Hide the Filter Everything widget/panel on all pages */
.wpc-filters-widget-wrapper {
    display: none !important;
}

/* 3. Show both the button and the panel ONLY on the 'atcost' category page */
body.tax-product_cat.term-atcost .filter-toggle,
body.tax-product_cat.term-atcost .wpc-filters-widget-wrapper {
    display: block !important;
}