.rfc-menu-cart-item{display:flex!important;align-items:center!important;overflow:visible!important}
.rfc-cart-widget{position:relative;display:inline-flex;z-index:999999}
.rfc-cart-trigger{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #C9DDEB;border-radius:12px;background:#fff;color:var(--rfc-navy);font:700 14px/1.1 inherit;cursor:pointer;box-shadow:0 5px 18px rgba(18,57,94,.08);transition:.2s ease}
.rfc-cart-trigger:hover{transform:translateY(-1px);border-color:var(--rfc-accent);box-shadow:0 9px 24px rgba(18,57,94,.12)}
.rfc-cart-icon{width:22px;height:22px;display:inline-flex}.rfc-cart-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.rfc-cart-count{min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--rfc-blue);color:#fff;font-size:12px;font-weight:900}
.rfc-cart-overlay{position:fixed;inset:0;background:rgba(8,30,50,.45);backdrop-filter:blur(3px);z-index:999997}
.rfc-cart-drawer{position:fixed;top:0;right:0;width:min(430px,94vw);height:100dvh;background:#fff;z-index:999998;box-shadow:-30px 0 70px rgba(8,30,50,.18);display:flex;flex-direction:column;transform:translateX(0)}
.rfc-cart-head{display:flex;align-items:center;justify-content:space-between;padding:22px;border-bottom:1px solid #E4EDF3}.rfc-cart-head h3{margin:3px 0 0;color:var(--rfc-navy);font-size:24px}.rfc-eyebrow{font-size:11px;letter-spacing:.14em;color:var(--rfc-blue);font-weight:900}.rfc-cart-close{width:38px;height:38px;border:1px solid #D4E4EE;border-radius:10px;background:#F5FAFD;color:var(--rfc-navy);font-size:25px;cursor:pointer}.rfc-cart-drawer-count{padding:12px 22px;background:#F2F8FC;color:#536D80;font-size:13px}.rfc-cart-items{padding:8px 18px;overflow:auto;flex:1}.rfc-cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:14px 4px;border-bottom:1px solid #E8EFF4}.rfc-cart-thumb img{width:64px!important;height:64px!important;object-fit:cover!important;border-radius:11px!important;background:#F2F7FA}.rfc-cart-item-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.rfc-cart-item-name{color:var(--rfc-navy)!important;font-weight:800;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rfc-cart-item-qty{color:#718798;font-size:12px}.rfc-cart-item-price{color:var(--rfc-blue);font-weight:900;white-space:nowrap}.rfc-cart-foot{padding:18px 22px 22px;border-top:1px solid #E4EDF3;background:#FBFDFF}.rfc-cart-total{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;color:var(--rfc-navy)}.rfc-cart-total strong{font-size:20px}.rfc-cart-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px}.rfc-btn{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:11px;font-weight:800;text-decoration:none!important}.rfc-btn-ghost{border:1px solid #BCD4E4;color:var(--rfc-navy)!important;background:#fff}.rfc-btn-primary{background:linear-gradient(135deg,var(--rfc-blue),var(--rfc-accent));color:#fff!important}.rfc-cart-empty{padding:45px 15px;text-align:center;display:flex;flex-direction:column;gap:6px;color:#718798}.rfc-cart-empty strong{color:var(--rfc-navy);font-size:18px}
.rfc-toast{position:fixed;right:24px;bottom:24px;z-index:1000000;background:var(--rfc-navy);color:#fff;border-radius:13px;padding:14px 17px;box-shadow:0 14px 40px rgba(18,57,94,.28);display:flex;align-items:center;gap:10px;font-weight:800}.rfc-toast:before{content:'✓';width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;background:var(--rfc-accent);border-radius:50%}
body.rfc-product-ui .single-product-content-bottom .product-content.entry-content.rfc-hide-duplicate{display:none!important}
body.rfc-product-ui.rfc-hide-original-meta .product_meta{display:none!important}
@media(max-width:600px){.rfc-cart-label{display:none}.rfc-cart-trigger{padding:8px 10px}.rfc-cart-actions{grid-template-columns:1fr}.rfc-toast{left:12px;right:12px;bottom:12px}}

/* REME Fabify Universal Header Search */
.rfc-menu-search-item{display:flex!important;align-items:center!important}
.rfc-search-widget{display:inline-flex;align-items:center;position:relative;font-family:inherit}
.rfc-search-trigger{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;border:1px solid #c8dce9!important;border-radius:12px!important;background:#fff!important;color:var(--rfc-navy)!important;font:700 13px/1 inherit!important;cursor:pointer;box-shadow:0 7px 20px rgba(18,57,94,.07);transition:.2s ease}
.rfc-search-trigger:hover,.rfc-search-trigger:focus{background:var(--rfc-navy)!important;color:#fff!important;border-color:var(--rfc-navy)!important;transform:translateY(-1px);box-shadow:0 10px 24px rgba(18,57,94,.18)}
.rfc-search-trigger-icon{width:19px;height:19px;display:inline-flex}.rfc-search-trigger svg,.rfc-search-field-wrap svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.rfc-search-overlay{position:fixed!important;inset:0!important;z-index:999998!important;background:rgba(8,30,52,.64)!important;backdrop-filter:blur(7px)}
.rfc-search-modal{position:fixed!important;inset:0!important;z-index:999999!important;display:flex;align-items:flex-start;justify-content:center;padding:8vh 20px 30px;pointer-events:none}
.rfc-search-modal[hidden],.rfc-search-overlay[hidden]{display:none!important}
.rfc-search-shell{pointer-events:auto;width:min(920px,100%);max-height:84vh;overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(255,255,255,.8);border-radius:24px;box-shadow:0 28px 90px rgba(5,28,49,.34)}
.rfc-search-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:24px 26px 17px;background:linear-gradient(135deg,#f8fbfd,#eef7fc);border-bottom:1px solid var(--rfc-border)}
.rfc-search-head h3{margin:2px 0 4px!important;color:var(--rfc-navy)!important;font-size:25px!important;line-height:1.15!important;font-weight:800!important}.rfc-search-head p{margin:0!important;color:#60778a!important;font-size:13px!important}.rfc-eyebrow{display:block;color:var(--rfc-accent);font-size:10px;font-weight:900;letter-spacing:.16em}
.rfc-search-close{flex:0 0 40px;width:40px;height:40px;padding:0!important;border:1px solid #c9dce8!important;border-radius:12px!important;background:#fff!important;color:var(--rfc-navy)!important;font-size:26px!important;line-height:36px!important;cursor:pointer}.rfc-search-close:hover{background:var(--rfc-navy)!important;color:#fff!important}
.rfc-search-field-wrap{margin:20px 24px 10px;height:58px;border:2px solid #d4e4ee;border-radius:16px;display:grid;grid-template-columns:26px 1fr 28px;align-items:center;gap:10px;padding:0 16px;background:#fff;transition:.2s}.rfc-search-field-wrap:focus-within{border-color:var(--rfc-accent);box-shadow:0 0 0 4px rgba(56,162,222,.12)}.rfc-search-field-wrap>span:first-child{width:22px;height:22px;color:var(--rfc-navy)}
.rfc-search-input{width:100%!important;height:52px!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--rfc-navy)!important;font-size:16px!important;font-weight:650!important;padding:0!important;margin:0!important}.rfc-search-input::placeholder{color:#8ba0b1!important;font-weight:500}
.rfc-search-spinner{width:19px;height:19px;border:2px solid #d4e4ee;border-top-color:var(--rfc-blue);border-radius:50%;animation:rfcSpin .7s linear infinite}.rfc-search-spinner[hidden]{display:none!important}@keyframes rfcSpin{to{transform:rotate(360deg)}}
.rfc-search-status{padding:0 26px 10px;color:#6d8292;font-size:12px;font-weight:600}.rfc-search-results{overflow:auto;padding:0 16px 14px;scrollbar-width:thin;min-height:90px}
.rfc-search-result{display:grid!important;grid-template-columns:66px minmax(0,1fr) auto 24px;align-items:center;gap:14px;padding:12px!important;margin:0 0 8px!important;border:1px solid #e0ebf2!important;border-radius:16px!important;background:#fff!important;color:var(--rfc-text)!important;text-decoration:none!important;transition:.18s ease}.rfc-search-result:hover{border-color:#9bcce7!important;background:#f6fbfe!important;transform:translateY(-1px);box-shadow:0 10px 24px rgba(18,57,94,.08)}
.rfc-search-result-thumb{width:66px;height:58px;border-radius:12px;overflow:hidden;background:#edf5fa;display:flex;align-items:center;justify-content:center;color:var(--rfc-blue);font-weight:900;font-size:13px}.rfc-search-result-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}.rfc-search-result-copy{min-width:0}.rfc-search-result-top{display:flex;align-items:center;gap:9px;min-width:0}.rfc-search-result-top strong{font-size:14px;color:var(--rfc-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rfc-search-result-top em{font-style:normal;background:#eaf6fc;color:var(--rfc-blue);border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.rfc-search-result-excerpt{display:block;margin-top:5px;color:#718596;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rfc-search-result-price{white-space:nowrap;color:var(--rfc-blue);font-size:14px;font-weight:900}.rfc-search-result-arrow{color:var(--rfc-accent);font-size:20px;font-weight:900}.rfc-search-empty{padding:28px;text-align:center;border:1px dashed #c9dce8;border-radius:16px;background:#f8fbfd}.rfc-search-empty strong,.rfc-search-empty span{display:block}.rfc-search-empty strong{color:var(--rfc-navy);font-size:15px}.rfc-search-empty span{margin-top:4px;color:#7890a1;font-size:12px}.rfc-search-foot{display:flex;justify-content:space-between;align-items:center;padding:13px 24px;border-top:1px solid var(--rfc-border);background:#f8fbfd;color:#768a9a;font-size:11px}.rfc-search-foot a{color:var(--rfc-blue)!important;font-weight:800}.rfc-search-foot kbd{border:1px solid #cbdce7;border-bottom-width:2px;background:#fff;border-radius:5px;padding:2px 5px;color:var(--rfc-navy)}body.rfc-search-open{overflow:hidden!important}
@media(max-width:767px){.rfc-search-trigger-label{display:none}.rfc-search-trigger{width:44px;padding:0}.rfc-search-modal{padding:12px}.rfc-search-shell{max-height:92vh;border-radius:18px}.rfc-search-head{padding:18px}.rfc-search-field-wrap{margin:14px}.rfc-search-status{padding-left:16px}.rfc-search-results{padding:0 10px 10px}.rfc-search-result{grid-template-columns:54px minmax(0,1fr) 20px}.rfc-search-result-thumb{width:54px;height:50px}.rfc-search-result-price{grid-column:2;grid-row:2;justify-self:start}.rfc-search-result-arrow{grid-column:3;grid-row:1/3}.rfc-search-result-excerpt{display:none}.rfc-search-foot{padding:11px 16px}}

/* =========================================================
   REME Fabify v2.3 — Header-safe premium utility controls
   IMPORTANT: styles ONLY the Search/Cart buttons themselves.
   It never changes header/menu/widget widths, flex rules, margins,
   wrapping, alignment or positioning of the active theme header.
   ========================================================= */

/* Search: compact premium control that inherits the header layout */
.rfc-search-trigger{
  min-height:42px!important;
  min-width:0!important;
  padding:0 14px!important;
  gap:8px!important;
  border:1px solid #c9dce9!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#fff 0%,#f7fbfe 100%)!important;
  color:var(--rfc-navy)!important;
  font-family:inherit!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:0!important;
  box-shadow:0 6px 18px rgba(18,57,94,.08)!important;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  transform:none!important;
}
.rfc-search-trigger:hover,
.rfc-search-trigger:focus-visible{
  background:#f0f8fc!important;
  color:var(--rfc-blue)!important;
  border-color:#9fcbe3!important;
  box-shadow:0 8px 20px rgba(18,57,94,.11)!important;
  transform:none!important;
  outline:none!important;
}
.rfc-search-trigger:before{display:none!important}
.rfc-search-trigger-icon{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#eaf5fb!important;
  color:var(--rfc-blue)!important;
  box-shadow:none!important;
}
.rfc-search-trigger-icon svg{width:14px!important;height:14px!important}
.rfc-search-trigger-label{font-weight:800!important;white-space:nowrap!important}

/* Cart: compact branded CTA, without touching the header container */
.rfc-cart-trigger{
  min-height:42px!important;
  min-width:0!important;
  padding:0 10px 0 9px!important;
  gap:7px!important;
  border:1px solid rgba(5,56,94,.32)!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#12395e 0%,#0d5e9c 100%)!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:0!important;
  box-shadow:0 7px 20px rgba(13,94,156,.18)!important;
  transition:filter .18s ease,box-shadow .18s ease!important;
  transform:none!important;
}
.rfc-cart-trigger:before{display:none!important}
.rfc-cart-trigger:hover,
.rfc-cart-trigger:focus-visible{
  color:#fff!important;
  filter:brightness(1.05)!important;
  box-shadow:0 9px 24px rgba(13,94,156,.24)!important;
  transform:none!important;
  outline:none!important;
}
.rfc-cart-icon{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  box-shadow:none!important;
}
.rfc-cart-icon svg{width:14px!important;height:14px!important}
.rfc-cart-label{font-weight:850!important;white-space:nowrap!important}
.rfc-cart-count{
  min-width:23px!important;
  height:23px!important;
  padding:0 6px!important;
  border:0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--rfc-navy)!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  box-shadow:none!important;
}

/* Do NOT style .rfc-menu-search-item / .rfc-menu-cart-item or Elementor parents.
   Their dimensions, margins and flex behavior remain 100% theme-controlled. */

@media(max-width:900px){
  .rfc-search-trigger{min-width:42px!important;width:42px!important;padding:0!important}
  .rfc-search-trigger-label{display:none!important}
  .rfc-search-trigger-icon{background:transparent!important;width:40px!important;height:40px!important}
  .rfc-cart-trigger{padding:0 8px!important;gap:5px!important}
  .rfc-cart-label{display:none!important}
  .rfc-cart-count{position:absolute!important;right:-6px!important;top:-6px!important;min-width:19px!important;height:19px!important;padding:0 4px!important;font-size:9px!important;border:1px solid #fff!important}
}
@media(max-width:480px){
  .rfc-search-trigger,.rfc-cart-trigger{min-height:40px!important;border-radius:11px!important}
  .rfc-search-trigger{width:40px!important;min-width:40px!important}
  .rfc-search-trigger-icon,.rfc-cart-icon{width:24px!important;height:24px!important}
}
