/* Modern Shop Styles */

/* Sticky Filter Bar */
.sticky-filter-bar {
    position: sticky;
    top: 80px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-filter-bar.visible {
    transform: translateY(0);
}

.filter-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-toggles {
    display: flex;
    gap: 0.5rem;
}

.filter-toggle-btn,
.sort-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-toggle-btn:hover,
.sort-toggle-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.filter-count {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-chip .remove {
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.filter-chip .remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.results-count {
    color: #6b7280;
    font-weight: 500;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Sidebar - Compact */
.shop-sidebar {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: 75vh;
    overflow-y: auto;
    font-size: 0.875rem;
}

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

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

.close-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-sidebar:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Filter Sections */
.filter-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

/* Search Filter */
.search-filter {
    position: relative;
}

.search-filter input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-filter i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

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

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.filter-option:hover {
    background: #f9fafb;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option input:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.filter-option input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-text {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.option-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

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

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

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
}

.price-inputs span {
    color: #6b7280;
    font-weight: 500;
}

.price-slider {
    position: relative;
}

.price-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.filter-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hide Apply Filters button since we have auto-filtering */
#applyFilters {
    display: none;
}

/* Shop Content */
.shop-content {
    min-height: 600px;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
    color: #374151;
}

.sort-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Products Grid */
.products-container {
    position: relative;
    min-height: 400px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Enhanced Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.product-card:hover::before {
    transform: translateX(100%);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background: #ef4444;
    color: white;
}

.product-badge.new {
    background: #10b981;
    color: white;
}

.product-badge.best-seller {
    background: #f59e0b;
    color: white;
}

.product-badge.multiple-images {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    backdrop-filter: blur(5px);
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    top: auto;
    left: auto;
}

.product-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.original-price {
        font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    background: #ef4444;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.stock-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-indicator.in-stock {
    background: #10b981;
}

.stock-indicator.low-stock {
    background: #f59e0b;
}

.stock-indicator.out-of-stock {
    background: #ef4444;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

/* List View Styles */
.product-card.list-view {
    display: flex;
    height: 200px;
}

.product-card.list-view .product-image-container {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.product-card.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card.list-view .product-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

/* Recently Viewed Bar */
/* Recently Viewed Section - Separate */
.recently-viewed-section {
    padding: 2rem 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.recently-viewed-section.visible {
    display: block;
}

.recently-viewed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.recently-viewed-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.close-recently-viewed {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-recently-viewed:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.recently-viewed-products {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.recently-viewed-products::-webkit-scrollbar {
    height: 4px;
}

.recently-viewed-products::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 2px;
}

.recently-viewed-products::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.recently-viewed-product {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recently-viewed-product:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recently-viewed-product:hover {
    transform: scale(1.05);
}

.recently-viewed-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-recently-viewed {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-recently-viewed:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.search-result-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Quick View Modal Styles */
.quick-view-content {
    display: flex;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.quick-view-image {
    flex: 1;
    max-width: 400px;
}

.quick-view-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.quick-view-info {
    flex: 1;
    padding: 1rem;
}

.quick-view-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.product-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-view-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Mobile Responsive */
/* Sync Button */
.sync-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.sync-btn i {
    animation: spin 2s linear infinite;
}

/* Live Update Notification */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
}

.update-notification i {
    animation: spin 1s linear infinite;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    /* Mobile Layout */
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    /* Mobile Sidebar */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 1rem;
        background: white;
    }
    
    .shop-sidebar.open {
        transform: translateX(0);
    }
    
    .close-sidebar {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        font-size: 1.25rem;
    }
    
    /* Mobile Product Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .product-card {
        margin: 0;
        max-width: 100%;
    }
    
    /* Mobile Filter Bar */
    .sticky-filter-bar {
        top: 60px;
        padding: 0.75rem;
    }
    
    .filter-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .filter-toggles {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-toggle-btn,
    .sort-toggle-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .results-info {
        text-align: center;
        font-size: 0.875rem;
    }
    
    /* Mobile Price Inputs */
    .price-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .price-inputs input {
        max-width: 100%;
        min-width: auto;
    }
    
    .price-inputs span {
        display: none;
    }
    
    /* Mobile Quick View */
    .quick-view-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .quick-view-image {
        max-width: 100%;
        max-height: 200px;
    }
    
    .quick-view-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-view-actions .btn {
        width: 100%;
    }
    
    /* Mobile Cart Count Fix */
    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        z-index: 10;
    }
    
    /* Mobile Search Modal */
    .search-modal {
        padding: 1rem;
    }
    
    .search-results {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .search-result-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Toast Notifications */
    .toast {
        margin: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Loading States */
    .loading-skeleton {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Mobile Empty State */
    .empty-state {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .empty-state h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .empty-state p {
        font-size: 0.875rem;
        color: #6b7280;
    }
    }
    
    .sticky-filter-bar {
        top: 70px;
    }
    
    .filter-bar-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .active-filters {
        order: -1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }
    
    .recently-viewed-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .recently-viewed-products {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.list-view {
        height: auto;
        flex-direction: column;
    }
    
    .product-card.list-view .product-image-container {
        width: 100%;
        height: 200px;
    }
}