/*
AlpineStyle Header Styles
*/

/* ==========================================================================
   Defaults & Variables
   ========================================================================== */
   :root {
    --alpine-red: #e0383f;
    --alpine-dark-text: #1B1B1B;
    --alpine-light-bg: #FFFFFF;
    --alpine-light-grey: #F8F9FA; /* Slightly updated light grey */
    --alpine-grey: #adb5bd; /* Softer grey */
    --alpine-text-main: #212529; /* Slightly darker main text for better contrast */
    --alpine-text-secondary: #6c757d; /* Standard secondary text color */
    --alpine-border-color: #dee2e6; /* Standard border color */
    --alpine-font-main: 'Atlas AAA', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Added system fonts fallback */

    /* Spacing units (optional but recommended for consistency) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --header-height: 70px; /* Example: define header height */
    --top-bar-height: 35px;
}

body {
    font-family: var(--alpine-font-main);
    color: var(--alpine-text-main);
    line-height: 1.6; /* Improved default line height */
}

*, *::before, *::after { /* Add global box-sizing */
    box-sizing: border-box;
}

.alpine-header {
    background-color: var(--alpine-light-bg);
    color: var(--alpine-text-main);
    font-family: var(--alpine-font-main);
    direction: rtl;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.06); */ /* Slightly softer shadow */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* transition: box-shadow 0.3s ease; */
    position: sticky;
    top: 0;
}

.alpine-container {
    max-width: 1490px;
    margin: 0 auto;
    padding: 0 var(--space-md); /* Use variable */
    width: 100%;
}

a {
    color: var(--alpine-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--alpine-red);
}

/* ==========================================================================
   Top Bar (Secondary Navigation & Icons)
   ========================================================================== */
.alpine-top-bar {
    background-color: var(--alpine-light-grey);
    font-size: 13px;
    border-bottom: 1px solid var(--alpine-border-color);
    min-height: var(--top-bar-height);
    display: flex; /* Use flex directly on the bar */
    align-items: center;
}

.alpine-top-bar .alpine-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container takes full width */
}

.alpine-top-bar a {
    color: var(--alpine-text-secondary);
    transition: color 0.2s ease; /* Ensure transition is defined */
    padding: var(--space-xs) 0; /* Consistent vertical padding */
}
.alpine-top-bar a:hover {
    color: var(--alpine-red);
}

/* Secondary Nav */
.alpine-secondary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Align items vertically */
}

.alpine-secondary-nav ul li {
    margin-left: var(--space-md); /* Use variable */
}
.alpine-secondary-nav ul li:last-child {
    margin-left: 0;
}
.alpine-secondary-nav ul li a {
    /* padding: 5px 0; Removed, handled by .alpine-top-bar a */
    display: block;
}

/* Header Icons (Top Right) */
.alpine-header-icons {
    display: flex;
    align-items: center;
}

.alpine-header-icons .alpine-icon-item {
    margin-right: var(--space-md); /* Use variable */
    position: relative;
    display: flex;
    align-items: center;
}
.alpine-header-icons .alpine-icon-item:last-child {
    margin-right: 0;
}

.alpine-header-icons .alpine-icon-item a {
    display: flex;
    align-items: center;
    padding: var(--space-xs); /* Consistent padding around icon+text */
    color: var(--alpine-text-secondary);
}
.alpine-header-icons .alpine-icon-item a:hover,
.alpine-header-icons .alpine-icon-item a:hover i {
    color: var(--alpine-red);
}

.alpine-header-icons .alpine-icon-item i {
    font-size: 1.1em; /* Slightly adjusted */
    line-height: 1; /* Ensure consistent line height */
    margin-left: var(--space-xs); /* Use variable */
    color: var(--alpine-text-main);
    transition: color 0.2s ease;
}

/* Language Switcher Specific */
.alpine-header-icons .header-languages select#gtranslate_selector {
    background: transparent;
    border: none;
    color: var(--alpine-text-secondary);
    padding: var(--space-xs) 0; /* Consistent padding */
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit; /* Inherit font */
    font-size: inherit; /* Inherit size */
    line-height: inherit; /* Inherit line-height */
    height: auto; /* Ensure height is auto */
}
.alpine-header-icons .header-languages select#gtranslate_selector:hover {
    color: var(--alpine-red);
}
.alpine-header-icons .header-languages option {
    background: var(--alpine-light-bg);
    color: var(--alpine-text-main);
}

