/* Custom styles to complement Tailwind */

@font-face {
    font-family: 'Tourney';
    src: url('/fonts/tourney_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Baumans';
    src: url('/fonts/baumans_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.banner {
    text-align: center;
    margin-bottom: 2rem;
}

.banner a {
    display: inline-block;
}

.banner-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.product-card {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.stock-badge.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

.category-btn {
    background-color: #f3f4f6;
    color: #4b5563;
}

.category-btn:hover {
    background-color: #e5e7eb;
}

.category-btn.active {
    background-color: #3b82f6;
    color: white;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .product-card h3 {
        font-size: 1rem;
    }
    
    .product-card .text-2xl {
        font-size: 1.5rem;
    }
}