/* Storefront footer: responsive layout, accessible controls and theme-driven colors. */
.storefront-footer {
    --footer-surface: rgba(var(--colorMainRGB), 0.035);
    --footer-line: rgba(var(--colorMainRGB), 0.14);
    --footer-muted: var(--colorGray, var(--colorBlack));
    margin-top: clamp(36px, 5vw, 64px);
    padding: 0 0 20px;
    overflow: hidden;
    color: var(--colorBlack);
    background: linear-gradient(180deg, var(--footer-surface), #fff 34%);
    border-top: 1px solid var(--footer-line);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.035);
}

.storefront-footer::after {
    display: none;
}

.storefront-footer .footer-icon-boxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--footer-line);
}

.storefront-footer .box-icon {
    min-width: 0;
    min-height: 76px;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--footer-line);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(var(--colorMainRGB), 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.storefront-footer .box-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--colorMainRGB), 0.38);
    box-shadow: 0 8px 20px rgba(var(--colorMainRGB), 0.09);
}

.storefront-footer .box-icon img {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    object-fit: contain;
}

.storefront-footer .box-icon .title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.storefront-footer .footer-main {
    row-gap: 28px;
}

.storefront-footer .footer-brand-column,
.storefront-footer .footer-directory-column {
    min-width: 0;
}

.storefront-footer .footer-brand {
    padding-inline-end: clamp(0px, 2vw, 28px);
}

.storefront-footer .footer-brand-link {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    margin-bottom: 12px;
}

.storefront-footer .footer-logo {
    display: block;
    max-width: min(190px, 100%);
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: right center;
}

.storefront-footer .footer-about,
.storefront-footer .footer-about p {
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.95;
}

.storefront-footer .footer-about > :last-child {
    margin-bottom: 0;
}

.storefront-footer .footer-address-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    color: var(--footer-muted);
    font-style: normal;
}

.storefront-footer .footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.storefront-footer .footer-contact-line i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: var(--colorMain);
}

.storefront-footer a.footer-contact-line:hover,
.storefront-footer .footer-phone-link:hover {
    color: var(--colorMain);
}

.storefront-footer .footer-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.storefront-footer .footer-box {
    min-width: 0;
    margin: 0;
}

.storefront-footer .footer-box .title {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 11px;
    color: var(--colorBlack);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.storefront-footer .footer-box .title::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--colorMain);
    border-radius: 2px;
    content: "";
}

.storefront-footer .footer-box ul {
    display: grid;
    gap: 4px;
    list-style: none;
}

.storefront-footer .footer-box li a {
    display: inline-flex;
    align-items: baseline;
    max-width: 100%;
    padding: 5px 0;
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    transition: color 160ms ease;
}

.storefront-footer .footer-box li a::before {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin-inline-end: 9px;
    margin-inline-start: 0;
    background: rgba(var(--colorMainRGB), 0.55);
    border-radius: 50%;
    transition: transform 160ms ease, background 160ms ease;
}

.storefront-footer .footer-box li a:hover {
    color: var(--colorMain);
}

.storefront-footer .footer-box li a:hover::before {
    width: 5px;
    background: var(--colorMain);
    transform: scale(1.35);
}

.storefront-footer .footer-trust-group .footer-logos {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.storefront-footer .footer-trust-group .footer-logos img {
    width: auto;
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.storefront-footer .footer-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--footer-line);
}

.storefront-footer .footer-socials,
.storefront-footer .footer-social-links,
.storefront-footer .footer-phone-list,
.storefront-footer .footer-contact-summary {
    display: flex;
    align-items: center;
}

.storefront-footer .footer-socials {
    flex-wrap: wrap;
    gap: 12px;
}

.storefront-footer .footer-social-links {
    flex-wrap: wrap;
    gap: 8px;
}

.storefront-footer .footer-connect-label {
    color: var(--footer-muted);
    font-size: 14px;
    font-weight: 600;
}