/* Wishlist Counter */
.alpine-header-icons .header-wishlist .wishlist_products_counter_number {
    background-color: var(--alpine-red);
    color: var(--alpine-light-bg);
    border-radius: 10px; /* Pill shape */
    min-width: 18px; /* Allow width to grow */
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    position: absolute;
    top: 0px;
    left: -4px; /* Adjusted position */
    font-weight: 600; /* Slightly bolder */
    padding: 0 4px; /* Horizontal padding */
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Main Bar (Logo, Search, Header Actions)
   ========================================================================== */
.alpine-main-bar {
    background-color: var(--alpine-light-bg);
    padding: 10px 0; /* Reduced padding */
    border-bottom: 1px solid var(--alpine-border-color);
    min-height: var(--header-height); /* Use variable */
    position: relative; /* Keep relative for logo positioning */
}

.alpine-main-bar .header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between start/center/end groups */
    min-height: calc(var(--header-height) - 20px); /* Account for padding */
    position: relative; /* Keep relative */
}

/* --- Layout Structure --- */

/* Wrapper for items on the start (right in RTL) */
.header-start-items {
    display: flex;
    align-items: center;
    gap: var(--space-sm); /* Default gap between items in groups */
    order: 1; /* Right side */
}

/* Branding/Logo (Centered) */
.alpine-branding {
    order: 2; /* Center visually */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    line-height: 0; /* Prevent extra space */
}
.alpine-branding .logo img {
    max-height: 45px; /* Slightly reduced */
    width: auto;
    display: block;
}

/* Wrapper for items on the end (left in RTL) */
.header-end-items {
    display: flex;
    align-items: center;
    gap: var(--space-sm); /* Default gap between items in groups */
    order: 3; /* Left side */
    margin-right: auto; /* Push to the left */
}

/* Mobile Toggler (Positioned within Start Items) */
.alpine-mobile-toggler {
    display: none; /* Hide on desktop by default */
    cursor: pointer;
    width: 24px; /* Adjusted size */
    height: 18px; /* Adjusted size */
    position: relative;
    margin-left: var(--space-sm); /* Space between toggler and search */
}
.alpine-mobile-toggler div {
    position: absolute;
    height: 2px; /* Thinner lines */
    background-color: var(--alpine-dark-text);
    width: 100%;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}
.alpine-mobile-toggler .hm-1 { top: 0; }
.alpine-mobile-toggler .hm-2 { top: 50%; transform: translateY(-50%); }
.alpine-mobile-toggler .hm-3 { bottom: 0; }

/* Search Form (Positioned within End Items) */
.header-search.alpine-header-search {
    flex-grow: 0; /* Don't allow search to grow excessively */
    max-width: 450px; /* Slightly reduced max-width */
    width: 100%; /* Allow shrinking */
    /* order: 2; Positioned within header-end-items */
    position: relative;
}

/* Target the default WP search form */
.header-search #searchform {
    display: flex;
    align-items: center;
    height: 40px; /* Reduced height */
    border: 1px solid var(--alpine-border-color);
    border-radius: 20px; /* Matched height */
    background-color: var(--alpine-light-grey); /* Use light grey bg */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    position: relative;
}

.header-search #searchform:focus-within {
    border-color: var(--alpine-red);
    box-shadow: 0 0 0 3px rgba(224, 25, 46, 0.15); /* Adjusted shadow */
    background-color: var(--alpine-light-bg); /* White background on focus */
}

/* Style the container div inside the form */
.header-search #searchform > div {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Style the text input */
.header-search input#s {
    flex-grow: 1;
    height: 100%;
    border: none;
    padding: 0 45px 0 15px; /* RTL: top/bottom, right(button), left */
    font-size: 14px; /* Slightly smaller */
    background-color: transparent;
    color: var(--alpine-text-main);
    outline: none;
    box-sizing: border-box;
    direction: rtl;
}

/* Add placeholder style */
.header-search input#s::placeholder {
    color: var(--alpine-text-secondary);
    opacity: 1;
    transition: color 0.2s ease;
}
.header-search #searchform:focus-within input#s::placeholder {
    color: #aaa; /* Lighter placeholder on focus */
}

