/* עיצוב משותף לעמודי הקטגוריות (gifts/*.html).
   הערכים תואמים לעיצוב של index.html — שינוי שם צריך להשתקף גם כאן. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0d0d0d;
  --dark:    #111111;
  --white:   #ffffff;
  --cream:   #f5f3ee;
  --green:   #25c16f;
  --green-d: #1aaa5e;
  --border:  #e5e5e5;
  --gutter:  clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 64px);
}

.nav-logo { text-decoration: none; flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }

.nav-links { display: flex; gap: 32px; list-style: none; margin: 0 auto; }
.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2dd17a 0%, #1aaa5e 100%);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter .2s;
}
.nav-cta:hover { filter: brightness(1.1); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 28px clamp(20px, 5vw, 40px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform .3s ease; }
.mobile-menu a.m-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  text-align: right;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-menu a.m-link:last-of-type { border-bottom: none; }
.mobile-menu .m-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: white;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
}

/* ─── HERO של הקטגוריה ────────────────────────────────── */
.cat-hero {
  background: var(--cream);
  padding: calc(64px + clamp(40px, 7vh, 80px)) var(--gutter) clamp(48px, 8vh, 88px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #777;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.crumbs a { color: #777; text-decoration: none; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }
.crumbs [aria-current] { color: var(--black); font-weight: 500; }

.s-label {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  color: #8a8a8a;
  margin-bottom: 12px;
}

.cat-h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: clamp(20px, 3vh, 32px);
  max-width: 16em;
  text-wrap: balance;
}

.cat-intro {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: #444;
  max-width: 44em;
  margin-bottom: 14px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2dd17a 0%, #1aaa5e 100%);
  color: white;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 18px;
  transition: filter .2s;
}
.btn-wa:hover { filter: brightness(1.1); }

/* ─── עובדות בקצרה ────────────────────────────────────── */
.cat-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  list-style: none;
  padding: 0 var(--gutter);
  background: var(--cream);
  padding-bottom: clamp(48px, 8vh, 88px);
}
.cat-facts li { border-top: 2px solid var(--black); padding-top: 14px; }
.cat-facts .fact-label { display: block; font-size: 12px; color: #777; margin-bottom: 4px; }
.cat-facts .fact-value { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }

/* ─── המארזים ─────────────────────────────────────────── */
.cat-section { padding: clamp(56px, 9vh, 104px) var(--gutter); }

.cat-h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: right;
  padding: 0;
  display: block;
  width: 100%;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.13); }
