/**
 * POS UX Improvements & Aesthetics
 */

/* Light Blue Theme for Active Products */
.product.active .card,
.product.active.compact-product-card {
    background-color: #e7f1ff !important;
    border-color: #b6d4fe !important;
    box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.15) !important;
}

/* Tactile / Touch Friendly Buttons */
.btn-touch {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    touch-action: manipulation;
}

.btn-touch:active {
    transform: scale(0.92);
    background-color: #f0f0f0;
}

.product-qty-input {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #084298;
}

/* Quantity Picker Layout Refinement */
.quantity-container .quantity-picker {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Transitions */
.new-quantity, .quantity-container {
    transition: all 0.3s ease;
}

.product.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1) !important;
}

/* Grid Quantity Overlay Style */
.quantity-overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Let clicks pass through to the card */
}

.qty-overlay-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product.active .quantity-overlay {
    opacity: 1;
    transform: scale(1);
}

/* Hide Spin Buttons for Input Type Number */
.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-qty-input[type=number] {
  -moz-appearance: textfield;
}

/* Transitions */
.new-quantity, .quantity-container {
    transition: opacity 0.2s ease-in-out;
}

/* Grid Overlay adjustments if needed */
.product .quantity-overlay {
    background: rgba(13, 110, 253, 0.8) !important;
    backdrop-filter: blur(2px);
}
