/* =========================================
   SOUND MART - CUSTOM APP CART UI
   ========================================= */

.cart-page-wrapper {
    background-color: #f4f7fb;
    min-height: 100vh;
    padding-top: 15px !important; 
    padding-bottom: 90px !important;
}

/* --- Cart Header --- */
.cart-header-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header-icon {
    width: 24px;
    height: 24px;
    stroke: #002b5e;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-header-card h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #002b5e;
    font-family: sans-serif;
}

.cart-badge {
    background: #eef7ff;
    color: #007bff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

/* --- Cart Items --- */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.cart-item-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 15px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #94a3b8;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cart-item-remove svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #eef7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #002b5e;
    margin: 0 0 4px 0;
    padding-right: 20px;
    line-height: 1.3;
}

/* WC Native Variation Styling Bypass */
.cart-item-details dl.variation {
    margin: 0 0 8px 0;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    gap: 4px;
}
.cart-item-details dl.variation p { margin: 0; }

.cart-item-price-wrap {
    margin-bottom: 10px;
}

.cart-item-price .amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00122e;
}

.cart-item-price del .amount {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 6px;
}

/* --- Qty Pill Box --- */
.cart-qty-pill {
    display: inline-flex;
    align-items: center;
    background: #eef7ff;
    border-radius: 20px;
    padding: 4px 12px;
    width: max-content;
}

.qty-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.qty-input {
    background: transparent;
    border: none;
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #00122e;
    padding: 0;
}
.qty-input:focus { outline: none; }
/* Hide spin buttons */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Section Cards (Coupon & Summary) --- */
.cart-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-icon-wrap {
    width: 36px;
    height: 36px;
    background: #eef7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon-wrap svg {
    width: 18px;
    height: 18px;
    stroke: #007bff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-title-wrap h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00122e;
}

.section-title-wrap p {
    margin: 2px 0 0 0;
    font-size: 0.7rem;
    color: #64748b;
}

/* --- Coupon Form --- */
.custom-coupon-form {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex-grow: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #00122e;
}
.coupon-input:focus { outline: none; border-color: #007bff; }

.coupon-apply-btn {
    background: #00d2ff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Order Summary --- */
.summary-card > .section-header h3 {
    margin-bottom: 0;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #002b5e;
}
.summary-row .val { font-weight: 600; }
.text-green { color: #2b9348; }

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef7ff;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: #00122e;
}

.summary-total-row .total-val .amount {
    font-size: 1.2rem;
    color: #002b5e;
}

/* --- Checkout Button --- */
.btn-checkout-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-checkout-primary svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Trust Badge --- */
.cart-trust-badge {
    background: #eef7ff;
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon-large svg {
    width: 32px;
    height: 32px;
    stroke: #007bff;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-text h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #002b5e;
}

.trust-text p {
    margin: 0;
    font-size: 0.7rem;
    color: #64748b;
}

/* =========================================
   EMPTY CART STATE
   ========================================= */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 30px 15px;
}

.empty-cart-icon {
    width: 64px;
    height: 64px;
    stroke: #94a3b8; /* Soft slate gray */
    fill: none;      /* Removes the ugly solid black block */
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 20px;
    background: #eef7ff;
    padding: 16px;
    border-radius: 50%;
}

.empty-cart-state h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #002b5e;
    margin: 0 0 20px 0;
    font-family: sans-serif;
}

.empty-cart-state .order-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}