/* ============================================================
   Masha Allah Enterprise — Global site chrome (header + footer)
   Loaded on every page via templates/pages/base.html.
   Uses the design tokens defined in pages.css.
   ============================================================ */

/* ---------- Announcement bar ---------- */

.announce-bar {
    background: var(--announce-bg);
    color: var(--announce-text);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 16px;
    animation: announcePan 9s linear infinite;
}

@keyframes announcePan {
    to { background-position: 200% 0; }
}

/* ---------- Header — Premium Mobile-First ---------- */

.announce-bar {
    background: var(--announce-bg);
    color: var(--announce-text);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 16px;
    animation: announcePan 9s linear infinite;
}

@keyframes announcePan {
    to { background-position: 200% 0; }
}

/* Sticky header shell */
.site-header {
    position: sticky;
    top: 0;
    z-index: 800;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s ease, background 0.2s ease;
}

.site-header.scrolled {
    box-shadow: 0 6px 20px rgba(15, 60, 35, 0.12);
    background: var(--header-bg);
}

/* Top row: hamburger + brand + search + cart */
.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    transition: min-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), padding 0.2s ease;
}

.site-header.scrolled .header-top-inner {
    min-height: 58px;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.32rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 122, 61, 0.32);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 7px 18px rgba(14, 122, 61, 0.42);
}

.brand-text {
    font-size: 1.14rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.brand-text em {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-dark);
}

.brand-drawer .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.18rem;
    border-radius: 10px;
}

.brand-drawer .brand-text {
    font-size: 1.02rem;
}

/* Hamburger — 44px touch target */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--primary-light);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: #dff0e6;
}

.nav-toggle:active {
    transform: scale(0.96);
}

.nav-toggle span {
    display: block;
    width: 19px;
    height: 2.4px;
    border-radius: 3px;
    background: var(--primary-dark);
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.4px) rotate(-45deg);
}

.nav-toggle:focus-visible,
.header-cart:focus-visible,
.search-clear:focus-visible,
.search-submit:focus-visible,
.drawer-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Search input must NOT own focus ring — container handles it via :focus-within */
.header-search input:focus,
.header-search input:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Search — highly visible, premium pill */
.header-search {
    flex: 1 1 280px;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f7f4;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-width: 0;
    margin-left: 6px;
    /* prevent layout shift on focus — keep border width identical in both states */
    box-sizing: border-box;
}

.header-search:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 122, 61, 0.14);
}

.search-icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    opacity: 0.9;
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 9px 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    /* prevent inner focus ring / border — owner is container */
    border-radius: 0;
    box-shadow: none;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search input::-webkit-search-decoration,
.header-search input::-webkit-search-cancel-button {
    display: none;
}

.search-clear,
.search-submit {
    flex: none;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.search-clear {
    background: #e8ece9;
    color: var(--text-muted);
    /* no extra margin — gap on container handles spacing */
    margin: 0;
}

.search-clear:hover {
    background: #dde3df;
    color: var(--text);
}

.search-clear[hidden] {
    display: none !important;
}

.search-clear svg,
.search-submit svg {
    width: 16px;
    height: 16px;
}

.search-submit {
    background: var(--primary);
    color: #fff;
    /* remove margin-left — gap provides intentional, balanced spacing */
    margin-left: 0;
}

.search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.search-submit:active,
.search-clear:active {
    transform: scale(0.94);
}

/* Cart */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-cart {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.header-cart svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--primary-dark);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-cart:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(14, 122, 61, 0.32);
}

.header-cart:hover svg {
    stroke: #fff;
}

.header-cart .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.cart-count-badge.bump {
    animation: badgeBump 0.45s cubic-bezier(0.28, 1.8, 0.6, 1);
}

@keyframes badgeBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Desktop nav — second row */
.desktop-nav {
    border-top: 1px solid var(--border);
    background: #fff;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    min-height: 44px;
    white-space: nowrap;
}

.desktop-nav-inner a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.15px;
    padding: 8px 2px;
    transition: color 0.2s ease;
}

.desktop-nav-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2.5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-nav-inner a:hover {
    color: var(--primary-dark);
}

.desktop-nav-inner a:hover::after,
.desktop-nav-inner a.is-active::after {
    right: 0;
}

.desktop-nav-inner a.is-active {
    color: var(--primary-dark);
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex: none;
    margin: 0 2px;
}

