/* ===== איפוס בסיסי ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1a1a2e;
  --color-accent: #e63946;
  --color-bg: #f6f6fb;
  --color-card: #ffffff;
  --color-text: #222222;
  --color-text-light: #6b6b7b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, 0.07);
  --shadow-md: 0 10px 24px rgba(26, 26, 46, 0.14);
  --transition: 0.25s ease;
}

body {
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.site-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d5a 100%);
  color: #fff;
  text-align: center;
  padding: 36px 15px 34px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-inner { max-width: 700px; margin: 0 auto; }
.site-logo {
  height: 70px; width: auto; display: block; margin: 0 auto 10px;
  border-radius: 10px; background-color: #fff; padding: 6px 10px;
}
.subtitle { font-size: 15px; color: #d3d3e6; font-weight: 400; }

.about-link {
  position: absolute; top: 22px; left: 20px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px; border: 1.5px solid rgba(255,255,255,0.5);
  padding: 6px 16px; border-radius: 20px; transition: background-color var(--transition), border-color var(--transition);
}
.about-link:hover { background-color: rgba(255,255,255,0.12); border-color: #fff; }

.hamburger-btn {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background-color: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 10px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; transition: background-color var(--transition);
}
.hamburger-btn:hover { background-color: rgba(255,255,255,0.22); }
.hamburger-btn span { display: block; width: 22px; height: 2.5px; background-color: #fff; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.sticky-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px; background-color: #ffffff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%); transition: transform 0.3s ease; z-index: 120;
}
.sticky-topbar.visible { transform: translateY(0); }
.sticky-logo { height: 38px; width: auto; }

.drawer-overlay {
  position: fixed; inset: 0; background-color: rgba(10, 10, 20, 0.5); opacity: 0;
  pointer-events: none; transition: opacity var(--transition); z-index: 150;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.category-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(280px, 80vw);
  background-color: #fff; box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  transform: translateX(100%); transition: transform 0.3s ease; z-index: 200;
  display: flex; flex-direction: column; padding: 24px 0;
}
.category-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 0 22px 20px; border-bottom: 1px solid #eee; margin-bottom: 10px; }
.drawer-header h2 { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.drawer-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--color-text-light); width: 32px; height: 32px; border-radius: 50%; transition: background-color var(--transition); }
.drawer-close:hover { background-color: #f0f0f5; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 14px 22px; color: var(--color-text); text-decoration: none; font-size: 15px; font-weight: 500; border-right: 3px solid transparent; transition: background-color var(--transition), border-color var(--transition); }
.drawer-link:hover { background-color: #f6f6fb; }
.drawer-link.active { background-color: #f0f0fb; border-right-color: var(--color-accent); color: var(--color-primary); font-weight: 700; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 30px 30px 70px; max-width: 1200px; margin: 0 auto; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--color-text-light); padding: 60px 20px; font-size: 15px; }

.skeleton-card { background-color: var(--color-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 320px; }
.skeleton-card .skeleton-img, .skeleton-card .skeleton-line { background: linear-gradient(90deg, #eaeaf2 25%, #f4f4fa 37%, #eaeaf2 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-card .skeleton-img { height: 220px; }
.skeleton-card .skeleton-line { height: 14px; margin: 15px; border-radius: 6px; width: 70%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.product-card { background-color: var(--color-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; position: relative; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; right: 10px; background-color: rgba(26, 26, 46, 0.85); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.product-info { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 40px; }
.product-price { font-size: 19px; font-weight: 700; color: var(--color-accent); margin-bottom: 14px; }
.buy-btn { margin-top: auto; display: inline-block; background-color: var(--color-primary); color: #fff; text-align: center; padding: 11px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 14px; transition: background-color var(--transition), transform var(--transition); }
.buy-btn:hover { background-color: var(--color-accent); transform: translateY(-2px); }

.site-footer { text-align: center; padding: 24px; background-color: var(--color-primary); color: #cfcfe0; font-size: 13px; }
.site-footer p { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-contact { color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.5); }
.footer-contact:hover { color: var(--color-accent); border-color: var(--color-accent); }

.breadcrumb { max-width: 900px; margin: 20px auto 0; padding: 0 20px; font-size: 14px; color: var(--color-text-light); }
.breadcrumb a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.back-link { display: inline-block; margin: 20px 20px 0; color: var(--color-primary); text-decoration: none; font-weight: 700; }
.back-link:hover { color: var(--color-accent); }

.product-page { max-width: 960px; margin: 24px auto 60px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background-color: var(--color-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (max-width: 700px) { .product-page { grid-template-columns: 1fr; margin: 20px 16px 40px; padding: 20px; gap: 20px; } }

.gallery-main { position: relative; }
.gallery-main img { width: 100%; border-radius: var(--radius-md); margin-bottom: 12px; max-height: 420px; object-fit: cover; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.zoom-hint { position: absolute; bottom: 22px; left: 10px; background-color: rgba(26,26,46,0.75); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 20px; pointer-events: none; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active-thumb { border-color: var(--color-accent); }

.product-details h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.product-details .product-price { font-size: 24px; }
.product-details p { line-height: 1.7; margin-bottom: 24px; color: #444; white-space: pre-line; }
.product-details .buy-btn { padding: 14px 20px; font-size: 15px; display: inline-block; width: auto; }

.lightbox-overlay { position: fixed; inset: 0; background-color: rgba(5, 5, 10, 0.92); z-index: 500; display: none; align-items: center; justify-content: center; touch-action: none; }
.lightbox-overlay.open { display: flex; }
.lightbox-toolbar { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: flex-end; gap: 10px; z-index: 510; }
.lightbox-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background-color: rgba(255,255,255,0.12); color: #fff; font-size: 18px; cursor: pointer; }
.lightbox-btn:hover { background-color: rgba(255,255,255,0.25); }
.lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-stage img { max-width: 92vw; max-height: 88vh; user-select: none; -webkit-user-drag: none; transition: transform 0.15s ease-out; cursor: zoom-in; }
.lightbox-stage img.zoomed { cursor: grab; }
.lightbox-stage img.dragging { cursor: grabbing; transition: none; }

.about-page { max-width: 800px; margin: 30px auto 60px; padding: 0 20px; }
.about-section { background-color: var(--color-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px; margin-bottom: 24px; }
.about-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--color-primary); }
.about-section ol, .about-section ul { padding-right: 22px; color: #444; }
.about-section li { margin-bottom: 12px; line-height: 1.6; }
.contact-email-line { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 15px; color: var(--color-text-light); }
.contact-email-line a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0ea; border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); }
.contact-form button { align-self: flex-start; background-color: var(--color-primary); color: #fff; border: none; padding: 12px 30px; border-radius: 30px; font-weight: 700; font-size: 15px; cursor: pointer; }
.contact-form button:hover { background-color: var(--color-accent); }
.form-status { font-size: 13px; color: var(--color-text-light); min-height: 18px; }
