/* Container styling */
.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

/* Header styling */
.heading {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

/* Input styling */
.input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#barcode_input {
    width: 100%;
    max-width: 350px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#barcode_input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Product details styling */
.product-details {
    margin-top: 30px;
    text-align: center;
}

.product-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.product-price {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.product-image {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Error message styling */
.error-message {
    text-align: center;
    color: red;
    font-size: 16px;
    margin-top: 20px;
}

/* Media query for responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .heading {
        font-size: 24px;
    }

    #barcode_input {
        max-width: 100%;
    }

    .product-name {
        font-size: 22px;
    }

    .product-price {
        font-size: 16px;
    }
}
