body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #eef1f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #9e2a83;
    color: white;
    width: 100%;
    max-width: 600px;
    padding: 15px 0;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

main {
    width: 100%;
    max-width: 600px;
}

.card {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h2 {
    color: #2a6d9e;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Стилі для списку */
.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px dotted #eee;
    text-align: left;
}

.product-item:last-child {
    border-bottom: none;
}

.product-details {
    flex-grow: 1;
}

.product-name {
    font-weight: bold;
    font-size: 1.1em;
}

.not-purchased {
    background-color: #ffebeb; /* Світло-червоний для некуплених */
}

.purchased {
    background-color: #ebfff0; /* Світло-зелений для куплених */
    opacity: 0.7;
    text-decoration: line-through;
}

.status {
    width: 120px;
    text-align: right;
    font-size: 0.9em;
}

/* Стилі для форми покупки */
.purchase-section input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 60%;
}

.purchase-section button {
    padding: 8px 15px;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.purchase-section button:hover {
    background-color: #e67e22;
}