/* ===== CHEN'S SWEETS — MODERN MOROCCAN ===== */
@import url('https://fonts.fontef.com/almoni-dl-aaa-400.css');
@import url('https://fonts.fontef.com/almoni-dl-aaa-700.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --teal:    #1B5E63;
  --teal2:   #2A8088;
  --teal-lt: #e8f4f5;
  --gold:    #C9A84C;
  --gold2:   #E8C96A;
  --gold-dk: #9E7A2A;
  --cream:   #FDF8EF;
  --warm:    #F5ECD7;
  --terra:   #B85C2A;
  --rust:    #8B3A1E;
  --dark:    #1a1a1a;
  --text:    #2c2416;
  --muted:   #7a6a52;
}

body {
  font-family: 'almoni-dl-aaa', 'Frank Ruhl Libre', 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  background: var(--cream);
  color: var(--text);
}

/* ─── Moroccan ornament top band — removed ─── */

/* ─── Moroccan background pattern ─── */
.moroccan-bg {
  background-color: var(--warm);
  background-image:
    radial-gradient(circle at 50% 0, transparent 8px, #c9a84c18 8px, #c9a84c18 9px, transparent 9px),
    radial-gradient(circle at 0 50%, transparent 8px, #c9a84c18 8px, #c9a84c18 9px, transparent 9px);
  background-size: 40px 40px;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #0f3a3e 0%, var(--teal) 50%, #1e6b72 100%);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 20px rgba(0,0,0,.4);
  border-bottom: 2px solid var(--gold);
}
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold2), var(--gold-dk));
}

.logo-wrap { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-wrap img { height: 60px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(0,0,0,.3)); }

nav { flex: 1; display: flex; justify-content: center; }
nav ul { list-style: none; display: flex; gap: 2px; }
nav ul li a {
  color: #d4e8ea;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .2s;
  letter-spacing: .3px;
  font-weight: 400;
  position: relative;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: all .25s;
  border-radius: 1px;
}
nav ul li a:hover::after,
nav ul li a.active::after { left: 12px; right: 12px; }
nav ul li a:hover { color: #fff; background: rgba(255,255,255,.08); }
nav ul li a.active { color: var(--gold2); font-weight: 700; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--gold); border-radius: 2px; transition: .3s; }

.header-end { display: flex; align-items: center; gap: 10px; }
.header-social { display: flex; align-items: center; gap: 8px; }
.header-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
  flex-shrink: 0;
}
.header-social a:hover { transform: scale(1.15); opacity: .9; }
.h-fb { background: #1877F2; }
.h-wa { background: #25D366; }

/* ===== MOROCCAN ARCH DIVIDER ===== */
.arch-divider {
  text-align: center;
  margin: 0 0 30px;
  position: relative;
}
.arch-divider::before {
  content: '';
  display: block;
  width: 60px;
  height: 30px;
  border: 2px solid var(--gold);
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  margin: 0 auto 6px;
}
.arch-divider span {
  font-size: .75rem;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-slideshow {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: brightness(1.05) saturate(1.15);
}
.hero-slide.active {
  opacity: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 28, 32, 0.05);
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 60px 40px;
  max-width: 680px;
  width: 100%;
}
.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 1px 2px 10px rgba(0,0,0,1);
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  text-shadow: 1px 1px 6px rgba(0,0,0,1);
  font-weight: 400;
  color: #f0e8d0;
}
/* decorative frame around hero text */
.hero-frame {
  border: 1px solid rgba(201,168,76,.7);
  padding: 30px 36px;
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 38, 42, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero-frame::before {
  content: '✦';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1rem;
  background: rgba(10,38,42,.9);
  padding: 0 6px;
  line-height: 1;
}
.hero-frame::after {
  content: '✦';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1rem;
  background: rgba(10,38,42,.9);
  padding: 0 6px;
  line-height: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: #fff;
  padding: 13px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 3px 12px rgba(158,122,42,.35);
  letter-spacing: .5px;
}
.btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(158,122,42,.45);
  color: var(--teal);
}

/* ===== PAGE TITLE ===== */
.page-title {
  text-align: center;
  padding: 52px 20px 10px;
  font-size: 2.2rem;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: -.5px;
}
.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto 0;
}

