/**
 * Fortune Meat Shop - Custom Styles
 * Additional styles beyond Tailwind CSS
 */

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

/* Marquee Animation for Announcement Bar */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 15s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* WhatsApp Floating Button Animation */
@keyframes wa-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.wa-float {
    animation: wa-pulse 2s infinite;
}

.wa-float:hover {
    animation: none;
    transform: scale(1.1);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Product Card */
.product-card {
    animation: fadeIn 0.3s ease;
}

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

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

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

/* Toast notifications */
#cart-toast {
    transition: all 0.3s ease;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ============================================
   LOADING STATES
   ============================================ */
.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; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header, footer, #mobile-menu, .cart-toast {
        display: none !important;
    }
}
