/*
Theme Name: Olga's Studio
Theme URI: https://olgas-studio.com
Author: Olga's Studio
Description: ערכת נושא בלוקים לנגרייה הטיפולית של אולגה. תמיכה ב-RTL, עברית, אנגלית ורוסית (Polylang) ו-WooCommerce.
Version: 1.5.7
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: olgas-studio
*/

/* רקע עץ לכל האתר */
body{background-color:#F6EEDD;background-image:url('assets/wood.jpg');background-repeat:repeat;background-size:1024px auto;background-attachment:scroll}
.os-header{background:transparent!important;border-bottom:1px dotted rgba(184,105,63,.5)!important}
.os-footer,.os-band{box-shadow:none}

/* ערכות: 4 מוצרים בשורה אחת */
.woocommerce ul.products,.wp-block-woocommerce-product-collection ul.wc-block-product-template,ul.wc-block-grid__products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.woocommerce ul.products li.product,.wc-block-grid__product{width:auto!important;float:none!important;margin:0!important;max-width:none!important;flex:none!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
@media(max-width:900px){.woocommerce ul.products,ul.wc-block-grid__products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.woocommerce ul.products,ul.wc-block-grid__products{grid-template-columns:1fr}}

/* אזור פתיחה: תמונה גדולה יותר */
.os-hero{align-items:center}
.os-hero>.wp-block-column:first-child{flex-basis:38%!important}
.os-hero>.wp-block-column:last-child{flex-basis:62%!important}
.os-ph{padding:0!important;min-height:440px;border:none!important;background:transparent!important;overflow:hidden;border-radius:24px}
.os-ph .wp-block-image,.os-ph figure{margin:0!important;width:100%}
.os-ph img{width:100%!important;height:100%!important;min-height:440px;object-fit:cover;border-radius:24px;display:block}
@media(max-width:781px){.os-hero>.wp-block-column{flex-basis:100%!important}.os-ph,.os-ph img{min-height:260px}}

/* כרטיס מוצר: מירכוז שם, מחיר וכפתור */
.woocommerce ul.products li.product,.wc-block-grid__product{display:flex!important;flex-direction:column;align-items:center;text-align:center}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.wc-block-grid__product-title{text-align:center;width:100%}
.woocommerce ul.products li.product .price,.wc-block-grid__product-price{display:block;text-align:center;width:100%}
.woocommerce ul.products li.product .button,.wc-block-grid__product .wp-block-button,.wc-block-grid__product-add-to-cart{margin:auto auto 0!important;align-self:center;text-align:center}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;align-items:center;width:100%}
.os-credit{font-size:.9rem;margin-top:8px;opacity:.95}

/* עמוד מוצר רחב (כמו בדגם) */
.single-product main.wp-block-group{max-width:1280px;margin-inline:auto}
.os-product-card{background:#FBF7EC;border-radius:24px;padding:28px;margin:1rem 0 2rem;box-shadow:0 1px 0 rgba(184,105,63,.15)}
.os-product-card .os-product{gap:40px;align-items:flex-start;margin:0}
.os-product-card .wc-block-components-product-image-gallery img,.os-product-card .woocommerce-product-gallery img{width:100%;height:auto;border-radius:20px}
.os-product-card .woocommerce-product-gallery{margin:0!important;width:100%!important}
.os-tag{display:inline-block;background:#3E5A3C;color:#fff;font-weight:800;padding:2px 14px;border-radius:6px;margin-bottom:6px}
.os-product-card h1.wp-block-post-title{font-size:clamp(1.7rem,3vw,2.3rem);margin:.2rem 0 .6rem}
.os-goals{margin:14px 0}
.os-goals strong{color:#3E5A3C}
.os-goals ul{margin:.4rem 0 0;padding-inline-start:1.2rem}
.os-goals li{margin:.15rem 0}
.os-goals li::marker{color:#B8693F}
.os-product-card .wp-block-woocommerce-product-price{margin:10px 0}
.os-product-card .wp-block-woocommerce-product-price,.os-product-card .price{color:#B8693F;font-weight:800}
.single-product .wp-block-woocommerce-product-details{max-width:100%}
@media(max-width:781px){.os-product-card{padding:16px}.os-product-card .os-product{gap:20px}}

/* מובייל וטאבלט: שני מוצרים בשורה (כולל עמוד החנות) */
@media (max-width:900px){
  .woocommerce ul.products,
  ul.wc-block-grid__products,
  ul.wc-block-product-template,
  .wp-block-woocommerce-product-collection .wc-block-product-template,
  .wp-block-woocommerce-product-template,
  .wp-block-post-template.is-layout-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .woocommerce ul.products li.product,
  .wc-block-grid__product,
  .wc-block-product,
  .wp-block-post.product{
    width:auto!important;max-width:none!important;margin:0!important;float:none!important;
    padding:10px!important;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .wc-block-grid__product-title,
  .wc-block-product .wp-block-post-title{font-size:1rem!important;line-height:1.3}
  .woocommerce ul.products li.product .button,
  .wc-block-grid__product .wp-block-button__link,
  .wc-block-product .wp-block-button__link,
  .wc-block-product .wc-block-components-product-button__button{
    padding:.55rem .9rem!important;font-size:.9rem!important;white-space:nowrap;width:auto
  }
}
@media (max-width:360px){
  .woocommerce ul.products li.product .button,
  .wc-block-product .wp-block-button__link{font-size:.8rem!important;padding:.5rem .7rem!important}
}

/* רווח מתחת לכפתור "הוספה לסל" בתוך כרטיס המוצר */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product,
.wp-block-post.product{padding-bottom:22px!important}
.woocommerce ul.products li.product .button,
.wc-block-grid__product .wp-block-button,
.wc-block-grid__product-add-to-cart,
.wc-block-product .wp-block-button{margin-bottom:6px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding-inline:8px}
@media (max-width:900px){
  .woocommerce ul.products li.product,.wc-block-grid__product,.wc-block-product,.wp-block-post.product{padding-bottom:16px!important}
}

/* מובייל: מירכוז כותרת, תת-כותרת וכפתורים באזור הפתיחה */
@media (max-width:781px){
  .os-hero>.wp-block-column:first-child{text-align:center}
  .os-hero h1,.os-hero .wp-block-heading,.os-hero p{text-align:center!important}
  .os-hero .wp-block-buttons{justify-content:center!important;margin-inline:auto}
}

/* הודעה קופצת */
.os-popup[hidden]{display:none!important}
.os-popup{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(62,40,28,.55)}
.os-popup__box{position:relative;background:#FBF7EC;color:#5A3A2A;border:2px dotted #B8693F;border-radius:24px;padding:32px 28px 24px;max-width:520px;width:100%;max-height:90vh;overflow:auto;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.os-popup__title{color:#3E5A3C;margin:0 0 12px;font-size:1.6rem;font-weight:800}
.os-popup__content img{max-width:100%;height:auto;border-radius:14px}
.os-popup__content>*:first-child{margin-top:0}
.os-popup__close{position:absolute;top:10px;inset-inline-end:12px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#5A3A2A;font-size:30px;line-height:1;cursor:pointer}
.os-popup__close:hover,.os-popup__close:focus-visible{background:#EADFC8}
.os-popup__dismiss{margin-top:14px;background:none;border:0;color:#7A6455;text-decoration:underline;font:inherit;cursor:pointer;padding:8px}
.os-popup button:focus-visible,.os-popup a:focus-visible{outline:3px solid #3E5A3C;outline-offset:2px}
html.os-popup-open{overflow:hidden}
@media (prefers-reduced-motion:no-preference){.os-popup:not([hidden]){animation:os-fade .35s ease both}@keyframes os-fade{from{opacity:0}to{opacity:1}}}

/* רווח קטן מצדי המסך בטלפון ובטאבלט, בכל העמודים */
@media (max-width:1180px){
  main.wp-block-group{padding-inline:16px}
  main.wp-block-group .alignfull{max-width:none;width:auto;margin-inline:-16px}
}

/* פוטר בשורה אחת: זכויות מימין, קרדיט בלאנס משמאל */
.os-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between!important;gap:10px 24px;text-align:start;padding:14px 5%!important;font-size:.95rem}
.os-footer p{margin:0!important}
.os-footer a{color:#fff;text-decoration:none}
.os-credit{display:inline-flex;align-items:center;gap:10px}
.os-balans-link{display:inline-block;line-height:0;border-radius:4px}
.os-balans-link:focus-visible{outline:2px solid #fff;outline-offset:3px}
.os-balans-logo{display:block;width:100px;height:21px;background:url('assets/balans-logo.png') center/contain no-repeat}
@media (max-width:640px){
  .os-footer{flex-direction:column;justify-content:center!important;text-align:center;gap:10px}
  .os-credit{flex-wrap:wrap;justify-content:center}
}

/* עמוד צור קשר: פרטים ומפה */
.os-contact{gap:36px;align-items:flex-start}
.os-contact-list{list-style:none;padding:0;margin:1rem 0}
.os-contact-list li{padding:.45rem 0;border-bottom:1px dotted rgba(184,105,63,.45)}
.os-contact-list li:last-child{border-bottom:0}
.os-map-card{background:#FBF7EC;border:1.5px dotted #B8693F;border-radius:24px;padding:12px}
.os-map-card figure,.os-map-card .wp-block-image{margin:0}
.os-map-card img{display:block;width:100%;height:auto;border-radius:16px}
.os-map-caption{margin:10px 0 2px!important;font-size:.95rem}
@media (max-width:781px){.os-contact{gap:20px}}

/* טופס יצירת קשר */
.os-form{background:#FBF7EC;border:1.5px dotted #B8693F;border-radius:24px;padding:24px;max-width:860px}
.os-form form p{margin:0 0 14px}
.os-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.os-form__grid .os-form__wide{grid-column:1/-1}
.os-form label{display:block;font-weight:600;margin-bottom:5px;color:#5A3A2A}
.os-form label small{font-weight:400;opacity:.8}
.os-form .os-req{color:#B8693F}
.os-form input[type=text],.os-form input[type=tel],.os-form input[type=email],.os-form select,.os-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;color:#5A3A2A;background:#fff;border:1.5px solid #CDBFA6;border-radius:14px;padding:.7rem .9rem;min-height:46px}
.os-form textarea{resize:vertical}
.os-form input:focus,.os-form select:focus,.os-form textarea:focus{outline:3px solid #3E5A3C;outline-offset:1px;border-color:#3E5A3C}
.os-form__consent label{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.os-form__consent input{width:20px;height:20px;margin-top:3px;flex:none;accent-color:#3E5A3C}
.os-form__submit{background:#B8693F;color:#fff;border:0;border-radius:30px;padding:.8rem 2.2rem;font:inherit;font-weight:700;font-size:1.05rem;cursor:pointer}
.os-form__submit:hover{background:#3E5A3C}
.os-form__submit:focus-visible{outline:3px solid #3E5A3C;outline-offset:3px}
.os-form__msg{border-radius:14px;padding:14px 16px;margin-bottom:16px}
.os-form__msg--ok{background:#E4EEDF;border:1.5px solid #3E5A3C;color:#2E4A2C}
.os-form__msg--err{background:#FBE9E3;border:1.5px solid #B8693F;color:#7A3A1D}
.os-form__msg ul{margin:.4rem 0 0;padding-inline-start:1.2rem}
.os-hp{position:absolute!important;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:640px){.os-form{padding:16px}.os-form__grid{grid-template-columns:1fr}}
.os-portrait{margin:0 auto;max-width:420px;aspect-ratio:1;border-radius:50%;padding:8px;border:2px dotted #B8693F;background:#FBF7EC}
.os-portrait img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.os-about-quote{border-inline-start:4px solid #B8693F;padding-inline-start:1rem;color:#3E5A3C;font-weight:500}
@media (max-width:781px){.os-about{flex-direction:column-reverse}.os-portrait{max-width:260px}.os-about h1,.os-about .wp-block-buttons{text-align:center;justify-content:center}}
.os-wa{position:fixed;left:16px;right:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:9990;width:56px;height:56px;border-radius:50%;background:#25D366;display:grid;place-items:center;box-shadow:0 4px 14px rgba(0,0,0,.28);transition:transform .2s}
.os-wa:hover{transform:scale(1.08)}
.os-wa:focus-visible{outline:3px solid #3E5A3C;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.os-wa{transition:none}}
@media (max-width:640px){.os-wa{width:52px;height:52px;left:12px;right:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px))}}
html,body{overflow-x:clip;max-width:100%}
.wp-site-blocks{overflow-x:clip}
.os-ws-photo{margin:0;border-radius:24px;overflow:hidden;border:2px dotted #B8693F;padding:6px;background:#FBF7EC}
.os-ws-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center 40%;border-radius:18px}
@media (max-width:781px){.os-ws-cols{gap:0}}
.os-ws-video{margin:0 auto;max-width:340px;border-radius:24px;overflow:hidden;border:2px dotted #B8693F;padding:6px;background:#FBF7EC}
.os-ws-video video{display:block;width:100%;height:auto;max-height:70vh;border-radius:18px;background:#000}
@media (max-width:781px){.os-ws-video-row{margin-block:1.5rem}}


/* תוסף הנגישות Enable: סמל בשמאל במרכז המסך (יחסית לסרגל שמחליק מלמטה), והסתרת התווית ESC */
#enable-toolbar-trigger{top:-50vh!important;bottom:auto!important;left:16px!important;right:auto!important;margin:0!important;transform:translateY(-50%)!important}
#enable-toolbar-trigger .keyboard-shorcut{display:none!important}
.os-footer-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 5px;font-size:.9rem}
.os-footer-links a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.os-footer-links a:hover,.os-footer-links a:focus-visible{text-decoration-thickness:2px}
.os-footer-links span[aria-hidden]{opacity:.6}
.os-fl-label{opacity:.85}
