/* Custom styles for Swagimals */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --color-cream: #F9F8F6;
    --color-navy: #1A2A3A;
    --color-blue-light: #E0F2FE;
    --color-orange: #EA580C;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-navy);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.font-serif {
    font-family: var(--font-heading);
}

.text-navy {
    color: var(--color-navy);
}

.bg-cream {
    background-color: var(--color-cream);
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-navy);
    border-radius: 4px;
}

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

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Sticker badges */
.sticker-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    border: 1px solid var(--color-navy);
    color: var(--color-navy);
    padding: 2px 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.collection-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-item:hover img {
    transform: scale(1.1);
}

.collection-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cart animation styles */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
}

@keyframes numberPop {
    0% { transform: scale(0) rotate(-12deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cartIconShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    75% { transform: translateX(3px) rotate(5deg); }
}

.cart-icon-animate {
    animation: cartIconShake 0.5s ease-in-out;
}

.cart-count-animate {
    animation: numberPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-icon-pulse {
    animation: cartPulse 0.8s ease-out;
}