/* Mobile drawer & backdrop */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 850;
    background: rgba(15, 30, 22, 0.48);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mobile-backdrop.is-open {
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 900;
    width: min(360px, 86vw);
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 8px 0 32px rgba(0,0,0,0.18);
    overflow: hidden;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.drawer-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.drawer-close:hover {
    background: #dff0e6;
}

.drawer-close:active {
    transform: scale(0.96);
}

.drawer-close svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-nav > a,
.drawer-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.drawer-nav > a:hover,
.drawer-parent:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.drawer-nav > a.is-active,
.drawer-parent.is-active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.drawer-group {
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0;
    overflow: hidden;
}

.drawer-group .drawer-parent {
    background: transparent;
    border-radius: 0;
    font-size: 0.92rem;
    padding: 12px 12px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    margin: 0;
}

.drawer-cats {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
}

.drawer-cats a {
    display: block;
    padding: 10px 10px 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.drawer-cats a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: var(--primary);
    transition: height 0.2s ease;
}

.drawer-cats a:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateX(2px);
}

.drawer-cats a:hover::before {
    height: 18px;
}

.drawer-cats a.is-active {
    background: #fff;
    color: var(--primary-dark);
}

.drawer-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
    flex-shrink: 0;
}

.drawer-empty {
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.drawer-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: #f8faf8;
    text-align: center;
    flex-shrink: 0;
}

.drawer-foot p {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.drawer-phone {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.drawer-phone:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Prevent background scroll when drawer open */
body.drawer-open {
    overflow: hidden;
}

/* Header responsive */
@media (max-width: 1024px) {
    .header-top-inner {
        padding: 0 18px;
    }
    .desktop-nav-inner {
        padding: 0 18px;
        gap: 18px;
    }
    .header-search {
        max-width: 480px;
    }
}

@media (max-width: 900px) {
    .announce-bar {
        font-size: 0.62rem;
    }
    .desktop-nav {
        display: none;
    }
    .header-top-inner {
        min-height: 60px;
        gap: 10px;
        padding: 10px 14px;
    }
    .site-header.scrolled .header-top-inner {
        min-height: 56px;
    }
    .header-search {
        order: 10;
        flex-basis: 100%;
        max-width: none;
        margin-left: 0;
        margin-top: 2px;
    }
    .brand-text {
        font-size: 1.02rem;
    }
}

@media (max-width: 430px) {
    .announce-bar {
        font-size: 0.52rem;
    }

    .header-top-inner {
        padding: 10px 12px;
        gap: 8px;
    }
    .brand {
        gap: 8px;
    }
    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 1.18rem;
        border-radius: 10px;
    }
    .brand-text {
        font-size: 0.98rem;
    }
    .header-search {
        padding: 3px 3px 3px 10px;
        gap: 4px;
    }
    .header-search input {
        font-size: 0.92rem;
        padding: 8px 4px;
    }
    .search-clear, .search-submit {
        width: 34px;
        height: 34px;
    }
    .header-cart {
        width: 42px;
        height: 42px;
    }
    .nav-toggle {
        width: 42px;
        height: 42px;
    }
    .drawer-close {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    .drawer-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 375px) {
    .brand-text {
        font-size: 0.94rem;
    }
    .header-search input::placeholder {
        font-size: 0.88rem;
    }
}

@media (max-width: 320px) {
    .header-top-inner {
        padding: 8px 10px;
        gap: 6px;
    }
    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 1.08rem;
    }
    .brand-text {
        font-size: 0.88rem;
        letter-spacing: 0;
    }
    .brand-text em {
        display: none;
    }
    .header-search {
        padding: 3px 3px 3px 8px;
        gap: 4px;
    }
    .header-search input {
        font-size: 0.88rem;
        padding: 8px 4px;
    }
}

/* Desktop large */
@media (min-width: 1280px) {
    .header-top-inner,
    .desktop-nav-inner {
        max-width: 1280px;
    }
    .header-search {
        max-width: 620px;
    }
}

@media (min-width: 1440px) {
    .header-top-inner,
    .desktop-nav-inner {
        max-width: 1320px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .announce-bar {
        animation: none;
    }
    .site-header,
    .brand-mark,
    .header-search,
    .header-cart,
    .desktop-nav-inner a::after,
    .mobile-backdrop,
    .mobile-drawer,
    .drawer-cats a::before {
        transition: none !important;
        animation: none !important;
    }
    .brand:hover .brand-mark {
        transform: none;
    }
}


/* ============================================================
   Footer — Premium Redesign (mobile-first)
   Sections: newsletter CTA → trust → main nav → payments → bottom
   ============================================================ */

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.95rem;
    isolation: isolate;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.site-footer::before {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 66%);
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.site-footer::after {
    width: 420px;
    height: 420px;
    bottom: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(245,166,35,0.11) 0%, transparent 68%);
    animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(28px,22px) scale(1.07); }
}

