/* Base Styles */ body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; background: #f9f9f9; padding-top: 120px; /* Space for fixed navbar */ } .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } /* Hero Banner */ .hero-banner { margin: 1rem 0; } .hero-banner img { width: 100%; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* Sections */ section { margin: 2rem 0; } h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #2e7d32; } /* Categories */ .categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; } .category-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #333; background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s; } .category-card:hover { transform: translateY(-5px); } .category-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; margin-bottom: 0.5rem; } /* Products */ .products-grid, .promotions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; } .product-card, .promotion-card { background: white; border-radius: 8px; padding: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: relative; } .promotion-card .discount-badge { position: absolute; top: 10px; right: 10px; background: #ff5722; color: white; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: bold; } .product-card img, .promotion-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; margin-bottom: 0.5rem; } .product-card h3, .promotion-card h3 { margin: 0.5rem 0; font-size: 1rem; } .price { font-weight: bold; margin: 0.5rem 0; color: #2e7d32; } .old-price { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 0.5rem; } .new-price { color: #ff5722; } .add-to-cart { width: 100%; padding: 0.5rem; background: #2e7d32; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; } .add-to-cart:hover { background: #1b5e20; } /* Wishlist button */ .wishlist-btn { position: absolute; top: 10px; left: 10px; background: white; border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 1.2rem; } .wishlist-btn.active { color: red; } /* Star rating */ .star-rating { display: inline-block; color: #ddd; cursor: pointer; font-size: 1.2rem; } .star-rating.active { color: #ffc107; } /* Cart counter */ .cart-counter { position: absolute; top: -5px; right: -5px; background: #ff5722; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; display: none; } /* Benefits */ .benefits-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .benefit-card { text-align: center; padding: 1rem; } .benefit-card img { width: 60px; height: 60px; margin-bottom: 0.5rem; } .benefit-card h3 { margin: 0.5rem 0; font-size: 1.1rem; color: #2e7d32; } .benefit-card p { margin: 0; font-size: 0.9rem; color: #666; } /* Cart page styles */ .cart-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; } .cart-item { display: flex; gap: 1rem; background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .cart-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 4px; } .item-details { flex-grow: 1; } .remove-item { background: none; border: none; color: #f44336; cursor: pointer; padding: 0; margin-top: 0.5rem; } .cart-summary { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .summary-row { display: flex; justify-content: space-between; margin: 1rem 0; } .summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #eee; padding-top: 1rem; } .checkout-btn { width: 100%; padding: 1rem; background: #2e7d32; color: white; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background 0.2s; } .checkout-btn:hover { background: #1b5e20; } /* Responsive */ @media (max-width: 768px) { body { padding-top: 160px; } .products-grid, .promotions-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }