/* =========================================
   REUSABLE BIRIZ ARROW COMPONENT (FORCED WHITE)
   ========================================= */

/* Use this class for the container */
.biriz-arrow-title,
.biriz-arrow-title p,
.biriz-arrow-title span,
.biriz-arrow-title a,
.biriz-arrow-title h1,
.biriz-arrow-title h2,
.biriz-arrow-title h3 {
    color: #ffffff; /* Forces all text and links inside to be white */
    text-decoration: none !important; /* Removes underlines if it's a link */
}

/* The Base Design */
/* .biriz-arrow-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "Arial", sans-serif;
    padding: 10px 45px 10px 15px;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.2;
    font-size: 15px;
    letter-spacing: 0.5px;

    clip-path: polygon(
        0% 0%,
        calc(100% - 25px) 0%,
        100% 50%,
        calc(100% - 25px) 100%,
        0% 100%
    );
    -webkit-clip-path: polygon(
        0% 0%,
        calc(100% - 25px) 0%,
        100% 50%,
        calc(100% - 25px) 100%,
        0% 100%
    );
} */

.biriz-arrow-title {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 10px 45px 10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "Arial", sans-serif;
    color: #ffffff !important;
    /* This is the standard arrow tip for titles/footer */
    clip-path: polygon(
        0% 0%,
        calc(100% - 25px) 0%,
        100% 50%,
        calc(100% - 25px) 100%,
        0% 100%
    );
    background-color: #fba408;
}

.biriz-arrow-title-orange,
.biriz-arrow-title-orange *:not(#desktop-search-form, #desktop-search-form *) {
    color: #ffffff !important;
}

.tf-header .header-top .biriz-arrow-title {
    background-color: transparent !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    z-index: 10;
    /* display: flex; */
}

/* .tf-header .header-top .biriz-arrow-title::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fba408;
    z-index: -1;
    clip-path: polygon(0% 0%, calc(100% - 45px) 0%, 100% 50%, calc(100% - 45px) 100%, 0% 100%);
} */

/* Re-create the Arrow Visual Tip behind the content */
.tf-header .header-top .biriz-arrow-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* Matches row width */
    bottom: 0;
    z-index: -1;
    background-color: #fba408;
    /* Re-apply the EXACT polygon to the background layer */
    clip-path: polygon(
        0% 0%,
        calc(100% - 45px) 0%,
        100% 50%,
        calc(100% - 45px) 100%,
        0% 100%
    );
    -webkit-clip-path: polygon(
        0% 0%,
        calc(100% - 45px) 0%,
        100% 50%,
        calc(100% - 45px) 100%,
        0% 100%
    );
}

/* Color: Gray (Refined charcoal) */
.biriz-arrow-title-gray {
    background-color: #555555 !important;
}

/* Color: Orange */
.biriz-arrow-title-orange {
    background-color: #fba408 !important;
    color: #ffffff;
}

.biriz-arrow-title-full {
    display: flex;
    padding-right: 60px !important; /* Space for the arrow tip */
}

.biriz-arrow-title:hover {
    /* transform: translateX(5px);
    filter: brightness(1.1); */
    color: white !important;
}

/* ==========================================================================
   2. FOOTER LAYOUT & MOBILE FIXES
   ========================================================================== */

.footer-body .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-col-block {
    width: 100%;
}

@media (min-width: 1200px) {
    .footer-col-block {
        width: auto;
    }
}

/* Hover translations for lists */
.footer-menu-list li,
.footer-contact li {
    transition: transform 0.2s ease;
}
/* .footer-menu-list li:hover,
.footer-contact li:hover {
    transform: translateX(4px);
} */

/* Language Selector & Newsletter */
.tf-languages select {
    background: transparent;
    border: 1px solid #fbb939 !important;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
}
.sib-form-block__button {
    background-color: #fbb939 !important;
    border: none;
    transition: background-color 0.25s ease;
}
.sib-form-block__button:hover {
    background-color: #ff8c00;
}

/* ==========================================================================
   3. SPECIAL SHAPES (Roof Copyright & Mobile Sidebar)
   ========================================================================== */

/* =========================================
   FOOTER COPYRIGHT BANNER (ADJUSTED CENTERING & WIDTH)
   ========================================= */

