/* =====================================================
   Camera N City — Global CSS
   Header + Footer — loads on every page
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark:       #080c1a;
  --bg-mid:        #0d1226;
  --bg-card:       #111827;
  --bg-light:      #f8faff;
  --accent-cyan:   #1cd4e8;
  --accent-purple: #7c3aed;
  --accent-grad:   linear-gradient(135deg, #1cd4e8 0%, #7c3aed 100%);
  --glow-cyan:     0 0 30px rgba(28, 212, 232, 0.35);
  --text-white:    #ffffff;
  --text-muted:    #ffffff;
  --text-dark:     #1a1f2e;
  --border-light:  rgba(255,255,255,0.08);
  --border-cyan:   rgba(28,212,232,0.4);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --transition:    0.3s ease;
  --font-main:     'Heebo', sans-serif;
  --font-en:       'Inter', sans-serif;
  --header-h:      70px;
  --notice-h:      0px;   /* updated by JS when notice bar is visible */
  --e-global-color-text: #ffffff !important;
}

/* ── Desktop font scaling ── */
@media (min-width: 861px) {
  html {
    --font-scale: 1.1;
  }
}

/* ── Bilingual layout: show only the active language text ── */
html[dir="rtl"] .cnc-en { display: none; }
html[dir="ltr"]  .cnc-he { display: none; }

/* =====================================================
   NOTICE BAR — sitewide announcement strip
   ===================================================== */
