/*
Theme Name: Fancy Lab
Version: 3.0.4
Text Domain: fancy-lab
*/

:root {
    --bs-primary: #2b59a2;
    --bs-primary-rgb: 43, 89, 162;
    --bs-success: #198754;
    --bs-danger: #d9251d;
    --bs-dark: #1d1c14;
    --bs-dark-subtil: #686464;
    --bs-light: #f5f5f5;

    --red-trans: #d9261d91;
    --dark-trans: #1d1c14b6;
    --bs-link-color: #1d1c14;
    --bs-link-hover-color: #d9251d;


    --addtocart-btn-bg: #270909b6;
    --addtocart-btn-bg-hover: #8f1818b6;



}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 14px;
}

.btn-dark {
    background-color: var(--bs-dark-subtil);
}


.content-area {
    min-height: 500px;
    padding: 3rem 0;
}

.page-template-template-home-php .content-area {
    padding: 0;
}

/* --- Header & Navigation --- */
/* body #page>header {
    border-top: 4px solid #d9251d;
    background-color: #fdfdfd;
    border-bottom: 1px solid #eee;
} */

header .top-bar {
    padding: 1rem 0 0 0;
}

.custom-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.main-menu {
    padding: 0;
}

.main-menu ul {
    padding: 0;
    margin: 0;
    font-weight: 500;
    border-radius: 0;
}

.main-menu ul li {
    display: inline;
    margin: 0 5px 0 0;
}

.main-menu ul li:last-child {
    margin: 0;
}

.main-menu>ul li a,
.navbar-light .navbar-nav .nav-link {
    color: var(--bs-link-color);
    text-decoration: none;
    padding: 7px 15px 20px;
    text-decoration: none;
}

.main-menu>ul li a:hover,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--bs-link-hover-color);
}

.main-menu ul li a.nav-link:first-child {
    padding-left: 0 !important;
}

.main-menu ul li ul {
    background-color: #000;
}

.main-menu ul li ul li {
    margin: 0;
    display: block;
}

.main-menu ul li ul li a {
    padding: 0.5rem;
    color: #fff;
}

.main-menu .navbar-nav .active>.nav-link {
    color: var(--bs-danger);
}

.main-menu .dropdown-item:focus,
.main-menu .dropdown-item:hover {
    color: #fff;
    background-color: #272c33;
}

.main-menu .dropdown:hover>.dropdown-menu {
    display: block;
}

.main-menu .navbar-toggler {
    border: none;
    padding-right: 0;
}

.main-menu .navbar-toggler-icon {
    background-image: url('img/menu.svg');
}

/* --- Home Page & Slider close --- */


/* --- WooCommerce --- */
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #000000;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #D2335B;
    color: #fff;
}

.woocommerce span.onsale {
    background-color: #D2335B;
    position: absolute;
    top: 19px;
    left: 35px;
    transform: rotate(90deg);
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 150px;
}





/* Ensure the standard product grid items have equal height */
ul.products {
    display: flex !important;
    flex-wrap: wrap;
}

ul.products li.product {
    display: flex !important;
    flex-direction: column;
    height: auto;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    justify-content: space-between;
    /* Pushes the button to the bottom */
}

/* Fix image height and alignment */
ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Makes the top part expand to fill space */
}

ul.products li.product img {
    height: 200px;
    /* Fixed height for consistency */
    object-fit: contain;
    /* Prevents stretching */
    width: 100%;
    margin-bottom: 15px;
}

/* Force the title to occupy a minimum of two lines */
ul.products li.product .woocommerce-loop-product__title {
    min-height: 3em;
    font-size: 1rem !important;
    margin-bottom: 10px;
    color: var(--bs-dark);
}


/* Force the title to occupy a minimum of two lines */
ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--bs-danger) !important;
}

/* Ensure price and button are always at the bottom */
ul.products li.product span.price {
    margin-top: auto;
    /* display: block; */
    padding-bottom: 10px;
    font-size: 2rem !important;
    text-align: center !important;
    color: var(--bs-dark) !important;

}

