/* ==========================================================
   BASE - גוף האתר + רקע רדיאלי + אייקונים + כפתורים גלובליים
   ========================================================== */
body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-forest);
    /* ⚠️ אל תוסיפי כאן overflow-x: hidden — זה שובר את position:sticky של ה-header.
       במקום זה, root.css כבר משתמש ב-overflow-x: clip על html+body, שחותך בלי ליצור scroll container. */
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(212, 165, 165, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 80%, rgba(168, 197, 217, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(197, 184, 217, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 98, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(154, 173, 140, 0.22) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* אייקונים */
.icon {
    width: 22px; height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }

/* Sections - ריווח אחיד */
section {
    padding: 5rem 3rem;
    position: relative;
    z-index: 2;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--color-sage-light);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--color-sage);
    font-size: 1rem;
}

/* כפתורים */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}
.btn-primary { background: var(--color-sage); color: white; }
.btn-primary:hover {
    background: var(--color-sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 139, 111, 0.35);
}
.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: white;
    color: var(--color-forest);
    border-color: white;
}

.wc-block-cart__submit-button {
    width: 100%;
    padding: 0.95rem 2rem;
    background: var(--color-forest);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.wc-block-cart__submit-button:hover {
    background: var(--color-sage-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(61, 79, 57, 0.3);
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    border-radius: 5px;
}

/* ==========================================================
   ENTRY-CONTENT - טיפוגרפיה לתוכן ה-WYSIWYG (עמודים, פוסטים)
   ========================================================== */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-forest);
    max-width: 100%;
}

/* ---- כותרות ---- */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-display);
    color: var(--color-forest);
    line-height: 1.3;
    margin: 2rem 0 0.8rem;
    font-weight: 600;
}
.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }

.entry-content h1 { font-size: 2.2rem; }
.entry-content h2 { font-size: 1.7rem; color: var(--color-sage-dark); padding-bottom: 0.4rem; border-bottom: 1px solid rgba(61, 79, 57, 0.1); }
.entry-content h3 { font-size: 1.3rem; color: var(--color-forest); }
.entry-content h4 { font-size: 1.1rem; font-weight: 700; }
.entry-content h5 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.entry-content h6 { font-size: 0.9rem; font-weight: 600; color: var(--color-sage); }

/* ---- פסקאות ---- */
.entry-content p {
    margin: 0 0 1.2rem;
}
.entry-content p:last-child { margin-bottom: 0; }

/* ---- קישורים ---- */
.entry-content a {
    color: var(--color-sage-dark);
    text-decoration: underline;
    text-decoration-color: rgba(122, 139, 111, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.entry-content a:hover {
    color: var(--color-rose-deep);
    text-decoration-color: var(--color-rose-deep);
}

/* ---- הדגשות ---- */
.entry-content strong, .entry-content b { font-weight: 700; color: var(--color-forest); }
.entry-content em, .entry-content i { font-style: italic; }
.entry-content mark { background: var(--color-gold-light); color: var(--color-forest); padding: 0.1rem 0.3rem; border-radius: 3px; }
.entry-content small { font-size: 0.85em; opacity: 0.8; }

/* ---- רשימות ---- */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2rem;
    padding-right: 1.5rem;
    padding-left: 0;
}
.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.entry-content ul li { list-style: none; position: relative; padding-right: 1.2rem; }
.entry-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.75rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-sage);
}
.entry-content ol { list-style: decimal; }
.entry-content ol li::marker { color: var(--color-sage); font-weight: 600; }
.entry-content ul ul, .entry-content ol ol,
.entry-content ul ol, .entry-content ol ul {
    margin: 0.5rem 0 0;
}

/* ---- ציטוט ---- */
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--color-cream-dark);
    border-right: 4px solid var(--color-sage);
    border-radius: 10px;
    font-style: italic;
    color: var(--color-forest);
    font-size: 1.05rem;
    line-height: 1.7;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-sage);
    font-style: normal;
}

/* ---- קו אופקי ---- */
.entry-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(61, 79, 57, 0.2), transparent);
    margin: 2rem 0;
}

/* ---- קוד ---- */
.entry-content code {
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    padding: 0.15rem 0.4rem;
    background: var(--color-cream-dark);
    border-radius: 4px;
    color: var(--color-rose-deep);
    direction: ltr;
    unicode-bidi: embed;
}
.entry-content pre {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    background: var(--color-forest);
    color: #f5f5f0;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    direction: ltr;
}
.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* ---- טבלאות ---- */
.entry-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(61, 79, 57, 0.05);
    background: white;
}
.entry-content table th,
.entry-content table td {
    padding: 0.8rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(61, 79, 57, 0.08);
}
.entry-content table th {
    background: var(--color-sage);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}
.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:hover td { background: var(--color-cream); }

/* ---- תמונות ומדיה ---- */
.entry-content img,
.entry-content video,
.entry-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.entry-content figure {
    margin: 1.5rem 0;
}
.entry-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-sage);
    text-align: center;
    font-style: italic;
}

/* ---- התאמה לרספונסיב ---- */
@media (max-width: 768px) {
    .entry-content { font-size: 0.95rem; }
    .entry-content h1 { font-size: 1.8rem; }
    .entry-content h2 { font-size: 1.4rem; }
    .entry-content h3 { font-size: 1.2rem; }
    .entry-content table { font-size: 0.85rem; }
    .entry-content table th, .entry-content table td { padding: 0.6rem 0.7rem; }
}

/* Responsive base */
@media (max-width: 768px) {
    section { padding: 3.5rem 1.2rem; }
}
