.site-footer {
    width: 100%;
    margin-top: 64px;
    padding: 0 25px;
    box-sizing: border-box;
    background: #11112b;
    color: #f7f5ef;
    font-family: Arial, sans-serif;
}

.footer-main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 0 28px;
    display: grid;
    grid-template-columns: 1.8fr 1.25fr 1.25fr 1.25fr;
    gap: clamp(28px, 4vw, 64px);
    box-sizing: border-box;
}

.footer-column { min-width: 0; }
.footer-column h3 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px;
}
.footer-brand img { display: block; width: 132px; height: 78px; object-fit: contain; }
.footer-about p,
.footer-contact p {
    margin: 0;
    max-width: 370px;
    color: #d4d2dc;
    font-size: 15px;
    line-height: 1.65;
}
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin: 0 0 17px; }
.footer-column li a,
.footer-contact p a {
    color: #d4d2dc;
    text-decoration: none;
    font-size: 15px;
    transition: color .2s ease;
}
.footer-column li a:hover,
.footer-contact p a:hover,
.footer-contact-link:hover { color: #fff; }
.footer-contact-link {
    display: inline-flex;
    gap: 9px;
    margin-top: 18px;
    color: #f0d8a7;
    font-size: 14px;
    text-decoration: none;
}
.footer-benefits {
    width: 100%;
    max-width: 1600px;
    min-height: 116px;
    margin: 0 auto;
    padding: 22px 0 20px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}
.footer-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.footer-benefit svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    fill: none;
    stroke: #d8d3c5;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-benefit strong { color: #fff; font-size: 14px; font-weight: 600; }
.footer-benefit span { color: #a7a5b4; font-size: 13px; }
.footer-bottom {
    width: 100%;
    max-width: 1600px;
    min-height: 58px;
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}
.footer-copyright { color: #aaa8b5; font-size: 12px; }
.footer-copyright strong { color: #e1dfda; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; color: #797786; font-size: 12px; }
.footer-links a { color: #aaa8b5; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 850px) {
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; }
    .footer-about { grid-row: span 2; }
    .footer-brand { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .site-footer { margin-top: 44px; padding: 0 20px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 32px 0; }
    .footer-about { grid-column: 1 / -1; grid-row: auto; }
    .footer-about p { max-width: none; }
    .footer-column h3 { margin-bottom: 15px; font-size: 15px; }
    .footer-column li { margin-bottom: 13px; }
    .footer-column li a, .footer-contact p a { font-size: 13px; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; padding: 22px 0; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
    .footer-links { justify-content: flex-start; }
}

/* =========================================================
   MOBILE FOOTER + BOTTOM NAVIGATION
   ========================================================= */

.footer-mobile {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 600px) {
    .site-footer {
        margin-top: 36px;
        padding: 0 16px;
    }

    .footer-main-desktop {
        display: none;
    }

    .footer-mobile {
        display: block;
        padding: 30px 0 8px;
    }

    .footer-mobile-brand {
        padding: 0 4px 18px;
        text-align: center;
    }

    .footer-mobile-brand .footer-brand {
        width: auto;
        margin-bottom: 8px;
    }

    .footer-mobile-brand .footer-brand img {
        width: 120px;
        height: 66px;
    }

    .footer-mobile-brand p {
        max-width: 340px;
        margin: 0 auto;
        color: #bcb9c6;
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-accordion {
        border-top: 1px solid rgb(255 255 255 / 12%);
    }

    .footer-accordion:last-child {
        border-bottom: 1px solid rgb(255 255 255 / 12%);
    }

    .footer-accordion summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 0 4px;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }

    .footer-accordion summary::-webkit-details-marker {
        display: none;
    }

    .footer-accordion summary span {
        color: #d8c39d;
        font-size: 20px;
        font-weight: 300;
        transition: transform .2s ease;
    }

    .footer-accordion[open] summary span {
        transform: rotate(45deg);
    }

    .footer-accordion ul {
        margin: 0;
        padding: 0 4px 14px;
        list-style: none;
    }

    .footer-accordion li {
        margin: 0;
        padding: 0;
    }

    .footer-accordion li a {
        display: block;
        padding: 7px 0;
        color: #aaa8b5;
        font-size: 13px;
        text-decoration: none;
    }

    .footer-mobile-help {
        padding: 0 4px 16px;
    }

    .footer-mobile-help p {
        margin: 0 0 10px;
        color: #aaa8b5;
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-mobile-help a {
        color: #f0d8a7;
        font-size: 13px;
        text-decoration: none;
    }

    .footer-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 8px;
        padding: 24px 0;
    }

    .footer-benefit svg {
        width: 22px;
        height: 22px;
    }

    .footer-benefit strong {
        font-size: 12px;
    }

    .footer-benefit span {
        font-size: 11px;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 10px;
        padding: 16px 0 88px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        font-size: 11px;
        gap: 7px;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1000;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: calc(64px + env(safe-area-inset-bottom));
        padding: 5px 8px env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid rgba(17, 17, 43, .12);
        box-shadow: 0 -6px 20px rgba(17, 17, 43, .08);
        box-sizing: border-box;
    }

    .mobile-bottom-nav-item {
        position: relative;
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        color: #5f5b68;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .2px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav-item svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Shop matches the same icon size and vertical rhythm as Home, Account and Cart. */
    .mobile-bottom-nav-shop-icon {
        display: grid;
        width: 21px;
        height: 21px;
        margin: 0;
        place-items: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: currentColor;
        box-shadow: none;
    }

    .mobile-bottom-nav-shop-icon svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav-shop {
        gap: 3px;
        color: #5f5b68;
    }

    .mobile-bottom-nav-shop.is-active {
        color: #68142e;
    }

    .mobile-bottom-nav-cart {
        position: relative;
    }

    .mobile-bottom-nav-badge {
        position: absolute;
        top: 1px;
        right: 20%;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #11112b;
        color: #fff;
        font-size: 9px;
        line-height: 16px;
        text-align: center;
        box-sizing: border-box;
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

/* Ubhaya footer palette and navigation icon system. */
.site-footer {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background:
        radial-gradient(ellipse at 8% 0%, rgb(171 76 91 / 24%), transparent 36%),
        radial-gradient(ellipse at 100% 75%, rgb(184 128 57 / 12%), transparent 35%),
        linear-gradient(125deg, #4b1028 0%, #68142e 52%, #501329 100%);
    color: #fff8f4;
}

.site-footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #d7a65c, #f2dfb4 48%, #a9465b);
    content: "";
}

.footer-main,
.footer-benefits,
.footer-bottom { position: relative; z-index: 1; }

.footer-main { padding-top: 42px; padding-bottom: 36px; }

.footer-column h3 {
    color: #f4d9aa;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-about p,
.footer-contact p { color: #f0dfe1; }

.footer-column li { margin-bottom: 12px; }

.footer-column li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: #f3e8e6;
    font-size: 14px;
    transition: color .18s ease, transform .18s ease;
}

.footer-column li a:hover { color: #f5d99e; transform: translateX(3px); }

.footer-link-icon {
    display: inline-grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border: 1px solid rgb(244 217 170 / 28%);
    border-radius: 9px;
    background: rgb(255 255 255 / 7%);
    color: #f2d49b;
}

.footer-link-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-link {
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgb(244 217 170 / 43%);
    border-radius: 7px;
    background: rgb(255 255 255 / 7%);
    color: #f5d99e;
}

.footer-benefits {
    border-top-color: rgb(255 240 225 / 20%);
}

.footer-benefit {
    min-height: 96px;
    justify-content: center;
    border: 1px solid rgb(255 240 225 / 15%);
    border-radius: 12px;
    background: rgb(255 255 255 / 5%);
}

.footer-benefit svg { stroke: #f0cf91; }
.footer-benefit span { color: #e4cfd0; }
.footer-bottom { border-top-color: rgb(255 240 225 / 20%); }
.footer-copyright { color: #e5d2d2; }
.footer-copyright strong { color: #fff8f4; }
.footer-links { color: #c9a9ad; }
.footer-links a { color: #e5d2d2; }
.footer-links a:hover { color: #f5d99e; }

@media (max-width: 600px) {
    .footer-mobile { padding-top: 30px; }
    .footer-mobile-brand p { color: #f0dfe1; }
    .footer-accordion { border-top-color: rgb(255 240 225 / 20%); }
    .footer-accordion:last-child { border-bottom-color: rgb(255 240 225 / 20%); }
    .footer-accordion summary { color: #fff8f4; }
    .footer-accordion li a { display: flex; align-items: center; gap: 10px; color: #f3e8e6; }
    .footer-benefits { border-top-color: rgb(255 240 225 / 20%); }
    .footer-benefit { min-height: 92px; }
    .footer-bottom { border-top-color: rgb(255 240 225 / 20%); }
}

@media (min-width: 601px) {
    .footer-main-desktop {
        display: grid;
    }
}

@media (max-width: 600px) {
    /* Keep the mobile header focused: menu, logo, search and cart. */
    .header-actions .wishlist-header-icon,
    .header-actions .header-icon[aria-label="My account"],
    .header-actions .header-icon[aria-label="Login"] {
        display: none;
    }

    .mobile-bottom-nav-item {
        transition: color .18s ease, transform .18s ease;
    }

    .mobile-bottom-nav-item.is-active {
        color: #68142e;
    }

    .mobile-bottom-nav-item.is-active svg {
        stroke-width: 2;
    }

    .mobile-bottom-nav-shop.is-active .mobile-bottom-nav-shop-icon {
        background: #68142e;
        color: #fff;
        box-shadow: 0 6px 16px rgba(104, 20, 46, .25);
    }

    .mobile-bottom-nav-item:active {
        transform: scale(.96);
    }

    .mobile-bottom-nav-item:focus-visible {
        outline: 2px solid #68142e;
        outline-offset: -3px;
        border-radius: 8px;
    }

    .mobile-bottom-nav-badge {
        background: #68142e;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-bottom-nav-item {
        transition: none;
    }
}

/* Compact, aligned footer actions and benefit strip. */
.footer-contact .footer-contact-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 17px;
    line-height: 1.2;
    vertical-align: middle;
    text-align: center;
}

.footer-benefits {
    min-height: 0;
    padding: 16px 0;
    gap: 16px;
}

.footer-benefit {
    min-height: 76px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 18px;
    text-align: left;
}

.footer-benefit svg {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
    border: 1px solid rgb(242 212 155 / 34%);
    border-radius: 50%;
    background: rgb(255 255 255 / 7%);
}

.footer-benefit strong,
.footer-benefit span { display: block; text-align: left; }
.footer-benefit strong { font-size: 13px; }
.footer-benefit span { margin-top: 3px; font-size: 12px; }

.footer-bottom {
    min-height: 72px;
    padding: 20px 0 24px;
}

@media (max-width: 600px) {
    .footer-benefits { gap: 10px; padding: 18px 0; }
    .footer-benefit {
        min-height: 70px;
        gap: 8px;
        padding: 10px;
    }
    .footer-benefit svg {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        padding: 6px;
    }
    .footer-benefit strong { font-size: 11px; }
    .footer-benefit span { font-size: 10px; }
    .footer-bottom { min-height: 84px; padding: 18px 0 30px; }
}

/* The shared header SVG reset is loaded later; keep the footer benefit icons legible. */
.footer-benefits .footer-benefit > svg {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    flex: 0 0 42px;
    padding: 6px;
    stroke-width: 2;
}

@media (max-width: 600px) {
    .footer-benefits .footer-benefit > svg {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
        flex-basis: 36px;
    }
}


/* Mobile Shop active state should match Home: no filled square behind the icon. */
@media (max-width: 600px) {
    .mobile-bottom-nav-shop.is-active .mobile-bottom-nav-shop-icon {
        background: transparent !important;
        color: inherit !important;
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .mobile-bottom-nav-shop.is-active .mobile-bottom-nav-shop-icon svg {
        stroke: currentColor !important;
    }
}
