/* EK Home v1.3.0 – e-kosher design layer for the classic theme (PS 9.x).
   Colours: green = actions/brand, orange = accent. Logical properties keep Hebrew (RTL) and Greek/English (LTR) in one file. */
:root {
  --ek-green: #006c18; --ek-green-d: #00561a; --ek-orange: #f77e00; --ek-orange-d: #c45c00;
  --ek-text: #1f2328; --ek-muted: #6b7280; --ek-soft: #fff7ef; --ek-line: #f3d9bf;
  --ek-r: 16px; --ek-shadow: 0 2px 12px rgba(17, 24, 39, .07);
  --ek-font: Lato, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- global type ---------- */
body { font-family: var(--ek-font); color: var(--ek-text); }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--ek-font); }

/* theme blue → brand green (links, primary buttons, focus) */
a { color: var(--ek-green); }
a:hover, a:focus { color: var(--ek-orange-d); }
.btn-primary, .btn-primary:disabled, .btn-primary.disabled { background-color: var(--ek-green); border-color: var(--ek-green); border-radius: 999px; font-weight: 700; text-transform: none; box-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:not(:disabled):not(.disabled):active { background-color: var(--ek-green-d); border-color: var(--ek-green-d); }
.btn-secondary, .btn-tertiary { border-radius: 999px; text-transform: none; }
.custom-checkbox input[type=checkbox] + span .checkbox-checked, .custom-radio input[type=radio]:checked + span { color: var(--ek-green); }
.custom-radio input[type=radio]:checked + span { background-color: var(--ek-green); }

/* ---------- homepage ---------- */
body#index #wrapper { padding-top: 16px; }
body#index #content.page-home { padding: 0; margin: 0; background: none; box-shadow: none; }
body#index .ekh { color: var(--ek-text); }
body#index .ekh img { max-width: 100%; height: auto; }

body#index .ekh-sec { padding-block: 40px; }
body#index .ekh-h { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 900; text-align: center; margin: 0 0 6px; text-transform: none; color: var(--ek-text); }
body#index .ekh-h::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--ek-orange); margin: 12px auto 0; }
body#index .ekh-sub { text-align: center; color: var(--ek-muted); margin: 10px 0 24px; font-size: 1rem; }

/* buttons: one look everywhere */
body#index .ekh-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.25; transition: background .15s, color .15s;
}
body#index .ekh-btn-main { background: var(--ek-orange-d); color: #fff; }
body#index .ekh-btn-main:hover { background: #a84f00; color: #fff; }
body#index .ekh-btn-ghost { border: 2px solid var(--ek-orange-d); color: var(--ek-orange-d); background: #fff; }
body#index .ekh-btn-ghost:hover { background: var(--ek-soft); }
body#index .ekh-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }

/* hero */
body#index .ekh-hero-a { display: block; border-radius: var(--ek-r); overflow: hidden; aspect-ratio: 1170 / 405; background: #eee; }
body#index .ekh-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* service strip */
body#index .ekh-usp { margin-top: 20px; }
body#index .ekh-usp-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 18px 8px; list-style: none; background: #fff; border-radius: var(--ek-r); box-shadow: var(--ek-shadow); }
body#index .ekh-usp-i { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 12px; }
body#index .ekh-usp-i .ekh-ic { color: var(--ek-orange); flex: none; }
body#index .ekh-usp-t { display: flex; flex-direction: column; line-height: 1.3; }
body#index .ekh-usp-t b { font-size: .98rem; }
body#index .ekh-usp-t small { color: var(--ek-muted); font-size: .85rem; }

/* category tiles */
body#index .ekh-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
body#index .ekh-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 10px 8px 16px; background: #fff; border-radius: var(--ek-r); box-shadow: var(--ek-shadow); text-decoration: none; color: var(--ek-text); transition: transform .15s, box-shadow .15s; }
body#index .ekh-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 24, 39, .1); }
body#index .ekh-tile-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
body#index .ekh-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body#index .ekh-tile-n { font-weight: 700; text-align: center; font-size: .95rem; line-height: 1.25; }