/* .footer-bottom {
    background-color: #000;
    padding: 40px 0 0; 
    margin-top: 0;
} */

/* .footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

.inner-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
} */

/* The Orange "Roof" Shape */
/* .footer-bottom .list-hor:first-child {
    background-color: #fba408;
    padding: 35px 80px 15px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 300px; 
    max-width: 90%;


    clip-path: polygon(0% 100%, 0% 45%, 50% 0%, 100% 45%, 100% 100%);
    -webkit-clip-path: polygon(0% 100%, 0% 45%, 50% 0%, 100% 45%, 100% 100%);
} */

/* .footer-bottom .list-hor:first-child li p {
    color: #000 !important;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 800;
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    white-space: normal; 
    letter-spacing: 0.3px;
} */

.footer-bottom {
    background-color: #000;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
}

.footer-bottom .container {
    max-width: 100% !important;
    padding: 0;
}

.inner-bottom {
    width: 100%;
}

.footer-bottom .list-hor {
    background-color: #fba408 !important;
    padding: 60px 20px 30px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    clip-path: polygon(0% 100%, 0% 40px, 50% 0%, 100% 40px, 100% 100%);
    -webkit-clip-path: polygon(0% 100%, 0% 40px, 50% 0%, 100% 40px, 100% 100%);
}

.footer-bottom .list-hor li p,
.footer-bottom .list-hor li a,
.footer-bottom .list-hor .mx-1 {
    color: #000000 !important;
    font-weight: 700;
    font-family: "Arial", sans-serif;
    text-decoration: none;
}

.footer-bottom .footer-lang-item.active {
    text-decoration: underline;
    font-weight: 900;
}

/* Force Black Text inside the search pill */
/* #desktop-search-form select,
#desktop-search-form .dropdown_product_cat,
#desktop-search-form input.style-def {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important; 
    background: transparent !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 14px;
} */

/* Make the typing input fill the empty space (This makes the bar WIDE) */
/* #desktop-search-form input.style-def {
    flex: 1 !important;
    padding-left: 15px;
} */

/* Ensure the Dropdown Options are readable (Black on White) */
#desktop-search-form .dropdown_product_cat option {
    color: #222222 !important;
    background-color: #ffffff !important;
}

/* Mobile Offcanvas Sidebar (Downward Point) */
.offcanvas.canvas-mb {
    background-color: #f2f2f2 !important;
    border: none !important;
}
.offcanvas.canvas-mb .canvas-header,
.offcanvas.canvas-mb .canvas-body {
    background: transparent !important;
    position: relative;
    z-index: 5;
}

.offcanvas.canvas-mb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdb913;
    z-index: 1;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% calc(100% - 60px),
        50% 100%,
        0% calc(100% - 60px)
    );
}

.flow-us-wrap {
    margin-bottom: 32px;
}

/* =========================================
   2. DESKTOP SEARCH BAR (WIDE & CLEAN)
   ========================================= */
.search-form-reset {
    background: #ffffff !important;
    border-radius: 50px !important;
    padding: 2px 5px 2px 20px !important;
    display: flex !important;
    align-items: center;
    height: 50px;
    flex: 1;
    width: 100% !important;
    max-width: 100%;
    margin-left: 20px;
    margin-right: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Search Input & Dropdown Colors */
.search-form-reset select,
.search-form-reset input,
.search-form-reset .dropdown_product_cat {
    color: #222222 !important;
    background: transparent !important;
    border: none !important;
    font-size: 14px;
    font-weight: 600;
}

.search-form-reset select option {
    color: #222222 !important;
    background: #ffffff !important;
}

/* Vertical Divider inside search */
.search-form-reset .br-line.type-vertical {
    background-color: #eee !important;
    height: 20px;
    margin: 0 15px;
}

/* Search Button */
.search-form-reset .btn-submit-2 {
    background-color: #fba408 !important;
    border-radius: 40px !important;
    height: 40px;
    padding: 0 25px;
    color: #ffffff !important;
    border: none !important;
}

#desktop-search-form {
    background: #ffffff !important;
    border-radius: 50px !important;
    padding: 2px 5px 2px 20px !important;
    display: flex !important;
    align-items: center;
    height: 50px;
    flex: 1;
    margin-left: 20px;
    margin-right: 20px; /* Spacing before the arrow tip */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Fix Dropdown and Typing color */
#desktop-search-form select,
#desktop-search-form .dropdown_product_cat,
#desktop-search-form input.style-def,
#desktop-search-form .dropdown_product_cat option {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
    background-color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}

