/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* TITLE */
.shop-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #800000;
    letter-spacing: 1px;
}

/* FILTER CONTAINER */
.shop-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* biar responsive */
}

/* FILTER BUTTON */
.shop-filter a {
    padding: 10px 22px;
    border-radius: 30px;
    background: #f3f3f3;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* HOVER EFFECT */
.shop-filter a:hover {
    background: #800000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

/* ACTIVE BUTTON */
.shop-filter a.active {
    background: #800000;
    color: #fff;
    border: 1px solid #800000;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.25);
}

/* GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

/* IMAGE */
.product-image {
    width: 100%;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TEXT */
.category {
    font-size: 0.7rem;
    color: #a00000;
}

.product-content h3 {
    font-size: 1rem;
    margin: 8px 0;
    color: black;
}

.price {
    font-weight: bold;
    color: black;
}

/* CONDITION */
.condition {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 8px 0;
}

.condition-1 { background: #d4edda; color: #155724; }
.condition-2 { background: #d1ecf1; color: #0c5460; }
.condition-3 { background: #fff3cd; color: #856404; }
.condition-4 { background: #ffe5b4; color: #8a4b08; }
.condition-5 { background: #f8d7da; color: #721c24; }

/* BUTTONS */
.product-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-detail {
    flex: 1;
    text-align: center;
    padding: 8px;
    border: 1px solid #800000;
    color: #800000;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn-detail:hover {
    background: #800000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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