/* ==========================================================================
   Footer Styles
   ========================================================================== */

   :root {
    /* Define footer specific variables if needed, or use globals */
    --alpine-footer-bg: var(--alpine-dark-bg, #2a2a2a);
    --alpine-footer-text: var(--alpine-light-grey, #f5f5f5);
    --alpine-footer-link: var(--alpine-light-grey, #f5f5f5);
    --alpine-footer-link-hover: #ffffff;
    --alpine-site-info-bg: #1f1f1f;
    --alpine-site-info-text: var(--alpine-grey, #cccccc);
}

.site-footer {
    background-color: var(--alpine-footer-bg);
    color: var(--alpine-footer-text);
    padding: 60px 0 30px;
    font-size: 0.9em;
}

.site-footer a {
    color: var(--alpine-footer-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--alpine-footer-text);
    /* text-decoration: underline; */
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 15px; /* Add padding consistent with container */
}

.footer-widgets .widget {
    margin-bottom: 30px;
}

.footer-widgets .widget-title {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--alpine-grey);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets ul li {
    margin-bottom: 10px;
}

.footer-widgets ul li a {
    /* Inherits color from .site-footer a */
}

/* Example: Social Icons in Footer */
.footer-social-icons ul {
    display: flex;
    gap: 15px;
}

.footer-social-icons li {
    margin-bottom: 0;
}

.footer-social-icons a {
    font-size: 1.4em; /* Adjust icon size */
    display: block;
}

.footer-social-icons a:hover {
    text-decoration: none;
    opacity: 0.8;
}


/* Site Info / Copyright Bar */
.site-info {
    background-color: var(--alpine-site-info-bg);
    color: var(--alpine-site-info-text);
    padding: 15px 0;
    text-align: center;
    font-size: 0.85em;
}

.site-info .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px;
}

.site-info p {
    margin: 0;
}

.site-info a {
    color: var(--alpine-footer-link);
}
.site-info a:hover {
    color: var(--alpine-footer-link-hover);
}

/* Responsive adjustments for footer */
@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr; /* Stack widgets */
        gap: 20px;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .site-info .container {
        flex-direction: column; /* Stack copyright and links */
        text-align: center;
    }
}

/* Alpine Footer Styles */

.site-footer.new-footer-wrap {
    background-color: #0f0f0f; /* Light grey background */
    padding: 50px 0 0; /* Padding top, bottom padding comes from site-info */
    /* border-top: 1px solid var(--alpine-border-color); */
    color: #ffffff; /* Default text color for footer */
    font-size: 14px;
    line-height: 1.6;
}
.footer-img {
    background: url(/wp-content/themes/bf2022/images/mm22.png);
    height: 46vw;
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-blend-mode: multiply;
    /* opacity: 0.028; */
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Footer Newsletter Section */
.footer-newsletter-section {
    position: relative;
    z-index: 2;
    width: 100%;
    /* padding: 60px 0; */
    /* margin-top: -500px; */ /* Negative margin to position inside footer image */
    /* position: absolute; */
    top: 0;
    bottom: 0;
    margin: auto;
}


/* Responsive Design */
@media (max-width: 991px) {
    .footer-img > div {
        height: 60vw;
        min-height: 350px;
    }
    
    .footer-newsletter-section {
        padding: 40px 0;
        margin-bottom: -150px; /* Adjust negative margin for tablet */
    }
    
    .footer-newsletter-section .newsletter-card {
        padding: 30px 25px;
        margin: 0 20px;
    }
    
    .footer-newsletter-section .newsletter-heading {
        font-size: 24px;
    }
    
    .footer-newsletter-section .newsletter-description {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .footer-img > div {
        height: 80vw;
        min-height: 300px;
    }
    
    .footer-newsletter-section {
        padding: 30px 0;
        margin: 20px auto; /* Adjust negative margin for mobile */
        position: relative;
    }
    
    .footer-newsletter-section .newsletter-card {
        padding: 25px 20px;
        margin: 0;
        border-radius: 16px;
        gap: 0;
    }
    
    .footer-newsletter-section .newsletter-heading {
        font-size: 18px;
        color: #e0373e;
    }
    
    .footer-newsletter-section .newsletter-description {
        font-size: 14px;
        margin-bottom: 16px;
        margin-top: 5px;
    }
    
    .footer-newsletter-section .form-row {
        flex-direction: column;
        gap: 12px;
        padding: 8px;
        border-radius: 16px;
    }
    
    .footer-newsletter-section .newsletter-input {
        padding: 14px 18px;
        border-radius: 12px;
        background: #f8f9fa;
    }
    
    .footer-newsletter-section .newsletter-button {
        padding: 14px 20px;
        border-radius: 12px;
        justify-content: center;
    }
}

.footer-branches-button > a.alpine-button {
    padding: 3px 10px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #e0373e;
    box-shadow: none;
    display: none;
}
.new-footer .top-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; /* Space between columns */
    margin-bottom: 40px;
}

.footer-column {
    flex: 0 0 auto; /* Allow columns to grow */
     /* Minimum width before wrapping */
    margin-bottom: 30px; /* Space below columns on wrap */
}

.footer-column.footer-logo-area {
    flex-basis: 15%; /* Give logo area a bit more base width */
    min-width: 200px;
}

.footer-logo-holder {
    margin-bottom: 15px;
}

.footer-logo {
    max-width: 150px; /* Adjust size */
    height: auto;
    display: block;
}

.footer_text_info {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--alpine-text-secondary);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Adjust size */
    height: 32px;
    background-color: #e0e0e0; /* Light grey background */
    color: var(--alpine-text-secondary);
    border-radius: 50%;
    font-size: 16px; /* Icon size */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    background-color: var(--alpine-red);
    color: #fff;
}

.footer-header h3 {
    font-size: 16px;
    font-weight: 700; /* Bold titles */
    color: #e0373e;
    margin-bottom: 15px;
    padding-bottom: 8px;
    /* border-bottom: 2px solid var(--alpine-red); */
    display: inline-block; /* Keep border tight to text */
    width: 100%;
    text-align: start;
}

ul.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.footer-link-list li {
    margin-bottom: 8px;
}

ul.footer-link-list li a {
    color: var(--alpine-footer-text);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul.footer-link-list li a:hover {
    color: var(--alpine-red);
    text-decoration: underline;
}

.payment-methood-img2,
.delivery-methood p {
    font-size: 13px;
    color: var(--alpine-footer-text);
}

.payment-methood-img2 img,
.delivery-methood img {
    display: inline-block;
    vertical-align: middle;
    margin-top: 5px;
    max-width: 100%;
    height: auto;
}

.delivery-methood img {
    max-width: 50px;
}

.payment-and-delivery .payment-methood2 {
    margin-bottom: 25px;
}

/* Recent Posts Section */
.footer-posts-list {
    margin-top: 5px;
}

.footer-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--alpine-border-color);
}
.footer-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

a.footer-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: block;
}

