/* Homepage header */
#em8-home-header .date {
    height: auto;
    padding-block: 0;
}
#em8-home-header .notice-bar {
    direction: ltr;
    display: grid;
    grid-template: "messages clock" 26px / minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 8px;
}
#em8-home-header .shamsi-date {
    grid-area: clock;
    position: static;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
#em8-home-header .notice-window {
    grid-area: messages;
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 100%;
    color: white;
    font-size: 13px;
    font-weight: 600;
}
#em8-home-header .notice-message {
    position: absolute;
    top: 50%;
    left: 0;
    width: max-content;
    white-space: nowrap;
    transform: translate(-100%, -50%);
    animation: em8-home-news 27s linear infinite;
}
#em8-home-header .notice-message:nth-child(1) { animation-delay: -2s; }
#em8-home-header .notice-message:nth-child(2) { animation-delay: 7s; }
#em8-home-header .notice-message:nth-child(3) { animation-delay: 16s; }
@keyframes em8-home-news {
    0% { left: 0; transform: translate(-100%, -50%); }
    33.3333%, 100% { left: 100%; transform: translate(0, -50%); }
}

#em8-home-header .main-header,
#em8-home-header .main-header > div {
    height: auto;
    min-height: 0;
    padding-block: 0;
}
#em8-home-header .first-row {
    min-height: 0;
    margin-block: 0;
    padding-block: 0;
}
#em8-home-header .first-row .options { margin-block: 0; }
#em8-home-header .brand-line {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 3px 0 5px;
    box-sizing: border-box;
}
#em8-home-header .brand-actions {
    display: flex;
    flex: 0 0 auto;
    direction: ltr;
    align-items: center;
    gap: 8px;
}
#em8-home-header .brand-actions > * { direction: rtl; }
#em8-home-header .brand-actions .shop-card { order: 1; }
#em8-home-header .brand-mark,
#em8-home-header .brand-mark img {
    display: block;
    width: 80px;
    height: 44px;
    object-fit: contain;
}
@media (max-width: 575px) {
    #em8-home-header .notice-bar { column-gap: 5px; }
    #em8-home-header .notice-window { font-size: 11px; }
    #em8-home-header .brand-mark,
    #em8-home-header .brand-mark img { width: 68px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    #em8-home-header .notice-window {
        display: flex;
        align-items: center;
        overflow-x: auto;
        gap: 24px;
    }
    #em8-home-header .notice-message {
        position: static;
        flex: none;
        animation: none;
        transform: none;
    }
}