/* ===== MOROCCAN ORNAMENT DIVIDER ===== */
.moroccan-divider {
  text-align: center;
  margin: 4px 0 30px;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 8px;
  opacity: .8;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 6px;
  text-align: center;
  font-weight: 700;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto 28px;
  border-radius: 1px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== CARDS ===== */
.card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,94,99,.1);
  transition: transform .25s, box-shadow .25s;
  background: #fff;
  border: none;
  position: relative;
  z-index: 1;
}
.card:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 40px rgba(27,94,99,.22);
  z-index: 10;
}
.card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.card-img-wrap {
  width: 100%;
  height: 260px;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.card-body { padding: 18px 20px; background: #fff; }
.card-body h3 { font-size: 1.1rem; color: var(--teal); margin-bottom: 6px; font-weight: 700; }
.card-body p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ===== TRAY CARDS ===== */
.tray-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 0 40px 40px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.tray-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(27,94,99,.13);
  transition: transform .25s, box-shadow .25s;
  text-align: center;
  position: relative;
}
.tray-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}
.tray-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(27,94,99,.22); }
.tray-card img { width: 100%; height: 220px; object-fit: cover; }
.tray-card-body { padding: 24px 20px 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tray-card-body h3 { font-size: 1.3rem; color: var(--teal); font-weight: 700; margin-bottom: 6px; }
.tray-card-body .price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--terra);
  margin: 12px 0 8px;
  font-family: 'Frank Ruhl Libre', sans-serif;
}
.tray-card-body .qty {
  font-size: .95rem;
  color: var(--muted);
  background: var(--warm);
  padding: 5px 16px;
  border-radius: 30px;
  display: inline-block;
  border: 1px solid #e0d0b0;
}

