/* CSS Variables for consistent theming */ :root { --primary-color: #8B4513; --secondary-color: #D2691E; --accent-color: #CD853F; --text-dark: #2C1810; --text-light: #666; --background-light: #FAF8F5; --white: #ffffff; --border-color: #E5E5E5; --shadow: rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } /* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--background-light); } h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; margin-bottom: 1rem; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header Styles */ .header { background: var(--white); box-shadow: 0 2px 10px var(--shadow); position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); } .header .container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 20px; } .nav-brand h1 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 0; } .nav-brand .tagline { color: var(--text-light); font-size: 0.85rem; font-style: italic; margin: 0; } .nav-menu ul { display: flex; list-style: none; gap: 2rem; } .nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: var(--transition); position: relative; } .nav-menu a:hover { color: var(--primary-color); } .nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); } .nav-menu a:hover::after { width: 100%; } .cart-btn { background: var(--primary-color); color: var(--white); border: none; padding: 0.75rem 1rem; border-radius: 25px; cursor: pointer; position: relative; transition: var(--transition); font-size: 1rem; } .cart-btn:hover { background: var(--secondary-color); transform: translateY(-2px); } .cart-count { position: absolute; top: -8px; right: -8px; background: var(--secondary-color); color: var(--white); border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; font-weight: bold; } /* Hero Section */ .hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white); text-align: center; padding: 150px 0 100px; margin-top: 80px; } .hero-content h2 { font-size: 3rem; margin-bottom: 1rem; animation: fadeInUp 1s ease; } .hero-content p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; animation: fadeInUp 1s ease 0.2s both; } .cta-btn { background: var(--white); color: var(--primary-color); border: none; padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: var(--transition); animation: fadeInUp 1s ease 0.4s both; } .cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } /* Filters Section */ .filters { background: var(--white); padding: 2rem 0; border-bottom: 1px solid var(--border-color); } .filter-controls { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: space-between; } .search-box { display: flex; background: var(--background-light); border-radius: 25px; overflow: hidden; min-width: 250px; } .search-box input { border: none; padding: 0.75rem 1rem; background: transparent; flex: 1; outline: none; font-size: 1rem; } .search-box button { background: var(--primary-color); color: var(--white); border: none; padding: 0.75rem 1rem; cursor: pointer; transition: var(--transition); } .search-box button:hover { background: var(--secondary-color); } .filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; } .filter-btn { background: transparent; border: 2px solid var(--border-color); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: var(--transition); color: var(--text-dark); font-weight: 500; } .filter-btn:hover, .filter-btn.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); } .sort-controls select { padding: 0.75rem 1rem; border: 2px solid var(--border-color); border-radius: 20px; background: var(--white); font-size: 1rem; cursor: pointer; outline: none; } /* Products Section */ .products { padding: 4rem 0; } .section-title { text-align: center; font-size: 2.5rem; color: var(--primary-color); margin-bottom: 3rem; } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .product-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px var(--shadow); transition: var(--transition); cursor: pointer; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); } .product-image { width: 100%; height: 250px; background: var(--background-light); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--accent-color); position: relative; overflow: hidden; } .product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .product-card:hover .product-image img { transform: scale(1.05); } .featured-badge { position: absolute; top: 10px; right: 10px; background: var(--secondary-color); color: var(--white); padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.8rem; font-weight: 600; } .product-info { padding: 1.5rem; } .product-name { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 0.5rem; } .product-description { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.5; } .product-details { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); } .product-stock { font-size: 0.85rem; color: var(--text-light); } .stock-low { color: #e74c3c; font-weight: 600; } .product-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-light); } .add-to-cart { width: 100%; background: var(--primary-color); color: var(--white); border: none; padding: 0.75rem; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); } .add-to-cart:hover { background: var(--secondary-color); } .add-to-cart:disabled { background: var(--text-light); cursor: not-allowed; } /* Loading and No Products */ .loading, .no-products { text-align: center; padding: 3rem; color: var(--text-light); font-size: 1.2rem; } .loading i { font-size: 2rem; margin-bottom: 1rem; display: block; } /* Modal Styles */ .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); animation: fadeIn 0.3s ease; } .modal-content { background-color: var(--white); margin: 5% auto; padding: 0; border-radius: 15px; width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; animation: slideIn 0.3s ease; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--border-color); } .modal-header h3 { margin: 0; color: var(--primary-color); } .close { color: var(--text-light); font-size: 28px; font-weight: bold; cursor: pointer; transition: var(--transition); } .close:hover { color: var(--primary-color); } /* Cart Styles */ .cart-items { padding: 1.5rem; max-height: 400px; overflow-y: auto; } .cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); } .cart-item:last-child { border-bottom: none; } .cart-item-image { width: 60px; height: 60px; background: var(--background-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-color); font-size: 1.5rem; } .cart-item-details { flex: 1; } .cart-item-name { font-weight: 600; margin-bottom: 0.25rem; } .cart-item-price { color: var(--primary-color); font-weight: 500; } .quantity-controls { display: flex; align-items: center; gap: 0.5rem; } .quantity-btn { background: var(--border-color); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); } .quantity-btn:hover { background: var(--primary-color); color: var(--white); } .quantity { min-width: 30px; text-align: center; font-weight: 600; } .remove-item { background: #e74c3c; color: var(--white); border: none; padding: 0.5rem; border-radius: 5px; cursor: pointer; transition: var(--transition); } .remove-item:hover { background: #c0392b; } .cart-footer { padding: 1.5rem; border-top: 1px solid var(--border-color); } .cart-total { font-size: 1.3rem; margin-bottom: 1rem; text-align: center; } .cart-actions { display: flex; gap: 1rem; } /* Checkout Modal Styles */ .checkout-modal { max-width: 900px; max-height: 90vh; } .checkout-content { padding: 1.5rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; } .checkout-summary { background: var(--background-light); padding: 1.5rem; border-radius: 10px; height: fit-content; } .checkout-summary h4 { margin-bottom: 1rem; color: var(--primary-color); } .checkout-items { margin-bottom: 1rem; } .checkout-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; } .checkout-item:last-child { border-bottom: none; } .checkout-item-details { flex: 1; } .checkout-item-name { font-weight: 600; margin-bottom: 0.25rem; } .checkout-item-meta { color: var(--text-light); font-size: 0.8rem; } .checkout-item-price { font-weight: 600; color: var(--primary-color); } .checkout-total { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); text-align: center; padding-top: 1rem; border-top: 2px solid var(--primary-color); } .checkout-form-section h4 { margin-bottom: 1.5rem; color: var(--primary-color); border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 2px solid var(--border-color); border-radius: 8px; font-size: 1rem; outline: none; transition: var(--transition); font-family: inherit; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1); } .form-group textarea { resize: vertical; min-height: 80px; } .checkbox-group { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; } .checkbox-group input[type="checkbox"] { width: auto; margin: 0; } .checkbox-group label { margin: 0; font-weight: 500; } .payment-info { background: var(--background-light); padding: 1.5rem; border-radius: 10px; margin: 1.5rem 0; } .payment-info h4 { margin-bottom: 1rem; color: var(--primary-color); } .payment-notice { display: flex; align-items: flex-start; gap: 0.75rem; background: var(--white); padding: 1rem; border-radius: 8px; border-left: 4px solid var(--primary-color); margin-bottom: 1rem; } .payment-notice i { color: var(--primary-color); font-size: 1.2rem; margin-top: 0.1rem; } .payment-notice p { margin: 0; color: var(--text-dark); line-height: 1.5; } .checkout-actions { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); } .btn-primary, .btn-secondary { flex: 1; padding: 0.75rem; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); } .btn-primary { background: var(--primary-color); color: var(--white); } .btn-primary:hover { background: var(--secondary-color); } .btn-secondary { background: var(--border-color); color: var(--text-dark); } .btn-secondary:hover { background: var(--text-light); color: var(--white); } /* Product Details Modal */ .product-details { max-width: 800px; } .product-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; } .product-details-image { width: 100%; height: 300px; background: var(--background-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: var(--accent-color); } .product-details-info h3 { font-size: 1.8rem; margin-bottom: 1rem; } .product-details-price { font-size: 2rem; color: var(--primary-color); font-weight: 700; margin-bottom: 1rem; } .product-specs { margin: 1.5rem 0; } .product-specs h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-dark); } .specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.9rem; } .spec-item { display: flex; justify-content: space-between; padding: 0.25rem 0; } /* About Section */ .about { background: var(--white); padding: 4rem 0; } .about-content { max-width: 800px; margin: 0 auto; text-align: center; } .about-text p { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-light); line-height: 1.8; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; } .feature { text-align: center; padding: 1.5rem; } .feature i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; } .feature h4 { margin-bottom: 0.5rem; color: var(--text-dark); } .feature p { color: var(--text-light); font-size: 0.95rem; } /* Contact Section */ .contact { background: var(--background-light); padding: 4rem 0; } .contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; } .contact-info { display: flex; flex-direction: column; gap: 2rem; } .contact-item { display: flex; align-items: flex-start; gap: 1rem; } .contact-item i { font-size: 1.5rem; color: var(--primary-color); margin-top: 0.25rem; } .contact-item h4 { margin-bottom: 0.5rem; color: var(--text-dark); } .contact-item p { color: var(--text-light); line-height: 1.6; } .contact-form { background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px var(--shadow); } .contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem; margin-bottom: 1rem; border: 2px solid var(--border-color); border-radius: 10px; font-size: 1rem; outline: none; transition: var(--transition); } .contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); } .contact-form textarea { resize: vertical; min-height: 120px; } /* Footer */ .footer { background: var(--text-dark); color: var(--white); padding: 3rem 0 1rem; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .footer-section h4 { color: var(--secondary-color); margin-bottom: 1rem; } .footer-section p { color: #ccc; line-height: 1.6; margin-bottom: 1rem; } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 0.5rem; } .footer-section ul li a { color: #ccc; text-decoration: none; transition: var(--transition); } .footer-section ul li a:hover { color: var(--secondary-color); } .social-links { display: flex; gap: 1rem; margin-top: 1rem; } .social-links a { color: #ccc; font-size: 1.5rem; transition: var(--transition); } .social-links a:hover { color: var(--secondary-color); transform: translateY(-2px); } .newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; } .newsletter-form input { flex: 1; padding: 0.75rem; border: none; border-radius: 5px; outline: none; } .newsletter-form button { background: var(--primary-color); color: var(--white); border: none; padding: 0.75rem 1rem; border-radius: 5px; cursor: pointer; transition: var(--transition); } .newsletter-form button:hover { background: var(--secondary-color); } .footer-bottom { border-top: 1px solid #444; padding-top: 1rem; text-align: center; color: #999; } /* Animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* Responsive Design */ @media (max-width: 768px) { .header .container { flex-direction: column; gap: 1rem; } .nav-menu ul { gap: 1rem; } .hero-content h2 { font-size: 2rem; } .hero-content p { font-size: 1rem; } .filter-controls { flex-direction: column; align-items: stretch; } .filter-buttons { justify-content: center; } .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; } .product-details-grid { grid-template-columns: 1fr; padding: 1rem; } .contact-content { grid-template-columns: 1fr; gap: 2rem; } .footer-content { grid-template-columns: 1fr; text-align: center; } .cart-actions { flex-direction: column; } .newsletter-form { flex-direction: column; } /* Checkout responsive styles */ .checkout-content { grid-template-columns: 1fr; gap: 1.5rem; } .form-row { grid-template-columns: 1fr; } .checkout-actions { flex-direction: column; } } @media (max-width: 480px) { .container { padding: 0 15px; } .hero { padding: 120px 0 80px; } .section-title { font-size: 2rem; } .products-grid { grid-template-columns: 1fr; } .modal-content { width: 95%; margin: 10% auto; } }