/* Style the submit button */
.header-search input#searchsubmit {
    flex-shrink: 0;
    height: 100%;
    width: 40px; /* Match height */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--alpine-text-secondary);
    font-size: 0; /* Hide default button text */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    position: absolute;
    right: 0;
    top: 0;
}

/* Add FontAwesome 6 icon to the submit button */
.header-search input#searchsubmit::before {
    content: '\f002'; /* fa-search */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 15px; /* Adjusted size */
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-search input#searchsubmit:hover {
    color: var(--alpine-red);
}

/* Hide WP search label */
.header-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Actions (Positioned within End Items) */
.alpine-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm); /* Reduced gap between icons */
    /* order: 1; Position within header-end-items */
}

.alpine-header-actions .alpine-icon-item a {
    display: flex;
    align-items: center;
    justify-content: center; /* Center icon */
    color: var(--alpine-text-main);
    text-decoration: none;
    position: relative;
    width: 36px; /* Fixed size */
    height: 36px;
    border-radius: 50%; /* Circular */
    transition: background-color 0.2s ease, color 0.2s ease;
}
.alpine-header-actions .alpine-icon-item a:hover {
    color: var(--alpine-red);
    background-color: var(--alpine-light-grey); /* Subtle background on hover */
}
.alpine-header-actions .alpine-icon-item a:hover i {
    color: var(--alpine-red);
}

.alpine-header-actions .alpine-icon-item i {
    font-size: 18px; /* Adjusted icon size */
    line-height: 1;
    color: var(--alpine-text-main);
    transition: color 0.2s ease;
}

