
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f0f4f8; color: #333; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; }

/* Header */
header { background-color: #0d47a1; color: white; padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.logo a { font-size: 2rem; font-weight: bold; letter-spacing: 2px; color: white; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul li a { color: white; font-weight: 500; font-size: 1.1rem; transition: color 0.3s; }
nav ul li a:hover { color: #bbdefb; }

/* Hero */
.hero { background: linear-gradient(135deg, #1565c0, #1976d2); color: white; text-align: center; padding: 6rem 2rem; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; color: #e3f2fd; }

/* Grid */
.section-title { text-align: center; color: #0d47a1; padding: 3rem 0 1rem; font-size: 2.5rem; }
.container { padding: 2rem 5%; max-width: 1400px; margin: 0 auto; flex: 1; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

/* Cards */
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; border: 1px solid #e3f2fd; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(13, 71, 161, 0.15); }
.card-img { height: 250px; background-color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #f0f4f8; padding: 1rem; }
.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .card-img img { transform: scale(1.05); }
.card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { color: #0d47a1; margin-bottom: 0.5rem; font-size: 1.3rem; }
.card-content p { color: #666; font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.5; }
.card-actions { display: flex; gap: 1rem; }

/* Buttons */
.btn-view { flex: 1; text-align: center; background-color: #f0f4f8; color: #1976d2; padding: 0.8rem; border-radius: 6px; font-weight: bold; transition: all 0.3s; border: 1px solid #1976d2; }
.btn-view:hover { background-color: #1976d2; color: white; }
.btn-buy { flex: 1; text-align: center; background-color: #25D366; color: white; padding: 0.8rem; border-radius: 6px; font-weight: bold; transition: all 0.3s; box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2); display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.btn-buy:hover { background-color: #128C7E; transform: translateY(-2px); }

/* Single Product Page */
.product-detail { display: flex; flex-wrap: wrap; gap: 4rem; padding: 5rem 5%; max-width: 1200px; margin: 0 auto; min-height: 70vh; align-items: center; }
.product-detail-img { flex: 1; min-width: 300px; background: white; padding: 3rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; border: 1px solid #e3f2fd; }
.product-detail-img img { max-width: 100%; max-height: 500px; object-fit: contain; }
.product-detail-info { flex: 1; min-width: 300px; }
.product-detail-info h1 { color: #0d47a1; font-size: 3rem; margin-bottom: 1.5rem; }
.product-detail-info p { font-size: 1.2rem; line-height: 1.8; color: #555; margin-bottom: 2.5rem; }
.product-detail-info .btn-buy { display: inline-flex; padding: 1rem 3rem; font-size: 1.2rem; width: auto; }

/* Footer */
footer { background-color: #0d47a1; color: white; text-align: center; padding: 2rem 0; margin-top: auto; }
