/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header and Logo */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    color: #fff;
    text-shadow: 
        3px 3px 0 #FF1493,
        6px 6px 0 #00CED1,
        -2px -2px 0 #32CD32,
        2px -2px 0 #FF4500;
    letter-spacing: 0.1em;
    animation: logoFloat 3s ease-in-out infinite;
    word-break: keep-all;
    white-space: nowrap;
    overflow-wrap: normal;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .logo {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1.3rem, 4.5vw, 2rem);
        letter-spacing: 0.03em;
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.search-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-button:hover {
    background: linear-gradient(135deg, #FF4757 0%, #FF3838 100%);
    transform: scale(1.05);
}

.search-button:active {
    transform: scale(0.98);
}

.search-icon {
    font-size: 18px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 4px solid #FFC700;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: #FF6B6B;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-label {
    background: #1a1a1a;
    color: #FFD700;
    padding: 12px 15px;
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 1rem);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.4;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #1a1a1a;
    font-weight: 600;
}

footer p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 28px;
}

.social-links a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
    background: rgba(255, 255, 255, 0.6);
}

.social-links a:nth-child(1):hover {
    color: #E1306C;
}

.social-links a:nth-child(2):hover {
    color: #000000;
}

.social-links a:nth-child(3):hover {
    color: #1DA1F2;
}

.social-links a:nth-child(4):hover {
    color: #FF0000;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .search-container {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }

    .product-label {
        font-size: 0.65rem;
        padding: 10px;
        height: 60px;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* Loading Message */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
