/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/* Kawasaki Style Header Customizations */

/* 1. Header Separator Line */
#header .header-main {
    border-bottom: 4px solid #39b54a !important; /* Kawasaki Green */
}

/* 2. Main Navigation Bar */
.header-wrapper .main-menu > li.menu-item > a {
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
}

/* 3. Mega Menu Container Styling */
.header-wrapper .main-menu .megamenu-wrapper {
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
}

/* 4. Secondary Sub-Menu Bar (Light Grey Bar with Groups) */
.kawasaki-sub-bar {
    background-color: #f2f2f2 !important;
    display: flex !important;
    flex-wrap: nowrap !important; /* Keep columns side-by-side */
    border-bottom: 1px solid #d3d3d3 !important;
    padding: 5px 0 !important;
    width: 100%;
}

.kawasaki-sub-bar-column {
    flex: 1 1 auto !important; /* Allow columns to dynamically size based on content width */
    min-width: 100px !important;
    padding: 10px 15px !important; /* Compact padding */
    border-inline-end: 1px solid #d3d3d3 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kawasaki-sub-bar-column:last-child {
    border-inline-end: none !important;
}

/* 5. Sub-menu tab / series links */
.kawasaki-group-links {
    display: flex !important;
    flex-wrap: nowrap !important; /* Horizontal row */
    justify-content: center !important;
    gap: 15px !important; /* Space between links */
    width: 100% !important;
    margin-top: 4px !important;
}

.kawasaki-series-link {
    font-family: 'Oswald', 'Open Sans', sans-serif !important;
    font-size: 13px !important; /* Text size like the screenshot */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #000000 !important; /* Black text by default */
    padding: 5px 8px !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    border-bottom: 2px solid transparent !important; /* Underline indicator */
}

.kawasaki-series-link:hover, 
.kawasaki-series-link.active {
    color: #39b54a !important; /* Kawasaki Green on hover/active */
    border-bottom-color: #39b54a !important; /* Green bottom accent line */
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 6. Group Titles (e.g. STREET, STREET/TRACK) */
.kawasaki-group-title {
    font-family: 'Oswald', 'Open Sans', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #666666 !important; /* Medium grey title text */
    margin-bottom: 8px !important; /* Compact margin */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kawasaki-group-title::before,
.kawasaki-group-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d3d3d3;
}

.kawasaki-group-title span {
    padding: 0 10px;
    white-space: nowrap;
}

/* 7. Third-level Panel (Product Showcase) */
.kawasaki-product-panel {
    background-color: #ffffff !important;
    padding: 30px !important;
    display: none; /* Controlled by JS/Tabs */
}

.kawasaki-product-panel.active {
    display: block !important;
}

/* 8. Showcase Columns Group Headers */
.kawasaki-showcase-title {
    font-family: 'Oswald', 'Open Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #777 !important;
    border-bottom: 3px solid #39b54a !important; /* Kawasaki Green Line */
    padding-bottom: 6px !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.5px !important;
}

/* 9. Product Card Item */
.kawasaki-product-card {
    text-align: center !important;
    margin-bottom: 25px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kawasaki-product-card:hover {
    transform: translateY(-5px);
}

.kawasaki-product-card a {
    text-decoration: none !important;
    display: block;
}

.kawasaki-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px; /* Constrain image height for uniform grid */
    margin-bottom: 15px !important;
    overflow: hidden;
}

.kawasaki-product-image img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kawasaki-product-card:hover .kawasaki-product-image img {
    transform: scale(1.05);
}

.kawasaki-product-card h4 {
    font-family: 'Oswald', 'Open Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #111 !important;
    margin: 8px 0 4px 0 !important;
}

.kawasaki-product-card .price {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555 !important;
}

/* 10. Columns Grid and Layout */
.kawasaki-columns-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 40px !important;
    align-items: start !important;
}

.kawasaki-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.kawasaki-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kawasaki-products-list.horizontal-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
}

.no-products {
    font-size: 14px;
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* 11. Dropdown Visibility & Sizing */
.header-wrapper .main-menu li.megamenu.wide {
    position: static !important;
}

.header-wrapper .main-menu li.megamenu.wide > .popup {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-top: 1px solid #ccc !important;
    padding: 0 !important;
}

/* Ensure child theme doesn't block transitions */
.header-wrapper .main-menu li.megamenu.wide:hover > .popup {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 12. Custom Menu Item & Trigger dropdown styling for Header Builder */
.kawasaki-custom-menu-item {
    position: static !important;
    display: inline-block;
}

.kawasaki-custom-menu-item .kawasaki-menu-trigger {
    font-family: 'Oswald', 'Open Sans', sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #222529 !important;
    padding: 15px 15px !important;
    display: inline-block !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.kawasaki-custom-menu-item:hover .kawasaki-menu-trigger {
    color: #39b54a !important;
}

.kawasaki-custom-menu-item .kawasaki-custom-dropdown-container {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    border-top: 4px solid #39b54a !important;
    padding: 0 !important;
}



/* Product PDF Download Button Styling (DOWNLOAD SPECS Next to Add to Cart) */
.kawasaki-pdf-download-container {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 0 0 15px !important; /* Space next to Add to Cart button */
}

.kawasaki-pdf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000000 !important; /* Solid black */
    color: #ffffff !important;
    font-family: 'Oswald', 'Open Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 0 25px !important; /* Horizonal padding */
    height: 48px !important; /* Matches add to cart height */
    line-height: 48px !important;
    border-radius: 0px !important; /* Square corners */
    transition: all 0.2s ease-in-out !important;
    border: none !important;
    cursor: pointer !important;
}

.kawasaki-pdf-btn:hover {
    background-color: #39b54a !important; /* Kawasaki Green on hover */
    color: #ffffff !important;
    text-decoration: none !important;
}
.kawasaki-pdf-icon {
    fill: #39b54a !important; /* Kawasaki Green */
    margin-inline-end: 8px !important;
    width: 10px !important;
    height: 10px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: fill 0.2s ease-in-out !important;
    line-height: 1 !important;
}

.kawasaki-pdf-btn:hover .kawasaki-pdf-icon {
    fill: #ffffff !important; /* Arrow turns white on hover */
}

/* Ensure WooCommerce Add to Cart form items align to the middle horizontally */
.woocommerce-product-details__short-description + .cart,
.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.single-product form.cart .quantity,
.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .kawasaki-pdf-download-container {
    vertical-align: middle !important;
    margin-bottom: 10px !important; /* Safe spacing on wrap */
}