/* sr-only helper */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ── Newsletter CTA ── */
.footer-newsletter-wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 0;
}

.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: 0 10px 32px rgba(6,56,33,0.18), 0 2px 8px rgba(0,0,0,0.06);
    animation: newsletterIn 0.62s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes newsletterIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.footer-newsletter-text {
    flex: 1 1 420px;
    min-width: 0;
}

.footer-newsletter-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #cfe9da;
    margin-bottom: 8px;
}

.footer-newsletter-text h2 {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.footer-newsletter-text p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.footer-newsletter-form {
    flex: 1 1 420px;
    min-width: 0;
    max-width: 460px;
}

.footer-newsletter-field {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8faf8;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14,122,61,0.14);
    background: #fff;
}

.footer-newsletter-field > svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-left: 12px;
    color: var(--text-muted);
    opacity: 0.9;
}

.footer-newsletter-field input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 10px 10px 8px;
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
}

.footer-newsletter-field input::placeholder {
    color: #9ca3af;
}

.footer-newsletter-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(14,122,61,0.32);
}

.footer-newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(14,122,61,0.38);
}

.footer-newsletter-btn:active {
    transform: none;
}

.footer-newsletter-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-newsletter-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.22s ease;
}

.footer-newsletter-btn:hover svg {
    transform: translateX(3px);
}

.footer-newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.footer-newsletter-hint {
    margin-top: 7px;
    font-size: 0.78rem;
    color: #9ca3af;
    padding-left: 4px;
}

.footer-newsletter-feedback {
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.4;
}

.footer-newsletter-feedback.is-success {
    background: #e8f5ee;
    color: #0a5c2e;
    border: 1px solid #bfe3cf;
}

.footer-newsletter-feedback.is-error {
    background: #fdecec;
    color: #a92222;
    border: 1px solid #f5c2c2;
}

/* ── Trust bar ── */
.footer-trust {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.11);
    border-bottom: 1px solid rgba(255,255,255,0.11);
    margin-top: 22px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.footer-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 6px 4px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.trust-item:hover {
    background: rgba(255,255,255,0.06);
}

.trust-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.2s ease;
}

.trust-item:hover .trust-icon {
    transform: translateY(-2px) scale(1.04);
    background: rgba(255,255,255,0.20);
}

.trust-icon svg {
    width: 20px;
    height: 20px;
}

.trust-text {
    min-width: 0;
}

.trust-text strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.trust-text span {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 1px;
}

/* ── Main footer ── */
.footer-main {
    position: relative;
    z-index: 1;
}

.footer-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 32px;
    display: grid;
    grid-template-columns: 1.6fr 0.95fr 1fr 1fr 1.35fr;
    gap: 28px;
    align-items: start;
}

.footer-col-title {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 9px;
    position: relative;
}

.footer-col-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2.5px;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.35s cubic-bezier(0.22,1,0.36,1);
}

.footer-col:hover .footer-col-title::after {
    width: 46px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul a {
    display: inline-block;
    color: rgba(255,255,255,0.76);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: color 0.18s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1);
}

.footer-col ul a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-col ul a:focus-visible {
    outline: 2px solid rgba(255,255,255,0.75);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Mobile nav sections are always expanded — no accordion */

/* Brand column specifics */
.brand-light .brand-text {
    color: #fff;
    font-size: 1.15rem;
}

.brand-light .brand-text em {
    color: #cfe9da;
}

.footer-about {
    margin-top: 12px;
    line-height: 1.65;
    max-width: 320px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.70);
}

.footer-hours {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.88);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 999px;
}

.footer-hours svg {
    width: 15px;
    height: 15px;
    flex: none;
    opacity: 0.95;
}

.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.22s ease, transform 0.24s cubic-bezier(0.22,1,0.36,1), border-color 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: rgba(255,255,255,0.24);
}

.footer-social a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.footer-social a.soc-fb:hover { background: #1877f2; border-color: #1877f2; }
.footer-social a.soc-wa:hover { background: #25d366; border-color: #25d366; }
.footer-social a.soc-mail:hover { background: var(--primary); border-color: var(--primary); }

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Contact column */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    line-height: 1.5;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.78);
    transition: transform 0.22s ease, color 0.18s ease;
}