.storefront-footer .custom-icon-btn {
    width: 42px;
    height: 42px;
    color: var(--colorMain);
    background: #fff;
    border: 1px solid var(--footer-line);
    border-radius: 12px;
}

.storefront-footer .custom-icon-btn::before {
    background: var(--colorMain);
    border-radius: 10px;
}

.storefront-footer .custom-icon-btn:hover {
    color: #fff;
    border-color: var(--colorMain);
}

.storefront-footer .footer-contact-summary {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 16px;
    text-align: right;
}

.storefront-footer .footer-phone-list {
    flex-wrap: wrap;
    gap: 8px;
}

.storefront-footer .footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--colorBlack);
    min-height: 42px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--footer-line);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.storefront-footer .footer-phone-link:hover {
    background: var(--footer-surface);
    border-color: rgba(var(--colorMainRGB), 0.38);
}

.storefront-footer .footer-phone-link i {
    color: var(--colorMain);
    font-size: 20px;
}

.storefront-footer .footer-working-hours {
    flex-basis: 100%;
    color: var(--footer-muted);
    font-size: 13px;
}

.storefront-footer .copyright {
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 4px;
    padding: 16px 0 0;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.8;
}

.storefront-footer .copyright > * {
    min-width: 0;
}

.storefront-footer :focus-visible {
    outline: 3px solid rgba(var(--colorMainRGB), 0.55) !important;
    outline-offset: 3px;
    border-radius: 5px;
}

@media (max-width: 1199.98px) {
    .storefront-footer .footer-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }
}

@media (max-width: 991.98px) {
    .storefront-footer .footer-icon-boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 760px);
        margin-inline: auto;
        column-gap: clamp(12px, 3vw, 28px);
        justify-items: stretch;
    }

    .storefront-footer .box-icon {
        box-sizing: border-box;
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 76px;
        justify-content: center;
        gap: 12px;
        margin: 0;
    }

    .storefront-footer .box-icon .title {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 20ch;
        text-align: right;
        overflow-wrap: normal;
        text-wrap: balance;
    }
}

@media (max-width: 767.98px) {
    .storefront-footer {
        margin-top: 36px;
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    }

    .storefront-footer .custom-container {
        padding-inline: 16px;
    }

    .storefront-footer .footer-icon-boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        gap: 9px;
        justify-items: stretch;
        margin-bottom: 24px;
        padding: 18px 0;
    }

    .storefront-footer .box-icon {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 68px;
        gap: 9px;
        margin: 0;
        padding: 12px;
        border-radius: 12px;
    }

    .storefront-footer .box-icon img {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .storefront-footer .box-icon .title {
        flex: 0 1 auto;
        font-size: 14px;
        max-width: 18ch;
        overflow-wrap: normal;
        text-wrap: balance;
    }

    .storefront-footer .footer-main {
        row-gap: 24px;
    }

    .storefront-footer .footer-brand {
        padding: 0;
    }

    .storefront-footer .footer-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .storefront-footer .footer-connect {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-top: 24px;
        padding: 18px 0;
    }

    .storefront-footer .footer-contact-summary {
        justify-content: flex-start;
        text-align: right;
    }

    .storefront-footer .copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .storefront-footer .custom-container {
        padding-inline: 12px;
    }

    .storefront-footer .footer-directory {
        grid-template-columns: minmax(0, 1fr);
    }

    .storefront-footer .box-icon {
        padding: 10px;
    }
}

@media (max-width: 575.98px) {
    .storefront-footer .footer-icon-boxes {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-block: 14px;
    }

    .storefront-footer .box-icon {
        min-height: 60px;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 14px;
    }

    .storefront-footer .box-icon img {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
    }

    .storefront-footer .box-icon .title {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        text-align: right;
        overflow-wrap: normal;
        text-wrap: pretty;
    }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-footer *,
    .storefront-footer *::before,
    .storefront-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
