/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   Theme Base Styles
   ========================================================================== */

/* Product Model Name Styles */
.product-model-name {
    margin-bottom: 5px;
    font-weight: bold;
}

.prod_mount {
    text-align: center;
}

.badge.text-bg-secondary {
    color: #777;
    margin-right: 6px;
}

/* ==========================================================================
   Product Compare Styles
   ========================================================================== */

/* Hide the native checkbox */
.compare-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Style the label */
.compare-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    padding: 0px 15px 15px;
}

/* Create the custom square checkbox before the label text */
.compare-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 3px;
    background-color: #fff;
    vertical-align: middle;
    margin-right: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Add checkmark when input is checked */
.compare-checkbox input[type="checkbox"]:checked + .compare-label::before {
    content: "✔";
    color: white;
    background-color: #0073aa;
    text-align: center;
    font-size: 14px;
    line-height: 18px;
    border-color: #0073aa;
}

/* Compare Popup Styles */
#compare-limit-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

#compare-limit-popup .popup-content {
    background: white;
    max-width: 400px;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

#compare-limit-popup .popup-content button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background: #333;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================================================
   Product Tabs Styles
   ========================================================================== */

/* Basic tab styles */
.custom-product-tabs .tab-buttons {
    display: flex;
    margin-bottom: 10px;
    gap: 10px;
}

.custom-product-tabs .tab-buttons button {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background: #eee;
}

.custom-product-tabs .tab-buttons button.active {
    background: #467FF7;
    color: #fff;
}

.custom-product-tabs .tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.custom-product-tabs .tab-content.active {
    display: block;
}

.custom-product-tabs img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* ==========================================================================
   Toggle/Accordion Styles
   ========================================================================== */

/* Plus / Minus icon inside .consumer-toggle02 */
.consumer-toggle02 ._plus_icon {
    position: relative;
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex: 0 0 18px;
}

/* vertical bar */
.consumer-toggle02 ._plus_icon::before,
.consumer-toggle02 ._plus_icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, opacity 180ms ease;
    border-radius: 1px;
}

.consumer-toggle02Wrap button {
    background-color: #F3F4F9 !important;
}

/* vertical bar — rotate to vertical to form PLUS */
.consumer-toggle02 ._plus_icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* When open: turn PLUS into MINUS by hiding the vertical bar */
.consumer-toggle02.is-active ._plus_icon::before {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

/* Optional: nicer clickable area/alignment */
.consumer-toggle02 {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
}

/* Optional: give the header space to breathe */
.consumer-toggle02 .mod-head05 {
    margin: 0;
    flex: 1 1 auto;
}

/* ==========================================================================
   Photo Gallery Styles
   ========================================================================== */

/* Photos grid responsiveness */
.js-photo-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.js-photo-grid .js-photo-card {
    margin-bottom: 24px;
}

/* Radio row spacing */
._radioWrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 8px 0 16px;
    list-style: none;
}

.mod-input-radio {
    cursor: pointer;
}

.mod-input-radio input {
    margin-right: 6px;
}

/* ==========================================================================
   Image Slider Styles
   ========================================================================== */

.mySlides {
    display: none;
}

.cursor {
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    user-select: none;
    background: rgba(0,0,0,0.5);
}

.next {
    right: 0;
}

.caption-container {
    text-align: center;
    background-color: #222;
    color: white;
    padding: 8px;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 16.66%;
    padding: 4px;
}

.demo {
    opacity: 0.6;
    width: 100%;
}

.active,
.demo:hover {
    opacity: 1;
}

/* ==========================================================================
   Dealer List Styles
   ========================================================================== */

.dealer-list-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dealer-item .button-wrapper {
    margin-bottom: 15px;
}

.dealer-item .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dealer-item .contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dealer-item .contact-list .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* ==========================================================================
   Filter Styles
   ========================================================================== */

/* Additional styling for parent terms */
#wpc-term-taxonomy-lens_mount-320,
#wpc-term-taxonomy-lens_mount-326 {
    opacity: 0.6;
    font-weight: bold;
    font-size: 20px;
}

#wpc-term-taxonomy-lens_mount-320 a,
#wpc-term-taxonomy-lens_mount-326 a {
    color: #000 !important;
    font-weight: bold !important;
    font-size: 20px !important;
}

/* Optional: Add visual indicator for parent terms */
#wpc-term-taxonomy-lens_mount-320:before,
#wpc-term-taxonomy-lens_mount-326:before {
    content: "";
    margin-right: 5px;
}

/* ==========================================================================
   New Badge Styles
   ========================================================================== */

.consumer-newIcon-icon {
    position: relative;
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .custom-product-tabs .tab-buttons {
        flex-wrap: wrap;
    }
    
    .dealer-list-wrap {
        grid-template-columns: 1fr;
    }
    
    .column {
        width: 33.33%;
    }
}

@media (max-width: 480px) {
    .custom-product-tabs .tab-buttons button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .column {
        width: 50%;
    }
}
