/**
 * Modern Header Layout Styles
 * 
 * @package Ashrey_Natural
 */

/* ========================================
   Marquee Animation
   ======================================== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    gap: 4rem;
    /* Spacing between repeated texts */
    padding-left: 2rem;
    /* Initial padding */
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* For RTL, positive translateX moves right to left (if dir=rtl handled correctly) or use negative */
    }
}

/* RTL specific adjustment */
[dir="rtl"] .marquee-content {
    animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* Needs testing relative to container width */
    }
}

/* Ensure text is white */
.announcement-text {
    color: var(--color-promo-bar-text);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

/* ========================================
   Header Icons Alignment
   ======================================== */
.header-actions-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-nav-icon);
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.header-action-btn:hover {
    color: var(--color-primary-dark);
}

.header-action-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    /* Uniform stroke width */
}

/* Cart Badge adjustments */
.cart-badge {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 99px;
    position: absolute;
    top: -5px;
    right: -5px;
}