/* global style */
body {
    font-family: Arial, sans-serif;
    margin: 0;
}

h1 {
    color: #4caf50;
}

.vertical-center {
    align-items: center;
}

.vertical-baseline {
    align-items: baseline;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error_message {
    color: red;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12pt;
}

.button_link, .button_submit {
    display: block;
    width: 100%;
    font-size: 12pt;
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button_submit {
    background-color: #007bff;
}

.button_submit:hover {
    background-color: #0056b3;
}

.button_link:hover {
    background-color: #45a049;
}

.container {
    max-width: 400px;
    padding: 16px;
}

.sticky-top {
    position: sticky;
    top: 0;
    max-width: 400px;
    z-index: 10;
}

.login-form {
    padding: 50px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 24px;
}

.nav_btn_group {
    width: 100%;
    max-width: 250px;
    margin-top: 36px;
}

/* announcements style */
.announcements-section {
    padding: 0 10px 10px;
    background-color: #f9f9f9;
}

.announcement-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
}

.announcement-item .date {
    color: #555;
}

.announcement-item .message {
    color: #333;
}

/* product style */
.product-list,
.cart-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
}


.product-item,
.cart-item {
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    transition: transform 0.3s ease;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-bottom: 2px solid #ddd;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 4px;

}

.product-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 1.2em;
    color: #555;
}

.product-details-mini * {
    margin: 5px 0;
}

.product-name {
    margin: 0;
    font-weight: bold;
}

.product-price {
    font-weight: bold;
    font-size: 1.1em;
    color: #e74c3c;
}

/** cart style */
.confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-bottom: 2px solid #555;
}

.total-amount {
    font-weight: bold;
    font-size: 1.5em;
    color: #e60000;
}

.confirm-btn {
    width: 150px;
}

.cart-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    background-color: white;
}

.cart-item .product-image {
    width: 120px;
    display: flex;
    align-items: center;
    border: none;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-dropdown {
    padding: 8px;
    font-size: 12px;
    border-radius: 16px;
    border: 1px solid #ccc;
}

.remove-cart-btn {
    background: none;
    font-size: 12px;
    color: #999;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 16px;
}

.remove-cart-btn:hover {
    color: #e00;
    background-color: #fdd;
}

/* history style */
.purchase-item {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.purchase-item h3 {
    margin-bottom: 5px;
}

.purchase-item .success_flag {
    color: #4caf50;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}