/* ===== BASIS ===== */

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    color: #111;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ===== TEST BANNER ===== */

.test-banner {
    background: #ffe082;
    color: #111;
    text-align: center;
    padding: 12px 16px;
    font-weight: bold;
    border-bottom: 1px solid #e0c35c;
}

/* ===== HEADER ===== */

.shop-header {
    margin-bottom: 24px;
}

.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.shop-topbar h1 {
    margin: 0;
    font-size: 32px;
}

.shop-user {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.shop-user a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

/* ===== SEARCH ===== */

.shop-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.shop-search input[type="text"] {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box;
}

.shop-search button {
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

/* ===== FILTERS ===== */

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.shop-filters a {
    text-decoration: none;
    color: #111;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
}

.shop-filters a.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.shop-filters .cart-link {
    margin-left: auto;
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== PRODUCT GRID ===== */

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

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    border: 1px solid #e5e5e5;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: block;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===== IMAGE / THUMB ===== */

.product-thumb {
    width: 100%;
    height: 190px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

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

/* Geen foto placeholder netjes centreren */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 12px;
    box-sizing: border-box;
}

/* ===== BADGES ===== */

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: capitalize;
}

.badge.new {
    background: #2d7ef7;
}

.badge.secondhand {
    background: #666;
}

.badge.handmade {
    background: #e67e22;
}

/* ===== CARD BODY ===== */

.product-body {
    padding: 14px;
}

.product-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-meta {
    font-size: 13px;
    color: #555;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.stock {
    white-space: nowrap;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
    .shop-filters .cart-link {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 16px;
    }

    .shop-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-search {
        flex-direction: column;
    }

    .shop-search button {
        width: 100%;
    }

    .shop-filters {
        gap: 8px;
    }

    .shop-filters a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .shop-filters .cart-link {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-thumb {
        height: 145px;
    }

    .product-body {
        padding: 12px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}