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

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

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #134e4a 0%, #065f46 50%, #047857 100%);
}

/* Product Card Hover Effect */
.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-img {
    transition: transform 0.3s ease;
}

/* Cart Badge Pulse Animation */
.cart-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Menu */
.group:hover .group-hover\:block {
    display: block;
}

/* Line Clamp */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

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

/* Toast Notification */
#toast {
    z-index: 9999;
}

/* Category Card Hover */
.category-card:hover img {
    transform: scale(1.1);
}

.category-card img {
    transition: transform 0.3s ease;
}

/* Mobile Menu Transition */
#mobileMenu > div:first-of-type + div {
    transition: transform 0.3s ease;
}

/* Custom Scrollbar for Cart */
#cartItems::-webkit-scrollbar {
    width: 6px;
}

#cartItems::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#cartItems::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 10px;
}

#cartItems::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Quick View Modal */
#quickViewModal > div:last-child {
    max-height: 90vh;
    overflow-y: auto;
}

/* Button Hover Effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* Rating Stars */
.rating-stars {
    color: #facc15;
}

/* Price Styling */
.price-current {
    color: #16a34a;
    font-weight: 700;
}

.price-original {
    color: #9ca3af;
    text-decoration: line-through;
}

/* Input Focus States */
input:focus {
    outline: none;
    border-color: #22c55e;
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

/* Footer Links */
.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4ade80;
}

/* Social Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #22c55e;
    transform: translateY(-3px);
}

/* Overlay */
.overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Number Input - Hide Arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-image {
        width: 250px;
        height: 250px;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

/* Discount Badge */
.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Sticky Header Shadow */
header.sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Wave SVG in Hero */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Feature Icon */
.feature-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}
