.page-bg {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: url('../images/raymond-yeung-ePuHc1eFvDw-unsplash.jpg') center center / cover no-repeat;
}

.rug-catalog {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgb(33, 37, 41, 0.70);
    width: 100%;
}
/* GRID VIEW */

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.plant-item {
    width: 100%;
}

.plant-card {
    width: 100%;
    height: 100%;
}

.plant-card .card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.plant-card .card-body {
    flex-direction: column;
}
.list-only {
    display: none;
}

/* LIST VIEW */

.plant-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plant-grid.list-view .list-only {
    display: block;
    margin-top: 1rem;
}

.plant-grid.list-view .plant-item {
    width: 100%;
}

.plant-grid.list-view .plant-card {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.plant-grid.list-view .card-img-top {
    width: 250px;
    min-width: 250px;
    height: 250px;
    object-fit: cover;
}

.plant-grid.list-view .card-body {
    flex: 1;
    padding: 1.5rem;
    text-align: left;
    justify-content: center;
}

.plant-grid.list-view .btn {
    width: fit-content;
}

/* MOBILE */

@media (max-width: 768px) {

    .plant-grid.list-view .plant-card {
        flex-direction: column;
    }

    .plant-grid.list-view .card-img-top {
        width: 100%;
        height: 250px;
    }

}
.plant-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
}

.plant-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
}

.plant-thumbnail:hover {
    border-color: #198754;
    transform: scale(1.05);
}

.card-header {
    background: #198754;
    color: white;
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.plant-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.plant-thumbnail:hover {
    border-color: #198754;
}

.plant-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

