body {
    background-color: #f0e68c;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    text-align: center;
    padding-top: 20px;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.container {
    min-width: 500px;
    margin: 0 auto;
}

.flex-items{
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    width: 20%;
    margin: 8px;
    padding: 8px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-wrap: no-wrap;
}

.item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
}

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

.button-secondary {
    background-color: #666;
}

.button-secondary:hover {
    background-color: #444;
}

footer{
    padding: 20px 0px;
}

/* Cart header */
.cart-header {
    margin-bottom: 20px;
}

/* Cart sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: #fff;
    border-left: 3px solid #333;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
}

.cart-sidebar.hidden {
    display: none;
}

.cart-sidebar-content {
    padding: 20px;
    text-align: left;
}

.cart-sidebar-content h2 {
    text-align: center;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
    font-size: 0.9em;
}

.cart-total {
    font-size: 1.2em;
    font-weight: bold;
    margin: 15px 0;
    text-align: center;
}

.remove-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
}

.remove-btn:hover {
    background: #922b21;
}

/* Stock info */
.stock-info {
    color: #27ae60;
    font-size: 0.85em;
}

.out-of-stock {
    color: #c0392b;
    font-weight: bold;
}

/* Add to cart button */
.add-to-cart-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* Shipping form */
.shipping-form {
    max-width: 450px;
    margin: 30px auto;
    text-align: left;
}

.shipping-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #333;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    box-sizing: border-box;
}

.shipping-form button {
    width: 100%;
    margin-top: 10px;
}

/* PayPal button */
.paypal-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.2em;
    color: #fff;
    background-color: #0070ba;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
}

.paypal-button:hover {
    background-color: #005a96;
}

/* Spinner */
.spinner-wrap {
    padding: 40px;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error messages */
.error-message {
    color: #c0392b;
    font-weight: bold;
    padding: 10px;
    margin: 10px 0;
}

/* Order confirmation */
.order-token-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 20px;
}

.shipping-address, .order-summary {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
    padding: 15px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 10px;
}

.order-summary h2, .shipping-address h2 {
    text-align: center;
}

/* Checkout thumbnail */
.thumbnail {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 990px) {
    .item {
        width: 40%;
    }
}