#desktop-search-form input.style-def {
    flex: 1;
    padding-left: 10px;
}

/* Search Button Inside Pill */
.search-form-reset .btn-submit-2 {
    background-color: #fba408 !important;
    border-radius: 40px !important;
    height: 40px;
    padding: 0 25px;
    color: #ffffff !important;
    border: none !important;
}

/* =========================================
   3. NAVIGATION TEXT COLORS
   ========================================= */
.box-nav-menu .item-link {
    color: #333333 !important; /* Menu links black/dark */
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.box-nav-menu .item-link:hover {
    color: #fba408 !important;
}

.name-category {
    color: #ffffff !important; /* Category button text white */
}

/* ==========================================================================
   THE "TEXT VISIBILITY" FIX
   ========================================================================== */

/* 1. FIX THE HEADER (The Selected Category text in the pill) */
/* We target the ID to beat the global ".biriz-arrow-title" white rule */
#desktop-search-form .dropdown_product_cat,
#desktop-search-form .select-category .current,
#desktop-search-form input.style-def {
    color: #222222 !important;
    font-weight: 700 !important;
}

/* 2. FIX THE BODY (The Dropdown List/Options) */
/* This targets the specific selector you found in your theme */
.select-category .select-options,
.select-category .select-options li,
.select-category .select-options li span {
    color: #222222 !important; /* Force text to be dark */
    background-color: #ffffff !important; /* Force background to be white */
    text-transform: none; /* Usually looks better in lists */
}

/* 3. FIX THE "CATEGORIES" PLACEHOLDER COLOR */
/* Some themes use a 'current' span for the selected item */
#desktop-search-form .select-category span {
    color: #222222 !important;
}

/* 4. HOVER STATE: Make the list items look interactive */
.select-category .select-options li:hover {
    background-color: #fba408 !important; /* Orange background on hover */
    color: #ffffff !important; /* White text on hover */
}