.footer-contact-list li:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contact-list svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: var(--accent);
    transition: color 0.18s ease;
}

.footer-contact-list li:hover svg {
    color: #fff;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.footer-contact-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact-list .footer-address span {
    word-break: break-word;
}

/* ── Payments / trust strip ── */
.footer-payments {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.11);
    background: rgba(0,0,0,0.16);
}

.footer-payments-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Legacy selectors kept for backwards compat (no longer rendered) */
.footer-payments-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.78);
    font-size: 0.84rem;
    font-weight: 600;
}

.footer-payments-trust svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex: none;
}

.footer-payments-trust .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.34);
}

.footer-payments-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    color: #1a4d2e;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* COD-only reassurance — centered, no payment logos */
.footer-payments--cod-only {
    justify-content: center;
    text-align: center;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 0.90rem;
    line-height: 1.5;
    padding: 15px 20px;
}

.footer-payments--cod-only svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--accent);
}

.footer-payments--cod-only strong {
    color: #fff;
    font-weight: 800;
}

/* ── Bottom bar ── */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.11);
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    font-size: 0.85rem;
    color: rgba(255,255,255,0.66);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copy {
    line-height: 1.5;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.82);
    font-weight: 600;
    line-height: 1.5;
}

.footer-credit a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.34);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-credit a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .announce-bar,
    .site-footer::before,
    .site-footer::after,
    .footer-newsletter {
        animation: none !important;
    }
    .mobile-nav a {
        animation: none;
        opacity: 1;
    }
    .trust-icon,
    .footer-social a,
    .footer-col ul a,
    .footer-contact-list li,
    .footer-newsletter-btn {
        transition: none !important;
    }
}

/* ---------- Responsive — Footer ── */

/* Large desktop 1440+ — slightly wider gutters */
@media (min-width: 1440px) {
    .footer-newsletter-wrap,
    .footer-trust-inner,
    .footer-main-inner,
    .footer-payments-inner,
    .footer-bottom-inner {
        max-width: 1280px;
    }
}

/* Tablet / small laptop ≤1024px */
@media (max-width: 1024px) {
    .footer-newsletter {
        padding: 20px 22px;
        gap: 20px;
    }
    .footer-trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 16px;
    }
    .footer-main-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 28px 24px;
    }
    .footer-contact-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        border-top: 1px solid rgba(255,255,255,0.11);
        padding-top: 20px;
    }
    .footer-contact-col .footer-col-title {
        grid-column: 1 / -1;
    }
}

/* Tablet ≤768px — newsletter stacks, 2-col trust, always-expanded nav */
@media (max-width: 768px) {
    .footer-newsletter {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 18px;
        border-radius: 16px;
        gap: 18px;
    }
    .footer-newsletter-text,
    .footer-newsletter-form {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .footer-newsletter-text h2 {
        font-size: 1.14rem;
    }
    .footer-newsletter-field {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 6px;
    }
    .footer-newsletter-field input {
        font-size: 16px;
        min-width: 0;
    }
    .footer-trust-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px 16px;
        gap: 10px 12px;
        align-items: start;
    }
    .trust-item {
        min-width: 0;
        overflow: hidden;
        align-items: flex-start;
        padding: 8px 6px;
    }
    .trust-icon {
        flex-shrink: 0;
    }
    .trust-text {
        min-width: 0;
        flex: 1;
    }
    .trust-text strong { white-space: normal; overflow-wrap: break-word; word-break: break-word; }
    .trust-text span { overflow-wrap: break-word; word-break: break-word; white-space: normal; }
    .footer-main-inner {
        grid-template-columns: 1fr;
        padding: 26px 16px 22px;
        gap: 22px;
    }
    .footer-brand-col {
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.11);
    }
    .footer-col-title {
        display: block;
        margin-bottom: 11px;
        font-size: 0.84rem;
        padding-bottom: 8px;
    }
    .footer-col ul li {
        margin-bottom: 7px;
    }
    .footer-col ul a {
        display: block;
        padding: 7px 0;
        font-size: 0.93rem;
        line-height: 1.5;
    }
    .footer-contact-col {
        border-top: 1px solid rgba(255,255,255,0.11);
        padding-top: 18px;
    }
    .footer-payments-inner {
        padding: 12px 16px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 4px;
    }
}

