/* Shop Page Styles */

/* Shop Header */
.shop-page-header {
    padding: 2.5rem 0;
    background: linear-gradient(90deg, #7C3AED 0%, #EC4899 100%);
    margin-bottom: 0;
}

.shop-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.shop-page-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 600px;
}

/* Shop Layout */
.shop-content-wrapper {
    padding: 2rem 0;
    background: #F9FAFB;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Sidebar */
.shop-sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

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

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.filter-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-only {
    display: none;
}

/* Filter Groups */
.shop-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 1.25rem;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 0.75rem 0;
}

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

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6B7280;
    padding: 0.25rem 0;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5B5FFF;
}

.filter-checkbox:hover {
    color: #374151;
}

/* Price Filter */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.875rem;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    accent-color: #5B5FFF;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Filter Actions */
.filter-actions {
    margin-top: 0.5rem;
}

.clear-filters {
    width: 100%;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shop-results p {
    margin: 0;
    color: #6B7280;
    font-size: 0.9375rem;
}

.shop-results strong {
    color: #1F2937;
    font-weight: 600;
}

.shop-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.shop-sorting select,
.shop-sorting .orderby {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}

.shop-sorting select:focus,
.shop-sorting .orderby:focus {
    outline: none;
    border-color: #5B5FFF;
    box-shadow: 0 0 0 3px rgba(91, 95, 255, 0.1);
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

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

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

.sale-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #EF4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.new-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #10B981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-title a:hover {
    color: #5B5FFF;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.product-rating .star-rating {
    font-size: 0.75rem;
}

.rating-count {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.product-features {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.15rem 0;
    position: relative;
    padding-left: 1rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 600;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.product-price del {
    font-size: 0.875rem;
    color: #9CA3AF;
    font-weight: 400;
    margin-left: 0.5rem;
}

.product-excerpt {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn {
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.btn-primary {
    background: #5B5FFF;
    color: white;
}

.btn-primary:hover {
    background: #4A4EE5;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.btn-outline:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
    color: #374151;
}

/* Pagination */
.shop-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.woocommerce-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.woocommerce-pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination li {
    margin: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.woocommerce-pagination a:hover {
    background: #5B5FFF;
    color: white;
    border-color: #5B5FFF;
}

.woocommerce-pagination .current {
    background: #5B5FFF;
    color: white;
    border-color: #5B5FFF;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: sticky;
        top: 2rem;
    }
    
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-page-header {
        padding: 1.5rem 0;
    }
    
    .shop-page-title {
        font-size: 1.5rem;
    }
    
    .shop-page-subtitle {
        font-size: 0.9rem;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        display: none;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .shop-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .shop-page-title {
        font-size: 1.75rem;
    }
    
    .shop-toolbar {
        padding: 0.875rem;
    }
    
    .filter-toggle {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }
}
