:root {
    --primary: #232f3e;      /* Amazon-like Dark Blue */
    --secondary: #febd69;    /* Amazon-like Gold */
    --accent: #ff9900;
    --bg: #eaeded;           /* Light Grey Background */
    --white: #ffffff;
    --text-dark: #131921;
    --text-light: #565959;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Amazon Ember', Arial, sans-serif; }
body { background: var(--bg); color: var(--text-dark); }

/* --- TOP NAVIGATION BAR --- */
.top-nav {
    background: var(--primary);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.8rem; font-weight: bold; color: var(--white); text-decoration: none; }
.logo span { color: var(--secondary); }

.search-container {
    flex: 1; margin: 0 20px; display: flex; height: 40px;
}
.search-container input {
    flex: 1; border: none; padding: 0 10px; font-size: 1rem;
}
.search-btn {
    background: var(--secondary); border: none; padding: 0 15px; cursor: pointer; font-size: 1.2rem;
}

.nav-links a, .nav-links button {
    color: var(--white); text-decoration: none; margin-left: 15px; background: none; border: none; cursor: pointer; font-size: 0.9rem;
}
.nav-links a:hover { color: var(--secondary); }

/* --- HERO HEADER --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    height: 400px; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-content { width: 80%; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }
.btn-shop {
    background: var(--accent); color: white; padding: 12px 30px; border-radius: 5px;
    text-decoration: none; font-weight: bold; font-size: 1.1rem; display: inline-block;
}
.btn-shop:hover { background: #e68a00; }

/* --- MAIN CONTENT --- */
.container { max-width: 1400px; margin: 20px auto; padding: 0 20px; }
.section-title { font-size: 1.5rem; margin: 30px 0 15px; padding-left: 10px; border-left: 4px solid var(--accent); }

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.product-card {
    background: var(--white); padding: 20px; border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.product-img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; }
.product-title { font-size: 1.1rem; font-weight: bold; color: var(--text-dark); margin-bottom: 5px; }
.product-price { color: #B12704; font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.add-to-cart-btn {
    background: var(--accent); color: white; border: none; padding: 8px 15px;
    border-radius: 3px; cursor: pointer; margin-top: auto; font-weight: bold;
}
.add-to-cart-btn:hover { background: #e68a00; }

/* --- FOOTER --- */
.footer {
    background: var(--primary); color: white; margin-top: 50px; padding: 40px 20px 20px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
    max-width: 1200px; margin: 0 auto;
}
.footer-col h3 { margin-bottom: 15px; font-size: 1rem; color: var(--secondary); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #ddd; text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { text-decoration: underline; color: white; }

.social-icons a {
    display: inline-block; width: 35px; height: 35px; background: #3d5161; 
    color: white; text-align: center; line-height: 35px; border-radius: 50%; margin-right: 5px;
}
.social-icons a:hover { background: var(--accent); }

.footer-bottom {
    text-align: center; border-top: 1px solid #3d5161; padding-top: 20px; margin-top: 30px; font-size: 0.8rem;
}
.footer-bottom a { color: #ddd; margin: 0 10px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .top-nav { flex-wrap: wrap; }
    .search-container { order: 3; width: 100%; margin: 10px 0 0 0; }
    .nav-links { display: flex; flex-wrap: wrap; }
}
