/* ===========================
   משתני בסיס
   =========================== */
:root {
  --nav-bg: #ffffff;
  --nav-border: #ddd;
  --body-bg: #b9b9b9;
  --text-color: #333;
  --shadow-light: rgba(0, 0, 0, 0.15);
  --shadow-card: rgba(0, 0, 0, 0.2);
  --dropdown-padding: 40px 100px;
  --gap-nav: 60px;
  --gallery-gap: 130px;
  --gallery-padding: 90px;
  --img-height: 400px;
  --transition: 0.3s ease;
}
 
/* ===========================
   איפוס ובסיס
   =========================== */
* {
  box-sizing: border-box;
}
 
body {
  background-color: var(--body-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  font-family: sans-serif;
  overflow-x: hidden;
}
 
/* ===========================
   ניווט
   =========================== */
.navbar {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1002;
}
 
.nav-links {
  display: flex;
  gap: var(--gap-nav);
  flex-direction: row-reverse;
}
 
/* ===========================
   Dropdown
   =========================== */
.dropdown {
  position: static;
}
 
.dropbtn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-color);
}
 
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--nav-bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  padding: var(--dropdown-padding);
  z-index: 900;
  margin-top: -1px;
}
 
/* גשר בין הכפתור לתפריט */
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}
 
.dropdown:hover .dropdown-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
 
/* ===========================
   תמונות ב-Dropdown
   =========================== */
.dropdown-content img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all var(--transition);
}
 
.dropdown-content img:hover {
  transform: scale(1.25);
  box-shadow: 0 8px 20px var(--shadow-light);
  background-color: var(--nav-bg);
}
 
/* ===========================
   חץ ב-Dropdown
   =========================== */
.arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform var(--transition);
}
 
.dropdown:hover .arrow {
  transform: rotate(180deg);
}
 
/* ===========================
   גלריה
   =========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 300px));
  gap: 140px;
  padding: var(--gallery-padding);
  max-width: 3000px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}
 
.gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--shadow-card);
  transition: transform var(--transition);
  display: block;
  min-width: 0;
}
 
.gallery img:hover {
  transform: scale(1.03);
}
 
/* ===========================
   כרטיסיית מוצר
   =========================== */
.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow-card);
  transition: transform var(--transition);
  width: 300px;
  min-width: 0;
  max-width: 300px;
  background-color: #fff;
}
 
.product-card:hover {
  transform: scale(1.03);
}
 
.img-wrapper {
  position: relative;
}
 
.product-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
  transition: none;
}
 
.product-card img:hover {
  transform: none;
}
 
/* ===========================
   תגית מבצע
   =========================== */
.sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ff4e00, #ff9500);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 13px;
  border-radius: 22px;
  box-shadow: 0 3px 10px rgba(255, 100, 0, 0.45);
  letter-spacing: 0.3px;
  animation: pulse-badge 2s infinite;
  white-space: nowrap;
}
 
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(255,100,0,0.45); }
  50%       { transform: scale(1.07); box-shadow: 0 5px 16px rgba(255,100,0,0.65); }
}
 
.product-info {
  background-color: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
 
.product-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-color);
  text-align: left;
  direction: ltr;
}

/* ===========================
   שורת מחיר + תגיות
   =========================== */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
 
.product-price {
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1a7a3a, #25a85a);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  align-self: center;
}

/* ===========================
   תגית Retro
   =========================== */
.retro-badge {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #6b21a8, #a855f7);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(107, 33, 168, 0.45);
  animation: retro-glow 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes retro-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(107, 33, 168, 0.45); }
  50%       { box-shadow: 0 4px 16px rgba(168, 85, 247, 0.75); }
}
 
@media (max-width: 900px) {
  .gallery {
    gap: 20px;
    padding: 30px;
  }
}
 
/* ===========================
   רספונסיביות
   =========================== */
@media (max-width: 600px) {
  .dropdown-content {
    padding: 20px 10px;
    flex-wrap: wrap;
    gap: 15px;
  }
 
  .dropdown-content img {
    width: 70px;
    height: 70px;
  }
 
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 10px;
    justify-items: center;
  }
 
  .gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
 
  .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
  }

  .product-info {
    padding: 8px 6px;
  }

  .product-price {
    font-size: 11px;
    padding: 3px 8px;
    letter-spacing: 0.2px;
  }

  .retro-badge, .special-badge {
    font-size: 9px;
    padding: 3px 7px;
    letter-spacing: 0.5px;
  }

  .price-row {
    gap: 4px;
    flex-wrap: nowrap;
  }
}

a.dropbtn {
  text-decoration: none;
}
/* ===========================
   נב — לוגו + המבורגר
   =========================== */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1002;
  min-height: 64px;
}

.nav-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: var(--gap-nav);
  flex-direction: row-reverse;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================
   בר וואטסאפ
   =========================== */
.whatsapp-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #e8e8e8;
  padding: 0 20px;
  text-decoration: none;
  color: #333;
  font-size: 17px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #ccc;
  min-height: 60px;
}

.whatsapp-bar:hover { background-color: #d8d8d8; }

.whatsapp-bar img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
}

/* ===========================
   מובייל
   =========================== */

.desktop-only-logo {
  display: inline-flex !important;
}

/* ראשי במובייל — מוצג רק בתפריט, מוסתר בדסקטופ */
.nav-home-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* לוגו באמצע הנב במובייל */
  .navbar::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background-image: url("https://i.ibb.co/v6H9pxdb/download-1.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    pointer-events: none;
  }

  /* הסתר לוגו וראשי שבסוף nav-links (אלו של דסקטופ) */
  .desktop-only-logo {
    display: none !important;
  }

  .nav-home-btn {
    display: none !important;
  }

  /* הצג ראשי של מובייל */
  .nav-home-mobile {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .dropbtn {
    font-size: 18px;
  }

  .nav-links .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown .dropdown-content {
    display: none !important;
    position: static;
    box-shadow: none;
    padding: 10px 0 0 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dropdown.mobile-open .dropdown-content {
    display: flex !important;
    justify-content: center;
  }
}

/* ===========================
   תגית Special
   =========================== */
.special-badge {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #222;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.5);
  animation: special-glow 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes special-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(184,134,11,0.45); }
  50%       { box-shadow: 0 4px 18px rgba(255,215,0,0.8); }
}
/* הסתר חץ בלפי ליגה במובייל */
@media (max-width: 768px) {
  .arrow {
    display: none;
  }
}