/* 
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
*/

/* Add your custom styles here */

/* Collection Products Widget Styles */
.collection-products-wrapper {
    width: 100%;
    max-width: 100%;
}

.collection-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    grid-auto-flow: dense;
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.collection-product-item {
    position: relative;
    overflow: hidden;
}

/* Landscape products take full width (2 columns) */
.collection-product-item.landscape {
    grid-column: span 2;
}

/* Portrait products take 1 column each */
.collection-product-item.portrait {
    grid-column: span 1;
}

.collection-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.collection-product-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Landscape image aspect ratio - wider */
.collection-product-item.landscape .collection-product-image {
    padding-bottom: 50%; /* 2:1 aspect ratio for landscape */
}

/* Portrait image aspect ratio - taller */
.collection-product-item.portrait .collection-product-image {
    padding-bottom: 133%; /* Slightly taller for portrait */
}

.collection-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.collection-product-image .collection-image-default {
    opacity: 1;
    z-index: 4;
}

.collection-product-image .collection-image-hover {
    opacity: 0;
    z-index: 2;
}

.collection-product-image .collection-image-variation-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

/* Variation Thumbnails on Hover */
.collection-variation-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 9;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.collection-product-item:hover .collection-variation-thumbnails {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.collection-variation-thumbnails .variation-thumbnail {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #fff;
    display: block;
    position: relative;
}

.collection-variation-thumbnails .variation-thumbnail:hover {
    border-color: #2b2827;
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.collection-variation-thumbnails .variation-thumbnail.active {
    border-color: #2b2827;
    border-width: 3px;
}

.collection-variation-thumbnails .variation-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Wishlist Button on Hover */
/* Positioned at the center center of the product image */
.collection-wishlist-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* prevent normal product links from getting wishlist styles */
.collection-wishlist-button a.collection-product-link {
    display: none !important;
}


.collection-product-item:hover .collection-wishlist-button {
    opacity: 1;
    transform: translateY(0);
}

.collection-wishlist-button .wlfmc-add-to-wishlist {
    margin: 0;
}


.collection-wishlist-button .wlfmc-add-button a i {
    font-size: 30px !important;
}

.collection-wishlist-button .wlfmc-add-button a:hover {
    color: #000;
}


.collection-wishlist-button .wlfmc-add-button a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: 0.7px solid #2b2827 !important;
    background-color: #D9D9D980 !important;
    text-decoration: none;
}

/* Hide the plugin’s default icon */
.collection-wishlist-button .wlfmc-add-button a i {
    display: none !important;
}

.collection-wishlist-button .wlfmc-add-button a::before {
    content: "";
    position: absolute;
    inset: 9px; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


.collection-wishlist-button
.wlfmc-addtowishlist
.wlfmc_add_to_wishlist::before {
    background-image: url("https://vajze.ch/wp-content/uploads/2025/08/ph_heart-thin-2.svg");
}

.collection-wishlist-button
.wlfmc-removefromwishlist
.wlfmc_delete_item::before {
    background-image: url("https://vajze.ch/wp-content/uploads/2025/10/ph_heart-thin.svg");
}

/* Optional hover (slightly darker border) */
.collection-wishlist-button .wlfmc-add-button a:hover {
    border-color: #000;
}


/* Hover effect - show featured image (only for portrait) */
.collection-product-item.portrait:hover .collection-image-default {
    opacity: 0;
}

.collection-product-item.portrait:hover .collection-image-hover {
    opacity: 1;
}

/* Landscape hover disabled */
/* Uncomment below to enable hover for landscape images
.collection-product-item.landscape:hover .collection-image-default {
    opacity: 0;
}

.collection-product-item.landscape:hover .collection-image-hover {
    opacity: 1;
}
*/

.collection-product-info {
    padding: 15px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.collection-product-info-left {
    flex: 1;
}

.collection-product-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
}

.collection-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.collection-product-title a:hover {
    color: #000;
}

.collection-product-price {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.collection-product-price .amount {
    color: #333;
    font-weight: 400;
}

/* Color Swatches */
.loop-color-row {
    margin: 8px 0;
}

.loop-color-swatches {
    display: flex;
    gap: 6px;
    align-items: center;
}

.loop-color-swatches .swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.loop-color-swatches a.swatch {
    display: inline-block;
}

.loop-color-swatches .swatch:hover {
    transform: scale(1.1);
    border-color: #333;
}

.collection-product-colors .color-swatch-link.active .color-swatch {
    box-shadow: 0 0 0 0.8px #2b2827;             
    /*transform: scale(1);   */
    margin-left:3px;
}

/* Collection Filters and Sorting */
.collection-filters-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.collection-sort-toggle,
.collection-filter-toggle {
    background: transparent;
    color: #2B2827;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #000;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.collection-sort-toggle:hover,
.collection-filter-toggle:hover,
.collection-sort-toggle:focus,
.collection-filter-toggle:focus {
    font-weight: 400;
    color:#2B2827;
    background-color: transparent;
}

.collection-sorting {
    position: relative;
}

.collection-sort-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: #FFFBF7;
    border: 1px solid #e0e0e0;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
}

.collection-sort-dropdown.active {
    display: block;
}

.collection-sort-dropdown label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
}


.collection-sort-dropdown input[type="checkbox"] {
    width: 11px;
    height: 11px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #2B2827;
    border-radius: 0;
    position: relative;
    background-color: #FFFBF7;
}

.collection-sort-dropdown input[type="checkbox"]:checked {
    background-color: #2B2827;
    border-color: #2B2827;
}

.collection-sort-dropdown input[type="checkbox"]:focus {
    outline: 2px solid #2B2827;
    outline-offset: 2px;
}



/* Filter Panel */
.collection-filter-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #FFFBF7;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.collection-filter-panel.active {
    right: 0;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.filter-panel-header h3 {
    margin: 0;
    font-family: IBM Plex Sans;
    font-size: 30px;
    font-weight: 600;
}

/*.filter-panel-close {*/
/*    background: none;*/
/*    border: none;*/
/*    font-size: 30px;*/
/*    line-height: 1;*/
/*    cursor: pointer;*/
/*    padding: 0;*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

.filter-panel-close {
    background: url('https://vajze.ch/wp-content/uploads/2025/08/streamline_delete-1-1.svg') center/contain no-repeat;
    border: none;
    font-size: 0; 
    cursor: pointer;
    padding: 0;
    width: 15px;
    height: 15px;
}

.filter-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-colors .filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.filter-color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-color-option input[type="checkbox"] {
    width: 11px;
    height: 11px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #2B2827;
    border-radius: 0;
    position: relative;
    background-color: #FFFBF7;
}

.filter-color-option input[type="checkbox"]:checked {
    background-color: #2B2827;
    border-color: #2B2827;
}

.filter-color-option input[type="checkbox"]:focus {
    outline: 2px solid #2B2827;
    outline-offset: 2px;
}


.filter-color-option .color-swatch {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: inline-block;
}

.filter-color-option .color-name {
    font-size: 11px;
}

.filter-size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.filter-size-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-size-option input[type="checkbox"] {
    width: 11px;
    height: 11px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #2B2827;
    border-radius: 0;
    position: relative;
    background-color: #FFFBF7;
}

.filter-size-option input[type="checkbox"]:checked {
    background-color: #2B2827;
    border-color: #2B2827;
}

.filter-size-option input[type="checkbox"]:focus {
    outline: 2px solid #2B2827;
    outline-offset: 2px;
}

.filter-size-option .size-label {
    font-size: 11px;
}

.filter-size-option:hover {
    border-color: #333;
}

.filter-size-option input[type="checkbox"]:checked + .size-label {
    font-weight: 600;
}


.filter-panel-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.filter-apply-btn,
.filter-reset-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    font-family: Work Sans;
    transition: opacity 0.3s ease;
}

.filter-apply-btn {
    background: #2B2827;
    color: #FFFBF7;
}


.filter-reset-btn {
    background: #FFFBF7;
    color: #2B2827;
    border: 1px solid #000;
}

.filter-reset-btn:hover {
    background: #f5f5f5;
}

.filter-apply-btn:hover,
.filter-apply-btn:focus {
    opacity: 0.8;
    background: #2B2827 !important;
}

.filter-reset-btn:hover,
.filter-reset-btn:focus {
    background: #f5f5f5;
    border-color: #2B2827;
    color: #2B2827 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .collection-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-product-item.landscape {
        grid-column: span 2;
    }
    
    .collection-product-item.portrait {
        grid-column: span 1;
    }
    
    .collection-filter-panel {
        width: 350px;
        right: -350px;
    }
    
    .collection-wishlist-button {
        top: 10px;
        right: 10px;
    }
    
    .collection-wishlist-button .wlfmc-add-button {
        width: 36px;
        height: 36px;
    }
    
    .collection-variation-thumbnails .variation-thumbnail {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .collection-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .collection-product-item.landscape,
    .collection-product-item.portrait {
        grid-column: span 1;
    }
    
    .collection-product-item.landscape .collection-product-image {
        padding-bottom: 66%; /* Landscape ratio on mobile */
    }
    
    .collection-product-item.portrait .collection-product-image {
        padding-bottom: 120%; /* Portrait ratio on mobile */
    }
    
    .collection-filter-panel {
        width: 100%;
        right: -100%;
          height: 100dvh; /* Use dynamic viewport height */
        min-height: -webkit-fill-available; /* Fallback for iOS */
    }
    
    /* Mobile: Show wishlist button only on touch */
    .collection-wishlist-button {
        opacity: 0;
        transform: translateY(-6px);
    }
    
    .collection-product-item.touched .collection-wishlist-button {
        opacity: 1;
        transform: translateY(0);
    }
    
    .collection-wishlist-button .wlfmc-add-button {
        width: 32px;
        height: 32px;
    }
    
    /* Mobile: Show variation thumbnails on touch/tap */
    .collection-product-item.touched .collection-variation-thumbnails {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .collection-variation-thumbnails .variation-thumbnail {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .collection-product-info {
        padding: 10px 5px;
    }
    
    .collection-product-title {
        font-size: 14px;
    }
    
    .collection-product-price {
        font-size: 13px;
    }
}