.cnc-notice-bar {
  position: fixed;
  top: var(--header-h); inset-inline-start: 0; inset-inline-end: 0;
  z-index: 999;
  height: 40px;
  background: linear-gradient(90deg, rgba(8,12,26,0.97) 0%, rgba(13,18,38,0.97) 100%);
  border-bottom: 1px solid rgba(28,212,232,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0 44px;
}
.cnc-notice-bar__icon {
  color: var(--accent-cyan);
  margin-inline-end: 8px;
  flex-shrink: 0;
  font-size: 16px;
}
.cnc-notice-bar__text {
  color: var(--text-white);
  text-align: center;
}
.cnc-notice-bar__close {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 6px 8px;
  transition: color var(--transition);
  font-family: var(--font-main);
}
.cnc-notice-bar__close:hover { color: var(--text-white); }

/* ---- Kill Elementor page-transition overlay (causes 1500ms load delay) ---- */
e-page-transition {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---- Image protection — no drag / no right-click via CSS ---- */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ---- Hide Elementor auto-generated page-title / breadcrumb sections ---- */
/* Container with only a heading widget */
.e-con.e-parent:has(> .e-con-inner > .elementor-widget-heading:only-child),
/* Container that contains a breadcrumb widget (heading + breadcrumb pattern) */
.e-con.e-parent:has(> .e-con-inner > .elementor-widget-woocommerce-breadcrumb) {
  display: none !important;
}
/* Standalone breadcrumbs anywhere on the page */
.woocommerce-breadcrumb,
.elementor-widget-woocommerce-breadcrumb {
  display: none !important;
}

/* ---- Offset page content below sticky header + notice bar ---- */
body:not(.page-template-template-homepage):not(.page-template-template-slider) {
  padding-top: calc(var(--header-h) + var(--notice-h));
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-white);
  /* direction is inherited from html[dir] so the JS language toggle works */
}

/* =====================================================
   HEADER
   ===================================================== */
.cnc-header {
  position: fixed;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  z-index: 1000;
  font-family: var(--font-main);
  height: var(--header-h) !important;
  max-height: var(--header-h) !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: rgba(8, 12, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.cnc-header.scrolled {
  background: rgba(8, 12, 26, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

/* Admin bar offset — prevents WP admin bar from covering the fixed header */
.admin-bar .cnc-header { top: 32px; }
.admin-bar .cnc-mobile-nav { top: calc(32px + var(--header-h)); }
@media screen and (max-width: 782px) {
  .admin-bar .cnc-header { top: 46px; }
  .admin-bar .cnc-mobile-nav { top: calc(46px + var(--header-h)); }
}

.cnc-header__inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.cnc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.cnc-logo__img {
  display: block;
  height: var(--logo-h, 46px);
  width: auto;
  max-height: var(--logo-h, 46px);
  object-fit: contain;
  transition: filter 0.3s ease;
}
.cnc-logo:hover .cnc-logo__img { filter: drop-shadow(0 0 14px rgba(28,212,232,0.85)); }

/* Nav */
.cnc-nav { display: flex; align-items: center; gap: 4px; }
.cnc-nav li { list-style: none; }
.cnc-header .cnc-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-purple) !important;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  text-decoration: none !important;
}
.cnc-header .cnc-nav a:hover,
.cnc-header .cnc-nav a.active { color: var(--text-white) !important; }
.cnc-header .cnc-nav a.active { background: rgba(255,255,255,0.06); }
.cnc-header .cnc-nav a:hover  { background: rgba(255,255,255,0.05); }

/* Icon buttons */
.cnc-header__icons { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.cnc-icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  font-family: var(--font-main);
}
.cnc-icon-btn:hover { color: var(--text-white); background: rgba(255,255,255,0.07); }
.cnc-icon-btn .badge {
  position: absolute;
  top: 4px; inset-inline-end: 4px;
  background: var(--accent-cyan);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cnc-lang-btn {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-en);
  letter-spacing: 0.5px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  width: auto;
}
.cnc-lang-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Hamburger */
.cnc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.cnc-hamburger span {
  width: 22px; height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
/* Animated X when open */
.cnc-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cnc-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cnc-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.cnc-mobile-nav {
  display: none;
  position: fixed;
  font-family: var(--font-main);
  top: calc(var(--header-h) + var(--notice-h)); inset-inline-start: 0; inset-inline-end: 0; bottom: 0;
  background: rgba(8,12,26,0.98);
  flex-direction: column;
  padding: 32px 24px;
  gap: 6px;
  z-index: 999;
  overflow-y: auto;
}
.cnc-mobile-nav.open { display: flex; }
/* Reset <li> elements emitted by wp_nav_menu */
.cnc-mobile-nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cnc-mobile-nav a {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.3s ease;
  text-decoration: none;
}
.cnc-mobile-nav a:hover { color: var(--accent-cyan); }

.cnc-mobile-nav__lang {
  margin-top: auto;
  padding: 24px 28px 8px;
  border-top: 1px solid var(--border-light);
}
.cnc-mobile-nav__lang .cnc-lang-btn {
  display: inline-flex;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-en);
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 18px;
  background: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  width: auto;
}
.cnc-mobile-nav__lang .cnc-lang-btn:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

/* =====================================================
   FOOTER
   ===================================================== */
.cnc-footer {
  background: #04060f;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-main);
  /* direction inherited from html[dir] */
}
.cnc-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent-grad);
}
.cnc-footer::after {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 600px; height: 280px;
  background: radial-gradient(ellipse at top, rgba(28,212,232,0.055) 0%, transparent 70%);
  pointer-events: none;
}

.cnc-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding-top: 60px;
}
.cnc-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.cnc-footer__brand .cnc-logo { margin-bottom: 16px; }
.cnc-footer__brand p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 280px;
}

.cnc-social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.cnc-social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
  text-decoration: none;
}
.cnc-social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(28,212,232,0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,212,232,0.18);
}

.cnc-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}
.cnc-footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 24px; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.cnc-footer__links { display: flex; flex-direction: column; gap: 11px; }
.cnc-footer__links a {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color 0.3s ease, gap 0.3s ease;
}
.cnc-footer__links a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  flex-shrink: 0;
  margin-inline-end: 0;
}
.cnc-footer__links a:hover { color: var(--accent-cyan); gap: 8px; }
.cnc-footer__links a:hover::before { width: 12px; }