a.footer-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.footer-post-content h5 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.4;
}
.footer-post-content h5 a {
    color: var(--alpine-text-main);
}
.footer-post-content h5 a:hover {
    color: var(--alpine-red);
}

.footer-post-date {
    font-size: 12px;
    color: #999;
}

/* Site Info / Copyright */
.site-info {
    background-color: #ffffff; /* Slightly darker background for contrast */
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--alpine-text-secondary);
    box-shadow: inset 0 0px 9px -1px rgba(0,0,0,0.16);
}

.site-info a {
    color: var(--alpine-text-secondary);
    text-decoration: underline;
}
.site-info a:hover {
    color: var(--alpine-red);
}

/* Footer Social Icons Specific */
.site-info-socials {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icons */
    margin-top: 10px; /* Space above icons if wrapped */
}

.site-info-socials a {
    color: #ccc; /* Match icon color from old top bar */
    font-size: 16px;
    transition: color 0.2s ease;
    text-decoration: none; /* Remove underline from icons */
    display: inline-block; /* Prevent wrapping inside link */
    line-height: 1; /* Prevent extra space */
}

.site-info-socials a:hover {
    color: #fff; /* White hover */
    text-decoration: none;
}

.site-info-socials .fab.fa-tiktok {
    /* Specific styles if needed */
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .new-footer .top-footer-content {
        gap: 20px 0px;
        padding: 0px 20px;
        margin-bottom: 0;
    }
    .footer-column {
        flex-basis: calc(50% - 10px); /* Two columns */
        min-width: unset;
    }
    .footer-column.footer-logo-area {
        flex-basis: 100%; /* Full width on smaller tablets */
        text-align: center;
    }
    .footer-logo-holder {
        display: inline-block;
    }
    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer-column {
        flex-basis: 100%; /* Single column */
    }
    .footer-column.footer-logo-area {
        text-align: center;
    }
    .site-info {
        font-size: 12px;
    }
    .site-info .container {
        flex-direction: column; /* Stack text and icons */
    }
}

/* Make sure images within posts don't exceed container */
.footer-post-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 4px;
}

/* END: New Footer Styles */


/* START: Branches Section Styles */
.branches-section {
    padding: 40px 0;
    background: #f5f5f5; /* Light background */
}

.branches-section .dialog_contact {
    max-width: 900px;
    margin: auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.branches-section #tabs {
    /* Tabs container */
}

.branches-section .branch-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--alpine-red, #e0192e);
}

.branches-section .branch-tabs-nav li {
    margin: 0;
}

