/* ====================================================
   MISA eShop – Footer (Figma node 1163-82451)
   Font: Inter (Regular, SemiBold, Bold)
   ==================================================== */

/* ---------- SCOPE ---------- */
section.footer {
    display: none;
}

.eshop-footer *,
.eshop-footer *::before,
.eshop-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nowrap {
    white-space: nowrap;
}

/* ---------- FOOTER ---------- */
.eshop-footer {
    background: #f5f5f5;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #181d27;
    width: 100%;
}

.eshop-footer a {
    color: inherit;
    text-decoration: none;
}

/* ---------- CONTAINER ---------- */
.eshop-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0;
}

/* ---------- SECTION: MAIN ---------- */
.eshop-footer-section {
    padding: 48px 0 0;
}

/* ---------- LOGO ROW ---------- */
.eshop-footer-logo-row {
    margin-bottom: 24px;
}

.eshop-footer-logos {
    display: flex;
    align-items: center;
    gap: 40px;
}

.eshop-footer-logo-misa {
    display: block;
}

.eshop-footer-logo-eshop {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 16px;
}

.eshop-footer-logo-eshop img {
    display: block;
}

.eshop-footer-logo-text {
    font-family: 'Inter SemiBold', Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    color: #181d27;
    white-space: nowrap;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ---------- CONTENT ROW ---------- */
.eshop-footer-content {
    display: flex;
    gap: 40px;
}

/* ---------- LEFT: COMPANY INFO ---------- */
.eshop-footer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eshop-footer-info-title {
    font-family: 'Inter SemiBold', Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: #181d27;
    height: 24px;
    display: flex;
    align-items: center;
}

.eshop-footer-info-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eshop-footer-info-row {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
}

.eshop-footer-label {
    font-family: 'Inter SemiBold', Arial, Helvetica, sans-serif;
    color: #181d27;
}

.eshop-footer-value {
    font-weight: 400;
    color: #252b37;
}

.eshop-footer-info-contact {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.eshop-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0;
}

.eshop-footer-contact-item img {
    flex-shrink: 0;
}

.eshop-footer-contact-item > span {
    font-size: 14px;
    display: inline;
}

a.eshop-footer-link-brand {
    font-size: 14px;
    line-height: 18px;
    color: #2662ff;
    white-space: nowrap;
}

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

.eshop-footer-phone {
    font-family: 'Inter Bold', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #5576ff;
}

.eshop-footer-registration {
    font-size: 14px;
    line-height: 20px;
    color: #252b37;
    letter-spacing: -0.2px;
}

/* ---------- RIGHT: LINK COLUMNS ---------- */
.eshop-footer-links {
    display: flex;
    gap: 32px;
    width: 842px;
    flex-shrink: 0;
}

.eshop-footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eshop-footer-col:nth-child(1) { width: 185px; flex-shrink: 0; }
.eshop-footer-col:nth-child(2) { width: 187px; flex-shrink: 0; }
.eshop-footer-col:nth-child(3) { flex: 1; min-width: 0; }
.eshop-footer-col:nth-child(4) { width: 187px; flex-shrink: 0; }

.eshop-footer-col-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 25.71px;
    color: #1f1f1f;
    height: 22px;
    display: flex;
    align-items: center;
}

.eshop-footer-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eshop-footer-col-list li {
    margin: 0;
    padding: 0;
}

.eshop-footer-col-list a {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #1f1f1f;
    letter-spacing: -0.2px;
    display: block;
}

.eshop-footer-col-list a:hover {
    color: #2662ff;
}

/* ---------- MIDDLE BAR ---------- */
.eshop-footer-middle {
    border-top: 1px solid #d5d7da;
    border-bottom: 1px solid #d5d7da;
    padding: 16px 0;
    margin-top: 48px;
}

.eshop-footer-middle-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Middle left: social + apps */
.eshop-footer-middle-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Social */
.eshop-footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eshop-footer-socials a {
    display: block;
    line-height: 0;
}

.eshop-footer-socials img {
    display: block;
}

/* App stores */
.eshop-footer-apps {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eshop-footer-app-badge {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    background: #000;
    width: 135px;
    height: 40px;
}

.eshop-footer-app-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* QR tooltip */
.eshop-footer-qr {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    padding: 8px;
    background: #fff;
    border: 1px solid #d5d7da;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    line-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    z-index: 10;
    white-space: nowrap;
}

.eshop-footer-qr::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #d5d7da;
}

.eshop-footer-qr::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #fff;
    z-index: 1;
}

.eshop-footer-qr img {
    display: block;
    width: 120px;
    height: 120px;
}

.eshop-footer-app-badge:hover .eshop-footer-qr {
    opacity: 1;
    visibility: visible;
}

.eshop-footer-app-badge:hover {
    overflow: visible;
}

/* Certifications */
.eshop-footer-certs {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eshop-footer-certs img {
    display: block;
    width: auto;
    max-height: 32px;
    flex-shrink: 0;
}

.eshop-footer-cert-link {
    display: block;
    line-height: 0;
    flex-shrink: 0;
}

/* ---------- BOTTOM BAR ---------- */
.eshop-footer-bottom {
    padding: 24px 0 32px;
}

.eshop-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    font-size: 13px;
    line-height: 22.4px;
    color: #535862;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.eshop-footer-copyright {
    flex: 1;
    min-width: 0;
}

.eshop-footer-privacy-link {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    color: #535862;
}

.eshop-footer-privacy-link:hover {
    color: #2662ff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1320px) {
    .eshop-footer-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .eshop-footer-links {
        width: auto;
        flex-wrap: wrap;
        gap: 24px;
    }
    .eshop-footer-col:nth-child(1),
    .eshop-footer-col:nth-child(2),
    .eshop-footer-col:nth-child(3),
    .eshop-footer-col:nth-child(4) {
        width: calc(50% - 12px);
        flex: none;
    }
}

@media (max-width: 768px) {
    .eshop-footer-section {
        padding-top: 32px;
    }
    .eshop-footer-content {
        flex-direction: column;
        gap: 24px;
    }
    .eshop-footer-links {
        width: 100%;
    }
    .eshop-footer-col:nth-child(1),
    .eshop-footer-col:nth-child(2),
    .eshop-footer-col:nth-child(3),
    .eshop-footer-col:nth-child(4) {
        width: 100%;
        flex: none;
    }
    .eshop-footer-middle-inner {
        flex-direction: column;
        gap: 16px;
    }
    .eshop-footer-middle-left {
        flex-direction: column;
        align-items: flex-start;
    }
    .eshop-footer-certs {
        flex-wrap: wrap;
        justify-content: center;
    }
    .eshop-footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .eshop-footer-socials {
        margin: 0 auto;
    }
    .eshop-footer-privacy-link {
        text-align: center;
    }
}