/* Large mobile ≤430px */
@media (max-width: 430px) {
    .footer-newsletter-wrap { padding: 20px 14px 0; }
    .footer-newsletter {
        padding: 18px 16px;
        border-radius: 14px;
    }
    .footer-newsletter-text h2 { font-size: 1.08rem; }
    .footer-newsletter-text p { font-size: 0.88rem; }
    .footer-newsletter-field {
        gap: 6px;
        padding: 4px;
        min-width: 0;
    }
    .footer-newsletter-field > svg {
        margin-left: 8px;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    .footer-newsletter-field input { font-size: 16px; padding: 10px 6px 10px 6px; min-width: 0; }
    .footer-newsletter-btn { padding: 10px 14px; font-size: 0.88rem; flex-shrink: 0; white-space: nowrap; }
    .footer-newsletter-btn .btn-label { font-size: 0.88rem; }
    .footer-trust-inner { gap: 8px 10px; padding: 12px 14px; }
    .trust-item { gap: 10px; padding: 6px 4px; min-width: 0; }
    .trust-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
    .trust-icon svg { width: 18px; height: 18px; }
    .trust-text strong { font-size: 0.74rem; line-height: 1.25; }
    .trust-text span { font-size: 0.76rem; line-height: 1.3; }
    .footer-main-inner { padding: 24px 14px 18px; }
    .footer-social a { width: 42px; height: 42px; } /* thumb-friendly */
    .footer-payments-trust { font-size: 0.80rem; }
    .pay-badge { min-width: 50px; padding: 5px 8px; font-size: 0.70rem; }
    .footer-payments--cod-only { font-size: 0.84rem; padding: 13px 14px; gap: 8px; }
}

/* Standard mobile ≤375px */
@media (max-width: 375px) {
    .footer-newsletter-wrap { padding: 18px 12px 0; }
    .footer-newsletter { padding: 16px 14px; }
    .footer-newsletter-field {
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
    }
    .footer-newsletter-field > svg { margin-left: 8px; width: 16px; height: 16px; }
    .footer-newsletter-field input { font-size: 16px; padding: 10px 6px; }
    .footer-newsletter-btn { padding: 10px 12px; font-size: 0.86rem; gap: 4px; }
    .footer-newsletter-btn svg { width: 14px; height: 14px; }
    .footer-trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 8px; padding: 10px 12px; }
    .trust-text strong { font-size: 0.74rem; }
    .trust-text span { font-size: 0.72rem; }
    .trust-item { gap: 8px; padding: 6px 4px; }

/* Small mobile ≤320px — prevent overflow */
@media (max-width: 320px) {
    .footer-newsletter-wrap { padding: 16px 10px 0; }
    .footer-newsletter { padding: 14px 12px; gap: 14px; }
    .footer-newsletter-text h2 { font-size: 1.02rem; line-height: 1.2; }
    .footer-newsletter-text p { font-size: 0.84rem; }
    .footer-newsletter-field {
        border-radius: 14px;
        padding: 3px;
        gap: 4px;
        min-width: 0;
    }
    .footer-newsletter-field > svg { display: none; }
    .footer-newsletter-field input { padding: 10px 8px; font-size: 16px; min-width: 0; }
    .footer-newsletter-btn { padding: 10px 12px; border-radius: 999px; font-size: 0.84rem; flex-shrink: 0; }
    .footer-newsletter-btn svg { display: none; }
    .footer-trust-inner { padding: 10px 10px; gap: 6px 6px; }
    .trust-item { padding: 5px 4px; gap: 8px; min-width: 0; }
    .trust-icon { width: 32px; height: 32px; border-radius: 9px; }
    .trust-icon svg { width: 16px; height: 16px; }
    .trust-text strong { font-size: 0.80rem; }
    .trust-text span { font-size: 0.70rem; line-height: 1.3; }
    .footer-main-inner { padding: 20px 10px 16px; }
    .footer-payments-inner { padding: 10px; }
    .pay-badge { min-width: 44px; font-size: 0.68rem; }
    .footer-payments--cod-only { font-size: 0.80rem; flex-direction: column; }
}

/* Very wide screens — center but not too stretched */
@media (min-width: 1600px) {
    .site-footer { font-size: 1rem; }
}

/* Ensure no horizontal scroll globally from footer */
.site-footer {
    max-width: 100vw;
    overflow-x: clip;
}

/* Header responsive kept */
@media (max-width: 480px) {
    .site-header-inner {
        height: 60px;
        gap: 14px;
        padding: 0 16px;
    }
    .site-header.scrolled .site-header-inner {
        height: 54px;
    }
    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 1.18rem;
        border-radius: 10px;
    }
    .brand-text {
        font-size: 1rem;
    }
}
