body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff8e8; /* Żółte tło */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

/* Pasek nawigacji */
.navbar {
    width: 100%;
    background-color: #585858;
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Wyśrodkowanie poziome */
    align-items: center;     /* Wyśrodkowanie pionowe */
    box-sizing: border-box;
}

.back-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.back-link:hover {
    color: #00a3e0;
}

.product-card {
    width: 80%;
    max-width: 1000px;
    margin-top: 40px;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    border-radius: 40px;
    padding: 40px;
    color: white;
    flex-wrap: wrap;
}

.product-image img {
    border: 4px solid black;
    border-radius: 20px;
    width: 250px;
    height: 180px;
    object-fit: contain; /* dopasowuje całe zdjęcie, nie przycina */
    background-color: #fff8e8;
    display: block;
}

.product-info {
    flex: 1;
    text-align: center;
}

.product-name {
    font-size: 2rem;
    margin: 10px 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.order-btn {
    background-color: #00a3e0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background-color: #008cc0;
}

.product-description {
    background-color: #000;
    color: white;
    border-radius: 50px;
    padding: 40px;
    margin-top: 30px;
}

.product-description h2 {
    margin-top: 0;
}

.product-description p {
    line-height: 1.6;
}

/* Responsywność */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        text-align: center;
    }

    .product-image img {
        margin-bottom: 20px;
    }

    .product-info {
        width: 100%;
    }

    .product-card {
        width: 95%;
    }
}
