/* 
Theme Name: Bridge Child
Theme URI: http://demo.qodeinteractive.com/bridge/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: http://www.qodethemes.com/
Version: 1.0.0
Template: bridge
*/
@import url("../bridge/style.css");

<?php
function bridge_child_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'bridge_child_enqueue_styles' );

/* Custom footer column widths - desktop only (above 1000px) */
@media only screen and (min-width: 1000px) {
    /* Column 2 layout */
    .footer_top .column1 .qodef-gutenberg-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .footer_top .two_columns_50_50.clearfix {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 20px;
    }

    .footer_top .column1 .column_inner .qodef-gutenberg-row {
        display: flex;
        align-self: flex-end;
        align-items: flex-end;
    }

    .footer_top .column1 .footer_col1 .column_inner {
        width: 35%;
        text-align: center;
    }

    /* Column 1 centering */
    .footer_top .column1 .column_inner {
        width: 10%;
        align-self: flex-end;
        text-align: center;
    }
    
    /* Column 2 layout */
    .footer_top .column2 .qodef-gutenberg-row {
        display: flex;
        justify-content: start;
        width: 50%;
    }
    
    /* Style each menu block in column 2 */
    .footer_top .column2 .qodef-gutenberg-column {
        text-align: center;
        flex: 1;
    }
    
    /* Style the menu items */
    .footer_top .column2 ul {
        display: flex;
        flex-direction: column;
    }
    
    /* Style menu headers */
    .footer_top .column2 li:first-child {
        margin-bottom: 10px;
        font-weight: bold;
    }
}

/* Footer container */
.footer_inner {
    background-color: #333333;
    padding: 60px 0;
}

