/* ---------- Cart container ---------- */
.cart5 {
    --cart-border: #e3e3e3;
    --cart-head-bg: #f7f8fa;
    --cart-accent: #1a73e8;
    --cart-danger: #d93025;

    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
    color: #222;
}

/* ---------- Rows ---------- */
.cart5-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.4fr 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--cart-border);
}

.cart5-row:last-child {
    border-bottom: none;
}

/* ---------- Header row ---------- */
.cart5-head {
    background: var(--cart-head-bg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #666;
}

/* ---------- Item row ---------- */
.cart5-item {
    transition: background .15s ease;
}

.cart5-item:hover {
    background: #fafbfc;
}

.col5-product {
    font-weight: 600;
}

/* ---------- Quantity stepper ---------- */
.col5-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty5-form {
    margin: 0;
    display: inline-block;
}

.btn5-qty {
    width: 30px;
    height: 30px;
    line-height: 1;
    font-size: 16px;
    font-weight: 700;
    color: #444;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.btn5-qty:hover {
    background: #eef3fb;
    border-color: var(--cart-accent);
    color: var(--cart-accent);
}

.qty5-display {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: #0044cc; /* Dark blue text for readability */
    background-color: #fff2cc; /* Classic yellow highlight */
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
}
/* ---------- Delete link ---------- */
.btn5-remove {
    color: var(--cart-danger);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn5-remove:hover {
    text-decoration: underline;
}

/* ---------- Total row ---------- */
.cart5-total {
    display: flex; /* Overrides grid layout */
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 16px 18px;
    background: #fafbfc;
    font-size: 17px;
    font-weight: 700;
}

.total5-label {
    color: #666;
    font-weight: 600;
}

/* ---------- Checkout button ---------- */
.cart5-actions {
    padding: 18px;
    text-align: right;
}

.btn5 {
    display: inline-block;
    padding: 12px 26px;
    background: var(--cart-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s ease, transform .05s ease;
}

.btn5:hover {
    background: #1662c4;
}

.btn5:active {
    transform: translateY(1px);
}

/* ---------- Empty cart ---------- */
.cart5-empty {
    max-width: 960px;
    margin: 24px auto;
    text-align: center;
    color: #666;
}

.cart5-empty a {
    color: var(--cart-accent);
    font-weight: 600;
}

/* ---------- Responsive Mobile Styles ---------- */
@media (max-width: 700px) {
    .cart5 {
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .cart5-head {
        display: none;
    }

    .cart5-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .cart5-item {
        background: #fff;
        border: 1px solid var(--cart-border);
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .cart5-item .col5 {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart5-item .col5::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #888;
        margin-right: 12px;
    }

    .col5-product {
        font-size: 16px;
    }

    .cart5-total {
        border: 1px solid var(--cart-border);
        border-radius: 10px;
        justify-content: space-between;
    }

    .cart5-actions {
        text-align: center;
        padding: 8px 0 24px;
    }

    .btn5 {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
