/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    margin: 0;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #e287e3;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    display: inline;
    padding-left: 20px;
    vertical-align: middle;
}

nav ul {
    list-style-type: none;
    display: inline;
    float: right;
    padding-right: 20px;
}

nav ul li {
    display: inline-block;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 3px;
}

.products {
    padding: 20px 0;
}

.catalog {
    padding: 20px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.product-details .product-info {
    flex: 1;
    padding: 0 20px;
}

.product-details .product-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-details .product-info p {
    font-size: 1rem;
    color: #888;
    margin-bottom: 10px;
}

.product-details .product-info .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e287e3;
}

.product-details .product-info .btn-buy {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e287e3;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.product-details .product-info .btn-buy:hover {
    background-color: #555;
}

.product-details .product-image {
    flex: 1;
    max-width: 25%;
    margin-left: 20px;
}

.product-details .product-image img {
    max-width: 100%;
    height: auto;
}

footer {
    background-color: #e287e3;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        float: none;
        text-align: center;
        padding: 10px 0;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .container {
        width: 90%;
    }

    .product-grid {
        padding: 0 10px;
    }

    .product-details {
        flex-direction: column;
    }

    .product-details .product-image {
        margin-left: 0;
        margin-top: 20px;
        max-width: 100%;
    }
}