ul.products li.product .button {
    background-color: var(--addtocart-btn-bg) !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;

    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
}


/* Hover effect for the button */
ul.products li.product .button:hover {
    background-color: var(--red-trans) !important;
    color: #000000 !important;
    border-color: var(--bs-dark) !important;
}





/* Remove default WooCommerce floats and widths */
/* Remove default WooCommerce floats and widths */
/* Force the product item to be a full-width row */
/* ul.products li.product {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 20px !important;
} */

/* The inner container we created in functions.php */
.product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #bdbdbd;
    padding: 15px;
    border-radius: 4px;

    /* 1. Add transition for smooth animation */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    top: 0;
    /* Necessary for the movement effect */
}




/* On mobile (less than 768px), remove the side padding and center actions */
@media (max-width: 767px) {
    .product-col-actions {
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 10px;
    }

    .product-row {
        text-align: center;
        /* Center text for a better mobile look */
    }
}



.product-row:hover {
    /* 2. Slight upward movement */
    transform: translateY(-8px);

    /* 3. Add a soft shadow to enhance the "lift" */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    /* 4. Update border styles */
    /* border-color: var(--bs-danger); */
    border-bottom: 4px solid var(--bs-dark);

    /* Optional: Brighten background slightly on hover */
    background: #ffffff;
}

/* Column 1: Image */
.product-col-image {
    flex: 0 0 200px;
    /* Fixed width for images */
}

/* Column 2: Details (Title + Description) */
.product-col-details {
    flex: 1;
    /* Takes up remaining space */
    padding: 0 30px;
}

.product-col-details h2 {
    font-size: 1.1rem !important;
    margin: 0 0 10px 0 !important;
    color: #003366;
    /* Your Berlin Blue */
}

/* Column 3: Price & Button */
/* .product-col-actions {
    flex: 0 0 200px;
    text-align: right;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
}

/* Clean up the button look from your screenshot */
/* .product-col-actions .button {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: none !important;
    width: 100%;
    margin-top: 10px;
} */




/* Ensure the link doesn't break the flex row */
.product-row a.woocommerce-LoopProduct-link {
    display: contents;
    /* This makes the link act as if it's not there for layout purposes */
}

/* Fix the product-row to be a true flex container */
.product-row {
    display: flex !important;
    width: 100%;
    align-items: center;
}

/* Ensure images don't stretch */
.product-col-image img {
    max-width: 100%;
    height: auto;
}


/* Container for the Price and Button */
.product-col-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Aligns content to the right side */
    border-left: 1px solid #eee;
    /* Vertical separator line */
    padding-left: 20px;
}

/* Styling the Price */
.product-col-actions .price {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: var(--bs-dark) !important;
    margin-bottom: 15px;
    display: block;
}

.product-col-actions .price .woocommerce-Price-currencySymbol {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-left: 5px;
    color: var(--bs-dark) !important;
}

/* Styling the Add to Cart Button */
.product-col-actions .button.add_to_cart_button {
    background-color: var(--addtocart-btn-bg) !important;
    /* Light gray professional look */
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    /* Makes button fill the column width */
    text-align: center;
}

/* Hover effect for the button */
.product-col-actions .button.add_to_cart_button:hover {
    background-color: var(--red-trans) !important;
    /* Berlin Blue on hover */
    color: #ffffff !important;
    border-color: var(--bs-dark) !important;
}

/* AJAX "loading" and "added" states */
.product-col-actions .button.loading {
    opacity: 0.7;
}

.product-col-actions .button.added::after {
    content: ' ✓';
    margin-left: 5px;
}


















/* homepage styles  */


/* Slider Base */
.flexslider {
    border: 0 !important;
    background-color: #f8f8f8;
    /* Fallback color */
    background-image: url(img/slide-bg.webp) !important;
    background-size: cover !important;
    overflow: hidden !important;
}

