* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #6366f1; --primary-dark: #4f46e5; --primary-light: #818cf8; --secondary-color: #10b981; --secondary-dark: #059669; --accent-color: #f59e0b; --text-color: #1f2937; --text-light: #6b7280; --bg-color: #f9fafb; --card-bg: #ffffff; --border-color: #e5e7eb; --border-light: #f3f4f6; --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --gradient-primary: var(--primary-color); --gradient-success: var(--secondary-color); } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Oxygen, Ubuntu, Cantarell, sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; } @media (max-width: 768px) { .container { padding: 0 16px; } } header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-color); padding: 0; box-shadow: var(--shadow-md); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); } .navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; max-width: 1200px; margin: 0 auto; width: 100%; } .navbar-brand { display: flex; align-items: center; text-decoration: none; color: var(--text-color); } .navbar-brand h1 { font-size: 1.75rem; font-weight: 800; margin: 0; color: var(--primary-color); letter-spacing: -0.02em; } .navbar-actions { display: flex; align-items: center; gap: 1rem; } .cart-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; background: var(--primary-color); color: white; text-decoration: none; border-radius: 10px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; cursor: pointer; box-shadow: var(--shadow-md); } .cart-button:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); } .cart-button:active { transform: translateY(0); } .cart-badge { position: absolute; top: -8px; right: -8px; background: #ef4444; color: white; border-radius: 50%; width: 22px; height: 22px; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2.5px solid white; box-shadow: var(--shadow-md); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } .subtitle { font-size: 0.9rem; opacity: 0.7; margin: 0; display: none; } main { flex: 1; padding: 3rem 0; min-height: calc(100vh - 200px); animation: fadeIn 0.5s ease-out; } .page-header { margin-bottom: 2.5rem; } .page-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--text-color); margin-bottom: 0.5rem; letter-spacing: -0.02em; } .page-header p { color: var(--text-light); font-size: 1.1rem; font-weight: 400; } .loading, .error { text-align: center; padding: 2rem; font-size: 1.1rem; } .error { color: #e74c3c; background: #fee; border: 1px solid #e74c3c; border-radius: 8px; margin-bottom: 2rem; } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; animation: fadeInUp 0.6s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .product-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: 1px solid var(--border-color); position: relative; } .product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; } .product-card:hover { transform: none; box-shadow: var(--shadow-hover); border-color: var(--primary-light); } .product-card:hover::before { transform: none; } .product-image { width: 100%; height: 160px; object-fit: cover; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; transition: transform 0.5s ease; } .product-card:hover .product-image { /* transform: scale(1.05); Removed scale effect */ } .product-info { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; } .product-name { font-size: 1.1rem; font-weight: 700; color: var(--text-color); line-height: 1.4; min-height: auto; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.01em; } .product-description { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: unset; margin-bottom: 0; } .product-price { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); margin: 0.25rem 0; letter-spacing: -0.02em; } .product-stock { font-size: 0.85rem; color: #666; margin: 0; } .product-stock.low { color: #e74c3c; } .product-stock.out { color: #e74c3c; font-weight: 600; } .btn { display: inline-block; padding: 0.6rem 1rem; background: var(--primary-color); color: white; text-decoration: none; border-radius: 10px; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .btn:hover::before { width: 300px; height: 300px; } .btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); } .btn:active { transform: translateY(0); } .btn:disabled { background: #d1d5db; cursor: not-allowed; transform: none; box-shadow: none; } .btn-success { background: var(--secondary-color); } .btn-success:hover { background: var(--secondary-dark); } /* Modal Styles */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); animation: fadeIn 0.3s; } .modal-content { background-color: var(--card-bg); margin: 5% auto; padding: 2.5rem; border-radius: 20px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .close { color: var(--text-light); float: right; font-size: 28px; font-weight: bold; cursor: pointer; position: absolute; right: 1.25rem; top: 1.25rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.2s ease; background: var(--border-light); } .close:hover { color: var(--text-color); background: var(--border-color); transform: rotate(90deg); } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-color); } .form-group input, .form-group select { width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--border-color); border-radius: 10px; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: var(--card-bg); color: var(--text-color); } .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); transform: translateY(-1px); } .form-group input:hover, .form-group select:hover { border-color: var(--primary-light); } .form-group small { display: block; margin-top: 0.25rem; color: #666; font-size: 0.85rem; } .contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; } .contact-option { padding: 1rem; border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-align: center; } .contact-option:hover { border-color: var(--primary-color); background: #f0f7ff; } .contact-option.selected { border-color: var(--primary-color); background: #e8f4ff; } .contact-option input[type="radio"] { display: none; } footer { background: #f8f9fa; color: #666; text-align: center; padding: 2rem 0; margin-top: auto; border-top: 1px solid var(--border-color); font-size: 0.9rem; } /* Notification System */ .notification-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: 400px; } .notification { background: var(--card-bg); border-radius: 8px; padding: 1rem 1.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); display: flex; align-items: center; gap: 1rem; animation: slideInRight 0.3s ease-out; border-left: 4px solid; min-width: 300px; } .notification.success { border-left-color: var(--secondary-color); } .notification.error { border-left-color: #e74c3c; } .notification.warning { border-left-color: #f39c12; } .notification.info { border-left-color: var(--primary-color); } .notification-content { flex: 1; } .notification-title { font-weight: 600; margin-bottom: 0.25rem; color: var(--text-color); } .notification-message { color: #666; font-size: 0.9rem; } .notification-close { background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; line-height: 1; transition: color 0.2s; } .notification-close:hover { color: var(--text-color); } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Confirmation Dialog */ .confirm-dialog-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10001; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s; } .confirm-dialog { background: var(--card-bg); border-radius: 12px; padding: 2rem; max-width: 400px; width: 90%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); animation: slideDown 0.3s; } .confirm-dialog-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-color); } .confirm-dialog-message { color: #666; margin-bottom: 1.5rem; line-height: 1.6; } .confirm-dialog-actions { display: flex; gap: 1rem; justify-content: flex-end; } .confirm-dialog-actions button { padding: 0.75rem 1.5rem; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: all 0.2s; font-weight: 500; } .confirm-dialog-actions .btn-cancel { background: #f0f0f0; color: var(--text-color); } .confirm-dialog-actions .btn-cancel:hover { background: #e0e0e0; } .confirm-dialog-actions .btn-confirm { background: var(--primary-color); color: white; } .confirm-dialog-actions .btn-confirm:hover { background: var(--primary-dark); } @media (max-width: 768px) { .products-grid { grid-template-columns: 1fr; gap: 1.5rem; } .contact-options { grid-template-columns: 1fr; } .navbar { padding: 1rem; flex-wrap: wrap; } .navbar-brand h1 { font-size: 1.5rem; } .navbar-actions { flex-wrap: wrap; gap: 0.5rem; } .cart-button { padding: 0.6rem; font-size: 0.9rem; } .page-header h2 { font-size: 1.75rem; } main { padding: 2rem 0; } .notification-container { right: 10px; bottom: 10px; max-width: calc(100% - 20px); } .notification { min-width: auto; padding: 0.75rem 1rem; } .modal-content { width: 95%; margin: 10% auto; padding: 1.5rem; max-height: 85vh; } .product-card { margin: 0; } .product-info { padding: 1rem; } .product-name { font-size: 1.1rem; min-height: auto; } .product-price { font-size: 1.5rem; } }