/*
 * Open Sans Hebrew (Tolik 20.10, #4): Open Sans from Google Fonts, hosted in the theme,
 * Hebrew + Latin subsets, weights 400/600/700/800 (the weights the live site uses).
 * Named "Open Sans Hebrew" so every rule copied from the live site picks it up.
 */
@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-hebrew-600-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-hebrew-700-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/open-sans-hebrew-800-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 
 * BMAGNIV Main Stylesheet 
 * This file will hold the CSS extracted from bmagniv-FULL-APP.html 
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #EC4899;
  --purple: #1D0E30;
  --orange: #FF6B00;
  --accent-yellow: #FFB627;
  --cream: #FBF8F3;
  --light-gray: #E8E0D2;
  --black: #0A0A0A;
  --white: #FFFFFF;
}

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

/* Animations from PRD */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse-cta {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.5);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px 0 rgba(236, 72, 153, 0);
  }
}

/* Utility classes or basic layout to start */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Confetti Animation */
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Utility Classes */
.display-none {
  display: none !important;
}

/* Product Lightbox */
.product-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.product-lightbox.show {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-content {
  width: 80%;
  max-width: 800px;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightboxImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.lightbox-thumb {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
}

.lightbox-thumb.active {
  border-color: var(--pink);
  opacity: 1;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Review Modal */
.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.review-modal-overlay.show {
  display: flex;
}

.review-modal {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.review-modal-header {
  padding: 24px;
  background: #f9f9f9;
  border-bottom: 1px solid var(--light-gray);
  text-align: center;
  position: relative;
}

.review-modal-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.review-modal-header p {
  font-size: 14px;
  color: var(--gray);
}

.review-modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.review-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-product-summary {
  display: flex;
  gap: 15px;
  background: var(--cream);
  padding: 12px;
  border-radius: 12px;
  align-items: center;
}

.review-product-summary img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.review-product-summary .info {
  display: flex;
  flex-direction: column;
}

.review-product-summary .info p:first-child {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

.review-product-summary .info p:nth-child(2) {
  font-weight: 700;
  margin: 0;
}

.review-stars-input {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 32px;
  cursor: pointer;
}

.review-star {
  color: var(--light-gray);
  transition: color 0.2s, transform 0.2s;
}

.review-star:hover {
  transform: scale(1.2);
}

.review-star.active {
  color: var(--orange);
}

.review-stars-label {
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

#reviewTitle,
#reviewText {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: inherit;
}

.review-char-count {
  text-align: left;
  font-size: 12px;
  color: var(--gray);
  margin-top: -15px;
}

.review-tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.review-tag-input {
  padding: 6px 12px;
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.review-tag-input.selected {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.review-anon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  justify-content: center;
}

#reviewSubmit {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

#reviewCancel {
  background: none;
  border: none;
  color: var(--gray);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}


/* Accessibility button (AllAccessible plugin) - Tolik 20.10, #7.
   Desktop: the plugin's own place (right edge, middle). Phone: above the bottom bar,
   like the live site (snippet "bm-a11y-css"). */
@media (max-width: 600px) {
  #accessibility-button {
    top: auto !important;
    bottom: calc(77px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
  }
}
/* ==========================================================================
   Fix 12.11: horizontal page scroll on mobile (live home page)
   WooCommerce sale prices print <span class="screen-reader-text"> with
   position:absolute. When a price sits inside a horizontal scroller
   (overflow-x:auto) and no ancestor inside the scroller is positioned,
   that span's containing block is outside the scroller. Off-screen cards
   then leak their span to the page edge and widen the whole page.
   Seen in "recently viewed" (live snippet 53, .bm-rv-c .pr). Making the
   price wrappers positioned keeps the span inside the card.
   ========================================================================== */
.price,
.bmc-price,
.bm-rv-c .pr {
	position: relative;
}
