/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-weight: bold;
}

header h1 a {
    color: #333;
    text-decoration: none;
}

header h1 a:hover {
    color: #6F60C0;
}

header p {
    margin: 5px 0 0;
    color: #666;
}

/* Galerķa */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.product-card {
    position: relative;
    width: 450px;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.product-card:hover .product-info {
    transform: translateY(0);
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.product-info p {
    margin: 5px 0;
    font-size: 14px;
}

.product-info a {
    color: #FF9900;
    text-decoration: none;
}

.product-info a:hover {
    text-decoration: underline;
}

.check-price-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF9900;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

.check-price-btn:hover {
    background-color: #e68a00;
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

footer a {
    color: #6F60C0;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .product-card {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .product-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}
