* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; } header { background-color: #ffffff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); position: fixed; width: 100%; top: 0; z-index: 1000; } nav { max-width: 1200px; margin: 0 auto; padding: 1rem; display: flex; justify-content: space-between; justify-content: space-between; align-items: center; } .logo { font-size: 1.5rem; font-weight: bold; color: #333; } .nav-links { display: flex; gap: 2rem; } .nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; } .nav-links a:hover { color: #007BFF; } /* Hero Section */ .hero { height: 500px; background-color: #f5f5f5; display: flex; align-items: center; justify-content: center; margin-top: 60px; } .hero-content { text-align: center; padding: 2rem; } .hero h1 { font-size: 3rem; margin-bottom: 1rem; color: #333; } .hero p { font-size: 1.2rem; color: #666; margin-bottom: 2rem; } .cta-button { padding: 1rem 2rem; background-color: #333; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s; } .cta-button:hover { background-color: #007BFF; } .products { max-width: 1200px; margin: 4rem auto; padding: 0 1rem; } .products h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; color: #333; } .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; } .product-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .product-image { width: 100%; height: 200px; background-color: #f5f5f5; display: flex; align-items: center; justify-content: center; color: #999; } .product-info { padding: 1rem; } .product-info h3 { margin-bottom: 0.5rem; color: #333; } .price { font-weight: bold; color: #666; margin-bottom: 1rem; } .add-to-cart { width: 100%; padding: 0.8rem; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s ease-in-out; } .add-to-cart:hover { background-color: #007BFF; transform: translateY(-2px); animation: smooth-glow 2s infinite; } @keyframes smooth-glow { 0% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.2), 0 0 10px rgba(0, 123, 255, 0.1); } 50% { box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), 0 0 20px rgba(0, 123, 255, 0.2); } 100% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.2), 0 0 10px rgba(0, 123, 255, 0.1); } } .add-to-cart:disabled { background-color: #ccc; cursor: not-allowed; animation: none; } .add-to-cart:disabled:hover { transform: none; box-shadow: none; } footer { background-color: #333; color: white; padding: 3rem 1rem; } .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; } .footer-section h3 { margin-bottom: 1rem; } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 0.5rem; } .footer-section a { color: white; text-decoration: none; transition: color 0.3s; } .footer-section a:hover { color: #007BFF; } @media (max-width: 768px) { .nav-links { display: none; } .hero h1 { font-size: 2rem; } .hero p { font-size: 1rem; } } .out-of-stock { opacity: 0.7; } .stock-status { font-size: 0.9rem; margin-bottom: 0.5rem; } .in-stock { color: #28a745; } .low-stock { color: #ffc107; } .out-of-stock { color: #dc3545; }