.custom-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    overflow: hidden;
    height: 38px;
    width: 105px;
}

.custom-qty-box .btn-qty {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    transition: background 0.15s ease-in-out;
}

.custom-qty-box .btn-qty:hover {
    background-color: #f1f3f5;
    color: #000;
}

.custom-qty-box .qty-field {
    width: 41px;
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    padding: 0;
}

.remove-item:hover i {
    color: #dc3545 !important;
}

/* ---------------------------------------------------------------
* Mobile cart — touch targets, layout, CLS hardening
* ------------------------------------------------------------- */

.mobile-cart-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.mobile-cart-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mobile-cart-image-wrapper {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.mobile-cart-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-cart-info {
    flex: 1;
    min-width: 0;
}

.mobile-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 6px;
}

.mobile-bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #198754;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.mobile-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-current-price {
    font-weight: 700;
    font-size: 15px;
}

.mobile-original-price {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
}

.mobile-remove-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #999;
    flex-shrink: 0;
}

.mobile-remove-btn:active {
    color: #dc3545;
}

.mobile-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.mobile-qty-btn {
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-qty-btn:disabled {
    opacity: 0.5;
}

.mobile-qty-input {
    width: 40px;
    min-height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    font-size: 16px;
}

.mobile-total-price {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.mobile-empty-cart {
    color: #999;
}

@media (max-width: 360px) {
    .mobile-product-name {
        font-size: 13px;
    }

    .mobile-cart-image-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* Chrome, Safari, Edge, Opera */
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button,
.checkout-qty-input::-webkit-outer-spin-button,
.checkout-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox & Standard */
.cart-qty-input,
.checkout-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}