.card:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.card-img-wrap { display: block; width: 100%; aspect-ratio: 1; background: #f8f8f8; overflow: hidden; }
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-body { display: block; padding: 14px 16px 16px; text-align: right; }
.card-name { display: block; font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.card-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.tier-basic     { background: #cce8f8; color: #1a6090; }
.tier-std       { background: #e4dcf8; color: #5c3fa0; }
.tier-std-plus  { background: #ffe5cc; color: #8a4a00; }
.tier-prem      { background: #f5ecb0; color: #7a6010; }

/* ─── התאמה אישית ─────────────────────────────────────── */
.cat-custom {
  background: #0a0a0a;
  padding: clamp(64px, 10vh, 120px) var(--gutter);
  scroll-margin-top: 64px;
}
.custom-top { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.cat-custom .cat-h2 { color: white; margin-bottom: 20px; text-wrap: balance; }
.custom-desc { font-size: 16px; line-height: 1.85; color: #9a9a9a; margin-bottom: 12px; }
.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2dd17a 0%, #1aaa5e 100%);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  transition: filter .2s;
}
.custom-btn:hover { filter: brightness(1.1); }
.mosaic { columns: 4; column-gap: 10px; }
.mosaic img {
  width: 100%;
  display: block;
  margin-bottom: 10px;
  border-radius: 10px;
  break-inside: avoid;
}
.custom-more { margin-top: 32px; text-align: center; }
.custom-more a { font-size: 15px; font-weight: 700; color: white; text-underline-offset: 4px; }

/* ─── איך זה עובד ─────────────────────────────────────── */
.cat-how { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; list-style: none; }
.step-num {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 900;
  color: rgba(0,0,0,0.13);
  line-height: 1;
  margin-bottom: 10px;
}
.step-dash { width: 30px; height: 2px; background: var(--black); margin-bottom: 16px; }
.step-text { font-size: 15px; line-height: 1.65; color: #444; }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-item:first-child { border-top: 1px solid #ddd; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: right;
  font-family: 'Heebo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  gap: 16px;
}
.faq-icon { width: 13px; height: 13px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--black);
  border-radius: 2px;
}
.faq-icon::before {
  width: 2px; height: 100%;
  top: 0; left: 50%;
  transform: translateX(-50%);
  transition: opacity .3s;
}
.faq-icon::after { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-item.open .faq-icon::before { opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 22px; font-size: 15px; line-height: 1.85; color: #666; }

/* ─── עוד אירועים ─────────────────────────────────────── */
.cat-more { border-top: 1px solid var(--border); }
.more-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.more-list a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.more-list a:hover { background: var(--black); border-color: var(--black); color: white; }

/* ─── CTA ─────────────────────────────────────────────── */
.cat-cta {
  background: var(--black);
  padding: clamp(72px, 11vh, 128px) clamp(20px, 5vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 900;
  color: rgba(255,255,255,.035);
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.cta-label { display: block; font-size: 11px; letter-spacing: 5px; color: #8a8a8a; margin-bottom: 20px; position: relative; }
.cta-heading {
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 900;
  color: white;
  margin-bottom: 40px;
  position: relative;
  line-height: 1.15;
  text-wrap: balance;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2dd17a 0%, #1aaa5e 100%);
  color: white;
  text-decoration: none;
  padding: 18px 44px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 0 50px rgba(37,193,111,.35);
  transition: filter .2s, box-shadow .2s;
}
.cta-btn:hover { filter: brightness(1.1); box-shadow: 0 0 70px rgba(37,193,111,.5); }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 28px clamp(20px, 5vw, 64px) 20px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-logo { text-decoration: none; display: flex; align-items: center; }
.footer-logo img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: 0.65; }
.footer-negishut { font-size: 12px; color: #8a8a8a; text-decoration: none; transition: color .2s; }
.footer-negishut:hover { color: #ccc; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: #8a8a8a; transition: color .2s; display: flex; align-items: center; }
.footer-social a:hover { color: #ccc; }
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 20px;
}
.footer-cats a { font-size: 12px; color: #8a8a8a; text-decoration: none; transition: color .2s; }
.footer-cats a:hover { color: #ccc; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 16px;
}
.footer-copy { font-size: 12px; color: #777; }

/* ─── PRODUCT POPUP ───────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s .25s;
}
.popup-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }
.popup-box {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .25s ease;
}
.popup-overlay.open .popup-box { transform: translateY(0) scale(1); }
.popup-img-wrap { position: relative; }
.popup-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.popup-body { padding: 20px 24px 24px; }
.popup-tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.popup-name { font-size: 20px; font-weight: 800; margin-bottom: 14px; color: var(--black); }
.popup-copy { font-size: 16px; line-height: 1.7; color: #555; margin-bottom: 20px; }
.popup-copy strong { color: var(--black); }
.popup-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s;
}
.popup-wa:hover { filter: brightness(1.1); }
.popup-wa svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
.popup-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  transform: translateY(calc(100% + 32px));
  visibility: hidden;
  transition: transform .4s ease, visibility 0s .4s;
  z-index: 9999;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--black);
  padding: 16px 18px;
  border-radius: 14px;
  max-width: 300px;
  width: calc(100% - 48px);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  border: 1px solid rgba(255,255,255,0.6);
}
.cookie-banner.show { transform: translateY(0); visibility: visible; transition: transform .4s ease; }
.cookie-text { font-size: 11px; line-height: 1.55; color: #555; margin-bottom: 12px; padding-left: 16px; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btn {
  flex: 1;
  padding: 8px;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: filter .2s;
  text-align: center;
}
.cookie-btn--accept { background: var(--black); color: #fff; }
.cookie-btn--decline { background: transparent; color: #777; border: 1px solid #ddd; flex: 0 0 auto; padding: 8px 12px; }
.cookie-btn:hover { filter: brightness(1.15); }

/* ─── FLOATING WA ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 60px; left: 24px;
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border: 2.5px solid rgba(255,255,255,0.65);
  box-shadow: 0 4px 20px rgba(37,193,111,.45);
  transition: transform .3s ease, bottom .3s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
body.cookie-active .wa-float { bottom: 180px; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-facts  { grid-template-columns: repeat(2, 1fr); gap: 24px 24px; }
  .mosaic     { columns: 3; }
}

@media (max-width: 600px) {
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .hamburger  { display: flex; order: -1; }
  .nav-logo   { margin-right: auto; }
  .steps-grid { gap: 28px 20px; }
  .cards-grid { gap: 12px; }
  .mosaic     { columns: 2; }
  .btn-wa     { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