/* Hide the text labels (Ensure it works) */
.alpine-header-actions .alpine-icon-item span {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Specific styles for cart count */
.alpine-header-actions .header-cart .cart-contents .count {
    background-color: var(--alpine-red);
    color: var(--alpine-light-bg);
    border-radius: 10px; /* Pill shape */
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    position: absolute;
    top: -4px; /* Adjusted */
    right: -6px; /* Adjusted */
    font-weight: 600;
    padding: 0 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Specific style for auction bubble */
.alpine-header-actions .header-auctions .countdown-bubble {
    /* Inherits styles from component definition below */
    /* Adjust position relative to the icon */
    top: -6px;
    right: -10px;
}

/* Adjust Wishlist Counter positioning */
.alpine-header-actions .header-wishlist .wishlist_products_counter_number {
    /* Duplicates cart count styles, consider consolidating with a general .counter class */
    background-color: var(--alpine-red);
    color: var(--alpine-light-bg);
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    position: absolute;
    top: -4px;
    right: -6px;
    font-weight: 600;
    padding: 0 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* REMOVED Desktop Nav Bar & Placeholder */
.alpine-navigation-bar,
.alpine-navigation-placeholder {
    display: none;
}

/* Main Navigation (If used elsewhere, keep styles) */
.alpine-main-nav {
   /* Styles remain here but element might not be in main bar anymore */
}

/* Secondary Icons (Cart) - THESE SEEM REDUNDANT with .alpine-header-actions */
/* Consider removing .alpine-secondary-icons block if .alpine-header-actions covers all icons */
.alpine-secondary-icons {
    display: none; /* Assuming these are covered by .alpine-header-actions */
    /*
    display: flex;
    align-items: center;
    order: 4;
    */
}

/* ==========================================================================
   Mega Menu / Submenu Styles (If needed)
   ========================================================================== */
.alpine-main-nav ul.sub-menu { /* Example */
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--alpine-light-bg);
    border: 1px solid var(--alpine-border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Softer shadow */
    list-style: none;
    padding: var(--space-sm) 0;
    margin: 5px 0 0 0; /* Add small margin top */
    z-index: 1001;
    border-radius: 4px; /* Standard radius */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.alpine-main-nav li:hover > ul.sub-menu { /* Show on hover */
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.alpine-main-nav ul.sub-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--alpine-text-main);
    font-size: 14px;
    white-space: nowrap;
    font-weight: 400; /* Normal weight */
    line-height: 1.5;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.alpine-main-nav ul.sub-menu li a:hover {
    background-color: var(--alpine-light-grey);
    color: var(--alpine-red);
    text-decoration: none;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* --- Tablet & Smaller (<= 991px) --- */
@media (max-width: 991px) {
    .alpine-top-bar {
        display: none; /* Hide top bar entirely on mobile/tablet */
    }

    .alpine-main-bar {
        padding-top: var(--space-sm); /* Use variable */
        padding-bottom: var(--space-sm);
        min-height: 60px; /* Adjust min-height for mobile */
        border-bottom: 1px solid var(--alpine-border-color); /* Keep border */
    }
    .alpine-main-bar .header-main-inner {
        gap: var(--space-md); /* Adjust gap */
        min-height: auto; /* Reset min-height */
        justify-content: space-between; /* Ensure space between */
        position: static;
    }
    .alpine-mobile-toggler {
        display: block; /* Show toggler */
        order: 1; /* Right side in RTL */
    }
    .alpine-branding {
        order: 2; /* Center */
        position: absolute; /* Re-center logo absolutely on tablet */
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 140px); /* Prevent overlap with icons */
    }
     .alpine-branding .logo img {
        max-height: 36px; /* Adjust logo size */
    }
    .header-end-items {
        order: 3; /* Left side in RTL */
        margin-right: 0; /* Reset margin */
        margin-left: auto; /* Push to left */
        gap: var(--space-sm); /* Adjust gap */
    }
    .header-search.alpine-header-search {
        display: none; /* Hide search bar in header on tablet */
    }
    .alpine-header-actions {
        gap: var(--space-xs); /* Tighter gap for icons */
     }

    /* Submenus hidden on mobile */
    .alpine-main-nav ul.sub-menu {
        display: none !important;
    }

    /* Mobile Nav Container */
    .alpine-mobile-nav {
        display: none; /* Hidden until toggled by JS */
        position: absolute;
        top: 100%; /* Position below main bar */
        left: 0;
        right: 0;
        background-color: var(--alpine-light-bg);
        color: var(--alpine-text-main);
        z-index: 999;
        max-height: calc(100vh - 60px); /* Adjust based on header height */
        overflow-y: auto;
        border-top: 1px solid var(--alpine-border-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
    .alpine-mobile-nav-inner { /* Add inner wrapper for padding */
        padding: var(--space-md);
    }

    /* Mobile Search (Place inside mobile nav) */
    .alpine-mobile-nav .mobile-header-search {
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--alpine-border-color);
    }
    .alpine-mobile-nav .mobile-header-search #searchform {
        /* Use existing search form styles, maybe slight adjustments */
        height: 40px;
        border-radius: 20px;
        background-color: var(--alpine-light-grey);
    }
    .alpine-mobile-nav .mobile-header-search input#s {
        font-size: 14px;
        padding-right: 45px; /* RTL */
        padding-left: 15px;
    }
    .alpine-mobile-nav .mobile-header-search input#searchsubmit {
        width: 40px;
    }
     .alpine-mobile-nav .mobile-header-search input#searchsubmit::before {
        font-size: 15px;
    }

    /* Basic Mobile Menu Styles */
    .alpine-mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .alpine-mobile-nav > ul > li { /* Top level wrapper */
        border-bottom: 1px solid var(--alpine-border-color);
    }
    .alpine-mobile-nav > ul > li:last-child {
        border-bottom: none;
    }
    .alpine-mobile-nav li a {
        display: block;
        padding: 10px 0; /* Adjusted padding */
        color: var(--alpine-text-main);
        text-decoration: none;
        transition: color 0.2s ease;
        font-size: 15px;
        position: relative; /* For arrow */
    }
    .alpine-mobile-nav > ul > li > a { /* Top level links */
        font-weight: 500; /* Medium weight */
    }
    .alpine-mobile-nav li a:hover {
        color: var(--alpine-red);
    }
    .alpine-mobile-nav ul ul {
        padding-right: var(--space-md); /* RTL indent */
        margin-top: 0;
        padding-top: var(--space-sm);
        padding-bottom: var(--space-sm);
        /* Remove border-top: 1px dashed var(--alpine-grey); */
    }
     .alpine-mobile-nav ul ul li a {
         font-size: 14px;
         padding: 8px 0;
        font-weight: 400; /* Normal weight for subitems */
    }
    .alpine-mobile-nav .menu-item-brands > ul.sub-menu > li a img {
        height: 16px;
        margin-left: var(--space-sm);
        vertical-align: middle;
        opacity: 0.8;
    }

    /* Dropdown arrow */
    .alpine-mobile-nav .menu-item-has-children > a {
        padding-left: 25px; /* Space for arrow */
    }
    .alpine-mobile-nav .menu-item-has-children > a::after {
        content: '\f107'; /* FontAwesome down arrow */
        font-family: "Font Awesome 6 Pro";
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1em; /* Adjusted size */
        color: var(--alpine-grey);
        transition: transform 0.2s ease, color 0.2s ease;
        padding: 5px; /* Make arrow easier to tap */
    }
    .alpine-mobile-nav .menu-item-has-children.submenu-open > a::after {
        transform: translateY(-50%) rotate(-180deg); /* Correct rotation */
        color: var(--alpine-red);
    }
    /* Hide submenus initially in mobile nav */
    .alpine-mobile-nav .sub-menu {
        display: none;
        /* JS will toggle this */
    }
}

/* --- Mobile Only (<= 767px) --- */
@media (max-width: 767px) {
    .alpine-container {
        padding-left: var(--space-sm); /* Use variable */
        padding-right: var(--space-sm);
    }
    .alpine-main-bar {
        min-height: 54px; /* Further adjust height */
    }
     .alpine-branding {
         position: static; /* Revert logo to static flow */
         transform: none;
         text-align: right; /* Align towards toggler */
         flex-grow: 1; /* Allow logo area to take space */
         order: 2;
         max-width: none; /* Remove max-width */
    }
     .alpine-branding .logo img {
         max-height: 30px; /* Smaller logo */
         margin-right: var(--space-sm); /* Add some space */
     }
    .header-end-items {
        order: 3;
        gap: 0; /* Reduce gap further */
    }
    .alpine-header-actions .alpine-icon-item a {
        width: 32px;
        height: 32px;
    }
    .alpine-header-actions .alpine-icon-item i {
        font-size: 16px;
    }

    /* Adjust counter positions for smaller icons */
    .alpine-header-actions .header-cart .cart-contents .count,
    .alpine-header-actions .header-wishlist .wishlist_products_counter_number {
        top: -3px;
        right: -5px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 10px;
    }
    .alpine-header-actions .header-auctions .countdown-bubble {
        /* Use component styles defined below, adjusted position: */
        top: -5px;
        right: -8px;
    }
    .alpine-mobile-nav {
        max-height: calc(100vh - 54px); /* Adjust based on header height */
    }
    .alpine-mobile-nav-inner {
        padding: var(--space-sm);
    }
    .alpine-mobile-nav .mobile-header-search {
         margin-bottom: var(--space-sm);
         padding-bottom: var(--space-sm);
    }
     .alpine-mobile-nav .mobile-header-search #searchform {
         height: 38px;
     }
     .alpine-mobile-nav .mobile-header-search input#s {
         font-size: 13px;
     }
}

