/*
Alpine Theme Component Styles
Contains styles for various reusable or distinct sections.
*/

/* ==========================================================================
   Variables (Reference Only - Define globally or per component if needed)
   ========================================================================== */
/*
:root {
    --alpine-red: #e0192e;
    --alpine-dark-text: #1B1B1B;
    --alpine-light-bg: #FFFFFF;
    --alpine-light-grey: #F5F5F5;
    --alpine-grey: #CCCCCC;
    --alpine-text-main: #111;
    --alpine-text-secondary: #555;
    --alpine-border-color: #ddd;
    --alpine-font-main: 'Atlas AAA', sans-serif;
    --alpine-link-color: #00529b;
    --alpine-link-hover: #003f7a;
    --alpine-dark-bg: #2a2a2a;
}
*/

/* ==========================================================================
   Alpine Button (Base Style - Can live in style.css or here)
   ========================================================================== */
   .alpine-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: var(--alpine-dark-text, #333);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--alpine-dark-text, #333);
    cursor: pointer;
    text-align: center;
}

.alpine-button:hover {
    background-color: var(--alpine-dark-text, #333);
    color: #fff;
    border-color: var(--alpine-dark-text, #333);
}

/* Red variation */
.alpine-button.button-red {
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    border-color: var(--alpine-red, #e0192e);
}
.alpine-button.button-red:hover {
    background-color: #c01018; /* Darker red */
    border-color: #c01018;
    color: #fff;
}

/* ==========================================================================
   Hero Slider (#alpine-hero-slider)
   ========================================================================== */
.alpine-hero-slider-section {
    /* Optional container styles */
}

#alpine-hero-slider .hero-slide-item {
    height: 600px; 
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex; 
    align-items: center; 
}

#alpine-hero-slider .hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 1;
}

#alpine-hero-slider .hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff; 
    text-align: right; /* RTL alignment */
    max-width: 500px; 
    padding: 30px;
}

#alpine-hero-slider .hero-slide-content.text-dark {
    color: var(--alpine-dark-text, #333);
}

#alpine-hero-slider .hero-slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

#alpine-hero-slider .hero-slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

#alpine-hero-slider .alpine-button { 
    /* Button styles inherited or overridden */ 
}

#alpine-hero-slider .hero-slide-content.text-dark .alpine-button {
     background-color: var(--alpine-dark-text, #333);
     color: #fff;
     border-color: var(--alpine-dark-text, #333);
}

#alpine-hero-slider .hero-slide-content.text-dark .alpine-button:hover {
     background-color: #000;
     border-color: #000;
}

#alpine-hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#alpine-hero-slider .owl-dots .owl-dot {
    margin: 0;
}

#alpine-hero-slider .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.4); 
    width: 16px;
    height: 16px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

#alpine-hero-slider .owl-dots .owl-dot span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

#alpine-hero-slider .owl-dots .owl-dot.active span,
#alpine-hero-slider .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.4);
}

#alpine-hero-slider .owl-dots .owl-dot.active span::before,
#alpine-hero-slider .owl-dots .owl-dot:hover span::before {
    transform: translate(-50%, -50%) scale(1);
}

#alpine-hero-slider .owl-nav {
   position: absolute;
   top: 50%;
   width: 100%;
   transform: translateY(-50%);
   z-index: 3;
   display: flex;
   justify-content: space-between;
   padding: 0 20px; 
   pointer-events: none; 
}

#alpine-hero-slider .owl-nav button.owl-prev,
#alpine-hero-slider .owl-nav button.owl-next {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    line-height: 45px; 
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    pointer-events: all; 
}

#alpine-hero-slider .owl-nav button.owl-prev:hover,
#alpine-hero-slider .owl-nav button.owl-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 767px) {
    #alpine-hero-slider .hero-slide-item {
        height: 450px; 
    }
    #alpine-hero-slider .hero-slide-content h2 {
        font-size: 30px;
    }
    #alpine-hero-slider .hero-slide-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    #alpine-hero-slider .alpine-button {
        padding: 10px 25px;
        font-size: 15px;
    }
     #alpine-hero-slider .owl-nav {
        display: none; 
    }
}

/* ==========================================================================
   Category Grid Section
   ========================================================================== */
