@import url('https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Barrio&family=Fascinate&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7ecc9;
    padding: 20px;
    position: relative;
}

.header-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.logo {
    height: 15em;
    transform: rotate(15deg);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    animation: wiggle 0.6s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(40deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(50deg);
    }
}

.header-text {
    flex: 1;
}

.container {
    max-width: 90em;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-family: 'Fascinate', sans-serif;
    text-align: left;
    margin-bottom: 0;
    color: #7d0000;
    font-size: 7em;
    text-transform: uppercase;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: left;
    margin-bottom: 30px;
    color: #7d0000;
}

p{
    font-size: 2em;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    border-radius: 8px;
    overflow: visible;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s, filter 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.item-card:hover {
    transform: translateY(-4px);
    filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.45));
}

.heart-stamp {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.heart-stamp.top-right {
    top: -10px;
    right: -10px;
    transform: rotate(15deg);
}

.heart-stamp.top-left {
    top: -10px;
    left: -10px;
    transform: rotate(-15deg);
}

.heart-stamp.bottom-right {
    bottom: 80px;
    right: -10px;
    transform: rotate(20deg);
}

.heart-stamp.bottom-left {
    bottom: 80px;
    left: -10px;
    transform: rotate(-20deg);
}

.item-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.item-info {
    padding: 15px;
}

.item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff7f2a;
}

.error {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #c00;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
