
:root {
  --color-bg: #f7f3ed;
  --color-bg-alt: #efe6d8;
  --color-surface: #ffffff;
  --color-text: #2b2420;
  --color-text-muted: #6b6058;
  --color-accent: #9c5a34;
  --color-accent-dark: #7a4527;
  --color-gold: #b8935a;
  --color-border: #e2d8c8;
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;
  --container: 1220px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 .5em;
  color: var(--color-text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--color-accent-dark); /* ניגודיות AA גם על רקע alt (7:1) */
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-head p {
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn--outline:hover { background: var(--color-text); color: #fff; }
.btn--on-dark {
  background: #fff;
  color: var(--color-accent-dark);
}
.btn--on-dark:hover { background: var(--color-gold); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 237, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .02em;
}
.logo span {
  color: var(--color-accent);
}
.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}
.main-nav a:hover { color: var(--color-accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #d9c6a8 0%, #b8916a 45%, #8a5c39 100%);
  color: #fff;
}
.hero__content {
  max-width: 560px;
}
.hero .eyebrow { color: #f1dfc0; }
.hero h1 {
  font-size: 46px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.9);
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; }

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43,36,32,.12);
}
.category-card__image {
  height: 180px;
}
.category-card__body {
  padding: 18px 20px 22px;
}
.category-card__body h3 { font-size: 19px; margin-bottom: 6px; }
.category-card__body p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43,36,32,.12);
}
.product-card__image {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.product-card:hover .product-card__image img {
  transform: scale(1.06);
}
.product-card__body {
  padding: 16px 18px 20px;
}
.product-card__category {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-card__name {
  font-size: 17px;
  margin: 6px 0 10px;
}
.price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent-dark);
}
.price--custom {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Placeholder image blocks (per category gradient) */
.ph-label {
  position: absolute;
  bottom: 10px;
  right: 12px;
  left: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-heading);
}
[class*="ph-"] {
  background-size: cover;
}
.ph-sapot { background: linear-gradient(135deg, #c69a6d, #8a5c39); }
.ph-kursaot { background: linear-gradient(135deg, #6f7d5c, #3f4a33); }
.ph-kisaot { background: linear-gradient(135deg, #cf8f63, #a05c34); }
.ph-pinot-ochel { background: linear-gradient(135deg, #b99b6b, #7c6236); }
.ph-hadrei-shina { background: linear-gradient(135deg, #a68b7a, #5f4c40); }
.ph-miznonim { background: linear-gradient(135deg, #93714a, #5a4225); }

/* CTA banner */
.cta-banner {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.75); margin: 0; max-width: 480px; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card__stars { color: var(--color-gold); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card__name { font-family: var(--font-heading); font-weight: 700; margin-top: 14px; }
.testimonial-card__meta { font-size: 13px; color: var(--color-text-muted); }

/* About / features */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid__image {
  height: 380px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d9c6a8, #8a5c39);
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: center;
}
.feature-row__item h4 { font-size: 15px; margin-bottom: 6px; }
.feature-row__item p { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* Footer */
.site-footer {
  background: #241d19;
  color: rgba(255,255,255,.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.site-footer .logo { color: #fff; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer p { font-size: 14px; }
.footer-bottom {
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a:hover { color: var(--color-accent); }

/* Category header */
.category-header {
  padding: 40px 0;
  text-align: center;
  background: var(--color-bg-alt);
}
.category-header h1 { margin-bottom: 8px; }
.category-header p { color: var(--color-text-muted); margin: 0; }

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-bar button {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}
.filter-bar button.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Product page */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0 80px;
}
.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .1s ease-out;
  will-change: transform;
}
/* אפקט זום בריחוף — התמונה מתקרבת למיקום הסמן */
.product-gallery__main.is-zooming img {
  transform: scale(1.7);
}
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.product-gallery__thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  aspect-ratio: 1 / 1;
  transition: border-color .2s ease, opacity .2s ease;
  opacity: .85;
}
.product-gallery__thumbs button:hover {
  opacity: 1;
}
.product-gallery__thumbs button.is-active {
  border-color: var(--color-accent);
  opacity: 1;
}
.product-gallery__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* placeholder gradient thumbs (ללא תמונה) */
.product-gallery__thumbs div {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  opacity: .85;
}
.product-info__category {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-info h1 { margin: 8px 0 14px; font-size: 32px; }
.product-info .price { font-size: 26px; display: block; margin-bottom: 22px; }
.product-info .price--custom { font-size: 17px; }
.product-info__desc { color: var(--color-text-muted); margin-bottom: 28px; }
.product-info__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.product-info__tags span {
  font-size: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--color-text-muted);
}
.product-info__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.accordion { margin-top: 40px; border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 600;
}
.accordion__item div { padding-bottom: 16px; color: var(--color-text-muted); font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 22px rgba(43, 36, 32, .08);
    padding: 18px 32px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: block; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-page { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* ===== נגישות (WCAG 2.0 AA) ===== */

/* קישור "דלג לתוכן" — מוסתר עד שמקבל פוקוס */
.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  z-index: 100;
  background: var(--color-text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
}

#main-content:focus {
  outline: none;
}

/* מצבי פוקוס נראים למקלדת */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* טקסט לקוראי מסך בלבד */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* כיבוד העדפת תנועה מופחתת */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .product-gallery__main.is-zooming img,
  .product-card:hover .product-card__image img {
    transform: none !important;
  }
}

/* ===== עיצוב כפתור וידג'ט הנגישות (WAH) — כפתור עגול מרחף עדין ===== */
#wp_access_helper_container .wahout.aicon_link {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 22px !important;
  bottom: 22px !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: none !important;
  background: var(--color-accent) !important;
  box-shadow: 0 6px 18px rgba(43, 36, 32, .28) !important;
  z-index: 9999 !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
#wp_access_helper_container .wahout.aicon_link:hover {
  transform: scale(1.07) !important;
  box-shadow: 0 9px 24px rgba(43, 36, 32, .36) !important;
}
#wp_access_helper_container .wahout.aicon_link .aicon_image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
