/* Product Page Styles */

/* Image Gallery */
.thumbnail-image {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail-image:hover {
    border-color: #fbbf24;
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* Product Badges */
.product-page-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Quantity Input */
.quantity-input {
    -moz-appearance: textfield;
}

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

/* Stock Status */
.stock-available {
    background-color: #10b981;
}

.stock-low {
    background-color: #f59e0b;
}

.stock-out {
    background-color: #ef4444;
}

/* Cart Sidebar */
.cart-sidebar {
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
}

.cart-item {
    transition: all 0.2s ease;
}

.cart-item:hover {
    background-color: #f9fafb;
}

/* Related Products */
.related-product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background: #fde047 !important;
    color: #1f2937 !important;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
    background: #fef08a !important;
    color: #1f2937 !important;
    box-shadow: 0 4px 16px -2px #fde04755;
    transform: scale(1.07);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.slide-out-right {
    animation: slideOutRight 0.3s ease-in;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
    }
    
    .related-product-card {
        margin-bottom: 1rem;
    }
    
    .product-page-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Price Display */
.price-display {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1rem;
}

.original-price {
    position: relative;
}

.original-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ef4444;
    transform: rotate(-5deg);
}

/* Specifications Table */
.spec-row {
    transition: background-color 0.2s ease;
}

.spec-row:hover {
    background-color: #f9fafb;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}