/* ===== HOME CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 10px 40px 50px;
  max-width: 1100px;
  margin: 0 auto;
}
.cat-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 20px rgba(27,94,99,.15);
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s, filter .4s;
  filter: brightness(.80);
}
.cat-card:hover img { transform: scale(1.06); filter: brightness(.65); }
.cat-card .cat-label {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  text-align: center;
  padding: 28px 20px 22px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 1px 1px 6px rgba(0,0,0,.8);
  background: linear-gradient(transparent, rgba(27,94,99,.65));
}
.cat-card .cat-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 8px;
  border-radius: 1px;
}

/* ===== ABOUT ===== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding: 40px 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.about-text h2 { font-size: 1.6rem; color: var(--teal); margin-bottom: 14px; font-weight: 700; }
.about-text p { line-height: 1.9; color: #4a3f2e; margin-bottom: 14px; font-size: 1rem; }
.about-text ul { list-style: none; margin-bottom: 16px; }
.about-text ul li { padding: 7px 0; border-bottom: 1px dashed #d4c8a8; color: var(--muted); font-size: .95rem; }
.about-text ul li::before { content: '✦ '; color: var(--gold); }
.about-img img { width: 100%; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px 40px;
  max-width: 950px;
  margin: 0 auto;
}
.contact-info h2 { font-size: 1.4rem; color: var(--teal); margin-bottom: 18px; font-weight: 700; }
.contact-info p { font-size: 1rem; color: var(--muted); margin-bottom: 12px; line-height: 1.7; }
.contact-info a { color: var(--terra); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-form {
  background: #fff;
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 4px 24px rgba(27,94,99,.1);
  border-top: 4px solid var(--gold);
}
.contact-form h2 { font-size: 1.3rem; margin-bottom: 22px; color: var(--teal); font-weight: 700; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #d4c4a0;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  direction: rtl;
  background: var(--cream);
  transition: border .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,94,99,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success { display: none; background: #d4edda; color: #155724; padding: 12px; border-radius: 8px; margin-top: 12px; text-align: center; }

/* ===== INFO BAND ===== */
.info-band {
  background: linear-gradient(135deg, var(--teal) 0%, #2A8088 100%);
  text-align: center;
  padding: 44px 20px;
  margin: 20px 40px 40px;
  border-radius: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.info-band::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 11px;
  pointer-events: none;
}
.info-band h2 { font-size: 1.5rem; color: var(--gold2); margin-bottom: 12px; font-weight: 700; }
.info-band p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 10px; }
.info-band a[href^="tel:"],
.info-band a[href^="mailto:"] {
  color: #E8C96A !important;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== SECTION ===== */
.section { padding: 40px 40px 20px; max-width: 1100px; margin: 0 auto; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #0d2e31 0%, var(--teal) 100%);
  color: #c8d8da;
  padding: 50px 40px 22px;
  margin-top: 50px;
  border-top: 3px solid var(--gold);
  position: relative;
}
footer::before {
  content: '✦ ✦ ✦';
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: 8px;
  margin-bottom: 36px;
  opacity: .6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 30px;
}
.footer-col h3 { color: var(--gold2); font-size: .95rem; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #a0bec2; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold2); }
.footer-col p { font-size: .9rem; line-height: 1.8; color: #a0bec2; }
.footer-col a[href^="tel:"],
.footer-col a[href^="mailto:"] {
  color: #E8C96A !important;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-col a[href^="tel:"]:hover,
.footer-col a[href^="mailto:"]:hover { text-decoration: underline; }
.footer-logo img { height: 72px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  font-size: 1rem; color: #fff; text-decoration: none;
  transition: transform .2s, opacity .2s;
}
.social-links a:hover { opacity: .85; transform: translateY(-2px); }
.social-links a.fb { background: #1877F2; }
.social-links a.wa { background: #25d366; }
.social-links a svg { display: block; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .82rem;
  color: #5a8a90;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tray-grid { grid-template-columns: 1fr; padding: 0 20px 30px; }
}
@media (max-width: 768px) {
  nav ul {
    display: none; flex-direction: column;
    position: absolute; top: 79px; right: 0; left: 0;
    background: #0d3a3e;
    padding: 16px; gap: 4px; z-index: 99;
    border-bottom: 2px solid var(--gold);
  }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .categories { padding: 10px 20px 30px; }
  .section { padding: 24px 20px; }
  .info-band { margin: 10px 20px 30px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-frame { padding: 20px; }
  .cat-collage { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CATEGORY COLLAGE ===== */
.cat-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  overflow: hidden;
}
.cat-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-card:hover .cat-collage img { transform: scale(1.08); }

/* ===== GALLERY PAGE ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 30px 40px 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  transition: transform .3s, box-shadow .3s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.08); }

/* lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute; top: 20px; left: 28px;
  color: #fff; font-size: 2.2rem;
  cursor: pointer; line-height: 1;
  background: none; border: none;
  opacity: .8; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── עיטורים מרוקאים יהודיים — רקע חוזר ── */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg opacity='0.13'%3E%3Cpolygon points='40,15 62,53 18,53' fill='none' stroke='%23C9A84C' stroke-width='1.3'/%3E%3Cpolygon points='40,65 62,27 18,27' fill='none' stroke='%23C9A84C' stroke-width='1.3'/%3E%3Ccircle cx='40' cy='40' r='26' fill='none' stroke='%23C9A84C' stroke-width='0.7'/%3E%3Cpolygon points='0,4 4,0 8,4 4,8' fill='%23C9A84C'/%3E%3Cpolygon points='72,4 76,0 80,4 76,8' fill='%23C9A84C'/%3E%3Cpolygon points='0,76 4,72 8,76 4,80' fill='%23C9A84C'/%3E%3Cpolygon points='72,76 76,72 80,76 76,80' fill='%23C9A84C'/%3E%3Ccircle cx='40' cy='1.5' r='1.5' fill='%23C9A84C'/%3E%3Ccircle cx='40' cy='78.5' r='1.5' fill='%23C9A84C'/%3E%3Ccircle cx='1.5' cy='40' r='1.5' fill='%23C9A84C'/%3E%3Ccircle cx='78.5' cy='40' r='1.5' fill='%23C9A84C'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ── about-img גדול יותר ── */
.about-img { display: flex; flex-direction: column; gap: 16px; }
.about-img img { width: 100%; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.15); min-height: 240px; object-fit: cover; }

/* ── mini collage למגשים ── */
.tray-mini-collage { display: grid; grid-template-columns: repeat(3,1fr); height: 220px; overflow: hidden; border-radius: 10px 10px 0 0; }
.tray-mini-collage img { width: 100%; height: 100%; object-fit: cover; }
