/* =========================
   CART
========================= */
.cart {
    background: #fff;
    padding: 26px 0 70px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
    align-items: start;
}

.cart-card {
    background: #fff;
    border: 1px solid rgba(15, 46, 87, .14);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(2, 8, 23, .08);
    padding: 16px;
}

.cart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cart-head h2 {
    margin: 0;
    color: var(--blue);
    font-weight: 950;
    font-size: 18px;
}

.cart-count {
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.cart-line {
    width: 70px;
    height: 2px;
    background: var(--blue);
    margin: 12px 0 14px;
    opacity: .9;
}

/* Items */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr 130px;
    gap: 12px;
    align-items: anchor-center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 46, 87, .12);
    background: rgba(15, 46, 87, .03);
}

.cart-img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid rgba(15, 46, 87, .12);
}

.cart-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.03);
}

.cart-kicker {
    color: #64748b;
    font-weight: 950;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cart-title {
    display: inline-block;
    color: var(--blue);
    font-weight: 950;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
}

.cart-title:hover {

}

.cart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 46, 87, .12);
    color: var(--blue);
    font-weight: 700;
    font-size: 12px;
}

/* Qty */
.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qty {
    display: flex;
    align-items: center;
    border: 1px solid rgba(15, 46, 87, .16);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    height: 40px;
}

.qty-btn {
    width: 42px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 950;
    color: var(--blue);
}

.qty input {
    width: 60px !important;
    height: 40px !important;
    border: 0 !important;
    text-align: center;
    padding: 0 !important;
    outline: none;
    font-weight: 700;
    color: #0b1220;
    background: transparent;
    -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-remove {
    color: #b91c1c;
    font-weight: 950;
    text-decoration: none;
    font-size: 13px;
}

.cart-remove:hover {

}

/* Price */
.cart-price {
    text-align: right;
}

.cart-price .price {
    color: #0b1220;
    font-weight: 950;
    font-size: 18px;
}

.cart-price .sub {
    margin-top: 6px;
    color: #64748b;
    font-weight: 850;
    font-size: 12px;
}

/* Footer */
.cart-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.cart-foot-note {
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
}

/* Summary */
.cart-summary {
    position: sticky;
    top: 90px;
}

.sum-head h3 {
    margin: 0;
    color: var(--blue);
    font-weight: 950;
    font-size: 18px;
}

.sum-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-weight: 850;
}

.sum-row strong {
    color: #0b1220;
    font-weight: 950;
}

.sum-row .neg {
    color: #b91c1c;
}

.sum-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 46, 87, .12);
    background: rgba(15, 46, 87, .03);
    margin-bottom: 12px;
}

.sum-total span {
    color: #475569;
    font-weight: 700;
}

.sum-total strong {
    color: var(--blue);
    font-weight: 950;
    font-size: 18px;
}

/* Coupon */
.coupon {
    display: flex;
    align-items: center;
    border: 1px solid rgba(15, 46, 87, .16);
    border-radius: 999px;
    overflow: hidden;
    height: 44px;
    background: #fff;
    margin-bottom: 12px;
}

.coupon input {
    border: 0 !important;
    outline: 0;
    width: 100%;
    height: 44px !important;
    padding: 0 14px;
    font-size: 14px;
}

.coupon button {
    border: 0;
    cursor: pointer;
    height: 44px;
    width: 92px;
    background: var(--blue);
    color: #fff;
    font-weight: 950;
}

/* Safe notes */
.sum-safe {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.safe-item {
    border: 1px solid rgba(15, 46, 87, .12);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.safe-item strong {
    display: block;
    color: var(--blue);
    font-weight: 950;
    margin-bottom: 6px;
}

.safe-item span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Extra note card */
.cart-note .note-title {
    color: var(--blue);
    font-weight: 950;
    margin-bottom: 6px;
}

.cart-note p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 980px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
        top: auto;
    }
}

@media (max-width: 620px) {
    .cart-item {
        grid-template-columns: 84px 1fr;
    }

    .cart-price {
        text-align: left;
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 6px;
    }
}

/* =========================
   EMPTY CART
========================= */

.cart-empty {
    padding: 60px 0 100px;
    background: #fff;
}

