.site-topbar {
    background: var(--theme-topbar-bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.site-topbar .topbar-left,
.site-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-topbar,
.site-topbar a,
.site-topbar i,
.site-topbar span {
    color: var(--theme-topbar-text) !important;
}

.site-topbar .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.coupon-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    z-index: 9998;
    display: none;
}

.coupon-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 620px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    z-index: 9999;
    display: none;
    overflow: hidden;
    color: #0f172a;
}

.coupon-popup.is-visible,
.coupon-popup-backdrop.is-visible {
    display: block;
}

.coupon-popup-header {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coupon-popup-close {
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 26px;
    line-height: 1;
}

.coupon-popup-body {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(220px, 42%) 1fr;
}

.coupon-popup-media {
    min-height: 100%;
    background: #f4f4f5;
    cursor: pointer;
}

.coupon-popup-media img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.coupon-popup-content {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-popup-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #f97316;
}

.coupon-popup-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.coupon-popup-body p {
    margin: 0;
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.coupon-popup-code-wrap {
    margin-top: 18px;
    display: flex;
    align-items: stretch;
    border: 1px dashed #6f91ff;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.coupon-popup-code-value {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #30303a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.coupon-popup-code {
    min-height: 54px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background: #4564c7;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 0 22px;
    min-width: 110px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.coupon-popup-code:hover {
    background: #3552b3;
}

.coupon-popup-note {
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
}

.coupon-popup-copy-state {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    min-height: 18px;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 72px;
    }

    .site-topbar {
        display: block;
    }

    .site-topbar .topbar-inner {
        min-height: auto;
        padding: 8px 0;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .site-topbar .topbar-left,
    .site-topbar .topbar-right {
        width: auto;
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .coupon-popup {
        width: calc(100vw - 24px);
    }

    .coupon-popup-body {
        grid-template-columns: 1fr;
    }

    .coupon-popup-media img {
        min-height: 220px;
    }

    .coupon-popup-title {
        font-size: 28px;
    }

    footer .footer-bottom {
        margin-bottom: 0;
    }

    .footer_nav {
        min-height: 68px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    }

    .footer_nav ul {
        align-items: end;
    }

    .footer_nav ul li {
        min-height: 52px;
    }

    .footer_nav ul li.mobile_home {
        margin-top: -35px !important;
        width: 75px;
        height: 75px;
        padding-top: 15px;
        border-width: 2px;
    }

    .mobile-logo {
        grid-template-columns: 18% 52% 30%;
    }

    .mobile-logo .menu-bag {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
        padding-right: 8px;
    }

    .mobile-logo .menu-bag a,
    .mobile-logo .menu-bag p {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0;
        vertical-align: middle;
    }

    .mobile-logo .menu-bag .margin-shopping span {
        right: -10px;
        top: -9px;
    }

    .mobile-logo .menu-bag .margin-shopping,
    .mobile-logo .menu-bag .mobile-profile-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }

    .copyright p {
        line-height: 1.5;
        padding: 0 10px;
        margin-bottom: 0;
    }

    footer .footer-bottom .copyright {
        padding-bottom: 10px;
    }
}
