/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none; /* For button elements */
    cursor: pointer; /* For button elements */
}

.btn:hover {
    background: #0056b3;
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #007bff;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/id/1043/1600/600') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.product-card .price {
    font-size: 1.3rem;
    color: #007bff;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    padding: 0 15px;
    height: 60px; /* Fixed height for description */
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .btn-detail {
    background: #28a745;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.product-card .btn-detail:hover {
    background: #218838;
}

/* About Section */
.about-section, .contact-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.about-section h2, .contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-section p, .contact-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    color: #555;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: center;
    width: 100%;
    max-width: 200px;
}

.contact-section a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .products-section h2, .about-section h2, .contact-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .product-card {
        margin: 0 10px; /* Add some side margin for single column */
    }
}