/* =========================================================
   FILE: promotion.css
   VERSION: 1.6
   PURPOSE: Front end promotion banner styles
   NOTES:
   - Only loaded when a promotion banner exists
   - Banner sits inside fixed .logo_bar
   - Only adjusts nav/content when .logo_bar_has_promotion exists
========================================================= */

.jd_site_promotion {
    display: block;
    position: relative;
    width: 100%;
    min-height: 64px;
    z-index: 1;
    overflow: visible;
    box-shadow: 0 3px 12px rgba(0,0,0,0.50);
    clear: both;
	border-bottom: 1px solid #454545;
	}

.jd_site_promotion * {
    box-sizing: border-box;
}

.jd_site_promotion_inner {
    width: 100%;
    max-width: 1400px;
    min-height: 64px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jd_site_promotion_content {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.jd_site_promotion_badge {
    flex-shrink: 0;
    min-width: 86px;
    text-align: center;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    color: inherit;
}

.jd_site_promotion_text {
    min-width: 0;
    color: inherit;
}

.jd_site_promotion_title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2px;
    color: inherit;
}

.jd_site_promotion_description {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: inherit;
}

.jd_site_promotion_button_wrap {
    flex-shrink: 0;
}

.jd_site_promotion_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 26px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.22);
    border: 2px solid rgba(255,255,255,0.35);
    transition: all 0.2s ease;
}

.jd_site_promotion_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.jd_site_promotion_competition .jd_site_promotion_badge {
    animation: jdPromoPulse 2.2s infinite;
}

@keyframes jdPromoPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

/* Desktop: logo 118px + promotion 64px */
.logo_bar_has_promotion + .site_nav {
    top: 182px;
}

/* Mobile compact promotion */
@media screen and (max-width: 900px) {
    .jd_site_promotion {
        min-height: 92px;
    }

    .jd_site_promotion_inner {
        min-height: 92px;
        padding: 8px 12px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "badge text"
            "button button";
        align-items: center;
        gap: 7px 12px;
    }

    .jd_site_promotion_content {
        display: contents;
    }

    .jd_site_promotion_badge {
        grid-area: badge;
        min-width: 74px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .jd_site_promotion_text {
        grid-area: text;
        text-align: left;
    }

    .jd_site_promotion_title {
        font-size: 14px;
        line-height: 1.15;
        margin-bottom: 2px;
    }

    .jd_site_promotion_description {
        font-size: 11px;
        line-height: 1.2;
    }

    .jd_site_promotion_button_wrap {
        grid-area: button;
        width: 100%;
    }

    .jd_site_promotion_button {
        width: 100%;
        min-height: 34px;
        padding: 0 16px;
        font-size: 13px;
    }

    .logo_bar_has_promotion + .site_nav {
        top: 174px;
    }

    .logo_bar_has_promotion + .site_nav .nav_list {
        top: 249px;
        height: calc(100vh - 249px);
    }
}

@media screen and (max-width: 640px) {
    .jd_site_promotion_title {
        font-size: 13px;
    }

    .jd_site_promotion_description {
        display: none;
    }

    .logo_bar_has_promotion + .site_nav {
        top: 170px;
    }

    .logo_bar_has_promotion + .site_nav .nav_list {
        top: 245px;
        height: calc(100vh - 245px);
    }
}