/* Main two-column layout */
.two_columns_50_50 {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Left column - Company info */
.column1.footer_col1 {
    width: 25% !important;
    padding-right: 30px;
}

/* Right column - Menu items */
.column2.footer_col2 {
    width: 75% !important;
}

/* Inner column containers */
.column_inner {
    width: 100%;
}

/* Menu row layout */
.footer_col2 .qodef-gutenberg-row {
    display: flex;
    gap: 30px;
}

/* Individual menu columns */
.footer_col2 .wp-block-qi-blocks-column {
    flex: 1;
}

/* Menu list styling */
.footer_col2 ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer_col2 ul li a {
    color: #ffffff;
    text-decoration: none;
}

/* Company info text */
.footer_col1 p {
    margin: 5px 0;
    color: #ffffff;
}

/* Logo image */
.footer_col1 img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

/* Map link */
.footer_col1 .qi-block-button {
    display: inline-block;
    margin-top: 20px;
    color: #ffffff;
    text-decoration: none;
}

/* Responsive design */
@media only screen and (max-width: 1024px) {
    .two_columns_50_50 {
        flex-direction: column;
    }

    .column1.footer_col1,
    .column2.footer_col2 {
        width: 100% !important;
        padding: 0;
    }

    .column1.footer_col1 {
        margin-bottom: 40px;
    }

    .footer_col2 .qodef-gutenberg-row {
        flex-wrap: wrap;
    }

    .footer_col2 .wp-block-qi-blocks-column {
        width: calc(50% - 15px);
    }
}

@media only screen and (max-width: 767px) {
    .footer_col2 .wp-block-qi-blocks-column {
        width: 100%;
    }
}

.sticky-column {
    position: sticky;
    position: -webkit-sticky;
    top: 3rem;
}

.sticky-parent .elementor-widget-wrap {
    display: block !important;
}

/* Header Styling */
header {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    position: fixed;
    width: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
    transform: translateY(0);
}

/* Dark mode class applied when scrolling */
header.dark-mode {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Logo Transition */
.q_logo img {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Reset container styles */
.page-header-container,
.products-grid-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Section */
.page-header-container {
    padding-top: 100px;
    padding-bottom: 50px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Title Styles */
.finishing-design-title {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.design-subtitle {
    font-size: 40px;
    color: #000;
    margin: 0;
}

/* Category and Search Container */
.category-buttons-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 2;
}

.category-button {
    padding: 8px 15px;
    border-radius: 30px;
    background-color: #f4f4f4;
    color: #333;
    font-size: 0.875rem;
    text-transform: capitalize;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

/* Search Bar */
.category-search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
}

.category-search-bar form {
    display: flex;
    width: 100%;
}

.category-search-bar input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.category-search-bar button {
    padding: 8px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Products Grid - Consolidated Styles */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
}

.product-item {
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .products {
        grid-template-columns: repeat(1, 1fr);
    }
}

.product-info,
.product-description {
    text-align: left;
    padding: 10px 0;
}

/* Parent container - flex layout */
.products {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

/* Header content - flex layout */
.finishing-design-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.category-buttons-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;    
}

/* Product items container - grid layout */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-item {
    width: calc(25% - 15px);
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .product-item {
        width: calc(33.333% - 14px);
    }
}

@media screen and (max-width: 768px) {
    .category-buttons-search-container {
        flex-direction: column;
    }
    
    .product-item {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width: 480px) {
    .product-item {
        width: 100%;
    }
}

/* Products Grid Layout */
.products {
    display: block;
    width: 100%;
    font-size: 0;
    margin: 0 -15px;
}

/* Product Item */
.product-item {
    display: inline-block;
    vertical-align: top;
    width: 25%;
    padding: 0 15px;
    margin: 0 0 30px 0;
    box-sizing: border-box;
    font-size: 16px;
}

/* Product Image Container - Updated */
.product-item .image-wrapper {
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-item .image-wrapper img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-item h6 {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.product-item .product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Responsive Breakpoints */
@media only screen and (max-width: 1024px) {
    .product-item {
        width: 33.333%;
    }
}

@media only screen and (max-width: 768px) {
    .product-item {
        width: 50%;
    }
}

@media only screen and (max-width: 480px) {
    .product-item {
        width: 100%;
    }
}

/* Hide the Add to Cart button */
.single_add_to_cart_button {
    display: none !important;
}

/* Hide the product quantity input */
.quantity.buttons_added {
    display: none !important;
}

/* Adjust container width for WooCommerce specific classes */
.woocommerce .content .container .container_inner,
.woocommerce-page .content .container .container_inner {
    width: 100%;
    max-width: 1800px;
    padding: 0 40px;
}

/* Responsive adjustments */
@media screen and (max-width: 1600px) {
    .page-header-container,
    .products-grid-container,
    .woocommerce .content .container .container_inner,
    .woocommerce-page .content .container .container_inner {
        max-width: 1600px;
    }
}

@media screen and (max-width: 1200px) {
    .page-header-container,
    .products-grid-container,
    .woocommerce .content .container .container_inner,
    .woocommerce-page .content .container .container_inner {
        padding: 0 30px;
    }
}

@media screen and (max-width: 768px) {
    .page-header-container,
    .products-grid-container,
    .woocommerce .content .container .container_inner,
    .woocommerce-page .content .container .container_inner {
        padding: 0 20px;
    }
}

/* Override Bridge theme container widths */
.container_inner,
.boxed div.section .section_inner,
div.grid_section .section_inner,
.full_width .parallax_content,
.steps_holder_inner,
.container_inner.default_template_holder {
    width: 90% !important;
    max-width: 1800px !important;
}

/* Override WooCommerce specific containers */
.woocommerce .container_inner,
.woocommerce-page .container_inner,
.woocommerce .content .container .container_inner,
.woocommerce-page .content .container .container_inner {
    width: 90% !important;
    max-width: 1800px !important;
}

/* Force full width on specific WooCommerce pages */
.woocommerce.columns-4,
.woocommerce .products,
.woocommerce-page .products {
    width: 100% !important;
    max-width: none !important;
}

/* Product Item Layout */
.product-item {
    position: relative;
}

/* Product Info Container */
.product-info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
}

/* Product Title and Description */
.product-text {
    flex: 1;
}

.product-text h6 {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0 0 5px 0;
}

.product-description {
    margin-top: -15px;
}

/* Product Header Styles */
.product-header {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.product-header h6 {
    margin: 0;
}

/* Hide the Clear variations link */
.reset_variations {
    display: none !important;
    visibility: hidden !important;
}

/* Hide the entire post info section in search results */
.blog_holder .post_info {
    display: none !important;
}

/* Hide attribute values in variation selector */
.vi-wpvs-option-wrap[data-attribute_value]:after,
.vi-wpvs-option-wrap[data-attribute_label] {
    content: none !important;
}

.vi-wpvs-option-wrap .vi-wpvs-option-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Ensure the variation selector maintains proper layout */
.vi-wpvs-option-wrap {
    position: relative;
    display: inline-block;
}

/* Hide out of stock icon if needed */
.vi-wpvs-option-out-of-stock-attribute-icon {
    display: none;
}

/* Container adjustments */
.vi-wpvs-variation-wrap {
    width: 190px !important;
    height: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.vi-wpvs-option-wrap {
    margin: 0 !important;
}

/* Ensure proper spacing and alignment */
.variations td.value {
    padding: 5px 0;
}

/* Optional: If you want to adjust the size of each swatch */
.vi-wpvs-option-wrap .vi-wpvs-option-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Restructure variation swatch containers for both grid and single product views */
.vi-wpvs-variation-wrap-wrap,
.variations tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
}

/* Style the labels */
.vi-wpvs-variation-wrap-wrap > label,
.variations .label label {
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

/* Remove table cell styling from variation rows */
.variations td {
    display: block !important;
    padding: 0 !important;
}

/* Ensure swatches container takes full width */
.vi-wpvs-variation-wrap,
.value {
    width: 100% !important;
}

/* Optional: Add some spacing between swatch options */
.vi-wpvs-option-wrap {
    margin-right: 8px !important;
    margin-bottom: 8px !important;
}

.product_meta {
    display: none !important;
}

/* Arrow color for mobile devices */
@media screen and (max-width: 767px) {
    .fa-long-arrow-left,
    .fa-long-arrow-right,
    .next-arrow,
    .prev-arrow,
    .jet-arrow {
        color: #ffffff !important;
    }
}

/* Mobile menu icon color */
@media screen and (max-width: 1000px) {
    .mobile_menu_button .st0 {
        stroke: #ffffff !important;
    }
}

/* Hide accordion content */
.q_accordion_holder.toggle.boxed.woocommerce-accordion {
    display: none !important;
}

/* If you also want to hide any related tabs/panels */
.woocommerce-tabs,
.wc-tabs-wrapper {
    display: none !important;
}

/* Mobile Slider Styles */
@media screen and (max-width: 767px) {
    .qode_image_gallery_no_space .qode_image_gallery_holder ul {
        white-space: nowrap !important;
        font-size: 0;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10px;
    }

    .qode_image_gallery_no_space .qode_image_gallery_holder ul li {
        display: inline-block !important;
        float: none !important;
        white-space: normal;
        vertical-align: top;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        width: 100% !important;
    }

    /* Hide scrollbar */
    .qode_image_gallery_no_space .qode_image_gallery_holder ul::-webkit-scrollbar {
        display: none;
    }

    /* Maintain image spacing */
    .qode_image_gallery_no_space .qode_image_gallery_holder ul {
        padding: 0 10px !important;
        margin: 0 -10px !important;
    }
    
    .qode_image_gallery_no_space .qode_image_gallery_holder ul li {
        padding: 0 10px !important;
    }

    /* Navigation controls */
    .qode_image_gallery_no_space .controls .prev-slide,
    .qode_image_gallery_no_space .controls .next-slide {
        background-color: rgba(0, 0, 0, 0.5);
        padding: 15px;
        border-radius: 50%;
        z-index: 10;
    }

    .qode_image_gallery_no_space .controls .fa {
        color: #fff;
        font-size: 24px;
    }

    .qode_image_gallery_no_space .controls .prev-slide {
        left: 20px;
    }

    .qode_image_gallery_no_space .controls .next-slide {
        right: 20px;
    }
}

/* Image Gallery Spacing */
.qode_image_gallery_no_space .qode_image_gallery_holder ul {
    margin: -5px !important;
}

.qode_image_gallery_no_space .qode_image_gallery_holder ul li {
    padding: 5px !important;
    box-sizing: border-box !important;
}

/* Adjust mobile slider to maintain spacing */
@media screen and (max-width: 767px) {
    .qode_image_gallery_no_space .qode_image_gallery_holder ul {
        padding: 0 5px !important;
        margin: 0 -5px !important;
    }
    
    .qode_image_gallery_no_space .qode_image_gallery_holder ul li {
        padding: 0 5px !important;
    }

    /* Adjust navigation arrows for new spacing */
    .qode_image_gallery_no_space .controls .prev-slide {
        left: 15px;
    }

    .qode_image_gallery_no_space .controls .next-slide {
        right: 15px;
    }
}

#qodef-back-to-top {
    display: none !important;
    visibility: hidden !important;
}

/* Hide search button on mobile */
@media only screen and (max-width: 1000px) {
    .header_inner_right,
    .side_menu_button_wrapper,
    .search_button,
    .search_covers_header,
    .icon_search {
        display: none !important;
        visibility: hidden !important;
    }
}
