/* ================================================ MODERN SHOP PAGE - Ecommerce Style ================================================ */ /* Hero Banner */ .shop-hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: var(--space-3xl) 0 var(--space-2xl); color: white; text-align: center; position: relative; overflow: hidden; } .shop-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.1; } .shop-hero-content { position: relative; z-index: 1; } .shop-hero h1 { color: white; font-size: var(--font-size-4xl); font-weight: 700; margin-bottom: var(--space-sm); } .shop-hero p { color: rgba(255, 255, 255, 0.9); font-size: var(--font-size-lg); margin-bottom: 0; } /* Categories Carousel */ .categories-section { padding: var(--space-xl) 0; background: var(--bg-secondary); } .categories-scroll { display: flex; gap: var(--space-md); overflow-x: auto; scroll-behavior: smooth; padding: var(--space-sm) 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .categories-scroll::-webkit-scrollbar { display: none; } .category-chip { flex-shrink: 0; padding: var(--space-sm) var(--space-lg); background: white; border: 2px solid var(--border-color); border-radius: var(--radius-full); font-weight: 500; color: var(--text-primary); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; } .category-chip:hover, .category-chip.active { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); } /* Shop Layout */ .shop-container { padding: var(--space-2xl) 0; } .shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-xl); } /* Sidebar Filters */ .shop-sidebar { position: sticky; top: 100px; height: fit-content; background: white; border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); } .filter-section { margin-bottom: var(--space-xl); } .filter-section:last-child { margin-bottom: 0; } .filter-title { font-size: var(--font-size-lg); font-weight: 600; margin-bottom: var(--space-md); color: var(--text-primary); } .filter-group { display: flex; flex-direction: column; gap: var(--space-sm); } .filter-option { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; padding: var(--space-xs); border-radius: var(--radius-sm); transition: background var(--transition-fast); } .filter-option:hover { background: var(--bg-secondary); } .filter-option input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); } .filter-option label { flex: 1; cursor: pointer; font-size: var(--font-size-sm); color: var(--text-secondary); } .filter-count { font-size: var(--font-size-xs); color: var(--text-muted); } /* Price Range Slider */ .price-range { padding: var(--space-md) 0; } .price-inputs { display: flex; gap: var(--space-sm); margin-top: var(--space-md); } .price-input { flex: 1; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: var(--font-size-sm); } /* Shop Main Content */ .shop-main { min-width: 0; } /* Toolbar */ .shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xl); padding: var(--space-md) var(--space-lg); background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); flex-wrap: wrap; gap: var(--space-md); } .shop-results { font-size: var(--font-size-sm); color: var(--text-secondary); } .shop-results strong { color: var(--text-primary); font-weight: 600; } .shop-controls { display: flex; align-items: center; gap: var(--space-md); } .view-toggle { display: flex; gap: var(--space-xs); } .view-btn { padding: var(--space-xs) var(--space-sm); background: transparent; border: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); transition: all var(--transition-fast); } .view-btn.active { background: var(--primary); color: white; } .sort-select { padding: var(--space-xs) var(--space-lg) var(--space-xs) var(--space-md); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: var(--font-size-sm); cursor: pointer; background: white; } /* Products Grid */ .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); } /* Product Card */ .product-card { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition-base); position: relative; display: flex; flex-direction: column; } .product-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-8px); } .product-image-wrapper { position: relative; overflow: hidden; background: var(--bg-secondary); aspect-ratio: 1; } .product-image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .product-card:hover .product-image { transform: scale(1.1); } .product-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); z-index: 2; } .product-badge { padding: var(--space-xs) var(--space-sm); font-size: var(--font-size-xs); font-weight: 700; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.5px; box-shadow: var(--shadow-md); } .badge-new { background: var(--secondary); color: white; } .badge-sale { background: var(--error); color: white; } .badge-bestseller { background: var(--accent); color: var(--text-primary); } .product-actions { position: absolute; top: var(--space-sm); right: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); opacity: 0; transform: translateX(10px); transition: all var(--transition-base); } .product-card:hover .product-actions { opacity: 1; transform: translateX(0); } .product-action-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: white; border: none; border-radius: var(--radius-full); cursor: pointer; box-shadow: var(--shadow-md); transition: all var(--transition-fast); color: var(--text-primary); } .product-action-btn:hover { background: var(--primary); color: white; transform: scale(1.1); } .product-action-btn.active { background: var(--error); color: white; } .product-info { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; } .product-category { font-size: var(--font-size-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-xs); } .product-title { font-size: var(--font-size-base); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-xs); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .product-rating { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); } .stars { display: flex; gap: 2px; color: var(--accent); } .rating-count { font-size: var(--font-size-xs); color: var(--text-muted); } .product-price { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); } .price-current { font-size: var(--font-size-xl); font-weight: 700; color: var(--primary); } .price-original { font-size: var(--font-size-base); color: var(--text-muted); text-decoration: line-through; } .price-discount { padding: 2px var(--space-xs); background: var(--error); color: white; font-size: var(--font-size-xs); font-weight: 700; border-radius: var(--radius-sm); } .product-footer { display: flex; gap: var(--space-xs); } .add-to-cart-btn { flex: 1; padding: var(--space-sm); background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all var(--transition-fast); } .add-to-cart-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); } .quick-view-btn { padding: var(--space-sm); background: var(--bg-secondary); color: var(--text-primary); border: none; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); } .quick-view-btn:hover { background: var(--text-primary); color: white; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: var(--space-sm); margin-top: var(--space-2xl); } .page-btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; transition: all var(--transition-fast); } .page-btn:hover { background: var(--primary); color: white; border-color: var(--primary); } .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); } /* Mobile Filter Toggle */ .mobile-filter-btn { display: none; width: 100%; padding: var(--space-md); background: var(--primary); color: white; border: none; border-radius: var(--radius-lg); font-weight: 600; cursor: pointer; margin-bottom: var(--space-lg); } /* Responsive */ @media (max-width: 1024px) { .shop-layout { grid-template-columns: 1fr; } .shop-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 90%; transform: translateX(-100%); transition: transform var(--transition-base); z-index: var(--z-modal); overflow-y: auto; } .shop-sidebar.active { transform: translateX(0); } .mobile-filter-btn { display: block; } .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } } @media (max-width: 640px) { .shop-hero { padding: var(--space-2xl) 0; } .shop-hero h1 { font-size: var(--font-size-2xl); } .shop-toolbar { flex-direction: column; align-items: stretch; } .shop-controls { justify-content: space-between; } .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } .product-info { padding: var(--space-sm); } .product-title { font-size: var(--font-size-sm); } .price-current { font-size: var(--font-size-lg); } }