/* ============================================================
   Roei Tambur LED Catalog — cPanel Static CSS
   RTL Hebrew site
   ============================================================ */

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  color: #111827;
  background: #fff;
}

body { margin: 0; }

a { color: inherit; }

/* ---------- Header ---------- */
#site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

#site-header .site-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #111827;
  white-space: nowrap;
}

#site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#site-header nav a {
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
}

#site-header nav a:hover { color: #111827; }

/* ---------- Loading / Error ---------- */
.loading, .error-msg {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}
.error-msg { color: #dc2626; }

/* ---------- Home page ---------- */
.home-main {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-list li a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
  transition: background 0.15s;
}

.category-list li a:hover { background: #f3f4f6; }

/* ---------- Video Carousel ---------- */
.video-section {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-title {
  margin: 0.5rem 0;
  font-weight: 600;
}

.video-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.video-nav button {
  padding: 0.35rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.video-counter { font-size: 0.85rem; color: #6b7280; }

/* ---------- Category page ---------- */
.category-main {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
  background: #fff;
}

.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9ca3af;
  font-size: 0.85rem;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-grow: 1;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.product-card-sku {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 700;
  margin: auto 0 0;
  padding-top: 0.5rem;
}

.product-card-price-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b7280;
}

/* ---------- Product page ---------- */
.product-main {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .product-layout { grid-template-columns: 1fr 1fr; }
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-details { display: flex; flex-direction: column; gap: 0.75rem; }

.product-details h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.product-sku { font-size: 0.85rem; color: #6b7280; margin: 0; }

.price-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.price-main { font-size: 1.75rem; font-weight: 700; color: #111827; }
.price-meta { font-size: 0.8rem; color: #6b7280; }

.product-desc { font-size: 1rem; color: #374151; line-height: 1.6; margin: 0; }

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table tr { border-bottom: 1px solid #e5e7eb; }

.specs-table th {
  text-align: right;
  padding: 0.45rem 0.5rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  width: 40%;
}

.specs-table td { padding: 0.45rem 0.5rem; color: #111827; }

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
  .cta-btn { flex: 1; }
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.05rem;
  width: 100%;
  border: none;
  cursor: pointer;
}

.cta-whatsapp { background: #25d366; color: #fff; }
.cta-phone    { background: #fff; color: #111827; border: 2px solid #d1d5db; }

/* ---------- Articles ---------- */
.articles-main {
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.articles-main h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }

.articles-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }

.article-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}

.article-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.article-card h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.article-card p  { margin: 0; color: #6b7280; font-size: 0.9rem; }

.article-main {
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-main h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.article-content { line-height: 1.8; }

/* ---------- 404 ---------- */
.not-found {
  padding: 3rem 1.5rem;
  text-align: center;
}

.not-found h1 { font-size: 2rem; margin-bottom: 1rem; }
.not-found a  { color: #2563eb; }
