/* Price tag component styles */
.price-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 24px; /* Ensure consistent height even without discount */
}

.current-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}

.original-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.discount-chip {
    background-color: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
    .current-price {
        font-size: 1rem;
    }
    .original-price {
        font-size: 0.8rem;
    }
    .discount-chip {
        font-size: 0.7rem;
    }
}

/* Hover effect */
.price-tag:hover .current-price {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Variant pricing */
.size-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.size-price small {
    font-size: 0.75rem;
}

/* Price loading state */
.price-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 1.2rem;
    width: 80px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Related Products Price Tag */
.related-products .price-tag {
    margin-top: 0.3rem;
}

.related-products .current-price {
    font-size: 0.9rem;
}

.related-products .original-price {
    font-size: 0.8rem;
}

.related-products .discount-chip {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

/* Additional mobile improvements */
@media (max-width: 576px) {
    .price-tag {
        gap: 0.3rem;
    }
    
    .current-price {
        font-size: 0.95rem;
    }
    
    .original-price {
        font-size: 0.75rem;
    }
    
    .discount-chip {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Product Action Area */
.product-action-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 32px;
}

.quantity-selector button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #212529;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-selector button:hover {
    background: #e9ecef;
}

.quantity-selector input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    background: white;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    height: 32px;
    padding: 0 1rem;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background: #c82333;
}

.add-to-cart-btn i {
    font-size: 1.1rem;
}

/* Mobile styles */
@media (max-width: 576px) {
    .product-action-area {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-selector {
        height: 28px;
    }
    
    .quantity-selector button {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .quantity-selector input {
        width: 36px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .add-to-cart-btn {
        height: 28px;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
    
    .add-to-cart-btn i {
        font-size: 1rem;
    }
}
