/* מעטפת פוטר ציבורי - נשימה וגבול עליון (כל הדפים עם public_footer) */
footer[role="contentinfo"] {
    margin-top: clamp(3.25rem, 9vw, 5rem);
    padding: clamp(1.75rem, 4vw, 2.65rem) 0 clamp(2rem, 4vw, 2.9rem);
    border-top: 1px solid #e0d6d0;
    text-align: center;
    color: #7a7a7a;
}

/* מיכל פוטר - ריווח אנכי אחיד */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: #8a7d74;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.footer-brand-note {
    margin: 0.35rem auto 0;
    max-width: min(34rem, 100%);
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #5c534c;
    text-align: center;
    overflow-wrap: break-word;
}

.footer-brand-note .brand-link {
    font-weight: 600;
    text-decoration: none;
}

.footer-brand-note .brand-link.aliexpress {
    color: #ff4747;
}

.footer-brand-note .brand-link.flylink {
    color: #1f8dd6;
}

.footer-brand-note .brand-link:hover {
    text-decoration: underline;
}

/* יצירת קשר - שורות עם אייקונים (דסקטופ; במובייל ייתכן נרמול מווידג׳ט נגישות) */
.footer-contact-block {
    margin-top: 0.65rem;
    width: 100%;
    max-width: min(22rem, 100%);
    min-width: 0;
    box-sizing: border-box;
}

.footer-contact-heading {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a8f87;
}

.footer-contact-rows {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* row + כיוון מסמך (rtl/ltr) - אייקון ב־inline-start */
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.42rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: #3d352e;
    font-size: 0.88rem;
    background: rgba(184, 90, 58, 0.04);
    border: 1px solid rgba(184, 90, 58, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}

.footer-contact-row:hover {
    background: rgba(184, 90, 58, 0.08);
    border-color: rgba(184, 90, 58, 0.22);
}

.footer-contact-icon {
    flex-shrink: 0;
    display: flex;
    color: #b85a3a;
    opacity: 0.9;
}

.footer-contact-text {
    text-align: start;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
    flex: 1 1 auto;
}

/* Shared footer logo - include on all public pages with <footer> */
.footer-brand {
    margin: 12px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 560ms ease;
    will-change: transform, opacity;
}

.footer-brand-link:focus-visible {
    outline: 3px solid rgba(184, 90, 58, 0.45);
    outline-offset: 3px;
}

.footer-brand-link.footer-logo-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.footer-brand-link.footer-logo-out {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
}

.footer-brand img {
    max-height: 40px;
    width: auto;
    max-width: min(260px, 88vw);
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 430ms cubic-bezier(0.22, 1, 0.36, 1), filter 380ms ease, opacity 300ms ease;
}

/* Branding images: disable drag-and-drop (ghost image / save-as drag) */
.logo img,
.about-hero-logo img,
.sidebar-brand img,
.footer-brand img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
}

.footer-brand-text-link {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #b85a3a;
    text-decoration: none;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), text-shadow 300ms ease;
}

.footer-brand-text-link:hover {
    text-decoration: underline;
}

.footer-brand-link.footer-logo-in img {
    animation: footerLogoPulseIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

@media (hover: hover) and (pointer: fine) {
    .footer-brand-link.footer-logo-live:hover img,
    .footer-brand-link.footer-logo-live:focus-visible img {
        transform: translateY(-1px) scale(1.03);
        filter: drop-shadow(0 6px 16px rgba(184, 90, 58, 0.24));
    }

    .footer-brand-link.footer-logo-live:hover .footer-brand-text-link,
    .footer-brand-link.footer-logo-live:focus-visible .footer-brand-text-link {
        transform: translateY(-1px);
        text-shadow: 0 6px 14px rgba(184, 90, 58, 0.2);
    }
}

.footer-brand-link.footer-logo-touch img,
.footer-brand-link.footer-logo-touch .footer-brand-text-link {
    transform: translateY(-1px) scale(1.02);
}

@keyframes footerLogoPulseIn {
    0% {
        transform: scale(0.9);
        opacity: 0.3;
        filter: blur(2px);
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* קישורים משפטיים ודיסקליימר שותפים - פוטר ציבורי */
.footer-legal-nav {
    margin: 0.35rem 0 0.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 100%;
}

.footer-legal-links li {
    margin: 0;
    padding: 0;
}

.footer-legal-links a {
    color: #b85a3a;
    text-decoration: none;
    font-weight: 500;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-affiliate-disclaimer {
    margin: 0.55rem auto 0;
    max-width: min(34rem, 100%);
    width: 100%;
    box-sizing: border-box;
    padding-inline: 0.35rem;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #7a6a62;
    font-weight: 400;
    overflow-wrap: break-word;
}

/* מובייל צר - קישורים משפטיים ארוכים (ru/es) */
@media (max-width: 420px) {
    .footer-legal-links {
        flex-direction: column;
        gap: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-brand-link {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .footer-brand img,
    .footer-brand-text-link {
        transition: none !important;
    }
}

/* דיסקליימר מחיר - ליד CTA / מחיר (partial: supplier_price_disclaimer.php) */
.ali-price-supplier-disclaimer {
    display: block;
    margin: 0.45rem 0 0;
    max-width: 32em;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #6d5346;
    font-weight: 400;
    text-align: end;
}

.ali-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    width: 100%;
}

.ali-cta-stack .ali-price-supplier-disclaimer {
    align-self: stretch;
    margin-top: 0.4rem;
}
