/**
 * LPS Shop Widget Styles
 * Custom styles for the Elementor shop widget
 */

/* Widget Container */
.lps-shop-block-widget {
    width: 100%;
    position: relative;
}

/* Card Layout Variations */
.lps-shop-block-widget.card-layout-compact .c-product-card {
    padding: 0.75rem;
}

.lps-shop-block-widget.card-layout-compact .c-product-card__title {
    font-size: 0.875rem;
}

.lps-shop-block-widget.card-layout-detailed .c-product-card {
    padding: 1.5rem;
}

.lps-shop-block-widget.card-layout-detailed .c-product-card__content {
    padding: 1.25rem;
}

.lps-shop-block-widget.card-layout-horizontal .c-product-card {
    display: flex;
    flex-direction: row;
}

.lps-shop-block-widget.card-layout-horizontal .c-product-card__img {
    flex: 0 0 40%;
    max-width: 40%;
}

.lps-shop-block-widget.card-layout-horizontal .c-product-card__content {
    flex: 1;
    padding-left: 1.5rem;
}

/* Hover Effects */
.lps-shop-block-widget.hover-effect-lift .c-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lps-shop-block-widget.hover-effect-lift .c-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lps-shop-block-widget.hover-effect-zoom .c-product-card__img {
    overflow: hidden;
}

.lps-shop-block-widget.hover-effect-zoom .c-product-card__img img {
    transition: transform 0.3s ease;
}

.lps-shop-block-widget.hover-effect-zoom .c-product-card:hover .c-product-card__img img {
    transform: scale(1.1);
}

.lps-shop-block-widget.hover-effect-fade .c-product-card {
    transition: opacity 0.3s ease;
}

.lps-shop-block-widget.hover-effect-fade .c-product-card:hover {
    opacity: 0.85;
}

.lps-shop-block-widget.hover-effect-flip .c-product-card {
    perspective: 1000px;
}

.lps-shop-block-widget.hover-effect-flip .c-product-card__inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.lps-shop-block-widget.hover-effect-flip .c-product-card:hover .c-product-card__inner {
    transform: rotateY(180deg);
}

/* Filter Styles */
.c-shop__filters {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

.c-shop__filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.c-shop__filters-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.c-shop__filters-clear {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
}

.c-shop__filter-group {
    margin-bottom: 1.5rem;
}

.c-shop__filter-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.c-shop__filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Filter Option Styles */
.c-shop__filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.c-shop__filter-option--checkbox input,
.c-shop__filter-option--radio input {
    margin-right: 0.5rem;
}

.c-shop__filter-label {
    flex: 1;
    font-size: 0.875rem;
}

.c-shop__filter-count {
    color: #999;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Tag Filter Style */
.c-shop__filter-option--tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.c-shop__filter-option--tag:hover {
    border-color: #333;
}

.c-shop__filter-option--tag.is-active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Sorting Styles */
.c-shop__sorting {
    position: relative;
}

.c-shop__sorting-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Shop Bar */
.c-shop__bar {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.c-shop__bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.c-shop__bar-count {
    font-size: 0.875rem;
    color: #666;
}

/* Load More */
.c-shop__load-more {
    text-align: center;
    margin-top: 3rem;
    display: none;
}

.c-shop__load-more.is-showing {
    display: block;
}

.c-shop__load-more-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Quick View Modal */
.lps-quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lps-quick-view-modal__content {
    background: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.lps-quick-view-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .lps-shop-block-widget.has-sidebar-filters .c-shop__content {
        flex-direction: column;
    }
    
    .lps-shop-block-widget.has-sidebar-filters .c-shop__filters {
        width: 100%;
        margin-top: 2rem;
    }
    
    .c-shop__bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .c-shop__sorting-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lps-shop-block-widget.card-layout-horizontal .c-product-card {
        flex-direction: column;
    }
    
    .lps-shop-block-widget.card-layout-horizontal .c-product-card__img {
        max-width: 100%;
    }
    
    .lps-shop-block-widget.card-layout-horizontal .c-product-card__content {
        padding-left: 0;
        padding-top: 1rem;
    }
}

/* Editor Preview Styles */
.elementor-widget-lps-shop-block .elementor-widget-placeholder {
    padding: 2rem;
    background: #f0f0f0;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

.elementor-widget-lps-shop-block .elementor-widget-placeholder p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}