/* assets/css/custom.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Product card hover effect */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* WhatsApp button pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-pulse {
    animation: pulse 2s infinite;
}

/* Gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
}
/* Product Detail Specific Styles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.whitespace-pre-line {
    white-space: pre-line;
}

/* Image Zoom Effect */
.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

/* Sticky Action Buttons */
.sticky-action {
    transition: all 0.3s ease;
}

/* WhatsApp Pulse Animation */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-pulse {
    animation: pulse-whatsapp 2s infinite;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#imageModal > div {
    animation: modalFadeIn 0.3s ease-out;
}

/* Related Products Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Trust Badge Hover */
.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
}

/* Price Tag Animation */
@keyframes priceHighlight {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.price-highlight {
    animation: priceHighlight 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-price {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .product-details {
        break-inside: avoid;
    }
}/* Product Card Hover Effects */
.product-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px) scale(1.01);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    border-color: #3b82f6;
}

/* View Details Overlay Animation */
.view-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.product-card:hover .view-overlay {
    opacity: 1;
}

.view-text {
    background: white;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .view-text {
    transform: translateY(0);
    opacity: 1;
}

/* Price Pulse Animation */
@keyframes price-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.price-highlight {
    animation: price-pulse 2s infinite;
}

/* Category Badge Hover */
.category-badge {
    transition: all 0.3s ease;
}

.product-card:hover .category-badge {
    background-color: #1d4ed8;
    transform: scale(1.1);
}

/* WhatsApp Button Isolation */
.whatsapp-btn {
    z-index: 20;
    position: relative;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Prevent text selection on cards */
.product-card {
    user-select: none;
}

/* Smooth image scaling */
.product-card img {
    transition: transform 0.7s ease;
}

/* Mobile touch feedback */
@media (max-width: 768px) {
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Loading skeleton for images */
.image-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;
    }
}

/* Quick view badge */
.quick-view-badge {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Product title truncation with gradient fade */
.truncate-gradient {
    position: relative;
    overflow: hidden;
}

.truncate-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 1.5em;
    background: linear-gradient(to right, transparent, white);
}