
/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

#pos-system {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Search Bar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#search-product {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Product Grid */
#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.product-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.product-details {
    margin-top: 10px;
}

.product-name {
    font-weight: bold;
    font-size: 14px;
    margin: 5px 0;
}

.product-price {
    color: #007bff;
    font-size: 16px;
}

/* Cart Section */
#cart-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

#cart-summary {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

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

.remove-item {
    color: red;
    cursor: pointer;
    font-weight: bold;
}

/* Pay Button */
.pay-button {
    background: #007bff;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.pay-button:hover {
    background: #0056b3;
}

/* Action Buttons & Inputs */
.action-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.action-container div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-button {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.action-button:hover {
    background: #0056b3;
}

.action-input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.success-message {
    text-align: center;
    background: #28a745;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 50px auto;
}

.success-message h2 {
    margin: 0 0 10px;
}

.success-message p {
    font-size: 18px;
}

.finish-button {
    background: white;
    color: #28a745;
    font-size: 16px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.finish-button:hover {
    background: #e0e0e0;
}
