/* Enhanced Store Styles */

.store-enhanced {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2b 50%, #252d3d 100%);
    padding: 2rem 0;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.search-header h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #00d4ff, #0099cc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-right: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    border-radius: 25px 0 0 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: 2px solid #00d4ff;
    color: #1a1f2b;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #ffffff, #00d4ff);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Store Layout */
.store-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-header h3 {
    color: #00d4ff;
    font-size: 1.3rem;
    font-weight: 600;
}

.clear-filters {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #ff6b6b;
    color: #ffffff;
    transform: scale(1.05);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-option:hover {
    background: rgba(0, 212, 255, 0.1);
}

.filter-option input[type="radio"] {
    accent-color: #00d4ff;
}

.filter-option span {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
}

.filter-group select option {
    background: #1a1f2b;
    color: #ffffff;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-inputs input {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
}

.price-inputs span {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.price-range-display {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

/* Products Area */
.products-area {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.results-info span {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    color: #e2e8f0;
    font-weight: 500;
}

.sort-options select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
}

/* Enhanced Products Grid */
.products-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Enhanced Product Cards */
.product-card-enhanced {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.product-card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card-enhanced:hover .product-image-container img {
    transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-enhanced:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn, .add-to-cart-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.product-card-enhanced:hover .quick-view-btn,
.product-card-enhanced:hover .add-to-cart-btn {
    transform: translateY(0);
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-view-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1f2b;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #1a1f2b;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ffffff, #00d4ff);
    transform: scale(1.05);
}

/* Badges */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #1a1f2b;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.stock-badge.out-of-stock {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Product Info Enhanced */
.product-info-enhanced {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Product Bottom Section */
.product-bottom {
    margin-bottom: 1.5rem;
}

.price-section {
    margin-bottom: 0.8rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Product Actions Enhanced */
.product-actions-enhanced {
    display: flex;
    gap: 0.8rem;
}

.btn-view {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-2px);
}

.btn-cart {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    color: #1a1f2b;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #ffffff, #00d4ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.no-results i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #1a1f2b;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .store-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }

    .search-header h1 {
        font-size: 2.5rem;
    }

    .products-grid-enhanced {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .store-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        z-index: 2000;
        transition: left 0.3s ease;
        max-height: 100vh;
        border-radius: 0;
    }

    .filters-sidebar.active {
        left: 0;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .search-header h1 {
        font-size: 2rem;
    }

    .search-bar {
        max-width: 100%;
        margin: 0 1rem;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .products-grid-enhanced {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .product-image-container {
        height: 200px;
    }

    .product-actions-enhanced {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 1.8rem;
    }

    .search-bar input {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .search-bar button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .products-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .product-card-enhanced:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .current-price {
        font-size: 1.5rem;
    }

    .product-name {
        font-size: 1.1rem;
    }
}

/* Filter Overlay for Mobile */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
}

.filter-overlay.active {
    display: block;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-enhanced {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card-enhanced:nth-child(even) {
    animation-delay: 0.1s;
}

.product-card-enhanced:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure products are always visible - Debug fix */
.products-grid-enhanced {
    display: grid !important;
    visibility: visible !important;
}

.product-card-enhanced {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
} 