/* best sellers (ps_bestsellers inside) */
body#index .ekh-best .products-section-title, body#index .ekh-best .all-product-link { display: none; }
body#index .ekh-best .featured-products { margin: 0; }
body#index .ekh-best .products { margin-top: 24px; }
body#index .ekh-more { text-align: center; margin: 8px 0 0; }

/* product grid: 4 across on desktop, 2 on phones */
body#index .ekh-best .products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-inline: 0; }
body#index .ekh-best .products > .js-product { width: auto; max-width: none; padding: 0; float: none; margin: 0; }
body#index .ekh-best .product-miniature .thumbnail-container { margin: 0; height: 100%; }
/* add to cart with − / + */
.product-miniature .ekq { margin-top: auto; display: flex; gap: 8px; align-items: stretch; }
.product-miniature .ekq-step { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.product-miniature .ekq-b { width: 36px; height: 40px; border: 0; background: #fff; font-size: 1.2rem; font-weight: 700; color: var(--ek-green); cursor: pointer; line-height: 1; }
.product-miniature .ekq-b:active { background: #f1f8f3; }
.product-miniature .ekq-n { width: 32px; height: 40px; border: 0; text-align: center; font-weight: 700; padding: 0; -moz-appearance: textfield; background: #fff; }
.product-miniature .ekq-n::-webkit-outer-spin-button, .product-miniature .ekq-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-miniature .ekq-add { flex: 1; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; background: var(--ek-green); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; padding: 0 12px; }
.product-miniature .ekq-add:hover { background: var(--ek-green-d); }
.product-miniature .ekq-opt { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 42px; border: 2px solid var(--ek-green); border-radius: 999px; color: var(--ek-green); font-weight: 700; text-decoration: none; }

/* delivery promo: full-width soft band without horizontal scroll */
body#index .ekh-promo { background: var(--ek-soft); box-shadow: 0 0 0 100vmax var(--ek-soft); clip-path: inset(0 -100vmax); padding-block: 48px; margin-block: 24px; }
body#index .ekh-promo-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
body#index .ekh-promo-txt .ekh-h { text-align: start; }
body#index .ekh-promo-txt .ekh-h::after { margin-inline: 0; }
body#index .ekh-promo-txt p { font-size: 1.02rem; line-height: 1.7; color: #374151; margin-top: 14px; }
body#index .ekh-promo-img { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body#index .ekh-promo-img img { width: 100%; aspect-ratio: 270 / 333; object-fit: cover; border-radius: var(--ek-r); box-shadow: var(--ek-shadow); }

/* why us */
body#index .ekh-why-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
body#index .ekh-why-txt .ekh-h { text-align: start; }
body#index .ekh-why-txt .ekh-h::after { margin-inline: 0; }
body#index .ekh-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 16px; padding: 0; list-style: none; }
body#index .ekh-why-i { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--ek-soft); border-radius: var(--ek-r); }
body#index .ekh-why-i .ekh-ic { flex: none; color: var(--ek-orange-d); background: #fff; border-radius: 50%; padding: 8px; width: 40px; height: 40px; box-shadow: var(--ek-shadow); }
body#index .ekh-why-i b { display: block; margin-bottom: 4px; }
body#index .ekh-why-i small { color: #4b5563; font-size: .9rem; line-height: 1.5; }
body#index .ekh-link { font-weight: 700; color: var(--ek-orange-d); text-decoration: none; }
body#index .ekh-link::after { content: " →"; }
body#index.lang-rtl .ekh-link::after { content: " ←"; }
body#index .ekh-why-img img { width: 100%; aspect-ratio: 570 / 284; object-fit: cover; border-radius: var(--ek-r); box-shadow: var(--ek-shadow); }

/* reviews */
body#index .ekh-rev-box { max-width: 820px; margin: 0 auto; padding: 36px 28px; background: var(--ek-soft); border-radius: 20px; text-align: center; }
body#index .ekh-quote { max-width: 520px; margin: 0 auto; padding: 24px; background: #fff; border-radius: var(--ek-r); box-shadow: var(--ek-shadow); }
body#index .ekh-stars { color: #f5a300; font-size: 1.3rem; letter-spacing: 3px; }
body#index .ekh-quote blockquote { margin: 10px 0; font-size: 1.15rem; font-weight: 700; line-height: 1.5; border: 0; padding: 0; }
body#index .ekh-quote figcaption { color: var(--ek-muted); font-size: .85rem; }
body#index .ekh-rev .ekh-btns { justify-content: center; }
body#index .ekh-note { color: var(--ek-muted); font-size: .8rem; margin: 14px 0 0; }

/* ESPA (EU funding notice – must stay visible) */
body#index .ekh-espa { padding-block: 8px 32px; text-align: center; }
body#index .ekh-espa img { max-width: 600px; width: 100%; }

/* ---------- mobile category chips (old site had them) ---------- */
#header .ekc-chips { background: #fff; border-top: 1px solid #f0f0f0; }
#header .ekc-chips ul { display: flex; gap: 8px; overflow-x: auto; margin: 0; padding: 10px 12px; list-style: none; scrollbar-width: none; scroll-snap-type: x proximity; }
#header .ekc-chips ul::-webkit-scrollbar { display: none; }
#header .ekc-chips li { flex: none; scroll-snap-align: start; }
#header .ekc-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: var(--ek-text); font-weight: 700; font-size: .92rem; white-space: nowrap; text-decoration: none; }
#header .ekc-chips a:active { background: var(--ek-soft); border-color: var(--ek-orange); }

/* ---------- side cart ---------- */
#blockcart-modal { display: none !important; } /* replaced by the side cart; !important beats the inline style bootstrap sets */
html.ekd-open, html.ekd-open body { overflow: hidden; }
.ekd { position: fixed; inset: 0; z-index: 1100; font-family: var(--ek-font); }
.ekd[hidden] { display: none; }
.ekd-shade { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; transition: opacity .2s; }
.ekd.on .ekd-shade { opacity: 1; }
.ekd-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .15); transform: translateX(100%); transition: transform .22s ease; outline: 0; }
body.lang-rtl .ekd-panel { transform: translateX(-100%); }
.ekd.on .ekd-panel, body.lang-rtl .ekd.on .ekd-panel { transform: none; }
.ekd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #f0f0f0; }
.ekd-head h2 { font-size: 1.2rem; font-weight: 900; margin: 0; color: var(--ek-text); text-transform: none; }
.ekd-count { color: var(--ek-muted); font-weight: 700; }
.ekd-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f4f6; color: var(--ek-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ekd-list { flex: 1; overflow-y: auto; padding: 8px 18px; overscroll-behavior: contain; }
.ekd.busy .ekd-list { opacity: .55; pointer-events: none; }
.ekd-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.ekd-img { flex: 0 0 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #fafafa; }
.ekd-img img { width: 100%; height: 100%; object-fit: contain; }
.ekd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ekd-name { color: var(--ek-text); font-weight: 700; font-size: .92rem; line-height: 1.3; text-decoration: none; }
.ekd-info small { color: var(--ek-muted); }
.ekd-price { color: var(--ek-orange-d); font-weight: 900; }
.ekd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ekd-step { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 999px; overflow: hidden; }
.ekd-step button { width: 40px; height: 40px; border: 0; background: #fff; color: var(--ek-green); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.ekd-step span { min-width: 28px; text-align: center; font-weight: 700; }
.ekd-rm { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #9ca3af; cursor: pointer; }
.ekd-rm:hover { color: #c0392b; background: #fef2f2; }
.ekd-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 0; color: var(--ek-muted); text-align: center; }
.ekd-empty svg { width: 48px; height: 48px; color: #d1d5db; }
.ekd-empty b { color: var(--ek-text); font-size: 1.05rem; }
.ekd-foot { padding: 14px 18px 18px; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.ekd-promo { margin: 0; padding: 8px 12px; background: #f1f8f3; border-radius: 10px; color: var(--ek-green); font-size: .88rem; text-align: center; }
.ekd-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.ekd-sum b { font-size: 1.25rem; font-weight: 900; }
.ekd-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-weight: 900; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 0; }
.ekd-btn-main { background: var(--ek-green); color: #fff; }
.ekd-btn-main:hover, .ekd-btn-main:focus { background: var(--ek-green-d); color: #fff; }
.ekd-btn-ghost { background: #fff; color: var(--ek-text); border: 1px solid #e5e7eb; min-height: 44px; font-weight: 700; font-size: .95rem; }
/* floating cart button: follows the visitor */
.ekd-fab { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 1050; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--ek-green); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ekd-fab-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ek-orange); color: #fff; font-size: .78rem; font-weight: 900; line-height: 24px; text-align: center; display: none; }
.ekd-fab-n:not(:empty) { display: block; }
html.ekd-open .ekd-fab { display: none; }
body#checkout .ekd-fab, body#cart .ekd-fab { display: none; }

/* ---------- footer ---------- */
#footer .ekf { color: #e5efe8; font-size: .95rem; }
#footer .ekf a { color: #e5efe8; text-decoration: none; }
#footer .ekf a:hover { color: #ffb366; }
#footer .ekf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 28px; }
#footer .ekf-logo { height: 52px; width: auto; margin-bottom: 14px; }
#footer .ekf-about { line-height: 1.6; color: #cfe0d4; margin: 0 0 12px; }
#footer .ekf-h { font-weight: 900; font-size: 1.05rem; color: #fff; margin: 4px 0 14px; }
#footer .ekf-h::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--ek-orange); margin-top: 8px; }
#footer .ekf-list { list-style: none; margin: 0; padding: 0; }
#footer .ekf-list li { margin: 0 0 9px; line-height: 1.45; }
#footer .ekf-hours bdi { white-space: nowrap; }
#footer .ekf-list b { color: #ffb366; font-weight: 700; }
#footer .ekf-pay { width: 100%; max-width: 250px; height: auto; border-radius: 14px; background: #fff; display: block; }
#footer .ekf-copy { text-align: center; color: #a9c2b1; font-size: .85rem; margin: 32px 0 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- tablet / mobile ---------- */
@media (max-width: 991px) {
  #footer .ekf-grid { grid-template-columns: 1fr 1fr; }
  #footer .ekf-contact { grid-column: 1 / -1; }
  body#index .ekh-usp-list { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; background: none; box-shadow: none; }
  body#index .ekh-usp-i { flex-direction: column; text-align: center; gap: 6px; padding: 16px 8px; background: #fff; border-radius: var(--ek-r); box-shadow: var(--ek-shadow); }
  body#index .ekh-usp-t { align-items: center; }
  body#index .ekh-tiles { grid-template-columns: repeat(4, 1fr); }
  body#index .ekh-promo-in, body#index .ekh-why-in { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body#index .ekh-best .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-miniature .product-title a { font-size: .85rem; }
  /* phone: stepper on its own row, button under it */
  .product-miniature .ekq { flex-direction: column; }
  .product-miniature .ekq-step { justify-content: space-between; }
  .product-miniature .ekq-b { width: 44px; height: 44px; }
  .product-miniature .ekq-n { flex: 1; height: 44px; }
  .product-miniature .ekq-add { min-height: 44px; }
}
@media (max-width: 575px) {
  #footer .ekf-paycol { grid-column: 1 / -1; }
  body#index .ekh-sec { padding-block: 28px; }
  /* categories scroll sideways on phones */
  body#index .ekh-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 4px 2px 12px; margin-inline: -15px; padding-inline: 15px; scrollbar-width: none; }
  body#index .ekh-tiles::-webkit-scrollbar { display: none; }
  body#index .ekh-tiles > li { flex: 0 0 30%; scroll-snap-align: start; }
  body#index .ekh-tile { padding: 8px 6px 12px; }
  body#index .ekh-tile-n { font-size: .85rem; }
  body#index .ekh-why-grid { grid-template-columns: 1fr; }
  body#index .ekh-btns .ekh-btn { flex: 1 1 100%; }
  body#index .ekh-rev-box { padding: 28px 16px; }
}
