:root {
    --primary: #FFD100;
    /* Mercado Livre Yellow - used as glowing accent */
    --accent: #00A650;
    /* ML Green - subtle accent */
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --text-main: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: rgba(255, 209, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 209, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 166, 80, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

/* Standard Header */
header {
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px var(--glow));
}

.header-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Product Grid - 5 items per row */
main {
    padding: 60px 2%;
    max-width: 1600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Futuristic Card */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 209, 0, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fff;
    /* White background to show full product if image is transparent/smaller */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Shows 100% of the image */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.5rem;
}

.price {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
}

/* Futuristic Button */
.buy-button {
    display: inline-block;
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.buy-button:hover {
    color: #000;
}

.buy-button:hover::before {
    left: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    padding: 60px 0;
    text-align: center;
    background: #000;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}