/* 5. SEARCH INPUT PLACEHOLDER */
#desktop-search-form input::placeholder {
    color: #888888 !important;
}






        /* =========================
                            PRODUCTS PAGE STYLES
                        ========================= */





        /* Container for the whole product block */
        .biriz-product-item {
            margin-bottom: 30px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        /* The Main Square Card */
        .biriz-custom-card {
            background-color: #1a1a1a;
            width: 100%;
            aspect-ratio: 1 / 1;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            text-decoration: none !important;
            /* transition: transform 0.3s ease; */
            overflow: visible !important;
            /* This prevents the image hiding when moving down */
            perspective: 1200px;
        }

        .biriz-custom-card .card-header {
            position: absolute;
            /* Changed from default */
            top: 20px;
            /* Adjusted for spacing */
            left: 20px;
            /* Adjusted for spacing */
            z-index: 10;
            /* Keep it above the image */
            padding: 0;
            /* Removed old padding */
        }

        .biriz-custom-card .title {
            color: #ffffff;
            font-size: 16px;
            font-weight: 800;
            text-transform: uppercase;
            margin: 0;
        }

        /* Content Area */
        .biriz-custom-card .card-content {
            display: flex;
            flex: 1;
            position: relative;
        }

        /* Specs Column */
        /* .specs-column {
                            width: 60%;
                            padding-left: 15px;
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            gap: 10px;
                            z-index: 2;
                        }

                        .spec-row {
                            display: flex;
                            align-items: center;
                            gap: 8px;
                        } */


        .specs-column {
            width: 60%;
            padding-left: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 12px;
            z-index: 2;
        }

        .spec-row {
            display: flex;
            align-items: center;
            gap: 5px;
            position: relative;
            background: #3a3a3a;
            /* padding: 10px 15px; */
            clip-path: polygon(0% 50%,
                    5% 0%,
                    95% 0%,
                    100% 50%,
                    95% 100%,
                    5% 100%);
        }

        /* .icon-box {
                            background-color: #f3b519;
                            color: #000;
                            width: 24px;
                            height: 24px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 4px;
                            font-size: 12px;
                        } */

        /* .spec-text {
                            color: #ccc;
                            font-size: 10px;
                            line-height: 1.2;
                        } */



        /* Container for the yellow box */
        .icon-box {
            background-color: #f3b519;
            /* Biriz Yellow */
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            flex-shrink: 0;
        }

        /* Logic for interlocking gears */
        .double-gears {
            position: relative;
            width: 18px;
            height: 18px;
        }

        .double-gears i {
            position: absolute;
            color: #000;
            /* Black icons on yellow background */
        }

        /* The bigger gear (top left) */
        .gear-large {
            font-size: 12px;
            top: 0;
            left: 0;
        }

        /* The smaller gear (bottom right) */
        .gear-small {
            font-size: 6px;
            bottom: 1px;
            right: 1px;
            /* Optional: rotate it slightly to look interlocked */
            /* transform: rotate(15deg); */
        }

        /* Optional: Subtle animation to make it look premium */
        /* .biriz-custom-card:hover .gear-large {
                            animation: spin 4s linear infinite;
                        }

                        .biriz-custom-card:hover .gear-small {
                            animation: spin-reverse 4s linear infinite;
                        } */

        /* @keyframes spin {
                            from {
                                transform: rotate(0deg);
                            }

                            to {
                                transform: rotate(360deg);
                            }
                        }

                        @keyframes spin-reverse {
                            from {
                                transform: rotate(15deg);
                            }

                            to {
                                transform: rotate(-345deg);
                            }
                        } */

        /* Ensure spec-text is aligned well with the new icon size */
        .spec-text {
            color: #ffffff;
            /* Using white for better contrast like the image */
            font-size: 11px;
            line-height: 1.2;
            font-weight: 500;
        }




        /* Image Column with Diagonal Yellow Background */
        .image-column {
            width: 40%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            transform-style: preserve-3d;
            z-index: 1;
        }

        .yellow-bg-shape {
            position: absolute;
            right: 0;
            width: 150%;
            height: 80%;
            background-color: #f3b519;
            clip-path: polygon(0% 100%, 0% 40%, 50% 20%, 100% 40%, 100% 100%);
            z-index: 1;
            transform: translateZ(0);
            bottom: 0;
        }

        .product-render {
            position: relative;
            z-index: 2;
            max-width: 120%;
            /* transform: translateX(-10%); */
            /* Adjust based on your images */
            filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.3));
        }

        /* Footer URL */
        /* .card-footer-url {
                            padding: 0 0 15px 15px;
                            z-index: 2;
                        } */

        .card-footer-url {
            position: absolute;
            /* Changed from default */
            bottom: 20px;
            /* Puts it at the bottom edge */
            left: 0;
            z-index: 10;
            /* Keep it above the image */
            padding: 0;
            /* Removes the space-creating padding */
        }

        .url-ribbon {
            background-color: #f3b519;
            color: #000;
            display: inline-block;
            padding: 4px 25px 4px 10px;
            font-size: 11px;
            font-weight: bold;
            clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
        }

        /* Bottom Product Name Ribbon */
        .biriz-bottom-ribbon {
            margin-top: 10px;
            width: 90%;
            background-color: #555;
            /* Dark grey like image */
            padding: 8px 15px;
            clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%);
        }

        .ribbon-text {
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 14px;
        }


        /* =========================
                            HEXAGON ICON BACKGROUND
                        ========================= */
        .hex {
            width: 30px;
            height: 30px;
            background: #f3b519;
            display: flex;
            align-items: center;
            justify-content: center;
            clip-path: polygon(25% 0%, 75% 0%,
                    100% 50%,
                    75% 100%, 25% 100%,
                    0% 50%);
            color: #000;
            font-size: 13px;
        }




        /* 1. The Container Fix (Important: prevents the shadow from being cut off) */
        .product-graphic-container {
            position: relative;
            z-index: 10;
            /* Above yellow */
            transform-style: preserve-3d;
        }

        /* 2. The 3D Image Effect */
        .image-3d-effect {
            /*
                                translateY(110px) -> Moves it DOWN into the yellow area
                                translateZ(60px)  -> Pulls it FORWARD so it never hides behind the yellow
                                rotateY(-15deg)   -> Adds the 3D angle
                            */
            /* transform: translateY(70px) translateZ(100px) rotateY(-50deg) scale(1); */
            filter: drop-shadow(0px 30px 25px rgba(0, 0, 0, 0.5));
            transition: transform 0.4s ease;
            position: relative;
            top: 20px;
        }

        /* 3. Hover Effect: Makes it "pop" when the user moves the mouse over it */
        /* .image-3d-effect:hover {
                                transform: translateY(70px) rotateY(0deg) rotateX(0deg) scale(1.03);
                                box-shadow: -30px 40px 70px rgba(0, 0, 0, 0.4);
                            } */

        /* .biriz-custom-card:hover .image-3d-effect {
                                transform: translateY(100px) translateZ(90px) rotateY(0deg) scale(1.05);
                            } */



        /* Mobile Category Dropdown Styling */
        .mobile-cat-dropdown-container {
            background: #ffffff;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        /* Header/Toggle area */
        .mobile-facet-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background-color: #f8f8f8;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .mobile-facet-title[aria-expanded="true"] {
            border-bottom: 1px solid #eee;
            background-color: #f3b519;
            /* Optional: highlight header when open */
            color: #000;
        }

        .mobile-facet-title .icon {
            transition: transform 0.3s ease;
        }

        .mobile-facet-title[aria-expanded="true"] .icon {
            transform: rotate(180deg);
        }

        /* Vertical List Styling */
        .mobile-vertical-category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .mobile-list-item {
            border-bottom: 1px solid #f0f0f0;
        }

        .mobile-list-item:last-child {
            border-bottom: none;
        }

        .mobile-cat-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            text-decoration: none !important;
            color: #444;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        /* Text and Count style */
        .mobile-cat-link .count {
            font-size: 13px;
            color: #888;
            background: #f0f0f0;
            padding: 2px 8px;
            border-radius: 12px;
        }

        /* Active State (Biriz Style) */
        .mobile-cat-link.active-cat {
            background-color: #fff9e6;
            /* Light yellow tint */
            color: #f3b519;
            /* Biriz Yellow Text */
            font-weight: 700;
            border-left: 4px solid #f3b519;
        }

        .mobile-cat-link.active-cat .count {
            background-color: #f3b519;
            color: #000;
        }





        /* =========================
                            PRODUCTS PAGE STYLES END
                        ========================= */