/* START: Sticky Header Styles */
body.sticky-header-active .site-header.alpine-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07); /* Add shadow when sticky */
    background-color: var(--alpine-light-bg);
    /* animation: slideDown 0.3s ease-out; */
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

body.sticky-header-active .header-top-bar.alpine-top-bar {
    display: none;
}

body.sticky-header-active .header-main.alpine-main-bar {
   /* Padding is already reduced, keep it */
   border-bottom: 1px solid var(--alpine-border-color);
}

/* END: Sticky Header Styles */ 

/* ==========================================================================
   Auctions Icon Countdown Bubble (Consolidated)
   ========================================================================== */
.header-auctions.alpine-icon-item a {
    position: relative;
}

.countdown-bubble {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--alpine-red);
    color: white;
    font-family: monospace; /* Monospaced font for timer */
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: 600; /* Bold */
    line-height: 1.1;
    z-index: 1;
    min-width: 45px; /* Ensure enough space */
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

@media (max-width: 767px) {
    .countdown-bubble {
        top: -5px;
        right: -8px;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 40px;
    }
}

/* Style for the Desktop Panel Trigger */
#alpine-desktop-panel-trigger {
    display: none; /* Hidden by default */
    order: -1; /* Place it first in header-end-items */
    margin-left: var(--space-sm); /* Add some space */
}

#alpine-desktop-panel-trigger button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    width: 36px; /* Match action icon size */
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#alpine-desktop-panel-trigger button:hover {
    color: var(--alpine-red);
    background-color: var(--alpine-light-grey);
}

#alpine-desktop-panel-trigger button i {
    font-size: 18px; /* Match other icons */
    line-height: 1;
    transition: color 0.2s ease;
}