.cnc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.cnc-footer__copy {
  font-size: 17px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cnc-footer__copy::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.5;
}
.cnc-footer__legal { display: flex; gap: 20px; }
.cnc-footer__legal a {
  font-size: 17px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.cnc-footer__legal a:hover { color: var(--accent-cyan); }

/* Footer contact column */
.cnc-footer__contact-details { display: flex; flex-direction: column; gap: 12px; }
.cnc-footer__contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; color: var(--text-muted);
}
.cnc-footer__contact-item a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.cnc-footer__contact-item a:hover { color: var(--accent-cyan); }
.cnc-footer__contact-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(28,212,232,0.07);
  border: 1px solid rgba(28,212,232,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent-cyan);
}
.cnc-footer__contact-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 17px; font-weight: 600;
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  padding: 6px 16px;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  width: fit-content;
}
.cnc-footer__contact-cta:hover {
  background: rgba(28,212,232,0.1);
  box-shadow: 0 0 14px rgba(28,212,232,0.2);
}

/* =====================================================
   WOOCOMMERCE — replace platform pinks with purple
   ===================================================== */

/* Sale badge */
.woocommerce span.onsale {
  background-color: var(--accent-purple) !important;
  color: #fff !important;
  border-radius: 0 !important;
}

/* Star ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: var(--accent-purple) !important; }

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce .button.alt {
  background-color: var(--accent-purple) !important;
  color: #fff !important;
  border-radius: 0 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .button.alt:hover {
  background-color: #6d28d9 !important;
}

/* Price / highlights */
.woocommerce .price ins,
.woocommerce .price ins .woocommerce-Price-amount,
.woocommerce .woocommerce-Price-amount { color: var(--accent-purple) !important; }

/* Info / notice boxes */
.woocommerce-message,
.woocommerce-info { border-top-color: var(--accent-purple) !important; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--accent-purple) !important; }

/* Any remaining hardcoded WC pink (#a46497) — broad catch */
* { --wc-highlight-color: var(--accent-purple); }

/* =====================================================
   WOOCOMMERCE — font + alignment overrides
   ===================================================== */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce input[type="submit"],
button.product_type_simple,
button.product_type_variable,
button.product_type_external,
button.product_type_grouped,
.wc-block-components-button,
.added_to_cart,
.wc-forward,
.single_add_to_cart_button {
  font-family: var(--font-main) !important;
}

/* Quantity selector — fix spacing and alignment */
.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
}
.woocommerce .quantity input.qty {
  width: 50px;
  height: 40px;
  padding: 0;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2) !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-main) !important;
}
.woocommerce .quantity button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.2) !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.woocommerce .quantity button:hover {
  background: rgba(28,212,232,0.1) !important;
  border-color: var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .cnc-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .cnc-nav       { display: none; }
  .cnc-hamburger { display: flex; }
  /* Logo must shrink so icons bar (incl. hamburger) is never pushed off-screen.
     overflow:hidden on the header would clip it otherwise. */
  .cnc-logo { flex: 1 1 auto; min-width: 0; }
  .cnc-logo__img { height: 42px; width: auto; max-width: 160px; object-fit: contain; }
  /* Hide lower-priority icons on mobile — keep wishlist + hamburger */
  .cnc-lang-btn { display: none; }
  .cnc-icon-btn[aria-label="חשבון"],
  .cnc-icon-btn[aria-label="עגלת קניות"] { display: none; }
  /* Hide Services (col 2) and Navigation (col 3) — keep Brand + Contact */
  .cnc-footer__top > .cnc-footer__col:nth-child(2),
  .cnc-footer__top > .cnc-footer__col:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .cnc-footer__top    { grid-template-columns: 1fr; gap: 28px; }
  .cnc-footer__bottom { flex-direction: column; text-align: center; }
  .cnc-footer__copy   { justify-content: center; }
}