.section--category-grid {
    padding: 60px 0;
}

.section--category-grid .section-title {
    font-size: 30px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--alpine-dark-text, #333);
    text-align: center;
}

.alpine-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.category-grid-item {
    position: relative;
    overflow: visible; 
    background-color: transparent; 
    box-shadow: none; 
    border-radius: 0; 
    transition: none; 
    display: flex; 
    flex-direction: column;
}

.category-grid-item:hover .category-grid-image {
    opacity: 0.85; 
}

.category-grid-item:hover .category-grid-title h3 {
    color: var(--alpine-red, #e0192e); 
}

.category-grid-link {
    display: flex; 
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-grid-image {
    position: relative;
    padding-bottom: 65%; 
    background-size: cover;
    background-position: center;
    background-color: var(--alpine-light-grey, #f5f5f5);
    transition: transform 0.3s ease;
    border-radius: 4px 4px 0 0; 
}

.category-grid-title {
    padding: 0; 
    text-align: right;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    background-color: transparent; 
}

.category-grid-title h3 {
    color: var(--alpine-dark-text, #333);
    font-size: 18px; 
    font-weight: 600; 
    margin: 0 0 5px 0; 
    line-height: 1.3;
    transition: color 0.3s ease; 
}

.category-grid-description {
    font-size: 14px;
    color: var(--alpine-text-secondary, #555);
    line-height: 1.5;
    margin-bottom: 10px; 
    flex-grow: 1;
}

.category-grid-item .alpine-button-like {
    display: none;
}

@media (max-width: 991px) {
    .alpine-category-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
     .category-grid-image {
        /* Adjust height or padding-bottom if needed */
        padding-bottom: 70%; 
    }
    .category-grid-title h3 {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .section--category-grid {
        padding: 40px 0;
    }
    .alpine-category-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    .category-grid-image {
        padding-bottom: 75%; 
    }
     .category-grid-title {
        /* No padding override needed if base padding removed */
    }
    .category-grid-title h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    .category-grid-description {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
     .alpine-category-grid {
        /* Keep 2 columns */
        gap: 10px;
    }
     .category-grid-image {
        padding-bottom: 80%; 
    }
}

/* ==========================================================================
   Scrolling News Ticker
   ========================================================================== */
.alpine-news-ticker-wrap {
    background-color: var(--alpine-red, #e0192e);
    padding: 8px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: sticky;
}

.alpine-news-ticker-wrap > .container.alpine-container {
    max-width: 100%;
}
.alpine-news-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.alpine-news-ticker ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    /* JS applies animation */
}

.alpine-news-ticker ul.scrolling {
    /* Animation applied by JS */
}

.alpine-news-ticker li {
    display: inline-block;
    margin: 0 0px 0; /* Space between items (RTL margin) */
    color: #fff;
    font-size: 14px;
}

.alpine-news-ticker li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.alpine-news-ticker li a:hover {
    text-decoration: underline;
}

.alpine-news-ticker .news-date {
    font-weight: 700;
    margin-left: 8px; /* Space between date and text (RTL) */
}

/* JS Animation Placeholder */
@keyframes scrollTicker {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}

/* RTL Animation - scrolls opposite direction */
@keyframes scrollTickerRTL {
    from { transform: translateX(0%); }
    to { transform: translateX(100%); }
}

.alpine-news-ticker ul.paused {
    /* Animation pause handled by JS */
}

/* Ensure RTL animation */
html[dir="rtl"] .alpine-news-ticker ul.scrolling {
    animation-name: scrollTickerRTL;
}

/* ==========================================================================
   Custom Hero Scroll Container
   ========================================================================== */
.alpine-hero-scroll-section {
    position: relative; 
    padding: 0; 
    background-color: var(--alpine-light-bg, #f8f8f8);
}

.alpine-hero-scroll-container {
    overflow-x: auto; 
    overflow-y: hidden; 
    scrollbar-width: thin; 
    scrollbar-color: var(--alpine-grey-text, #555) var(--alpine-border-color, #e0e0e0); 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
}

.alpine-hero-scroll-container::-webkit-scrollbar {
    height: 8px; 
}

.alpine-hero-scroll-container::-webkit-scrollbar-track {
    background: var(--alpine-border-color, #e0e0e0);
    border-radius: 4px;
}

.alpine-hero-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--alpine-grey-text, #555);
    border-radius: 4px;
}

.alpine-hero-scroll-wrapper {
    display: flex;
    width: max-content; 
}

.hero-scroll-item {
    width: 500px; 
    height: 500px; 
    flex-shrink: 0; 
    position: relative;
    border-radius: 0; 
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-scroll-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-scroll-item:hover img {
    transform: scale(1.03);
}

.hero-scroll-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px 20px; 
    color: #fff;
    text-align: right;
    z-index: 2;
}

.hero-scroll-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hero-scroll-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.hero-scroll-content .alpine-button {
    background-color: #fff;
    color: var(--alpine-dark-text, #333);
    padding: 10px 25px;
    font-size: 15px;
}
.hero-scroll-content .alpine-button:hover {
    background-color: var(--alpine-dark-text, #333);
    color: #fff;
}

.hero-scroll-content.text-dark {
     color: var(--alpine-dark-text, #333);
     background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
}
.hero-scroll-content.text-dark .alpine-button {
    background-color: var(--alpine-dark-text, #333);
    color: #fff;
}
.hero-scroll-content.text-dark .alpine-button:hover {
    background-color: #000;
}

.hero-scroll-arrow {
    position: absolute;
    top: calc(50% - 7.5px); 
    transform: translateY(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.9); 
    border-radius: 50%;
    width: 45px; 
    height: 45px; 
    font-size: 20px;
    cursor: pointer;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.3s ease;
    opacity: 0; 
    background: transparent !important; 
    border: 0 !important; 
    outline: none !important; 
}

.alpine-hero-scroll-section:hover .hero-scroll-arrow {
    opacity: 1; 
}

.hero-scroll-arrow:hover {
    /* Optional hover effect */
}

.hero-scroll-arrow.prev {
    right: 15px; 
}

.hero-scroll-arrow.next {
    left: 15px; 
    right: auto;
}

@media (max-width: 767px) {
    .hero-scroll-item {
        width: 300px; 
        height: 300px;
    }
    .alpine-hero-scroll-wrapper {
        gap: 15px;
    }
    .hero-scroll-content h3 {
        font-size: 20px;
    }
     .hero-scroll-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .hero-scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .hero-scroll-arrow.prev { right: 10px; }
    .hero-scroll-arrow.next { left: 10px; }
}

/* ==========================================================================
   Blog Section (Updated Grid Style)
   ========================================================================== */
.alpine-blog-section {
    padding: 60px 0;
    background-color: var(--alpine-light-bg, #f8f8f8); 
}

.alpine-blog-section .section-title {
    color: var(--alpine-dark-text, #333); 
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center; /* Center title */
    font-size: 30px; /* Match other sections */
}

.alpine-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: auto; 
    gap: 30px;
    align-items: start; 
}

.alpine-blog-grid .alpine-blog-card:nth-child(1) {
    grid-column: span 2; 
}

.alpine-blog-grid .alpine-blog-card:nth-child(4) {
    grid-column: span 2; 
}

.alpine-blog-grid .alpine-blog-card:nth-child(5) {
    grid-row: span 2; 
}

.alpine-blog-card {
    background-color: #fff; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); 
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    position: relative;
}

.alpine-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224, 25, 46, 0.05), rgba(192, 23, 41, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 16px;
}

.alpine-blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(224, 25, 46, 0.15);
    border-color: rgba(224, 25, 46, 0.2);
}

.alpine-blog-card:hover::before {
    opacity: 1;
}

.alpine-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; 
    position: relative;
    z-index: 2;
}

.alpine-blog-card-image {
    height: 240px; 
    background-color: #eee; 
    background-size: cover;
    background-position: center;
    display: block; 
    border-bottom: none;
    overflow: hidden;
}

.alpine-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(1) saturate(1);
}

.alpine-blog-card:hover .alpine-blog-card-image img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.15);
}

.alpine-blog-card-content {
    padding: 20px;
    text-align: right; /* RTL */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.alpine-blog-card-category {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--alpine-red, #e0192e); 
    text-transform: uppercase;
    margin-bottom: 8px;
}

.alpine-blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--alpine-dark-text, #333);
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

.alpine-blog-card:hover .alpine-blog-card-title {
    color: var(--alpine-red, #e0192e);
    transform: translateY(-2px);
}

.alpine-blog-card-button {
    display: inline-block;
    align-self: flex-start; 
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--alpine-red, #e0192e), #c01729);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(224, 25, 46, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alpine-blog-card-link:hover .alpine-blog-card-button {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 25, 46, 0.4);
    background: linear-gradient(135deg, #c01729, var(--alpine-red, #e0192e));
}

@media (max-width: 991px) {
    .alpine-blog-grid {
        grid-template-columns: repeat(2, 1fr); 
        .alpine-blog-card:nth-child(1),
        .alpine-blog-card:nth-child(4),
        .alpine-blog-card:nth-child(5) {
            grid-column: auto;
            grid-row: auto;
        }
    }
    .alpine-blog-card-image {
        height: 200px;
    }
    .alpine-blog-card-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .alpine-blog-section {
        padding: 40px 0;
    }
     .alpine-blog-card-content {
        padding: 15px;
    }
     .alpine-blog-card-button {
        padding: 6px 15px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Static Newsletter Section (Homepage Footer Area)
   ========================================================================== */
.alpine-newsletter-section-static {
    padding: 50px 0;
    background-color: var(--alpine-dark-bg, #2a2a2a); 
    color: #fff; 
}

.alpine-newsletter-inner-static {
    max-width: 650px; 
    margin: 0 auto;
    text-align: center;
}

.alpine-newsletter-content-static .newsletter-icon {
    color: var(--alpine-red, #e0192e);
    margin-bottom: 20px;
}

.alpine-newsletter-content-static h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.alpine-newsletter-content-static p {
    font-size: 16px;
    color: #ccc; 
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form-static .form-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form-static input[type="email"] {
    padding: 12px 20px;
    border: 1px solid #555; 
    border-radius: 4px;
    font-size: 15px;
    background-color: #fff; 
    color: var(--alpine-dark-text, #333);
    height: 46px;
    box-sizing: border-box;
    flex-grow: 1; 
    max-width: 350px;
    text-align: right;
}

.newsletter-form-static input[type="email"]::placeholder {
    color: #aaa;
}

.newsletter-form-static .alpine-button {
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    border-color: var(--alpine-red, #e0192e);
    padding: 12px 25px; 
    height: 46px;
    box-sizing: border-box;
    cursor: pointer;
}

.newsletter-form-static .alpine-button:hover {
    background-color: #c01018; 
    border-color: #c01018;
}

.newsletter-form-static .tooltip-error {
    color: #ffdddd;
    font-size: 13px;
    margin-top: 8px;
    display: none; 
}

.popup-thanks.static-thanks {
    margin-top: 20px;
    font-size: 18px;
    color: #a7f0a7; 
}
.popup-thanks.static-thanks i {
    margin-left: 8px;
}

@media (max-width: 767px) {
    .alpine-newsletter-content-static h3 {
        font-size: 24px;
    }
    .newsletter-form-static .form-group {
        flex-direction: column;
        align-items: center;
    }
     .newsletter-form-static input[type="email"] {
        max-width: 100%;
        width: 100%;
    }
    .newsletter-form-static .alpine-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   Modal Base Styles (Overlay & Container)
   ========================================================================== */
.alpine-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.alpine-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.alpine-modal {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.alpine-modal-overlay.active .alpine-modal {
    transform: scale(1);
}

.alpine-modal-close {
    position: absolute;
    top: 15px;
    left: 15px; /* RTL adjusted */
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--alpine-grey-text, #555);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.alpine-modal-close::before { 
    content: '\00d7'; 
    display: block;
}

.alpine-modal-close:hover {
    color: var(--alpine-red, #e0192e);
}

/* ==========================================================================
   Newsletter Popup Modal Specific Styles
   ========================================================================== */
.alpine-newsletter-modal {
    max-width: 550px; 
    text-align: center;
    padding: 40px;
}

.alpine-newsletter-popup-content .newsletter-icon-popup {
    color: var(--alpine-red, #e0192e);
    margin-bottom: 20px;
}

.alpine-newsletter-popup-content .alpine-newsletter-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--alpine-dark-text, #333);
    margin-bottom: 10px;
}

.alpine-newsletter-popup-content .alpine-newsletter-offer {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--alpine-light-bg, #f8f8f8);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--alpine-border-color, #ddd);
}

.alpine-newsletter-popup-content .alpine-newsletter-offer .percentage {
    font-size: 36px;
    font-weight: 700;
    color: var(--alpine-red, #e0192e);
    line-height: 1;
}

.alpine-newsletter-popup-content .alpine-newsletter-offer .text {
    font-size: 15px;
    color: var(--alpine-dark-text, #333);
    line-height: 1.5;
    text-align: right;
}

.alpine-newsletter-form {
    /* Form container */
}

.alpine-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--alpine-border-color, #ddd);
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 15px;
    height: 46px;
    box-sizing: border-box;
    text-align: right;
}

.alpine-newsletter-form .alpine-button {
    width: 100%;
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    border-color: var(--alpine-red, #e0192e);
    padding: 12px 25px;
    height: 46px;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 600;
}

.alpine-newsletter-form .alpine-button:hover {
    background-color: #c01018; 
    border-color: #c01018;
}

.alpine-newsletter-form .tooltip-error {
    color: var(--alpine-red, #e0192e);
    font-size: 13px;
    margin-top: -10px; 
    margin-bottom: 10px;
    display: none;
    text-align: right; /* RTL */
}

.alpine-newsletter-modal .alpine-newsletter-thanks {
   display: none; /* Hidden initially */
   text-align: center;
}

.alpine-newsletter-modal .alpine-newsletter-thanks i {
    color: #28a745; 
    margin-bottom: 15px;
}

.alpine-newsletter-modal .alpine-newsletter-thanks h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--alpine-dark-text, #333);
    margin-bottom: 10px;
}

.alpine-newsletter-modal .alpine-newsletter-thanks p {
    font-size: 15px;
    color: var(--alpine-grey-text, #555);
    margin-bottom: 25px;
}

.alpine-newsletter-modal .alpine-newsletter-thanks .alpine-button.close-thanks {
    background-color: var(--alpine-grey-text, #555);
    border-color: var(--alpine-grey-text, #555);
    color: #fff;
}

.alpine-newsletter-modal .alpine-newsletter-thanks .alpine-button.close-thanks:hover {
    background-color: var(--alpine-dark-text, #333);
    border-color: var(--alpine-dark-text, #333);
}

.alpine-newsletter-modal.thanks-state .alpine-newsletter-popup-content {
    display: none;
}
.alpine-newsletter-modal.thanks-state .alpine-newsletter-thanks {
    display: block !important; 
}

/* ==========================================================================
   Featured Products Owl Carousel
   ========================================================================== */
.section--featured-products {
    padding: 60px 30px;
    background-color: #eee; 
}

.section--featured-products .section-title {
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--alpine-dark-text, #333);
    text-align: center;
    font-size: 30px;
}

#owl-featured-products .product {
    text-align: center;
    border: 1px solid var(--alpine-border-color, #ddd);
    border-radius: 4px;
    padding: 15px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    margin: 0 10px; 
    display: flex; /* Added */
    flex-direction: column; /* Added */
    min-height: 400px; /* Added */
    position: relative; /* Added for wishlist */
}

#owl-featured-products .product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#owl-featured-products .product a img {
    margin-bottom: 15px;
    max-height: 180px; /* Limit image height */
    width: auto;
    object-fit: contain;
}

#owl-featured-products .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--alpine-dark-text, #333); 
    line-height: 1.4; /* Added */
    min-height: 45px; /* Ensure roughly 2 lines */
}

#owl-featured-products .product .price {
    color: var(--alpine-dark-text, #333);
    font-size: 16px; 
    font-weight: 300; 
    display: flex;
    justify-content: center;
    align-items: baseline; 
    gap: 5px; 
    flex-wrap: wrap;
    margin-top: auto; 
    padding-top: 10px; 
    min-height: 26px; 
}

#owl-featured-products .product .price ins {
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    padding: 2px 6px; 
    border-radius: 0; 
    text-decoration: none;
    order: 1; 
    font-size: 0.9em; 
    font-weight: 600; 
}

#owl-featured-products .product .price del {
    background-color: var(--alpine-light-grey, #eee);
    color: var(--alpine-grey-text, #555);
    padding: 2px 6px; 
    border-radius: 0; 
    font-size: 0.9em; 
    position: relative;
    text-decoration: line-through; 
    order: 2; 
    display: inline-block;
}

#owl-featured-products .product .price > .woocommerce-Price-amount.amount {
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    padding: 2px 6px; 
    border-radius: 0; 
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em; 
    font-weight: 600; 
}

#owl-featured-products .product .price ins + .woocommerce-Price-amount.amount,
#owl-featured-products .product .price del + .woocommerce-Price-amount.amount {
    display: none;
}

#owl-featured-products ul.products {
    list-style: none; 
    padding: 0;
    margin: 0;
}

/* Wishlist Button in Carousel */
#owl-featured-products .product .tinvwl_add_to_wishlist_button {
    position: absolute;
    top: 10px;
    left: 10px; /* RTL */
    z-index: 5;
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.8);
    color: var(--alpine-dark-text, #333);
    border: 1px solid var(--alpine-border-color, #ddd);
    font-size: 16px;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#owl-featured-products .product .tinvwl_add_to_wishlist_button:hover {
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    border-color: var(--alpine-red, #e0192e);
}

#owl-featured-products .product .tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    border-color: var(--alpine-red, #e0192e);
}

/* Owl Carousel Navigation */
#owl-featured-products .owl-nav button.owl-prev,
#owl-featured-products .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

#owl-featured-products .owl-nav button.owl-prev:hover,
#owl-featured-products .owl-nav button.owl-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

#owl-featured-products .owl-nav button.owl-prev {
    left: -20px; /* Position outside the container slightly */
}

#owl-featured-products .owl-nav button.owl-next {
    right: -20px; /* Position outside the container slightly */
}

#owl-featured-products .owl-nav button span {
    display: none; /* Hide default text if any */
}

#owl-featured-products .owl-nav button.owl-prev::before {
    content: '\f053'; /* FontAwesome angle-left */
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
}

#owl-featured-products .owl-nav button.owl-next::before {
    content: '\f054'; /* FontAwesome angle-right */
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
}

/* ==========================================================================
   Blog Slider Section
   ========================================================================== */
.section--blog-slider {
    padding: 60px 0;
}

.section--blog-slider .section-title {
    font-size: 30px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--alpine-dark-text, #333);
    text-align: center;
}

/* Dots */
#alpine-blog-slider .owl-theme .owl-dots {
    text-align: center;
    margin-top: 25px;
    padding: 10px 0;
}

#alpine-blog-slider .owl-theme .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 8px;
}

#alpine-blog-slider .owl-theme .owl-dots .owl-dot span {
    width: 16px;
    height: 16px;
    margin: 0;
    background: rgba(224, 25, 46, 0.2);
    border: 2px solid rgba(224, 25, 46, 0.3);
    display: block;
    -webkit-backface-visibility: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

#alpine-blog-slider .owl-theme .owl-dots .owl-dot span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: #e0192e;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

#alpine-blog-slider .owl-theme .owl-dots .owl-dot.active span,
#alpine-blog-slider .owl-theme .owl-dots .owl-dot:hover span {
    background: rgba(224, 25, 46, 0.1);
    border-color: #e0192e;
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(224, 25, 46, 0.3);
}

#alpine-blog-slider .owl-theme .owl-dots .owl-dot.active span::before,
#alpine-blog-slider .owl-theme .owl-dots .owl-dot:hover span::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Slide Item */
#alpine-blog-slider .alpine-blog-slide-item {
    height: 450px; /* Adjust height */
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    border-radius: 4px;
    overflow: hidden;
}

#alpine-blog-slider .alpine-blog-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

#alpine-blog-slider .alpine-blog-slide-content {
    position: relative;
    z-index: 2;
    color: #fff; 
    text-align: right; /* RTL */
    padding: 25px;
    width: 100%; /* Content takes full width */
}

#alpine-blog-slider .alpine-blog-slide-content.text-dark {
    color: var(--alpine-dark-text, #333);
}

#alpine-blog-slider .alpine-blog-slide-content .alpine-blog-slide-category {
    display: inline-block; /* Allow background */
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background-color: var(--alpine-red, #e0192e);
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-decoration: none; /* Remove underline if it's a link */
}

#alpine-blog-slider .alpine-blog-slide-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

#alpine-blog-slider .alpine-blog-slide-content p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
    display: none; /* Hide paragraph for cleaner look */
}

#alpine-blog-slider .alpine-blog-slide-content .alpine-button {
    /* Reuse existing button style */
}
#alpine-blog-slider .alpine-blog-slide-content.text-dark .alpine-button {
    /* Adjust button style for dark text */
}

/* Navigation */
#alpine-blog-slider .owl-nav {
   position: absolute;
   top: 50%;
   width: 100%;
   transform: translateY(-50%);
   z-index: 3;
   display: flex;
   justify-content: space-between;
   padding: 0 10px; /* Closer padding */
   pointer-events: none;
}

#alpine-blog-slider .owl-nav button.owl-prev,
#alpine-blog-slider .owl-nav button.owl-next {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    pointer-events: all;
}

#alpine-blog-slider .owl-nav button.owl-prev:hover,
#alpine-blog-slider .owl-nav button.owl-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

#alpine-blog-slider .owl-nav button.owl-prev::before,
#alpine-blog-slider .owl-nav button.owl-next::before {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
}
#alpine-blog-slider .owl-nav button.owl-prev::before {
    content: '\f053'; /* angle-left */
}
#alpine-blog-slider .owl-nav button.owl-next::before {
    content: '\f054'; /* angle-right */
}

/* ==========================================================================
   News Ticker JS Animation Styles
   ========================================================================== */
.alpine-news-ticker {
    /* Container styles already defined */
}

.alpine-news-ticker ul {
    /* Base styles already defined */
    /* JS will set initial position and animation */
    will-change: transform; /* Performance hint */
}

.alpine-news-ticker ul.scrolling {
    /* Animation properties set by JS */
}

.alpine-news-ticker ul li {
    /* Styles already defined */
}

/* Keyframes remain the same */
@keyframes scrollTicker {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}

/* RTL Animation - scrolls opposite direction */
@keyframes scrollTickerRTL {
    from { transform: translateX(0%); }
    to { transform: translateX(100%); }
}

.alpine-news-ticker ul.paused {
    animation-play-state: paused; /* Pause animation */
}

html[dir="rtl"] .alpine-news-ticker ul.scrolling {
    animation-name: scrollTickerRTL;
}

/* ==========================================================================
   Why Buy Section
   ========================================================================== */
.section--why-buy {
    padding: 50px 0;
    background-color: var(--alpine-light-grey, #F5F5F5); /* Light background */
    margin: 40px 0;
}

.section--why-buy .section-title {
    margin-bottom: 40px;
    color: var(--alpine-dark-text, #1B1B1B);
    font-weight: 700;
    font-size: 28px;
    text-align: center; /* Center title */
}

.why-buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 30px;
    text-align: center;
}

.why-buy-item {
    /* No extra styling needed for the item container by default */
}

.why-buy-icon {
    margin-bottom: 15px;
    color: var(--alpine-red, #e0192e); /* Use accent color */
    font-size: 2em; /* Makes fa-2x effective */
}

.why-buy-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--alpine-dark-text, #1B1B1B);
    margin-bottom: 8px;
}

.why-buy-text p {
    font-size: 15px;
    color: var(--alpine-text-secondary, #555);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 767px) {
    .why-buy-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .why-buy-text h4 {
        font-size: 16px;
    }
    .why-buy-text p {
        font-size: 14px;
    }
}

/* ==========================================================================
   TikTok Section
   ========================================================================== */
.homepage-tiktok-section {
    padding: 50px 0;
    background-color: #fff; /* Or a very light grey like var(--alpine-light-grey) */
}

.homepage-tiktok-section .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--alpine-dark-text, #1B1B1B);
}

.homepage-tiktok-section .section-title i {
    color: #000; /* TikTok black */
    margin-right: 8px;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.tiktok-item {
    /* Styles for individual item container if needed */
}

.tiktok-item blockquote.tiktok-embed {
    margin: 0 !important;
    max-width: 100% !important;
    min-width: unset !important;
    width: 100%;
    height: 550px; /* Adjust height as needed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.tiktok-follow-button {
    text-align: center; /* Center the button */
}

.tiktok-follow-button a.alpine-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #000; /* TikTok black */
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none; /* Override default button border */
}

.tiktok-follow-button a.alpine-button:hover {
    background-color: #333;
}

/* ==========================================================================
   Homepage Brands Grid
   ========================================================================== */
.homepage-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--alpine-border-color, #ddd);
    border-bottom: 1px solid var(--alpine-border-color, #ddd);
    margin: 40px 0;
}

.homepage-brands-grid .brand-icon {
    text-align: center;
    border: 1px solid var(--alpine-border-color, #ddd);
    padding: 15px;
    border-radius: 4px;
    background-color: var(--alpine-light-bg, #fff);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.homepage-brands-grid .brand-icon:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.homepage-brands-grid .brand-icon a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.homepage-brands-grid .brand-icon img {
    max-height: 60px; /* Adjust brand logo size */
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: inline-block;
}

.homepage-brands-grid .brand-icon h2 {
    font-size: 14px;
    font-weight: 500;
    color: var(--alpine-text-secondary, #555);
    margin: 0;
}

@media (max-width: 767px) {
    .homepage-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    .homepage-brands-grid .brand-icon h2 {
        font-size: 13px;
    }
} 



/* ==========================================================================
   Floating Cart Icon
   ========================================================================== */

a.added_to_cart.wc-forward {
    display: none;
}

.xoo-wsc-basket {
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
    display: block;
}
 
.xoo-wsc-items-count {
    line-height: 18px;
    height: 20px;
    width: 20px;
    text-align: center;
    top: -5px !important;
    right: -7px !important;
}

.xoo-wsc-header {
    background-color: var(--alpine-red, #e0192e) !important;
    color: white;
}

.xoo-wsch-top {
    gap: 10px;
}

.xoo-wscb-icon {
    font-size: 20px;
}

.xoo-wscb-count {
    line-height: 25px;
    font-size: 12px;
}

.xoo-wsc-product {
    padding: 10px !important;
    gap: 10px;
}

.xoo-wsc-pprice {
    display: flex;
    gap: 10px;
}

.xoo-wsc-sum-col {
    padding: 0;
}

.xoo-wsc-img-col img {
    height: 100px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.xoo-wsc-img-col {
    background: #eee;
}

.xoo-wsc-body a {
    display: block;
}

.xoo-wsc-qty-box.xoo-wsc-qtb-square, .xoo-wsc-qty-box.xoo-wsc-qtb-square * {
    border-color: #EEE !important;
    background: #eee !important;
}

.xoo-wsc-sm-info {
    height: 100%;
}

.xoo-wsc-sm-left > *:not(:last-child) {
    margin-bottom: auto !important;
}

.xoo-wsc-ft-amt-total {
    border-top: 1px dashed #cacaca;
}

.xoo-wsc-footer {
    background: #eee;
    border-top: 1px ridge #ddd;
    padding: 20px;
}

.xoo-wsc-ftx-row {
    background: white;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px dashed #e0383f;
}

.xoo-wsc-ft-buttons-cont {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

a.xoo-wsc-ft-btn.button.btn.xoo-wsc-ft-btn-cart {
    display: none !important;
}

a.xoo-wsc-ft-btn.button.btn.xoo-wsc-ft-btn-checkout {
    flex: 1;
    background: #e0383f;
    color: white;
}

span.xoo-wsc-ecl {
    display: none;
}



span.onsale {
    display: flex;
    flex-direction: column;
    height: 80px;
    width: 80px;
    justify-content: center;
    align-items: center; 
}

span.sale-percentage-amount {
    font-size: 1.6rem;
    /* line-height: 0.8; */
    /* font-weight: 500; */
}

span.sale-percentage-text {
    /* font-size: 1.3rem; */
}

a.xoo-wsc-ft-btn.button.btn.xoo-wsc-ft-btn-continue {
    background: transparent;
    color: #292929;
    font-weight: 500;
    font-size: 1em;
}

.alpine-product-summary-sticky form.cart button.button[type="submit"] {
    font-size: 18px;
}