/* =========================================================
   Sweet Box 2026 — product.css (דף מוצר בודד)
   ========================================================= */

/* === PRODUCT HERO (gallery + info) === */
.product-hero {
  padding: 0 32px 50px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Gallery */
.gallery-main {
  background: var(--cream);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.gallery-thumbs .thumb {
  aspect-ratio: 1;
  background: var(--cream);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}
.gallery-thumbs .thumb:hover { border-color: var(--blue-deep); }
.gallery-thumbs .thumb.active { border-color: var(--ink); }

/* Product info */
.product-info { padding-top: 8px; }
.product-eyebrow { font-size: 16px; letter-spacing: 6px; color: var(--blue-deep); margin-bottom: 14px; }
.product-title { font-size: clamp(40px, 4vw, 56px); line-height: 1; margin-bottom: 16px; letter-spacing: 0.5px; font-weight: normal; }
.product-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--brown); margin-bottom: 22px; }
.product-rating .stars { color: var(--blue-deep); letter-spacing: 2px; font-size: 17px; }

.product-price-block { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.product-price { font-size: 38px; color: var(--ink); letter-spacing: 1px; }
.product-price .woocommerce-Price-amount { font-size: inherit; }
.product-price del { opacity: 0.4; font-size: 0.6em; margin-inline-end: 10px; }
.product-price ins { text-decoration: none; }
.product-price .small { font-size: 14px; color: var(--ink-whisper); margin-inline-start: 8px; font-weight: 300; }

.product-description { font-size: 16px; line-height: 1.7; color: var(--brown); margin-bottom: 24px; font-weight: 400; }

/* מוצר שאזל מהמלאי — הודעה במקום כפתורי הקנייה */
.sb-oos-note {
  background: #F8F1EF;
  border-inline-start: 3px solid #C0574F;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: #A34B44;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* הערת תמונות להמחשה — מתחת לכפתורי הקנייה */
.sb-image-disclaimer {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--ink-whisper);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* === וריאציות: גלולות בחירה === */
.sb-variations { margin-bottom: 20px; }
.sb-variation-row { margin-bottom: 16px; }
.sb-variation-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.sb-variation-label .required { color: #C0574F; text-decoration: none; }
.sb-attr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-pill {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  color: var(--brown);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s;
}
.sb-pill:hover:not(:disabled):not(.selected) { border-color: var(--blue-deep); color: var(--blue-deep); transform: translateY(-1px); }
.sb-pill.selected {
  background: var(--teal-accent);
  border-color: var(--teal-accent);
  color: #FFFFFF;
}
.sb-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.sb-variation-select { display: none; }
.sb-variations .reset_variations {
  display: inline-block;
  font-size: 12px;
  color: var(--blue-deep);
  text-decoration: underline;
  margin-top: 2px;
}
.sb-variations .reset_variations:hover { color: var(--brown); }

/* פרטי הווריאציה הנבחרת (מחיר/מלאי — מוזרק ע"י ווקומרס) */
.woocommerce-variation.single_variation { margin-bottom: 12px; }
.woocommerce-variation-price .price {
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.woocommerce-variation-price .price del { opacity: 0.4; font-size: 0.7em; margin-inline-end: 8px; }
.woocommerce-variation-price .price ins { text-decoration: none; }
.woocommerce-variation-availability { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.woocommerce-variation-availability .out-of-stock { color: #C0574F; }
.stock.out-of-stock { color: #C0574F; font-size: 15px; }

/* כפתורים נעולים עד בחירת וריאציה */
.btn-add.disabled,
.btn-add.wc-variation-selection-needed,
.btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quantity + Buttons */
form.cart { margin: 0; }
.actions-row { display: flex; gap: 12px; margin-bottom: 20px; }
.qty-select { display: flex; align-items: center; border: 1px solid var(--ink); background: #FFFFFF; }
.qty-select button {
  background: none;
  border: none;
  width: 42px;
  height: 50px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.qty-select button:hover { background: var(--cream); }
.qty-select input {
  width: 50px;
  height: 50px;
  text-align: center;
  border: none;
  border-inline-start: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  font-size: 16px;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-select input::-webkit-outer-spin-button,
.qty-select input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-buy {
  flex: 1;
  background: var(--teal-accent);
  color: var(--paper);
  border: none;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  height: 50px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(74, 143, 168, 0.18);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-buy:hover { background: var(--brown); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(85, 75, 65, 0.22); }

.btn-add {
  flex: 1;
  background: white;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  height: 50px;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-add:hover { background: var(--blue-deep); color: white; transform: translateY(-1px); }
.btn-add:disabled { opacity: 0.85; cursor: default; }

/* === פינוקים קטנים להוספה (נלווים) === */
.sb-product-upsell {
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin: 20px 0 4px;
}
.sb-product-upsell .sb-upsell-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-accent);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: center;
}
.sb-product-upsell .sb-upsell-title span {
  display: inline-block;
  font-weight: 400;
  color: var(--ink-whisper);
  letter-spacing: 0.5px;
  margin-inline-start: 6px;
}
.sb-product-upsell .upsell-list { display: flex; flex-direction: column; gap: 8px; }
.sb-product-upsell .upsell-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 7px 10px 7px 8px;
  text-align: start;
}
.sb-product-upsell .upsell-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: var(--blue-soft);
  overflow: hidden;
}
.sb-product-upsell .upsell-thumb img { width: 42px; height: 42px; object-fit: cover; display: block; }
.sb-product-upsell .upsell-info { min-width: 0; }
.sb-product-upsell .upsell-name {
  font-size: 13px;
  color: var(--brown);
  font-weight: 500;
  line-height: 1.3;
}
.sb-product-upsell .upsell-price-row { font-size: 12px; color: var(--ink-whisper); margin-top: 2px; }
.sb-product-upsell .upsell-price-row del { opacity: 0.5; margin-inline-end: 4px; }
.sb-product-upsell .upsell-price-row ins { text-decoration: none; }
.sb-product-upsell .upsell-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--blue-deep);
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.sb-product-upsell .upsell-add:hover { background: var(--blue-deep); color: white; transform: scale(1.05); }
.sb-product-upsell .upsell-add.added { background: var(--green); color: white; border-color: var(--green); }
.sb-product-upsell .added_to_cart { display: none !important; }

/* Trust signals */
.trust-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 18px; }
.trust-cell { text-align: center; padding: 12px 8px; background: var(--cream); }
.trust-cell .ico { font-size: 20px; color: var(--blue-deep); margin-bottom: 4px; display: block; }
.trust-cell .txt { font-size: 12.5px; color: var(--brown); letter-spacing: 0.5px; }

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: 40px; }
.section-eyebrow { font-size: 22px; letter-spacing: 7px; color: var(--blue-deep); margin-bottom: 14px; font-weight: 400; }
.section-h2 { font-size: clamp(34px, 4vw, 46px); font-weight: normal; letter-spacing: 0.5px; line-height: 1.1; }

/* === WHAT'S INSIDE === */
.whats-inside { background: var(--blue-soft); padding: 50px 32px 60px; }
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.inside-item { background: #FFFFFF; text-align: center; padding-bottom: 22px; transition: transform 0.3s, box-shadow 0.3s; }
.inside-item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.inside-item-img { aspect-ratio: 1; background-size: cover; background-position: center; margin-bottom: 16px; }
.inside-item-name { font-size: 20px; letter-spacing: 0.5px; color: var(--ink); }
.inside-item-qty { font-size: 13px; color: var(--brown); margin-top: 4px; font-weight: 300; letter-spacing: 1px; }

/* === STORY === */
.story { background: var(--paper); padding: 50px 32px 60px; text-align: center; }
.story-inner { max-width: 740px; margin: 0 auto; }
.story-quote { font-weight: 300; font-size: 22px; color: var(--brown); line-height: 1.5; margin: 16px 0 10px; }
.story-text { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.story-text p { margin-bottom: 10px; }
.story-text p:last-child { margin-bottom: 0; }

/* === RELATED === */
.related { background: linear-gradient(180deg, #FFFFFF 0%, #EDF6FA 100%); padding: 50px 32px 60px; }
.related-carousel-wrap { position: relative; max-width: 1200px; margin: 30px auto 0; padding: 0 40px; overflow: hidden; }
.related-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.related-carousel::-webkit-scrollbar { display: none; }
.related-carousel .related-item { flex: 0 0 calc(100% - 4px); scroll-snap-align: center; max-width: 320px; margin: 0 auto; }
.related-item { background: #FFFFFF; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; display: block; text-decoration: none; color: inherit; }
.related-item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.related-arrow {
  position: absolute;
  top: 38%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(85, 75, 65, 0.12);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.related-arrow:hover { background: var(--teal-accent); color: #FFFFFF; transform: scale(1.08); }
.related-arrow.prev { right: 4px; }
.related-arrow.next { left: 4px; background: var(--blue); animation: arrowPulse 2.4s ease-in-out infinite; }
.related-arrow.next:hover { animation: none; background: var(--teal-accent); color: #FFFFFF; }
@keyframes arrowPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(74, 143, 168, 0.20), 0 0 0 0 rgba(74, 143, 168, 0.5); }
  50% { box-shadow: 0 4px 14px rgba(74, 143, 168, 0.30), 0 0 0 12px rgba(74, 143, 168, 0); }
}
.related-img { aspect-ratio: 1; background-size: cover; background-position: center; background-color: var(--blue-soft); }
.related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-info { padding: 18px 20px 22px; text-align: center; }
.related-name { font-size: 22px; margin-bottom: 4px; font-weight: normal; }
.related-price { font-size: 18px; color: var(--blue-deep); }
.related-price del { opacity: 0.4; font-size: 0.8em; margin-inline-end: 6px; }
.related-price ins { text-decoration: none; }

/* === BRANCHES STRIP === */
.branches-strip { background: var(--cream); padding: 40px 32px; text-align: center; }
.branches-strip p { font-weight: 300; font-size: 17px; color: var(--brown); margin: 0 auto 18px; max-width: 780px; line-height: 1.55; letter-spacing: 1px; }
.branches-strip p strong { color: var(--ink); font-weight: 700; font-size: 16px; background: var(--blue-soft); padding: 1px 6px; }
.branches-strip .links { display: inline-flex; gap: 20px; }
.branches-strip .links a { background: var(--blue-deep); color: #FFFFFF; padding: 10px 22px; font-size: 13px; letter-spacing: 2px; font-weight: 500; transition: background 0.3s; }
.branches-strip .links a:hover { background: var(--brown); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 28px; }
  .product-info { text-align: center; padding-top: 0; }
  .product-eyebrow { margin-bottom: 10px; font-size: 13px; letter-spacing: 4px; }
  .product-title { font-size: 38px; margin-bottom: 14px; }
  .product-rating { justify-content: center; margin-bottom: 18px; }
  .product-price-block { padding: 14px 0; margin-bottom: 18px; }
  .product-price { font-size: 32px; }
  .product-description { font-size: 15px; margin-bottom: 22px; text-align: center; }
  .actions-row { justify-content: center; max-width: 380px; margin: 0 auto 16px; }
  .section-eyebrow { font-size: 14px; letter-spacing: 4px; white-space: nowrap; }
  .section-h2 { font-size: clamp(26px, 5vw, 34px); }
  .gallery-thumbs { grid-template-columns: repeat(7, 1fr); }
  .inside-grid, .reviews-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .related-carousel-wrap { padding: 0 50px; }
  .related-carousel { gap: 12px; }
  .related-carousel .related-item { flex: 0 0 100%; max-width: 100%; scroll-snap-align: center; }
  .related-arrow { width: 38px; height: 38px; font-size: 18px; }
  .trust-signals {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding-top: 14px;
    max-width: 100%;
    margin: 0 auto;
  }
  .trust-cell { flex: 0 1 auto; text-align: center; padding: 8px 4px; }
  .trust-cell .ico { font-size: 14px; margin-bottom: 2px; }
  .trust-cell .txt { font-size: 11px; letter-spacing: 0; line-height: 1.3; }
  .whats-inside, .story, .related, .branches-strip { padding-left: 16px; padding-right: 16px; }
  .story { padding-top: 30px; padding-bottom: 32px; }
  .story-quote { font-size: 19px; margin: 8px 0 8px; }
  .story-text { font-size: 14.5px; }
  .related { padding-top: 28px; padding-bottom: 36px; }
  .section-header { margin-bottom: 18px; }
  .branches-strip { padding-top: 30px; padding-bottom: 30px; }
  .branches-strip p { font-size: 14px; margin-bottom: 14px; }
  .branches-strip .links { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
  .inside-grid { grid-template-columns: 1fr; }
  .product-title { font-size: 34px; }
  .actions-row { flex-wrap: nowrap; gap: 6px; }
  .qty-select { flex: 0 0 auto; height: 46px; border-radius: 999px; overflow: hidden; }
  .qty-select button { width: 30px; height: 46px; font-size: 16px; }
  .qty-select input { width: 32px; height: 46px; font-size: 14px; }
  .btn-buy, .btn-add {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .btn-add .full-text { display: none; }
}
