/* Kesher base + product card. Values taken from the approved comps. */

/* Buttons and pills. Base stylesheet, so every template has them. */
.kesher-btn{font-family:var(--font-label);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;font-size:11px;border-radius:var(--radius-pill);
  padding:14px 26px;cursor:pointer;border:1px solid var(--pomegranate);
  background:var(--pomegranate);color:#fff;transition:var(--transition);
  display:inline-block;text-align:center;line-height:1}
.kesher-btn:hover{background:var(--pomegranate-2);border-color:var(--pomegranate-2);color:#fff}
.kesher-btn--ghost{background:none;color:var(--pomegranate)}
.kesher-btn--ghost:hover{background:var(--pomegranate);color:#fff}
.kesher-btn[disabled]{opacity:.4;cursor:not-allowed}
.kesher-btn--wide{flex:1}

.kesher-pill{font-family:var(--font-body);font-size:13.5px;padding:9px 18px;
  border:1px solid var(--limestone);border-radius:var(--radius-pill);
  background:var(--surface-card);cursor:pointer;transition:var(--transition);color:var(--ink)}
.kesher-pill:hover{border-color:var(--ink)}
.kesher-pill.is-selected{background:var(--ink);color:var(--parchment);border-color:var(--ink)}
.kesher-pill.is-disabled{opacity:.35;cursor:not-allowed;text-decoration:line-through}

.kesher-swatch{width:34px;height:34px;border-radius:50%;
  border:1px solid var(--border-card-strong);cursor:pointer;padding:0;
  transition:var(--transition);position:relative}
/* The :focus variant is not decoration - the parent theme's reset carries
   button:focus:not(:focus-visible){box-shadow:none}, which outranks a plain
   two-class selector and strips the ring off the swatch the mouse just
   clicked. It came back only once focus moved elsewhere. */
.kesher-swatch.is-selected,
.kesher-swatch.is-selected:focus,
.kesher-swatch.is-selected:focus:not(:focus-visible){
  box-shadow:0 0 0 2px var(--surface-section),0 0 0 4px var(--ink);
  transform:scale(1.06)}
.kesher-swatch:focus-visible{outline:2px solid var(--pomegranate);outline-offset:3px}
.kesher-swatch.is-disabled{opacity:.35;cursor:not-allowed}

/* Section heading. Lives here, not in product.css, so every template gets it. */
.kesher-section{background:var(--surface-section);border-radius:var(--radius-section);
  overflow:hidden;margin-bottom:26px}
.kesher-sechead{text-align:center;margin-bottom:30px}
.kesher-sechead .k{color:var(--brass);display:block;margin-bottom:12px;
  font-family:var(--font-label);font-size:11px;font-weight:600;
  letter-spacing:var(--tracking-caps);text-transform:uppercase}
.kesher-sechead h2{font-size:clamp(28px,3.4vw,40px);font-weight:400;line-height:1.18}
.kesher-sechead h2 em{font-style:italic;color:var(--pomegranate)}
.kesher-sechead p{font-family:var(--font-body);font-size:15px;opacity:.72;
  max-width:52ch;margin:12px auto 0}

/* The page container. Defined here rather than in product.css so every
   template gets it, not only product pages. */
.kesher-shell{
  /* width:100% matters. The body is a flex column, and auto side margins on
     a flex item switch off cross-axis stretch - so without this the shell
     shrink-wrapped to its max-content width and sat at 1200px inside a
     390px phone, which is why nothing stacked. */
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--container-pad);
}

/* Elementor and Hello Elementor both try to own the content width. */
.wp-site-blocks,#page,#content,.site-main,main{max-width:none;padding:0}

@media(max-width:700px){
  .kesher-shell{padding:0 16px}
}

body{
  font-family:var(--font-body);
  font-size:var(--text-md);
  line-height:var(--leading-body);
  color:var(--text-body);
  background:var(--surface-page);
}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--text-heading);font-weight:400;line-height:var(--leading-display);margin:0}
a{color:var(--pomegranate);text-decoration:none}
a:hover{color:var(--pomegranate-2)}

[lang="he"],.kesher-he{font-family:var(--font-hebrew);direction:rtl}

.kesher-eyebrow{
  font-family:var(--font-label);font-size:11px;font-weight:600;
  letter-spacing:var(--tracking-caps);text-transform:uppercase;color:var(--brass);
}

/* ---------- Product card ---------- */

.kesher-card{
  background:var(--surface-card);
  border:1px solid var(--border-card);
  box-shadow:var(--shadow-card);
  border-radius:var(--radius-card);
  padding:18px;
  display:flex;flex-direction:column;text-align:center;position:relative;
  transition:transform .2s, box-shadow .2s;
  height:100%;
}
.kesher-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover)}

