/* index.css */ 

/* index.php style start */
.products-container {
    max-width: 1000px;
    margin: 20px auto 40px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Kort styling med avanceret hover */
.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 15px;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 30px rgba(0,0,0,0.22);
    background: linear-gradient(145deg, #f9f9f9, #e6f0ff);
}

.product-image {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
    height: 120px; /* default desktop */
    background: transparent; /* gør baggrunden helt gennemsigtig */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.product-image img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    filter: brightness(1.05);
    cursor: pointer;
}

/* Tekst styling */
.product-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.15em;
    transition: color 0.35s ease;
}

.product-title a {
    color: #007BFF;
    text-decoration: none;
}

.product-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.product-details {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #555;
}

.product-price {
    color: #000080;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Knapper */
.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-actions input[type="text"] {
    width: 50px;
    padding: 4px;
    font-size: 12px;
}

.product-actions input[type="submit"] {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.35s ease, transform 0.35s ease;
}

.product-actions input[type="submit"]:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.product-actions a img {
    vertical-align: middle;
}

/* 📱 Responsive billedhøjder */
@media (max-width: 600px) {
    .product-image {
        height: 150px; /* mobil */
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .product-image {
        height: 140px; /* tablet */
    }
}

@media (min-width: 901px) {
    .product-image {
        height: 120px; /* desktop */
    }
}
/* index.php style stop */