/* ==========================================
   ALA TRADERS
   SHARED HEADER + FOOTER (every page)
   Markup: tools/layout/*.html, synced into pages by
   tools/sync-layout.mjs. Class names are prefixed
   (sh- header, sf- footer) and properties are set
   explicitly so each page's own styles cannot
   change the shared layout.
========================================== */

.sh-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.sh-topbar,
.sh-header,
.sh-search,
.sf {
    font-family: Inter, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sh-topbar *,
.sh-header *,
.sh-search *,
.sf * {
    box-sizing: border-box;
}

html.sh-locked {
    overflow: hidden;
}


/* ---------- Top bar ---------- */

.sh-topbar {
    background: #030303;
    border-bottom: 1px solid #1c1c1c;
    color: #9a9a9a;
    font-size: 12px;
}

.sh-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.sh-topbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.sh-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cfcfcf;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sh-topbar a:hover {
    color: #fff;
}

.sh-topbar .fa-whatsapp {
    color: #25d366;
    font-size: 14px;
}


/* ---------- Main bar ---------- */

.sh-header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: block;
    margin: 0;
    padding: 0;
    background: rgba(7, 7, 7, 0.96);
    border-bottom: 1px solid #1f1f1f;
    backdrop-filter: blur(10px);
}

.sh-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.sh-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.sh-logo img {
    display: block;
    width: auto;
    height: 44px;
    margin: 0;
    background: transparent;
}

.sh-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.sh-nav a {
    position: relative;
    margin: 0;
    padding: 8px 0;
    color: #d4d4d4;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.sh-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #e30613;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.sh-nav a:hover,
.sh-nav a[aria-current="page"] {
    color: #fff;
}

.sh-nav a:hover::after,
.sh-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Shown only inside the mobile menu */
.sh-nav .sh-nav-cta {
    display: none;
}

.sh-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.sh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sh-icon-btn:hover {
    border-color: #e30613;
    background: #e30613;
}

.sh-icon-btn:focus-visible,
.sh-cta:focus-visible,
.sh-nav a:focus-visible,
.sf a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.sh-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 4px;
    background: #e30613;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sh-cta:hover {
    background: #b9000a;
    transform: translateY(-1px);
}

.sh-menu-btn {
    display: none;
}


/* ---------- Search overlay ---------- */

.sh-search {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.sh-search[hidden] {
    display: none;
}

.sh-search-box {
    position: relative;
    width: min(100%, 680px);
    margin: 0;
    padding: 48px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    text-align: left;
}

.sh-search-kicker {
    color: #e30613;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sh-search-box h2 {
    margin: 8px 0 26px;
    color: #111;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
}

.sh-search-row {
    display: flex;
    gap: 10px;
}

.sh-search-row input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 16px;
}

.sh-search-row input:focus {
    border-color: #e30613;
    outline: none;
}

.sh-search-row button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 54px;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 4px;
    background: #e30613;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.sh-search-row button:hover {
    background: #b9000a;
}

.sh-search-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 22px;
    cursor: pointer;
}

.sh-search-close:hover {
    background: #f1f1f1;
    color: #111;
}


/* ---------- Footer ---------- */

.sf {
    display: block;
    margin: 0;
    padding: 64px 0 0;
    border-top: 1px solid #1a1a1a;
    background: #050505;
    color: #a8a8a8;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.sf-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
    gap: 40px;
}

.sf h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sf p {
    margin: 0;
    color: #a8a8a8;
}

.sf-brand > p {
    margin: 16px 0;
    color: #cfcfcf;
}

.sf-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sf-col > a,
.sf-address {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    color: #bdbdbd;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.sf-col > a:hover,
.sf-address:hover {
    color: #fff;
}

.sf-col > a i {
    width: 16px;
    text-align: center;
}

.sf-col .fa-whatsapp {
    color: #25d366;
}

.sf-address {
    align-items: flex-start;
    font-size: 13px;
}

.sf-address i {
    margin-top: 4px;
    color: #e30613;
}

.sf-subhead {
    margin-top: 26px !important;
}

.sf-social {
    display: flex;
    gap: 10px;
}

.sf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    color: #ddd;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sf-social a:hover {
    border-color: #e30613;
    background: #e30613;
    color: #fff;
}

.sf-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-pay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 38px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #ddd;
    font-size: 18px;
    cursor: help;
}

.sf-bottom {
    margin-top: 52px;
    padding: 22px 0;
    border-top: 1px solid #1a1a1a;
    color: #777;
    font-size: 13px;
}


/* ---------- Tablet / phone ---------- */

@media (max-width: 1080px) {

    .sh-nav {
        gap: 22px;
    }
}

@media (max-width: 980px) {

    .sh-menu-btn {
        display: inline-flex;
    }

    .sh-actions .sh-cta {
        display: none;
    }

    .sh-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 22px;
        border-bottom: 1px solid #1f1f1f;
        background: #0a0a0a;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .sh-header.menu-open .sh-nav {
        display: flex;
    }

    .sh-nav a {
        padding: 14px 0;
        border-bottom: 1px solid #1a1a1a;
        font-size: 14px;
    }

    .sh-nav a::after {
        display: none;
    }

    .sh-nav a[aria-current="page"] {
        color: #e30613;
    }

    .sh-nav .sh-nav-cta {
        display: block;
        margin-top: 16px;
        padding: 15px;
        border: 0;
        border-radius: 4px;
        background: #e30613;
        color: #fff;
        font-weight: 800;
        text-align: center;
    }

    .sf-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {

    .sh-tagline {
        display: none;
    }

    .sh-topbar-inner {
        justify-content: center;
    }

    .sh-topbar-links {
        gap: 16px;
        font-size: 11px;
    }

    .sh-bar {
        min-height: 66px;
    }

    .sh-logo {
        gap: 9px;
        font-size: 15px;
    }

    .sh-logo img {
        height: 36px;
    }

    .sh-icon-btn {
        width: 40px;
        height: 40px;
    }

    .sh-search-box {
        padding: 40px 22px 26px;
    }

    .sh-search-box h2 {
        font-size: 26px;
    }

    .sh-search-row {
        flex-direction: column;
    }

    .sh-search-row button {
        justify-content: center;
        width: 100%;
        padding: 15px;
    }

    .sf {
        padding-top: 48px;
    }

    .sf-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 400px) {

    .sh-topbar-links a:last-child {
        display: none;
    }
}
