/* Custom styles for BuahSegar.world */

html {
    scroll-behavior: smooth;
}

/* Filter buttons */
.filter-btn {
    background: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.filter-btn:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #86efac;
}

.filter-btn.active {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

/* Product card */
.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

.product-card:hover img {
    transform: scale(1.08);
}

/* Badge */
.badge-fresh {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.badge-organic {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.badge-import {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Navbar scrolled */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Cart item */
.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

/* Quantity controls */
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

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

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

/* Custom scrollbar for cart */
#cart-items::-webkit-scrollbar {
    width: 6px;
}
#cart-items::-webkit-scrollbar-track {
    background: #f3f4f6;
}
#cart-items::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 3px;
}