.cart-empty-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 30px;
    border-radius: 22px;
    border: 1px solid rgba(15, 46, 87, .14);
    box-shadow: 0 20px 45px rgba(2, 8, 23, .08);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.cart-empty-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(227, 75, 75, .12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(15, 46, 87, .10), transparent 60%);
    pointer-events: none;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.cart-empty-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
    color: var(--blue);
}

.cart-empty-card p {
    margin: 0 auto 24px;
    max-width: 50ch;
    color: #64748b;
    font-weight: 700;
    line-height: 1.8;
    font-size: 15px;
}

.cart-empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Suggest */

.cart-empty-suggest {
    margin-top: 10px;
}

.suggest-title {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 14px;
}

.suggest-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.suggest-item {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 46, 87, .06);
    border: 1px solid rgba(15, 46, 87, .12);
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    transition: all .2s ease;
}

.suggest-item:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 620px) {
    .cart-empty-card {
        padding: 30px 20px;
    }

    .cart-empty-icon {
        font-size: 52px;
    }

    .cart-empty-card h2 {
        font-size: 22px;
    }
}

/* =========================
   CART — PREMIUM REFINEMENT
========================= */
.cart-card {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(2, 8, 23, .07);
}

.cart-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.2px;
}
.cart-head h2 i {
    color: var(--blue);
    font-size: 16px;
    opacity: .9;
}

/* Item card */
.cart-item {
    background: #fff;
    border-color: rgba(15, 46, 87, .10);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cart-item:hover {
    border-color: rgba(15, 46, 87, .22);
    box-shadow: 0 14px 28px rgba(2, 8, 23, .08);
    transform: translateY(-1px);
}
.cart-item.is-updating {
    opacity: .55;
    pointer-events: none;
}

.cart-img {
    background: linear-gradient(160deg, #ffffff, #eef2f7);
}

/* Pills */
.cart-pill {
    gap: 6px;
    background: rgba(15, 46, 87, .06);
    border-color: rgba(15, 46, 87, .10);
}
.cart-pill i {
    font-size: 11px;
    opacity: .85;
}
.cart-pill.ghost {
    background: #fff;
    color: #475569;
    font-weight: 800;
}
.cart-pill.ghost i {
    color: var(--blue);
}

/* Quantity (kg) */
.cart-actions {
    justify-content: flex-start;
}
.qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.qty-label {
    color: #64748b;
    font-weight: 850;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.qty {
    height: 42px;
    border-color: rgba(15, 46, 87, .18);
    box-shadow: inset 0 1px 2px rgba(2, 8, 23, .04);
}
.qty-btn {
    height: 42px;
    transition: background .15s ease, color .15s ease;
}
.qty-btn:hover {
    background: rgba(15, 46, 87, .06);
}
.qty-btn:active {
    background: rgba(15, 46, 87, .12);
}
.qty-btn:disabled {
    opacity: .4;
    cursor: default;
}
.qty input {
    height: 42px !important;
    font-weight: 950;
    color: var(--blue);
}
.qty-unit {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 950;
    font-size: 13px;
    letter-spacing: .3px;
    box-shadow: 0 8px 18px rgba(15, 46, 87, .18);
}

/* Price */
.cart-price .price {
    font-size: 19px;
    letter-spacing: -.3px;
}
.cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    opacity: .9;
    transition: opacity .15s ease;
}
.cart-remove:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Summary */
.cart-summary {
    border-radius: 18px;
}
.sum-total {
    background: linear-gradient(180deg, rgba(15, 46, 87, .06), rgba(15, 46, 87, .03));
    border-color: rgba(15, 46, 87, .16);
}
.sum-total strong {
    font-size: 20px;
}

/* Checkout CTA */
.btn.success.wfull {
    background: linear-gradient(180deg, #12a150, #0e7c3e);
    border: 0;
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(16, 185, 129, .25);
    transition: transform .08s ease, box-shadow .15s ease;
}
.btn.success.wfull:hover {
    box-shadow: 0 18px 32px rgba(16, 185, 129, .34);
}
.btn.success.wfull:active {
    transform: translateY(1px);
}

@media (max-width: 620px) {
    .cart-actions {
        justify-content: space-between;
    }
}