.branches-section .branch-tabs-nav li a {
    display: block;
    padding: 10px 20px;
    color: var(--alpine-text-secondary, #555);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.branches-section .branch-tabs-nav li:last-child a {
    /* Adjustments if needed */
}

.branches-section .branch-tabs-nav li.active a,
.branches-section .branch-tabs-nav li a:hover {
    color: var(--alpine-dark-text, #333);
    background-color: #fff; /* Match content area */
    border-color: var(--alpine-border-color, #ddd);
    border-bottom-color: #fff; /* Hide bottom border */
    position: relative;
    top: 1px; /* Align with content border */
}

.branches-section .tab-content-wrapper {
    /* Wrapper for tab panels */
}

.branches-section .tab {
    display: none; /* Hide inactive tabs */
}

.branches-section .tab.active {
    display: block; /* Show active tab */
}

.branches-section .inside_contact_dialog {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.branches-section .left_ways {
    flex: 1; /* Takes remaining space */
    min-width: 250px;
}

.branches-section .map-area {
    flex-basis: 40%; /* Adjust map area width */
    min-width: 250px;
    text-align: center;
}

.branches-section .map-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--alpine-border-color, #ddd);
    border-radius: 4px;
    margin-bottom: 10px;
}

.branches-section .toMap {
    /* Button styling */
}

.branches-section .toMap a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Reuse .alpine-button styles or create specific */
    padding: 8px 15px;
    background-color: var(--alpine-red, #e0192e);
    color: #fff;
    border-radius: 4px;
}

.branches-section .toMap img {
    /* Icon styling if needed */
}

.branches-section .block_title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.branches-section .block_title_icon2 {
    /* Icon styling */
}

.branches-section .block_title_icon2 img {
    display: block;
}

.branches-section .block_title_icon2 .light {
    /* Light part of icon */
}
.branches-section .block_title_icon2 .medium {
    /* Medium part of icon */
}

.branches-section .block_title p {
    font-size: 18px;
    font-weight: 600;
    color: var(--alpine-dark-text, #333);
    margin: 0;
}

.branches-section .left_rows {
    margin-bottom: 20px;
}
.branches-section .left_ways_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.branches-section .left_ways_row span {
    font-weight: 600;
    color: var(--alpine-dark-text, #333);
}
.branches-section .left_ways_row a {
    color: var(--alpine-link-color, #00529b);
}

.branches-section .left_ways_row.fax {
    /* Fax specific styles */
}
.branches-section .left_ways_row img {
    /* Icon styling */
}

@media (max-width: 768px) {
    .branches-section .branch-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    .branches-section .branch-tabs-nav li {
        border-bottom: 1px solid var(--alpine-border-color, #ddd);
    }
    .branches-section .branch-tabs-nav li a {
        border-radius: 0;
        border: none;
    }
    .branches-section .branch-tabs-nav li:last-child a {
        /* Remove bottom border if needed */
    }
    .branches-section .branch-tabs-nav li.active a {
        background-color: var(--alpine-red, #e0192e);
        color: #fff;
        border-color: transparent;
    }

    .branches-section .inside_contact_dialog {
        flex-direction: column;
    }
    .branches-section .map-area {
        order: -1; /* Show map first on mobile */
    }
    iframe {
        width: 100%;
    }
    
    .single-product .related.products ul.products li.product {
        flex:  0 0 40%;
    }
    
    .related.products ul.products, .upsells.products ul.products, .similar-products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0px;
    }
    
    
    .footer-column.important-details, .footer-column.additional-links {
        flex: 0 0 calc(50% - 0px);
        margin: auto;
        padding: 0;
    }
    
    .footer-column.payment-and-delivery {
        display: flex;
        justify-content: space-between;
    }
    
    .payment-methood2, .delivery-methood {
        flex: 0 0 calc(50% - 0px);
    }
    
    
    .footer-column.payment-and-delivery {
        gap: 0px;
    }
    
    .footer-img {
        /* display: none; */
    }
        
}

/* END: Branches Section Styles */

/* Payment Icons Styling */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.payment-icons i {
    font-size: 24px; /* Icon size */
    color: var(--alpine-footer-text); /* Default icon color */
}

.payment-icons .payment-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--alpine-footer-text);
    border: 1px solid #cccccc00;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.payment-icons .payment-text i {
    font-size: 14px;
} 

div#floaters {
    display: none;
}


.alpine-floating-buttons{position:fixed;bottom:20px;inset-inline-start: 20px;z-index:9999;display:flex;flex-direction:column;gap:10px;display: none;}
html[dir="rtl"] .alpine-floating-buttons{right:auto;left: 10px;bottom: 10px;}
.alpine-floating-buttons .af-btn{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;border:none;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.3);transition:transform .2s;background:#e0383f}
.alpine-floating-buttons .af-btn.af-whatsapp{background:#25d366}
.alpine-floating-buttons .af-btn:hover{transform:scale(1.1)}

/* ==========================================================================
   Authorized Supplier Section
   ========================================================================== */

.authorized-supplier {
    text-align: center;
}

.authorized-supplier-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.supplier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 58px;
    padding: 3px;
    transition: background-color 0.3s ease;
    overflow: hidden;
    width: 45px;
    height: 45px;
}

.supplier-logo:hover {
    /* background: rgba(255, 255, 255, 0.2); */
}

.supplier-logo img {
    max-width: 60px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.supplier-logo:hover img {
    /* filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)); */
}

/* Responsive adjustments - mobile only at 768px */
@media (max-width: 768px) {
    .authorized-supplier-logos {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        padding: 0;
    }

    .supplier-logo {
        background: none;
        border-radius: 0;
        padding: 2px;
        width: auto;
        height: auto;
    }

    .supplier-logo img {
        max-width: 50px;
        max-height: 35px;
    }
}
