/* Familia header refresh. Only restyles the existing header markup; switch it off in Tools > Familia Blocks. */
:root{--fh-ink:#2b1747;--fh-purple:#5B2A86;--fh-soft:#F3EEFA;--fh-red:#C52232}

/* FAMILIA10 top bar: slimmer, calmer, the coupon as a yellow ticket */
html body #pf-familia10-bar{background:linear-gradient(90deg,#2b1747,#5B2A86 50%,#2b1747)!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding:8px 16px!important;line-height:1.35!important;box-shadow:none!important}
html body #pf-familia10-bar strong{font-size:16px!important;font-weight:800;letter-spacing:.1px}
html body #pf-familia10-bar .pf-offer-detail{font-size:14px!important;margin:0!important;opacity:.85}
html body #pf-familia10-bar .pf-f10-code{background:#FFC82E!important;color:#2b1747!important;border:1.5px dashed #2b1747!important;border-radius:99px!important;padding:3px 14px!important;font-size:14px!important;letter-spacing:.5px;transition:transform .15s}
html body #pf-familia10-bar .pf-f10-code:hover{transform:translateY(-1px) rotate(-1.5deg)}
@media (max-width:767px){
  html body #pf-familia10-bar{gap:4px 8px;padding:6px 10px!important}
  html body #pf-familia10-bar strong{font-size:14px!important}
  html body #pf-familia10-bar .pf-offer-detail{font-size:12px!important}
  html body #pf-familia10-bar .pf-f10-code{font-size:13px!important;padding:2px 10px!important}
}

/* express delivery bar: one calm line */
.pf-express-topbar{background:var(--fh-soft)!important;color:var(--fh-ink)!important;border:0!important}
.pf-express-topbar .top-bar-hebrew__inner{min-height:38px!important;display:flex!important;align-items:center;justify-content:center;padding:6px 16px!important}
.pf-express-topbar .pf-delivery-options{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;font-size:14px;line-height:1.4}
.pf-express-topbar .top-bar-hebrew__text{color:var(--fh-purple)!important;font-weight:800;text-decoration:none!important;display:inline-flex;align-items:center;gap:6px}
.pf-express-topbar .top-bar-hebrew__text::before{content:"";width:8px;height:8px;border-radius:50%;background:#1fbf75;box-shadow:0 0 0 3px #1fbf7533}
.pf-express-topbar .pf-delivery-options > span{color:#4c4860}

@media (min-width:1025px){
  .pf-header-desktop .pf-header-row{height:auto!important;padding:12px 0!important;border-bottom:0!important;box-shadow:0 6px 24px #2b174712}
  .pf-header-row__inner{align-items:center!important;gap:20px}
  .pf-header-row__logo{max-height:58px;width:auto;transition:transform .2s}
  .pf-header-row__logo-link:hover .pf-header-row__logo{transform:rotate(-2deg) scale(1.03)}

  /* menu links as soft pills, kept on one line (the theme sets wrap and a 22px gap with a strong selector) */
  html body .pf-header-row__nav ul#pf-header-menu.pf-header-menu{flex-wrap:nowrap!important;gap:4px!important;column-gap:4px!important;align-items:center}
  #pf-header-menu > li{white-space:nowrap}
  html body .pf-header-row__nav ul#pf-header-menu > li > a{display:inline-flex!important;align-items:center;padding:8px 11px!important;border-radius:99px!important;font-size:15px!important;line-height:1.2!important;transition:background .15s,color .15s}
  /* colours stay on a lighter selector so the hover, upload and packages rules below can override them */
  #pf-header-menu > li > a{font-weight:600!important;color:var(--fh-ink)!important;background:transparent}
  #pf-header-menu > li > a:hover,#pf-header-menu > li.fb-mega-open > a,#pf-header-menu > li.current-menu-item > a{background:var(--fh-soft)!important;color:var(--fh-purple)!important}
  #pf-header-menu > li > a.pf-upload-menu-link{color:var(--fh-red)!important;background:#FFF0F1!important;font-weight:800!important;box-shadow:inset 0 0 0 1.5px #c5223240}
  #pf-header-menu > li > a.pf-upload-menu-link:hover{background:var(--fh-red)!important;color:#fff!important}
  #pf-header-menu > li > a[href*="familia-packages"]{background:var(--fh-purple)!important;color:#fff!important;font-weight:800!important;box-shadow:0 6px 16px #5b2a8633}
  #pf-header-menu > li > a[href*="familia-packages"]:hover{background:var(--fh-ink)!important;color:#fff!important}

  /* search as a pill; the theme's search button sits on the left (54px), so the text keeps clear of it.
     #site-header is needed because site rules style this input with an ID selector. */
  html body #site-header .pf-header-row__search form.pf-live-search-form input.search-field{width:300px!important;height:44px!important;border-radius:99px!important;border:1.5px solid transparent!important;background:var(--fh-soft)!important;padding:0 18px 0 58px!important;font-size:14px!important;color:var(--fh-ink)!important;text-overflow:ellipsis;transition:border-color .15s,background .15s,box-shadow .15s}
  html body #site-header .pf-header-row__search form.pf-live-search-form input.search-field:focus{background:#fff!important;border-color:var(--fh-purple)!important;box-shadow:0 0 0 4px #5b2a861f!important;outline:0}
  html body #site-header .pf-header-row__search form.pf-live-search-form input.search-field::placeholder{color:#7b7690}
  html body #site-header .pf-header-row__search form.pf-live-search-form button{background-color:transparent!important;border-radius:99px!important;color:var(--fh-purple)!important}

  /* cart in a circle */
  .pf-header-row__cart .wcmenucart{display:inline-flex!important;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--fh-soft);color:var(--fh-purple)!important;transition:background .15s,color .15s,transform .15s}
  .pf-header-row__cart .wcmenucart:hover{background:var(--fh-purple);color:#fff!important;transform:translateY(-1px)}
  .pf-header-row__cart .wcmenucart i{font-size:20px;color:inherit!important}
  .pf-header-row__cart .wcmenucart-details.count{background:var(--fh-red)!important;color:#fff!important;border-radius:99px!important;min-width:20px;height:20px;line-height:20px!important;font-size:12px!important;font-weight:800;padding:0 5px!important;box-shadow:0 0 0 2px #fff}
}
@media (min-width:1025px) and (max-width:1280px){
  html body .pf-header-row__nav ul#pf-header-menu > li > a{padding:7px 8px!important;font-size:14px!important}
  html body #site-header .pf-header-row__search form.pf-live-search-form input.search-field{width:220px!important}
}

/* FAMILIA10 popup: a purple coupon card matching the top bar */
html body #pf-familia10-dialog{width:min(430px,calc(100vw - 32px))!important;max-width:none!important;border:0!important;border-radius:30px!important;padding:38px 30px 28px!important;text-align:center;color:#E6D6FA!important;background:radial-gradient(circle at 85% -10%,#ffffff17 0 140px,transparent 141px),radial-gradient(circle at 0% 110%,#ffffff12 0 150px,transparent 151px),linear-gradient(150deg,#3a1866,#5B2A86 60%,#7a3fb0)!important;box-shadow:0 30px 80px #1a0f2e80!important;overflow:hidden}
html body #pf-familia10-dialog::backdrop{background:#1a0f2e99;backdrop-filter:blur(3px)}
html body #pf-familia10-dialog .pf-close{position:absolute!important;top:14px!important;left:14px!important;right:auto!important;width:36px!important;height:36px!important;border-radius:50%!important;border:0!important;background:#ffffff1f!important;color:#fff!important;font-size:22px!important;line-height:1!important;padding:0!important;cursor:pointer;display:grid;place-items:center}
html body #pf-familia10-dialog .pf-close:hover{background:#ffffff38!important}
html body #pf-familia10-dialog .pf-kicker{display:inline-block;background:#ffffff1f;color:#FFC82E!important;border-radius:99px;padding:6px 16px;margin:0 0 14px!important;font-weight:800;font-size:14px}
html body #pf-familia10-dialog h2{color:#fff!important;font-size:clamp(46px,12vw,64px)!important;font-weight:900!important;line-height:1!important;margin:0!important}
html body #pf-familia10-dialog h3{color:#FFC82E!important;font-size:24px!important;font-weight:800!important;margin:6px 0 16px!important}
html body #pf-familia10-dialog p{color:#E6D6FA!important;font-size:15px;line-height:1.6;margin:0 0 10px!important}
html body #pf-familia10-dialog p strong{color:#fff}
html body #pf-familia10-dialog .pf-f10-code{display:block;width:100%;margin:6px 0 8px!important;background:#ffffff14!important;color:#FFC82E!important;border:2.5px dashed #FFC82E!important;border-radius:18px!important;padding:14px 18px!important;font-size:26px!important;font-weight:900!important;letter-spacing:3px;cursor:pointer;box-shadow:none!important;transition:background .15s,transform .15s}
html body #pf-familia10-dialog .pf-f10-code:hover{background:#ffffff26!important;transform:scale(1.02)}
html body #pf-familia10-dialog #pf-familia10-status{display:block;color:#CFC6DE!important;font-size:13px;margin-bottom:18px}
html body #pf-familia10-dialog .pf-continue{display:block;width:100%;background:#FFC82E!important;color:#2b1747!important;border:0!important;border-radius:99px!important;padding:15px 20px!important;font-size:17px!important;font-weight:800!important;cursor:pointer;box-shadow:0 12px 28px #00000040!important;transition:background .15s,transform .15s}
html body #pf-familia10-dialog .pf-continue:hover{background:#fff!important;transform:translateY(-2px)}
html body #pf-familia10-dialog::before,html body #pf-familia10-dialog::after{display:none!important}
/* cookie notice buttons in the site's colours */
html body .cky-consent-container .cky-btn,html body .cky-consent-container .cky-btn-accept{background:#5B2A86!important;border-color:#5B2A86!important;color:#fff!important;border-radius:99px!important;font-weight:800!important}
html body .cky-consent-container .cky-consent-bar{border-radius:22px!important;box-shadow:0 20px 50px #1a0f2e40!important}
/* desktop menu labels stay on one line (the theme's more specific rule let them wrap and shrink) */
@media (min-width:1025px){html body .pf-header-row__nav ul#pf-header-menu.pf-header-menu > li{flex:none!important}html body .pf-header-row__nav ul#pf-header-menu.pf-header-menu > li > a{white-space:nowrap!important}}
@media (min-width:1025px) and (max-width:1500px){html body .pf-header-row__nav ul#pf-header-menu.pf-header-menu > li > a{font-size:14px!important;padding-inline:11px!important}}

/* category tiles (li.product-category, anywhere on the site): icon in a purple circle instead of a photo (cats.js) */
html body ul.products li.product-category.fb-cat-tile .product-inner{background:#F7F3FC!important;border:0!important;border-radius:24px!important;padding:24px 12px 18px!important;text-align:center!important;box-shadow:none!important;transition:background .2s,box-shadow .2s,transform .2s}
html body ul.products li.product-category.fb-cat-tile:hover .product-inner{background:#fff!important;box-shadow:0 18px 36px #5b2a8622!important;transform:translateY(-4px)}
html body ul.products li.product-category.fb-cat-tile img{display:none!important}
html body ul.products li.product-category.fb-cat-tile .woo-entry-image{background:none!important;margin:0 0 12px!important;padding:0!important;border-radius:0!important;overflow:visible!important;height:auto!important}
html body ul.products li.product-category.fb-cat-tile .woo-entry-image a{display:flex!important;justify-content:center}
html body .fb-cat-tile__ic{width:88px;height:88px;border-radius:50%;background:#fff;color:#5B2A86;display:grid;place-items:center;font-size:38px;line-height:1;box-shadow:0 8px 22px #5b2a861f;transition:background .2s,color .2s}
html body .fb-cat-tile__ic i{display:flex}
html body ul.products li.product-category.fb-cat-tile:hover .fb-cat-tile__ic{background:#5B2A86;color:#fff}
html body ul.products li.product-category.fb-cat-tile .product-body{position:static!important;background:none!important;padding:0!important;margin:0!important;inset:auto!important;transform:none!important}
html body ul.products li.product-category.fb-cat-tile .woocommerce-loop-category__title{position:static!important;background:none!important;color:#2b1747!important;font-size:16px!important;font-weight:800!important;line-height:1.3!important;padding:0 4px!important;margin:0!important;text-shadow:none!important}
@media (max-width:767px){
  html body ul.products:has(> li.fb-cat-tile){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body ul.products li.product-category.fb-cat-tile{width:auto!important;margin:0!important;float:none!important}
  html body ul.products li.product-category.fb-cat-tile .product-inner{padding:16px 8px 14px!important;border-radius:18px!important}
  html body .fb-cat-tile__ic{width:64px;height:64px;font-size:28px}
  html body ul.products li.product-category.fb-cat-tile .woocommerce-loop-category__title{font-size:14px!important}
}

/* my account button beside the cart (added by mobile.js) */
html body #site-header .fb-acc{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#F3EEFA;color:#5B2A86!important;text-decoration:none!important;transition:background .15s,color .15s,transform .15s;flex:none;margin-inline:0 8px}
html body #site-header .fb-acc:hover{background:#5B2A86;color:#fff!important;transform:translateY(-1px)}
html body #site-header .fb-acc i{font-size:19px;line-height:1;display:block}

/* new FAMILIA logo (assets/logo.png) in place of the old svg wherever the theme prints it, sized for its wide shape */
html body img[src*="logo-familia"]{content:url(logo.png?v=2)!important;object-fit:contain!important;aspect-ratio:900/628!important}
html body #site-header img.pf-header-row__logo{height:64px!important;max-height:none!important;width:92px!important;max-width:none!important}
html body img.pf-mobile-header-row__logo-img{height:46px!important;max-height:none!important;width:66px!important;max-width:none!important}
html body .fb-md-logo img{height:40px!important;max-height:none!important;width:57px!important;max-width:none!important}
