@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


.main.cart {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

.cart-count-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    margin-left: 8px;
    background: rgba(239, 85, 38, .10);
    color: #ef5526;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    vertical-align: middle;
}

.cart-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all .2s ease;
}

    .cart-clear-link:hover {
        background: #fef2f2;
        color: #dc2626;
    }

    .cart-clear-link i {
        font-size: 13px;
    }


.cart-free-shipping {
    background: linear-gradient(135deg, #fff7f2, #fff);
    border: 1px solid rgba(239, 85, 38, .20);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.cart-free-shipping-text {
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cart-free-shipping-text i {
        color: #ef5526;
        font-size: 14px;
    }

    .cart-free-shipping-text strong {
        color: #ef5526;
        font-weight: 700;
    }

.cart-free-shipping-bar {
    background: #f3f4f6;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

    .cart-free-shipping-bar span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #ef5526, #ff9b6e);
        border-radius: 999px;
        transition: width .4s ease;
        min-width: 4%;
    }

.cart-free-shipping-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

    .cart-free-shipping-done i {
        color: #10b981;
        font-size: 18px;
    }


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

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .cart-item:hover {
        border-color: rgba(239, 85, 38, .25);
        box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
    }

.cart-item-thumb {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #f1f3f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cart-item-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }

.cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-brand {
    font-size: 11px;
    font-weight: 700;
    color: #ef5526;
    letter-spacing: .3px;
    text-transform: uppercase;
}


.cart-item-brand-logo {
    display: block;
    width: 71px;
    height: 32px;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 2px;
}

    .cart-item-brand-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        pointer-events: none;
    }

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .cart-item-title:hover {
        color: #ef5526;
    }

.cart-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cart-item-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

    .cart-item-pill i {
        font-size: 11px;
        color: #9ca3af;
    }

.cart-item-unit {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}


.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}


.cart-qty {
    display: inline-flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: #fff;
    color: #ef5526;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

    .cart-qty-btn:hover {
        background: #ef5526;
        color: #fff;
        box-shadow: 0 2px 6px rgba(239, 85, 38, .3);
    }

    .cart-qty-btn:active {
        transform: scale(.92);
    }

.cart-qty-input {
    width: 44px;
    height: 30px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    -moz-appearance: textfield;
}

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

    .cart-qty-input:focus {
        outline: 0;
    }


.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    min-width: 110px;
    text-align: right;
}


.cart-item-remove {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fafafa;
    color: #9ca3af;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

    .cart-item-remove:hover {
        background: #fef2f2;
        color: #dc2626;
    }

    .cart-item-remove i {
        font-size: 14px;
    }


.cart-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #eef0f3;
}

.cart-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

    .cart-continue-btn:hover {
        background: #1f2937;
        border-color: #1f2937;
        color: #fff;
        transform: translateY(-1px);
    }

    .cart-continue-btn i {
        font-size: 12px;
    }


.cart-empty {
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 64px 24px;
    max-width: 560px;
    margin: 20px auto 40px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .03);
}

.cart-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 28px;
    background: rgba(239, 85, 38, .08);
    color: #ef5526;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.cart-empty h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.cart-empty p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

    .cart-empty p strong {
        color: #1f2937;
    }

.cart-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef5526;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
    box-shadow: 0 6px 16px rgba(239, 85, 38, .25);
}

    .cart-empty-cta:hover {
        background: #d8451f;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(239, 85, 38, .35);
    }


@media (max-width: 992px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .cart-item-thumb {
        width: 80px;
        height: 80px;
    }

    .cart-item-info {
        grid-column: 2;
        grid-row: 1;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px dashed #eef0f3;
    }

    .cart-item-price {
        font-size: 15px;
        min-width: 0;
        text-align: left;
        flex: 1;
        margin-left: 4px;
    }
}

@media (max-width: 576px) {
    .cart-empty {
        padding: 48px 16px;
        border-radius: 14px;
    }

    .cart-empty-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

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

    .cart-clear-link span {
        display: none;
    }

    .cart-item-info .cart-item-meta {
        gap: 6px;
    }

    .cart-continue-btn {
        width: 100%;
        justify-content: center;
    }
}
