/* Custom styles for Magihae theme */

/* See Order Summary link styling */
.checkout-step-mobile h2 small a {
    color: #8068AF !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.checkout-step-mobile h2 small a:hover {
    color: #6d5a94 !important;
    opacity: 0.9;
    transform: scale(1.02);
}

.checkout-step-mobile h2 small a:active {
    transform: scale(0.98);
}

/* Running text marquee - CSS animation for smooth Safari/iOS */
.running-text-banner {
    background-color: #9e8cc2;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    position: relative;
    z-index: 10001;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    -webkit-animation: marquee-scroll 15s linear infinite;
    animation: marquee-scroll 15s linear infinite;
    will-change: transform;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: white;
    font-weight: 500;
    font-size: 13px;
    height: 30px;
    line-height: 30px;
}

.marquee-content a {
    color: white;
    text-decoration: none;
}

.marquee-separator {
    margin: 0 12px;
}

@-webkit-keyframes marquee-scroll {
    0% {
        -webkit-transform: translate3d(100vw, 0, 0);
        transform: translate3d(100vw, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes marquee-scroll {
    0% {
        -webkit-transform: translate3d(100vw, 0, 0);
        transform: translate3d(100vw, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

/* Mobile header - ensure hamburger stays above running text */
@media screen and (max-width: 991px) {
    .header {
        position: relative;
        z-index: 10002;
    }
}

/* Header layout - logo left, nav center, icons right (same as sticky) */
@media screen and (min-width: 992px) {
    .header {
        padding-top: 15px !important;
        position: relative;
    }

    .header .head-left {
        display: none !important;
    }

    .header .head-left {
        display: none !important;
    }

    .header .head-center {
        border: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
    }

    .header .head-center .inner-head-center-top {
        padding: 0 !important;
        border: 0 !important;
        max-width: 150px;
        flex-shrink: 0;
    }

    .header .head-center .main-menu ul {
        padding: 6px 30px !important;
        border-bottom: 0 !important;
        border-right: 1px solid #E5E5E5;
        border-left: 1px solid #E5E5E5;
        margin: 15px 0;
    }
}

/* Header Icons (Search, Cart, User) */
.header .head-right .inner-head-right .header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .head-right .inner-head-right .header-icons .header-icon-item {
    display: inline-block;
    margin: 0;
}

.header .head-right .inner-head-right .header-icons .header-icon-item a {
    color: #333;
    font-size: 22px;
    transition: color 0.2s ease;
    position: relative;
}

.header .head-right .inner-head-right .header-icons .header-icon-item a:hover {
    color: #8068AF;
}

.header .head-right .inner-head-right .header-icons .header-icon-item a i {
    font-size: 22px;
}

.header .head-right .inner-head-right .header-icons .header-icon-item a span#gc-cart-count {
    font-family: 'Raleway-Bold';
    background-color: #8068AF;
    font-size: 10px;
    color: #FAF3C7;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -10px;
}

/* Sticky header overrides */
@media screen and (min-width: 992px) {
    .header.set-fixed {
        top: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .header.set-fixed .head-right {
        display: block !important;
        max-width: 150px;
        margin: auto;
    }

    .header.set-fixed .head-right .inner-head-right {
        display: block !important;
    }

    .header.set-fixed .head-right .inner-head-right .header-icons {
        margin: 0;
    }
}