/* Force submenu visibility on mobile footer, MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .biriz-arrow-title {
        font-size: 14px;
        padding-right: 35px;
    }

    .footer-col-block .tf-collapse-content {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .footer-menu-list,
    .footer-contact {
        display: block;
    }
    .footer-col-block {
        margin-bottom: 24px;
    }

    .footer-bottom .list-hor:first-child {
        padding: 30px 40px 12px;
        min-width: 260px;
        clip-path: polygon(0% 100%, 0% 40%, 50% 0%, 100% 40%, 100% 100%);
    }
    .footer-bottom .list-hor:first-child li p {
        font-size: 13px;
    }
}

/* =========================================
   4. MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 1199px) {
    /* 1. Force the desktop search bar to vanish */
    #desktop-search-form,
    .search-form-reset,
    .header-right {
        display: none !important;
    }

    /* 2. Fix the Mobile Arrow Background */
    /* On mobile, we don't want the tip to be cut off or overlap content */
    .tf-header .header-top .biriz-arrow-title {
        padding-right: 40px !important;
        clip-path: none !important;
        background-color: transparent !important;
    }

    /* Adjust the orange shape for mobile specifically */
    .tf-header .header-top .biriz-arrow-title::before {
        clip-path: polygon(
            0% 0%,
            calc(100% - 30px) 0%,
            100% 50%,
            calc(100% - 30px) 100%,
            0% 100%
        ) !important;
    }

    /* 3. Ensure the Logo stays centered and Hamburger stays left */
    .logo-site img {
        max-height: 60px !important;
    }

    /* 4. Fix Hamburger Icon Color */
    .btn-mobile-menu span,
    .btn-mobile-menu span::before,
    .btn-mobile-menu span::after {
        background-color: #000000 !important; /* Makes hamburger visible */
    }
}

/* Desktop Only Adjustments */
@media (min-width: 1200px) {
    #desktop-search-form {
        display: flex !important; /* Ensures it shows back up on desktop */
    }
}

.card-product_info .name-product {
    color: black;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 4px;
}

/* #biriz .name-product h4 link:hover {
  color: white !important;
} */