.kesher-card__art{
  height:200px;display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;position:relative;
}
.kesher-card__art img{
  max-height:100%;max-width:92%;object-fit:contain;
  mix-blend-mode:multiply;transition:transform .25s;
}
.kesher-card:hover .kesher-card__art img{transform:scale(1.04)}

/* Branded placeholder for a product with no photograph yet. */
.kesher-card__placeholder{
  width:118px;height:158px;border-radius:4px;
  background:var(--parchment);color:var(--ink);
  border:1px solid rgba(177,138,69,.4);
  box-shadow:inset 0 0 0 6px var(--parchment), inset 0 0 0 7px rgba(177,138,69,.3);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  transition:transform .25s;
}
.kesher-card:hover .kesher-card__placeholder{transform:translateY(-3px)}
.kesher-card__placeholder .he{
  font-family:var(--font-hebrew);font-weight:700;font-size:15px;
  direction:rtl;padding:0 12px;text-align:center;
}
.kesher-card__placeholder .rule{width:26px;height:1px;background:var(--brass)}
.kesher-card__placeholder::after{
  content:"KESHER";font-family:var(--font-label);font-weight:600;
  letter-spacing:.32em;font-size:8px;color:var(--brass);
}

.kesher-card__badge{
  position:absolute;top:-4px;left:2px;z-index:1;
  font-family:var(--font-label);font-weight:600;letter-spacing:var(--tracking-caps);
  text-transform:uppercase;font-size:9px;color:var(--brass);
  background:rgba(255,253,249,.92);border:1px solid rgba(216,200,174,.5);
  border-radius:var(--radius-pill);padding:4px 10px;
}

.kesher-card h3,.kesher-card__title{font-size:18px;font-weight:400;line-height:1.3;margin-bottom:2px}
.kesher-card__edition{font-family:var(--font-body);font-size:12.5px;opacity:.6;margin-bottom:10px}
.kesher-card__source{font-family:var(--font-body);font-size:11.5px;color:var(--brass);margin-bottom:8px}
.kesher-card__price{font-family:var(--font-display);font-size:16.5px;margin-bottom:10px;color:var(--ink)}
.kesher-card__price--tbd{opacity:.55;font-size:13px;font-family:var(--font-body)}

