body {
    background: linear-gradient(to bottom, #f0f4f8 0%, #d9e2ec 100%);
    color: #222;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}


h2 {
    color: #2b2b2b;
    border-bottom: 2px solid #333;
    padding-bottom: 4px;
}

a {
    color: #1976d2;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #1976d2;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    margin-right: 8px;
}

a:hover {
    background-color: #1976d2;
    color: white;
}


button {
    background-color: #2b2b2b;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #424242;
}

form {
    margin: 10px 0;
}

/* --- Card Grid Layout --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 24px;
    padding: 10px 0;
    max-width: 1200px;
    margin: 24px auto;
}

/* --- Individual Card Item --- */
.card-item {
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;

    /* classy shadow */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    /* smooth hover lift */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover glow/lift */
.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: rgba(25, 118, 210, 0.25);
}

/* Space around card images */
.card-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 8px;
}

/* Price text styling */
.card-item p {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

/* Action links inside card */
.card-item a {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
}

.card-item h3 {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    text-transform: capitalize;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.card-item strong {
    font-weight: 600;
}

.collection-total {
    margin: 10px 0 18px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 18px;
}

.sort-form select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    background: white;
    font-size: 14px;
}

.sort-form label {
    color: #222;
    font-weight: 600;
}



