/* ============================================================
   CART PAGE — MOBILE FIRST RESTYLE
   ============================================================ */

body {
    background: var(--brand-bg);
    font-family: var(--font-body);
    color: var(--brand-brown);
    margin: 0;
    padding: 0;
}

/* Container */
.cart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Heading */
.cart-container h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--brand-brown);
}

/* Cart Items Wrapper */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Item Card */
.cart-item {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Item Header */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--brand-brown);
}

/* Remove Button */
.ajax-remove {
    background: var(--brand-pink-light);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--brand-brown);
    font-size: 14px;
}

.ajax-remove:hover {
    background: var(--brand-pink);
}

/* Personalisation Section */
.item-personalisation {
    margin-bottom: 12px;
}

.personalisation-label {
    font-weight: bold;
    margin-bottom: 4px;
}

.personalisation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.personalisation-text {
    font-size: 14px;
}

.edit-personalisation {
    background: var(--brand-pink-light);
    border: none;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--brand-brown);
    font-size: 13px;
}

.edit-personalisation:hover {
    background: var(--brand-pink);
}

/* Hidden input for editing */
.personalisation-input {
    margin-top: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--brand-pink);
    font-size: 14px;
}

/* Quantity Section */
.item-qty {
    margin: 12px 0;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-wrapper button {
    background: var(--brand-pink-light);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: var(--brand-brown);
}

.qty-wrapper button:hover {
    background: var(--brand-pink);
}

.qty-display {
    font-size: 16px;
    font-weight: bold;
}

/* Pricing */
.item-pricing {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 15px;
}

/* Totals Section */
.cart-totals {
    background: var(--brand-pink-light);
    padding: 16px;
    border-radius: 14px;
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cart-totals p {
    margin: 6px 0;
    font-size: 16px;
}

/* Form Fields */
.cart-field {
    margin-top: 20px;
}

.cart-field label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.cart-field input[type="text"],
.cart-field textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--brand-pink);
    font-size: 15px;
    color: var(--brand-brown);
    display: block;
    margin-left: 0;
}

.cart-field textarea {
    height: 120px;
    resize: vertical;
}

/* Force Notes textarea to left-align visually */
.cart-field textarea {
    display: block;
    margin-left: 0;
    text-align: left;
}

/* Local Pickup Checkbox */
.cart-field input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 8px;
}

/* ============================================================
   ACTION BUTTONS — USE GLOBAL BUTTON SYSTEM
   ============================================================ */

.cart-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.cart-actions .btn {
    flex: 1;
    text-align: center;
    padding: 14px 0; /* slightly taller for cart */
}

/* Empty Cart */
.cart-container p {
    font-size: 16px;
}
.cart-notes-textarea {
    width: 100%;
    max-width: 400px;
    height: 120px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--brand-pink);
    font-size: 15px;
    color: var(--brand-brown);
    display: block;
    margin-top: 5px;
    text-align: left;
    white-space: pre-wrap;
}
/* ============================
   CART BUTTONS (POST version)
   ============================ */

/* Remove / Qty buttons */
.btn-remove,
.qty-btn {
    background: #f06292;        /* your pink theme */
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* Hover */
.btn-remove:hover,
.qty-btn:hover {
    background: #ec407a;        /* slightly darker pink */
}

/* Active (fixes the “turns black and stays black” issue) */
.btn-remove:active,
.qty-btn:active,
.btn-remove:focus,
.qty-btn:focus {
    background: #d81b60;        /* deeper pink */
    outline: none;
}

/* Keep qty buttons inline */
.qty-wrapper .qty-btn {
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

/* Personalisation Save button */
.personalisation-form button[type="submit"] {
    background: #4caf50;        /* green save button */
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s ease;
}

.personalisation-form button[type="submit"]:hover {
    background: #43a047;
}

.personalisation-form button[type="submit"]:active,
.personalisation-form button[type="submit"]:focus {
    background: #2e7d32;
    outline: none;
}
