* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.logo-container svg {
    width: 28px;
    height: 28px;
    color: #ff6600;
}

header h1 {
    font-size: 1.5rem;
    color: #ff6600;
}

#cart-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
}

/* MAIN */
main {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sticker-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.sticker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.sticker-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 10px;
    border-radius: 8px;
    background: #e9ecef;
}

.sticker-card h3 {
    margin: .75rem 0 .25rem;
    font-size: 1rem;
}

.price {
    color: #666;
    margin-bottom: .75rem;
}

.sticker-card button {
    width: 100%;
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: .6rem;
    border-radius: 6px;
    cursor: pointer;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


.modal-content h2 {
    margin-bottom: 0;
}


.close-icon {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-icon:hover {
    color: #333;
}

.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.modal-content li {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #e9ecef;
}

#cart-total {
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: .75rem;
}

.modal-actions button {
    flex: 1;
    padding: .75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#whatsapp-btn {
    background: #25D366;
    color: #fff;
}

#close-modal {
    background: #e9ecef;
}

/* ... existing styles ... */

/* NEW: Customer Input Styling */
.customer-inputs {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.customer-inputs input:focus {
    border-color: #4CAF50;
    /* Highlights green when typing */
}

/* MOBILE */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .sticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ... keep your existing CSS ... */

/* NEW STYLES FOR CART UPDATES */

.modal-content li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center items vertically */
    padding: .75rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* Group the name and quantity */
.cart-item-info {
    flex-grow: 1;
    text-align: left;
}

/* Group the price and remove button */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The small red 'x' button */
.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #cc0000;
}

/* The Clear Cart button styling */
.danger-btn {
    background: #ff4444 !important;
    /* Force red background */
    color: white;
}

.danger-btn:hover {
    background: #cc0000 !important;
}