.kesher-card__btn{
  font-family:var(--font-label);font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  font-size:10px;color:var(--pomegranate);border:1px solid var(--pomegranate);
  border-radius:var(--radius-pill);padding:9px 18px;cursor:pointer;background:none;
  transition:var(--transition);margin:0 auto 12px;display:inline-block;
}
.kesher-card__btn:hover{background:var(--pomegranate);color:#fff}

.kesher-card__tags{
  display:flex;gap:6px;justify-content:center;flex-wrap:wrap;
  border-top:1px solid var(--surface-page);padding-top:10px;margin-top:auto;
}
.kesher-card__tag{
  font-family:var(--font-body);font-size:11px;background:var(--parchment);
  padding:3px 10px;border-radius:var(--radius-pill);opacity:.85;color:var(--ink);
}

/* ---------- Product grid ---------- */

.kesher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

@media(max-width:900px){
  .kesher-grid{grid-template-columns:1fr 1fr;gap:14px}
  .kesher-card__art{height:160px}
  .kesher-card__edition{display:none}
}
@media(max-width:560px){
  .kesher-grid{grid-template-columns:1fr}
  .kesher-card__art{height:200px}
  .kesher-card__edition{display:block}
}

/* ---------- Fluent Forms, brought into the design system ---------- */

.fluentform .ff-el-group{margin-bottom:16px}
.fluentform .ff-el-input--label label{font-family:var(--font-label);font-weight:600;
  letter-spacing:var(--tracking-caps);text-transform:uppercase;font-size:10.5px;
  color:var(--brass);margin-bottom:8px}
.fluentform .ff-el-form-control{font-family:var(--font-body);font-size:15px;
  padding:13px 18px;border:1px solid var(--limestone);border-radius:var(--radius-input);
  background:var(--surface-card);color:var(--ink);box-shadow:none;height:auto;
  transition:var(--transition)}
.fluentform .ff-el-form-control:focus{border-color:var(--pomegranate);box-shadow:none;outline:none}
.fluentform textarea.ff-el-form-control{min-height:130px}
.fluentform .ff-el-input--content .ff-el-form-check-label{font-family:var(--font-body);font-size:14px}
.fluentform .ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit,
.fluentform button.ff-btn{font-family:var(--font-label)!important;font-weight:600!important;
  letter-spacing:.12em!important;text-transform:uppercase!important;font-size:11px!important;
  background:var(--pomegranate)!important;color:#fff!important;
  border:1px solid var(--pomegranate)!important;border-radius:var(--radius-pill)!important;
  padding:15px 30px!important;line-height:1!important;box-shadow:none!important;
  transition:var(--transition)}
.fluentform .ff-btn-submit:hover,.fluentform button.ff-btn:hover{
  background:var(--pomegranate-2)!important;border-color:var(--pomegranate-2)!important}
.fluentform .ff-el-is-error .ff-el-form-control{border-color:var(--pomegranate)}
.fluentform .error-text,.fluentform .text-danger{font-family:var(--font-body);font-size:12.5px;color:var(--pomegranate)}
.ff-message-success{font-family:var(--font-body);font-size:15px;
  background:var(--surface-card);border:1px solid var(--limestone);
  border-radius:var(--radius-input);padding:22px 24px;color:var(--ink)}

.kesher-news .fluentform{max-width:520px;margin:0 auto}
.kesher-news .fluentform form{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.kesher-news .fluentform .ff-el-group{flex:1;min-width:220px;margin-bottom:0}
.kesher-news .fluentform .ff-el-group.ff-text-left{flex:none;width:auto}
.kesher-news .fluentform .ff-el-input--label{display:none}
.kesher-news .fluentform .ff-el-form-control{border-radius:var(--radius-pill);
  border-color:rgba(30,31,43,.14);background:#fff;text-align:left}
.kesher-news .fluentform .ff-btn-submit{width:auto!important;white-space:nowrap}
.kesher-news .ff-message-success{background:rgba(255,255,255,.7);border-color:rgba(30,31,43,.12)}

@media(max-width:560px){
  .kesher-news .fluentform form{flex-direction:column}
  .kesher-news .fluentform .ff-btn-submit{width:100%!important}
}

/* The newsletter row: Fluent Forms nests fields inside a fieldset, which
   would otherwise be the only flex child. */
.kesher-news .fluentform form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.kesher-news .fluentform fieldset{display:flex;gap:10px;align-items:center;
  flex-wrap:wrap;width:100%;justify-content:center;border:none;margin:0;padding:0}
.kesher-news .fluentform .ff-el-group{flex:1 1 240px;margin-bottom:0;max-width:320px}
.kesher-news .fluentform .ff_submit_btn_wrapper{flex:0 0 auto;max-width:none;width:auto}
.kesher-news .fluentform .ff-el-input--label{display:none}
.kesher-news .fluentform .ff-el-form-control{border-radius:var(--radius-pill);
  border-color:rgba(30,31,43,.14);background:#fff;text-align:left;width:100%}
.kesher-news .fluentform legend{display:none}
.kesher-news .fluentform .ff-btn-submit{width:auto!important;white-space:nowrap;min-width:132px}

@media(max-width:560px){
  .kesher-news .fluentform fieldset{flex-direction:column}
  .kesher-news .fluentform .ff-el-group{max-width:none;width:100%}
  .kesher-news .fluentform .ff_submit_btn_wrapper{width:100%}
  .kesher-news .fluentform .ff-btn-submit{width:100%!important}
}

/* ---------- Mobile ---------- */

@media(max-width:900px){
  html,body{overflow-x:hidden}
  img,svg,video,table{max-width:100%}
  .kesher-shell{padding:0 16px}

  .kesher-sechead{margin-bottom:22px}
  .kesher-sechead h2{font-size:26px}
  .kesher-sechead p{font-size:14px}
  .kesher-section{margin-bottom:16px}

  .kesher-btn{padding:14px 22px}
  .kesher-btn--big{width:100%;min-width:0}

  .kesher-prose{font-size:14.5px}
  .kesher-archive-hero h1{font-size:30px}
  .kesher-shero h1,.kesher-shero2 h1{font-size:29px}
  .kesher-hero__inner{padding:38px 22px}
  .kesher-hero h1{font-size:34px}
  .kesher-daily,.kesher-news,.kesher-band,.kesher-cross{padding:34px 20px}
  .kesher-dhero__in,.kesher-svchero__in{padding:26px 20px 30px}
}

@media(max-width:560px){
  .kesher-shell{padding:0 14px}
  .kesher-sechead h2{font-size:23px}
  .kesher-hero h1{font-size:29px}
  .kesher-hero p{font-size:14.5px}
  .kesher-pillar{padding:20px}
  .kesher-galgrid,.kesher-two,.kesher-promise{grid-template-columns:1fr}
  .kesher-steps4{grid-template-columns:1fr;gap:20px}
  .kesher-includes{padding:14px 16px}
  .kesher-needcard{flex:0 0 86%}
  .kesher-occard{flex:0 0 150px}
  .kesher-railnav{justify-content:center}
}

/* ---------- WhatsApp ---------- */

.kesher-wa{position:fixed;right:20px;bottom:20px;z-index:900;
  display:inline-flex;align-items:center;gap:9px;
  background:var(--ink);color:var(--parchment);
  border-radius:var(--radius-pill);padding:13px 20px 13px 17px;
  box-shadow:0 8px 26px rgba(30,31,43,.24);
  font-family:var(--font-label);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;font-size:10px;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease}
.kesher-wa svg{width:19px;height:19px;flex:none;color:#4EC95E}
.kesher-wa:hover{color:var(--parchment);transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(30,31,43,.3)}
.kesher-wa:focus-visible{outline:2px solid var(--brass);outline-offset:3px}

@media(max-width:700px){
  .kesher-wa{right:14px;bottom:14px;padding:12px;gap:0}
  .kesher-wa span{display:none}
  .kesher-wa svg{width:21px;height:21px}
}
@media print{ .kesher-wa{display:none!important} }
@media(prefers-reduced-motion:reduce){ .kesher-wa{transition:none} }

/* ---------- Footer sits at the bottom ---------- */

/*
 * On a short page - a thin search result, an empty cart - the footer used
 * to stop halfway up with the page colour beneath it. The body is a flex
 * column and the content grows, so the footer is pushed down to the bottom
 * of the viewport when there is not enough content to fill it.
 */
html{min-height:100%}
body{min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column}
body > .kesher-footer{margin-top:auto;flex:none}
body > .kesher-announce,
body > .kesher-nav,
body > .kesher-mnav{flex:none}
body > .kesher-shell{flex:1 0 auto}
body > div:not(.kesher-shell):not(.kesher-footer):not(.kesher-announce):not(.kesher-nav):not(.kesher-mnav){flex:none}

/* The footer is a full-bleed dark block, so the last section on any page
   needs air before it. Some bands already carry their own bottom margin;
   this sets one for every page rather than patching them one at a time. */
.kesher-shell > *:last-child{margin-bottom:40px}
@media(max-width:700px){
  .kesher-shell > *:last-child{margin-bottom:28px}
}

/* NOT a hidden field: Fluent Forms adds .ff-el-form-hidden when a field's
   LABEL is hidden, which is how the inline sign-up is built. Hiding it hid
   the email input itself, so the button submitted an empty required field
   and appeared to do nothing. Target a group that genuinely holds only a
   hidden input instead. */
.kesher-news .fluentform .ff-el-group:has(> .ff-el-input--content > input[type="hidden"]){display:none}
@media(max-width:560px){
  .kesher-news .fluentform fieldset > .ff-el-group{flex:0 0 auto}
}

/* The printed-klaf note. A quiet aside, not a banner: it explains a choice
   rather than selling anything. */
.kesher-klafnote{margin:0 0 26px;padding:34px 40px;background:var(--surface-wash);border:1px solid var(--border-card);border-left:3px solid var(--brass);border-radius:var(--radius-section);text-align:left}
.kesher-klafnote h2{font-family:var(--font-display);font-size:var(--text-h4);line-height:var(--leading-display);color:var(--text-heading);margin:6px 0 10px}
.kesher-klafnote h2 em{font-style:italic;color:var(--pomegranate)}
.kesher-klafnote p{font-family:var(--font-body);font-size:var(--text-md);line-height:var(--leading-body);color:var(--text-body);margin:0;max-width:74ch}
.kesher-klafnote .mekor{margin-top:14px;padding-top:12px;border-top:1px solid var(--border-gold);font-family:var(--font-hebrew);font-size:15px;color:var(--text-muted)}
@media (max-width:620px){.kesher-klafnote{padding:24px 22px}}

/* On sale. The one card badge that is a price signal rather than an
   editorial one, so it sits in the opposite corner from the editorial
   badge and carries real colour - filled pomegranate, not the quiet
   parchment pill, because it is meant to catch the eye. */
.kesher-card__sale{
  position:absolute;top:-4px;right:2px;z-index:2;
  font-family:var(--font-label);font-weight:600;letter-spacing:var(--tracking-caps);
  text-transform:uppercase;font-size:9px;color:#fff;
  background:var(--pomegranate);border:1px solid var(--pomegranate);
  border-radius:var(--radius-pill);padding:4px 10px;
  box-shadow:0 1px 4px rgba(0,0,0,.14);
}
