/**
 * Product Card Quantity Selector Styles
 * Matches the style of quantity selector in product detail page
 */

/* Original product card quantity control styling (kept for reference) */
.product-card__quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
}

.product-card__quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-card__quantity-btn:hover {
    background-color: #e5e5e5;
}

.product-card__quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card__quantity-input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

/* NEW: Standard quantity selector within product card context */
.product-card__quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
}

.product-card__quantity-selector .quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-card__quantity-selector .quantity-btn:hover {
    background-color: #e5e5e5;
}

.product-card__quantity-selector .quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card__quantity-selector .quantity-input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-card__quantity-selector .quantity-input::-webkit-outer-spin-button,
.product-card__quantity-selector .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Product card actions area to match product detail page layout */
.product-card__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* Update product card footer styles to better accommodate the quantity selector */
.product-card__footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__footer-right {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card__quantity, 
    .product-card__quantity-selector {
        margin-bottom: 10px;
    }
}
