.checkout-button {
    width: 100%;
    padding: 1rem;
    background: #b71111;  /* Dark red to match your brand */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkout-button:hover {
    background: #ff1a1a;  /* Slightly lighter red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);  /* Add red glow on hover */
}

.checkout-button:active {
    background: #e60000;  /* Slightly darker red when clicked */
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2);
}

.checkout-button:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    text-shadow: none;
}

.payment-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.8;
    display: block;
    width: 100%;
}

/* Loading state */
.checkout-button.loading {
    background-color: var(--text-color);
    color: transparent;
}

.checkout-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--background);
    border-radius: 50%;
    border-left-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Cart sidebar styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #1a1a1a;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    color: white;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
}

.cart-header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.close-cart {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-cart:hover {
    opacity: 0.7;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cart-footer {
    padding: 1.5rem;
    background: #1a1a1a;
    border-top: 1px solid #333;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 500;
}

.clear-cart-btn {
    background: transparent;
    border: 1.5px solid #b71111;
    color: #b71111;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-cart-btn:hover {
    background: rgba(183, 17, 17, 0.1);
    transform: translateY(-1px);
}

.clear-cart-btn:active {
    transform: translateY(0px);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #333;
    align-items: center;
    background: #242424;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-details h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background: #333;
    padding: 4px;
    border-radius: 4px;
    width: fit-content;
}

.quantity-controls button {
    background: #333;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.quantity-controls button:hover {
    background: #444;
}

.quantity-controls button:active {
    background: #555;
    transform: scale(0.95);
}

.quantity-value {
    min-width: 32px;
    text-align: center;
    color: white;
    font-weight: bold;
    user-select: none;
    font-size: 16px;
}

.cart-item-price {
    font-weight: bold;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Loading message */
.loading-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--text-color);
    border-left-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    margin: 0;
    color: var(--text-color);
    font-weight: bold;
}

/* Light mode for side cart */
@media (prefers-color-scheme: light) {
  .cart-sidebar {
    background: #f7f7f7;
    color: #222;
    box-shadow: -2px 0 15px rgba(0,0,0,0.08);
  }
  .cart-header,
  .cart-footer {
    background: #f7f7f7;
    color: #222;
    border-color: #e1e1e1;
  }
  .cart-header h2 {
    color: #222;
  }
  .cart-items {
    background: #fff;
    color: #222;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
  }
  .cart-item {
    background: #fff;
    color: #222;
    border-bottom: 1px solid #e1e1e1;
  }
  .cart-item-details h4 {
    color: #222;
  }
  .cart-item-details p {
    color: #555;
  }
  .cart-item-price {
    color: #b71111;
  }
  .quantity-controls {
    background: #eee;
  }
  .quantity-controls button {
    background: #eee;
    color: #222;
  }
  .quantity-controls button:hover {
    background: #e1e1e1;
  }
  .quantity-controls button:active {
    background: #ccc;
  }
  .quantity-value {
    color: #222;
  }
  .clear-cart-btn {
    border-color: #b71111;
    color: #b71111;
    background: #fff;
  }
  .clear-cart-btn:hover {
    background: #ffeaea;
  }
  .checkout-button {
    background: #b71111;
    color: #fff;
    box-shadow: 0 2px 4px rgba(183, 17, 17, 0.08);
  }
  .checkout-button:disabled {
    background: #ccc;
    color: #999;
  }
  .empty-cart {
    color: #888;
  }
}