.flexslider .slides li {
    height: 500px;
    /* Fixed height for a hero look */
    display: flex;
    align-items: center;
    position: relative;
}

/* Position the Car Image on the Right */
.slider-image-container {
    position: absolute;
    right: 0;
    width: 60%;
    /* Occupies the right side */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;


}

.slider-image-container img {
    max-height: 60%;
    width: auto;
    object-fit: contain;
}

/* Position the Text on the Left */
.slider-details-container {
    position: relative;
    left: 22vw;
    top: 30px;
    z-index: 10;
    width: 500px;
    /* background-color: transparent !important; */
    /* Removed green box */
    color: #333;
    /* Dark text for contrast */
}

.slider-details-container h1 {
    font-family: 'Inter', sans-serif;
    /* Use a clean sans-serif */
    font-size: 3rem;
    font-weight: 700;
    color: var(--bs-dark);
    line-height: 1.1;
    margin-bottom: 10px;
}

.slider-details-container .subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 25px;
}

/* Beta Blue Button */
.slider-details-container a.link {
    background-color: var(--bs-danger);
    /* Brand Blue */
    color: #fff !important;
    border-radius: 4px;
    text-transform: none;
    /* Modern look */
    padding: 8px 20px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}


/* Navigation Arrows (Next/Prev) */
.flex-direction-nav a {
    background-color: var(--dark-trans) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    color: #fff !important;
    font-size: 0 !important;
    /* Hides "Previous"/"Next" text */
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
}

.flex-direction-nav a:before {
    font-family: "Font Awesome 6 Free" !important;
    /* FA6 font family */
    font-weight: 900 !important;
    /* Required for solid icons */
    font-size: 20px !important;
    color: #fff;
}

/* Previous arrow - chevron left */
.flex-direction-nav .flex-prev:before {
    content: '\f053' !important;
    /* fa-chevron-left unicode */
    color: #fff;
}

/* Next arrow - chevron right */
.flex-direction-nav .flex-next:before {
    content: '\f054' !important;
    /* fa-chevron-right unicode */
    color: #fff;
}




/* Dots (Pagination) */
.flex-control-nav {
    bottom: 20px !important;
}

.flex-control-paging li a {
    background: #ccc !important;
    height: 8px !important;
    width: 8px !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.flex-control-paging li a.flex-active {
    background: var(--bs-danger) !important;
    /* Active Blue Dot */
    width: 40px !important;
    /* Pill shape for active dot */
    border-radius: 10px !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slider-image-container {
        width: 100%;
        opacity: .9;
        /* Fade image behind text on mobile */
    }

    .slider-details-container {
        width: 100%;
        text-align: left;
        /* border: 2px solid; */
        position: absolute;
        /* top: 40vh; */
        left: 20px;
    }

    .slider-details-container h1 {
        font-size: 2.5rem;
    }


    .flex-direction-nav a {
        width: 40px !important;
        height: 40px !important;

    }


}














/* --- Footer --- */
.footer-widgets {
    padding: 35px 0;
    background: #515151;
    color: #aeaeae;
}

.footer-widgets h4 {
    color: #fff;
}

.copyright {
    background-color: #000000;
    color: #939393;
    padding: 20px 0;
}

.footer-menu ul,
.footer-widgets ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.footer-menu ul li {
    display: inline;
    margin-right: 10px;
}

/* --- WordPress Core Classes --- */
.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

/* --- Media Queries --- */
@media all and (max-width: 768px) {
    .custom-logo {
        max-height: 36px;
    }

    .woocommerce ul.products[class*="columns-"] li.product {
        width: 100%;
    }

    .woocommerce .col2-set .col-1,
    .woocommerce .col2-set .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media all and (max-width: 575px) {
    .navbar-toggler:focus {
        outline: 0;
        box-shadow: none !important;
    }

    .mobile-nav ul li a {
        padding: 8px 0;
        display: block;
        color: var(--bs-dark);
        border-bottom: 1px solid var(--bs-dark-subtil);
        text-decoration: none;
    }
}