/* Show Desktop Trigger and Hide Mobile Toggler on Desktop */
@media (min-width: 992px) {
    #alpine-desktop-panel-trigger {
        display: flex; /* Show */
    }
    .alpine-mobile-toggler {
        display: none; /* Hide */
    }
}

/* Styles for Header Start Icons (If using the new structure) */
.header-start-icons {
    display: flex;
    align-items: center;
    gap: var(--space-md); /* Adjust gap as needed */
    order: -1; /* Ensure it visually comes first in header-start-items */
}

/* Final check on main inner flex alignment if needed */
.header-main-inner {
    /* display: flex; */ /* Already set */
    /* align-items: center; */ /* Already set */
    /* justify-content: space-between; Adjust if absolute logo causes issues */
}

/* Counters & Bubbles */
.wishlist_products_counter_number,
.header-cart .count { /* Combined counter styles */
    background-color: var(--alpine-red);
    color: var(--alpine-light-bg);
    border-radius: 10px; /* Pill shape */
    min-width: 18px; /* Adjust if single digits look too wide */
    height: 18px;
    font-size: 10px; /* Slightly smaller */
    line-height: 18px; /* Match height */
    text-align: center;
    position: absolute;
    top: -5px; /* Fine-tune vertical position */
    right: -7px; /* Fine-tune horizontal position */
    font-weight: 700; /* Bold */
    padding: 0 5px; /* Slightly more padding */
    box-shadow: 0 1px 1px rgba(0,0,0,0.2); /* Slightly stronger shadow */
    z-index: 2;
    font-family: sans-serif; /* Use a standard sans-serif for numbers */
    letter-spacing: -0.5px; /* Tighten spacing slightly */
}

/* ==========================================================================
   News Ticker Styles
   ========================================================================== */
.alpine-news-ticker-wrap {
    background-color: var(--alpine-dark-text, #1B1B1B); /* Dark background */
    color: var(--alpine-light-bg, #FFFFFF);
    padding: 8px 0; /* Adjust padding as needed */
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden; /* Important to clip the scrolling content */
    position: relative; /* For potential future enhancements like fade-out edges */
    min-height: 1.4em; /* Ensure it has some height even if JS fails or content is slow */
}

.alpine-news-ticker-wrap .alpine-container {
    padding-left: 15px; /* Ensure padding if container is used */
    padding-right: 15px;
}

.alpine-news-ticker {
    width: 100%;
    position: relative; /* Container for absolutely positioned items */
    min-height: 1.4em; /* Match parent, ensure space for one line of text */
}

.alpine-news-ticker ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative; /* Context for list items */
    width: 100%;
    height: 100%; /* Fill the .alpine-news-ticker height */
    /* Remove scrolling specific styles */
    /* display: inline-block; */
    /* white-space: nowrap; */
}

/* Remove animation for the ticker */
/* .alpine-news-ticker ul.scrolling { ... } */
/* .alpine-news-ticker ul.paused { ... } */
/* @keyframes scrollTicker { ... } */

.alpine-news-ticker ul li {
    /* display: inline-block; Remove inline-block */
    padding: 0 25px; /* Keep existing padding for content */
    position: absolute; /* Stack items on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Force hide by default */
    align-items: center; /* Vertically center text, works if display is flex/grid */
    justify-content: center; /* Horizontally center text, works if display is flex/grid */
    text-align: center; /* Ensure text within is centered */
    opacity: 0; /* Hidden by default, controlled by JS fadeIn/Out and .active */
    visibility: hidden; /* Start hidden, jQuery handles visibility */
    transition: 0.5s all ease;
    transform: translateY(-10px);
}

.alpine-news-ticker ul li.active {
    /* display: flex !important; */ /* Force display for active item, use flex for centering */
    opacity: 1;
    visibility: visible;
    z-index: 2; /* Ensure active item is on top */
    transform: none;
}

/* Remove separator as items are not side-by-side anymore */
/* .alpine-news-ticker ul li:not(:last-child)::after { ... } */

.alpine-news-ticker ul li .news-date {
    font-weight: 700;
    margin-left: 8px; /* RTL: margin-right */
    color: var(--alpine-red, #e0383f); /* Highlight date/prefix */
}

.alpine-news-ticker ul li a {
    color: var(--alpine-light-bg, #FFFFFF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.alpine-news-ticker ul li a:hover {
    color: var(--alpine-red, #e0383f); /* Hover color */
    text-decoration: underline;
} 